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

:root {
    --primary: #6c63ff;
    --primary-dark: #574fd6;
    --accent: #00d4aa;
    --dark: #0f0f1a;
    --dark-card: #1a1a2e;
    --dark-border: #2a2a4a;
    --text: #e8e8f0;
    --text-muted: #9090b0;
    --gradient: linear-gradient(135deg, #6c63ff 0%, #00d4aa 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(108, 99, 255, 0.25);
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.nav-cta {
    background: var(--gradient);
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    transition: opacity 0.2s !important;
}

.nav-cta:hover {
    opacity: 0.85;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 7rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.4);
    color: #a59dff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 24px rgba(108, 99, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(108, 99, 255, 0.5);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--dark-border);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
    cursor: default;
}

.btn-secondary.available:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text);
    cursor: pointer;
}

.btn-badge {
    background: rgba(255, 200, 0, 0.15);
    color: #ffc800;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.hero-legal {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-legal a {
    color: #a59dff;
    text-decoration: underline;
}

/* ── STATS ── */
.stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 3rem 2rem;
    border-top: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ── SECTIONS ── */
section {
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
}

/* ── FEATURES ── */
#features {
    text-align: center;
}

#features .section-subtitle {
    margin: 0 auto 3.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 16px;
    padding: 2rem;
    text-align: left;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: rgba(108, 99, 255, 0.5);
    transform: translateY(-4px);
}

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

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── HOW IT WORKS ── */
#how-it-works {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
}

.step-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.how-visual {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mock-bar {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    height: 14px;
}

.mock-bar.short { width: 45%; }
.mock-bar.medium { width: 70%; }
.mock-bar.long { width: 90%; }
.mock-bar.accent { background: rgba(108, 99, 255, 0.3); width: 60%; }

.mock-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--dark-border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

.mock-dot {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

.mock-dot.purple { background: rgba(108, 99, 255, 0.5); }
.mock-dot.teal   { background: rgba(0, 212, 170, 0.5); }
.mock-dot.pink   { background: rgba(255, 99, 132, 0.4); }

.mock-lines {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.mock-line {
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
}
.mock-line.w60 { width: 60%; }
.mock-line.w40 { width: 40%; }

/* ── SECURITY ── */
#security {
    text-align: center;
}

#security .section-subtitle {
    margin: 0 auto 3.5rem;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.security-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 14px;
    padding: 1.75rem;
    text-align: center;
}

.security-card .icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.security-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.security-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── DOWNLOAD ── */
#download {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--dark-card);
    border-top: 1px solid var(--dark-border);
    border-bottom: 1px solid var(--dark-border);
    max-width: 100%;
}

#download .section-title {
    margin-bottom: 0.75rem;
}

#download .section-subtitle {
    margin: 0 auto 2.5rem;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── FOOTER ── */
footer {
    background: var(--dark);
    border-top: 1px solid var(--dark-border);
    padding: 2.5rem 2rem;
    text-align: center;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: color 0.2s;
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ── SUB-PAGES ── */
.page-wrapper {
    padding-top: 72px;
    min-height: calc(100vh - 160px);
}

.page-header {
    text-align: center;
    padding: 4rem 2rem 2.5rem;
    border-bottom: 1px solid var(--dark-border);
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.page-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 2.5rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--dark-border);
}

.page-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.page-content ul,
.page-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.page-content li {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 0.35rem;
}

.page-content a {
    color: #a59dff;
    text-decoration: underline;
}

.page-content strong {
    color: var(--text);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    #how-it-works {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.25rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--dark-card);
        border-bottom: 1px solid var(--dark-border);
        padding: 0.5rem 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li a {
        display: block;
        padding: 0.75rem 1.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    section {
        padding: 4rem 1.25rem;
    }

    .stats {
        gap: 2rem;
        padding: 2.5rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

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

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

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