/* ─── RESET & VARIABLES ─── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0A0E14;
    --bg-card: #111820;
    --bg-elevated: #1A2030;
    --primary: #6C5CE7;
    --primary-light: #7B6CF0;
    --primary-dark: #5A4BD6;
    --green: #00D68F;
    --green-dark: #00B377;
    --text: #FFFFFF;
    --text-secondary: #8A94A6;
    --text-muted: #5A6478;
    --border: #1E2A3A;
    --radius: 16px;
    --radius-sm: 12px;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── NAV ─── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 14, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(108, 92, 231, 0.1);
    transition: background 0.3s;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.nav-logo span {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--primary);
    color: #fff !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

/* ─── SECTION TYPOGRAPHY ─── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.15;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 60px;
    line-height: 1.7;
}

/* ─── STORE BUTTONS ─── */
.btn-store {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.3);
}

.btn-store.apple {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.btn-store.google {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.btn-store.google:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-store-icon {
    width: 24px;
    height: 24px;
}

.btn-store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-store-text small {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.7;
}

.btn-store-text strong {
    font-size: 0.95rem;
}

/* ─── CTA SECTION ─── */
.cta-section {
    padding: 100px 0;
}

.cta-box {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(0, 214, 143, 0.06));
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: 24px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 214, 143, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-box p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 40px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ─── FOOTER ─── */
footer {
    border-top: 1px solid var(--border);
    padding: 48px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-brand span {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

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

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
    width: 100%;
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* ─── ANIMATIONS ─── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* ─── PAGE HERO (subpages) ─── */
.page-hero {
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.page-hero .lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ─── CONTENT SECTIONS ─── */
.content-section {
    padding: 80px 0;
}

.content-section + .content-section {
    padding-top: 0;
}

.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: transform 0.3s, border-color 0.3s;
}

.content-card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 92, 231, 0.3);
}

/* ─── LEGAL PAGES (privacy, terms) ─── */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0 100px;
}

.legal-content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 48px 0 16px;
    color: var(--text);
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--primary-light);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 40px;
    text-align: center;
}

/* ─── DOCS PAGE ─── */
.docs-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0 100px;
}

.docs-section {
    margin-bottom: 48px;
}

.docs-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.docs-section h2 .docs-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.docs-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.docs-section ol,
.docs-section ul {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
    padding-left: 24px;
}

.docs-section li {
    margin-bottom: 6px;
}

.docs-section code {
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.88rem;
    color: var(--primary-light);
}

.docs-tip {
    background: rgba(108, 92, 231, 0.08);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 16px 20px;
    margin: 16px 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ─── ABOUT PAGE ─── */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: rgba(108, 92, 231, 0.3);
}

.value-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 20px;
}

.value-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-story {
    max-width: 700px;
}

.about-story p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 40px;
    }

    .nav-links {
        gap: 20px;
    }

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

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

    .cta-box {
        padding: 60px 24px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

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

    .cta-buttons .btn-store {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }
}
