/* ==============================
   Phish-Guard Landing Page Styles
   Coinbase-Inspired Dark Theme
   ============================== */

:root {
    --bg-primary: #0a0b0d;
    --bg-secondary: #111214;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --text-primary: #ffffff;
    --text-secondary: #8a8f98;
    --text-muted: #5b5e65;
    --accent-blue: #0052FF;
    --accent-blue-glow: rgba(0, 82, 255, 0.3);
    --accent-green: #00D395;
    --accent-red: #CF202F;
    --accent-amber: #F0B90B;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 11, 13, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
}

.logo-icon {
    font-size: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    background: var(--accent-blue) !important;
    color: white !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: all var(--transition) !important;
}

.nav-cta:hover {
    background: #003dbf !important;
    box-shadow: 0 0 20px var(--accent-blue-glow);
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 30%, transparent 70%);
}

.hero-content {
    text-align: center;
    max-width: 720px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-blue);
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.hero-title {
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue), #5f9cff, var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 20px var(--accent-blue-glow);
}

.btn-primary:hover {
    background: #003dbf;
    box-shadow: 0 8px 30px var(--accent-blue-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 12px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* === DEMO CARD === */
.demo-card {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: floatCard 6s ease-in-out infinite;
    z-index: 3;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
    }

    50% {
        transform: translateY(-52%) translateX(-5px);
    }
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.demo-dots {
    display: flex;
    gap: 5px;
}

.demo-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.demo-dots span:first-child {
    background: var(--accent-red);
}

.demo-dots span:nth-child(2) {
    background: var(--accent-amber);
}

.demo-dots span:last-child {
    background: var(--accent-green);
}

.demo-url {
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
}

.demo-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.demo-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
}

.demo-result:nth-child(1) {
    animation-delay: 0.5s;
}

.demo-result:nth-child(2) {
    animation-delay: 1.2s;
}

.demo-result:nth-child(3) {
    animation-delay: 1.9s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.demo-result.phishing {
    background: rgba(207, 32, 47, 0.1);
    border-color: rgba(207, 32, 47, 0.3);
}

.demo-result.safe {
    background: rgba(0, 82, 255, 0.08);
    border-color: rgba(0, 82, 255, 0.25);
}

.demo-result.trusted {
    background: rgba(0, 211, 149, 0.08);
    border-color: rgba(0, 211, 149, 0.25);
}

.demo-icon {
    font-size: 22px;
}

.demo-status {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.demo-message {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

/* === SECTIONS (Shared) === */
.section-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent-blue);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 48px;
}

/* === FEATURES GRID === */
.features {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.feature-icon.green {
    background: rgba(0, 211, 149, 0.12);
}

.feature-icon.blue {
    background: rgba(0, 82, 255, 0.12);
}

.feature-icon.red {
    background: rgba(207, 32, 47, 0.12);
}

.feature-icon.amber {
    background: rgba(240, 185, 11, 0.12);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === HOW IT WORKS === */
.how-it-works {
    padding: 120px 0;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.step:hover {
    padding-left: 12px;
}

.step-number {
    font-size: 48px;
    font-weight: 900;
    color: rgba(0, 82, 255, 0.15);
    line-height: 1;
    min-width: 80px;
    transition: color var(--transition);
}

.step:hover .step-number {
    color: var(--accent-blue);
}

.step-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* === STATS === */
.stats-section {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
}

.stat-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 6px;
}

.stat-name {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 16px;
}

.stat-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 1.5s ease-out;
}

.stat-bar-fill.green {
    background: var(--accent-green);
}

.stat-bar-fill.blue {
    background: var(--accent-blue);
}

.stat-bar-fill.red {
    background: var(--accent-red);
}

.stat-bar-fill.amber {
    background: var(--accent-amber);
}

/* === DOWNLOAD SECTION === */
.download-section {
    padding: 120px 0;
}

.download-card {
    background: linear-gradient(135deg, rgba(0, 82, 255, 0.08), rgba(0, 211, 149, 0.05));
    border: 1px solid rgba(0, 82, 255, 0.2);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
}

.download-card h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
}

.download-card>p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.download-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.dl-step {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 18px;
    font-size: 14px;
    color: var(--text-secondary);
}

.dl-num {
    background: var(--accent-blue);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.dl-step code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--accent-blue);
}

.download-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* === FOOTER === */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-logo {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
}

.footer-tech {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.6;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .demo-card {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .download-card {
        padding: 40px 24px;
    }

    .download-steps {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        gap: 12px;
    }

    .step-number {
        font-size: 32px;
        min-width: auto;
    }
}