:root {
    --primary: #1565C0;
    --primary-light: #5E92F3;
    --primary-dark: #003C8F;
    --accent: #f59e0b;
    --red: #ef4444;
    --green: #2e7d32;
    --bg: #fafafa;
    --bg-card: #ffffff;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --radius: 16px;
    --nav-height: 64px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111111;
        --bg-card: #1e1e1e;
        --text: #f0f0f0;
        --text-muted: #9ca3af;
    }
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--nav-height);
}

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

/* ---- Navigation ---- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg);
    border-bottom: 1px solid rgba(128,128,128,0.12);
    height: var(--nav-height);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-links a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(128,128,128,0.08);
}

.nav-links a.active {
    color: var(--primary);
    background: rgba(21,101,192,0.08);
}

/* Burger button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 600px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid rgba(128,128,128,0.12);
        flex-direction: column;
        padding: 8px 24px 16px;
        gap: 0;
        display: none;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }

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

    .nav-links a {
        padding: 12px 16px;
        font-size: 1rem;
    }
}

/* ---- Header ---- */
header {
    padding: 60px 0 40px;
    text-align: center;
}

header .logo {
    width: 96px;
    height: 96px;
    margin-bottom: 20px;
    border-radius: 22px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

header .tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.badge-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--primary);
    color: #fff;
}

.badge.accent { background: var(--accent); }

/* ---- Features (homepage grid) ---- */
.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 40px 0;
}

.feature {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.feature .icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.feature h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

@media (max-width: 520px) {
    .features { grid-template-columns: 1fr; }
}

/* ---- Beta Banner ---- */
.beta-banner {
    padding: 0 0 32px;
}

.beta-banner-inner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius);
    padding: 36px 32px;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 24px rgba(21,101,192,0.25);
}

.beta-banner-inner h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}

.beta-banner-inner p {
    font-size: 0.95rem;
    opacity: 0.9;
    max-width: 480px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.beta-banner-btn {
    display: inline-block;
    background: #fff;
    color: var(--primary-dark);
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: opacity 0.2s, transform 0.15s;
}

.beta-banner-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ---- Coming Soon / Roadmap ---- */
.coming-soon {
    padding: 40px 0 0;
}

.coming-soon h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 24px;
}

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

.roadmap-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.roadmap-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

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

.roadmap-status {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 2px;
}

.roadmap-status.planned {
    background: rgba(21,101,192,0.12);
    color: var(--primary);
}

.roadmap-status.live {
    background: rgba(46,125,50,0.12);
    color: var(--green);
}

/* ---- Who For ---- */
.who-for {
    padding: 40px 0;
}

.who-for-box {
    background: var(--bg-card);
    border: 2px dashed rgba(128,128,128,0.2);
    border-radius: var(--radius);
    padding: 36px 32px;
    text-align: center;
}

.who-for-box h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.who-for-box > p {
    color: var(--text-muted);
    margin-bottom: 12px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.who-for-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ---- CTA ---- */
.cta {
    text-align: center;
    padding: 40px 0 60px;
}

.cta a {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
}

.cta a:hover { background: var(--primary-dark); }

/* ---- Footer ---- */
footer {
    border-top: 1px solid rgba(128,128,128,0.15);
    padding: 32px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

footer a:hover { text-decoration: underline; }

footer .links {
    margin-bottom: 8px;
}

footer .links a { margin: 0 12px; }

/* ---- Privacy page ---- */
.legal {
    padding: 40px 0 60px;
}

.legal h1 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.legal .effective {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.legal h2 {
    font-size: 1.2rem;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--primary);
}

.legal p, .legal ul {
    margin-bottom: 16px;
}

.legal ul {
    padding-left: 24px;
}

.legal li {
    margin-bottom: 6px;
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover { text-decoration: underline; }

/* Text colour helpers */
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-red { color: var(--red); }
.text-muted { color: var(--text-muted); }

/* ========================================
   MOBILE STICKY CTA
   ======================================== */
.mobile-cta {
    display: none;
}

@media (max-width: 700px) {
    .mobile-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: rgba(17, 17, 17, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid #333;
        padding: 10px 16px;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .mobile-cta a {
        display: flex;
        align-items: center;
        gap: 8px;
        background: var(--primary);
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
        padding: 10px 20px;
        border-radius: 50px;
        width: 100%;
        justify-content: center;
        transition: background 0.2s;
    }
    .mobile-cta a:hover {
        background: var(--primary-dark);
    }
    body {
        padding-bottom: 64px;
    }
}
