/* ===== RESET & VARIABLES ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-600: #7F56D9;
    --primary-700: #6941C6;
    --primary-50: #F9F5FF;
    --primary-100: #F4EBFF;

    --gray-900: #1c1a18;
    --gray-700: #3d3833;
    --gray-600: #5c5550;
    --gray-500: #7a736d;
    --gray-400: #9e9891;
    --gray-300: #d1ccc7;
    --gray-200: #e8e4e0;
    --gray-100: #f3f1ef;
    --gray-50: #f9f8f7;

    --white: #FFFFFF;

    --shadow-xs: 0px 1px 2px rgba(16, 24, 40, 0.05);
    --shadow-sm: 0px 1px 3px rgba(16, 24, 40, 0.1), 0px 1px 2px rgba(16, 24, 40, 0.06);
    --shadow-md: 0px 4px 8px -2px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px rgba(16, 24, 40, 0.06);
    --shadow-lg: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-900);
    line-height: 1.5;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

section[id] { scroll-margin-top: 100px; }


/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 900px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 5px 5px 5px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo svg { height: 44px; width: auto; color: var(--gray-900); }

.nav-links {
    display: none; /* hidden until we have pages to link */
    align-items: center;
    gap: 4px;
    position: relative;
}

.nav-pill {
    position: absolute;
    height: 100%;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.nav-pill.visible { opacity: 1; }

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.25s ease;
    padding: 8px 14px;
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-600);
    color: var(--white);
    box-shadow: var(--shadow-xs);
}

.btn-primary:hover { background: var(--primary-700); }

.navbar .btn-primary {
    padding: 12px 22px;
    font-size: 14px;
    border-radius: 18px;
    flex-shrink: 0;
}

/* Hamburger */
.hamburger {
    display: none;
    background: var(--primary-600);
    border: none;
    cursor: pointer;
    padding: 12px 16px;
    color: white;
    border-radius: 20px;
    transition: background 0.2s ease;
}

.hamburger:hover { background: var(--primary-700); }

/* Mobile menu — identical to landing page */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 900px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-top: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    border-radius: 0 0 24px 24px;
    padding: 0 0 8px 0;
    z-index: 99;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.mobile-menu.open {
    display: flex;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.navbar.menu-open {
    border-radius: 24px 24px 0 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.mobile-menu a {
    display: block;
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-900);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.15s ease;
}

.mobile-menu a:not(.mobile-cta):first-child {
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-menu a:hover,
.mobile-menu a:active {
    background: rgba(255, 255, 255, 0.5);
}

.mobile-menu a.mobile-cta {
    background: var(--primary-600);
    color: white;
    text-align: center;
    font-weight: 600;
    margin: 8px 8px 0 8px;
    padding: 14px 20px;
    border-radius: 16px;
    border-bottom: none;
}

/* When CTA is the only item in the menu */
.mobile-menu a.mobile-cta:first-child {
    margin: 28px 8px 0;
}

.mobile-menu a.mobile-cta:hover {
    background: var(--primary-700);
}


/* ===== HERO ===== */
.hero-wrapper {
    background: linear-gradient(135deg, #F9F5FF 0%, #F4EBFF 50%, #EBE4FF 100%);
    position: relative;
    overflow: hidden;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -200px;
    right: -200px;
    bottom: -60px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900' viewBox='0 0 1600 900'%3E%3Cpath d='M-100 -20 Q400 40 800 150 Q1200 260 1700 200' stroke='%237F56D9' stroke-width='1.2' fill='none' stroke-opacity='0.15'/%3E%3Cpath d='M-100 30 Q400 90 800 200 Q1200 310 1700 250' stroke='%237F56D9' stroke-width='1.2' fill='none' stroke-opacity='0.15'/%3E%3Cpath d='M-100 80 Q400 140 800 250 Q1200 360 1700 300' stroke='%237F56D9' stroke-width='1.2' fill='none' stroke-opacity='0.15'/%3E%3Cpath d='M-100 130 Q400 190 800 300 Q1200 410 1700 350' stroke='%237F56D9' stroke-width='1.2' fill='none' stroke-opacity='0.15'/%3E%3Cpath d='M-100 180 Q400 240 800 350 Q1200 460 1700 400' stroke='%237F56D9' stroke-width='1.2' fill='none' stroke-opacity='0.15'/%3E%3Cpath d='M-100 230 Q400 290 800 400 Q1200 510 1700 450' stroke='%237F56D9' stroke-width='1.2' fill='none' stroke-opacity='0.15'/%3E%3Cpath d='M-100 280 Q400 340 800 450 Q1200 560 1700 500' stroke='%237F56D9' stroke-width='1.2' fill='none' stroke-opacity='0.15'/%3E%3Cpath d='M-100 330 Q400 390 800 500 Q1200 610 1700 550' stroke='%237F56D9' stroke-width='1.2' fill='none' stroke-opacity='0.15'/%3E%3Cpath d='M-100 380 Q400 440 800 550 Q1200 660 1700 600' stroke='%237F56D9' stroke-width='1.2' fill='none' stroke-opacity='0.15'/%3E%3Cpath d='M-100 430 Q400 490 800 600 Q1200 710 1700 650' stroke='%237F56D9' stroke-width='1.2' fill='none' stroke-opacity='0.15'/%3E%3Cpath d='M-100 480 Q400 540 800 650 Q1200 760 1700 700' stroke='%237F56D9' stroke-width='1.2' fill='none' stroke-opacity='0.15'/%3E%3Cpath d='M-100 530 Q400 590 800 700 Q1200 810 1700 750' stroke='%237F56D9' stroke-width='1.2' fill='none' stroke-opacity='0.15'/%3E%3Cpath d='M-100 580 Q400 640 800 750 Q1200 860 1700 800' stroke='%237F56D9' stroke-width='1.2' fill='none' stroke-opacity='0.15'/%3E%3Cpath d='M-100 630 Q400 690 800 800 Q1200 910 1700 850' stroke='%237F56D9' stroke-width='1.2' fill='none' stroke-opacity='0.15'/%3E%3Cpath d='M-100 680 Q400 740 800 850 Q1200 960 1700 900' stroke='%237F56D9' stroke-width='1.2' fill='none' stroke-opacity='0.15'/%3E%3Cpath d='M-100 730 Q400 790 800 900 Q1200 1010 1700 950' stroke='%237F56D9' stroke-width='1.2' fill='none' stroke-opacity='0.15'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    pointer-events: none;
    animation: lavaDrift 35s ease-in-out infinite;
}

@keyframes lavaDrift {
    0%   { transform: translate(0px, 0px) scale(1); }
    10%  { transform: translate(60px, -5px) scale(1.01); }
    20%  { transform: translate(100px, 8px) scale(1); }
    30%  { transform: translate(40px, -6px) scale(1.005); }
    40%  { transform: translate(-50px, 5px) scale(1.01); }
    50%  { transform: translate(-110px, -3px) scale(1); }
    60%  { transform: translate(-60px, 7px) scale(1.005); }
    70%  { transform: translate(30px, -5px) scale(1.01); }
    80%  { transform: translate(90px, 4px) scale(1); }
    90%  { transform: translate(40px, -3px) scale(1.005); }
    100% { transform: translate(0px, 0px) scale(1); }
}

.hero-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #FFFFFF);
    pointer-events: none;
    z-index: 0;
}

.hero {
    padding: 160px 24px 80px;
    text-align: center;
    max-width: 768px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.hero h1 .highlight { color: var(--primary-600); }

.hero p {
    font-size: 20px;
    color: var(--gray-600);
    margin-bottom: 0;
    line-height: 1.6;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}


/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 80px 24px;
    max-width: 900px;
    margin: 0 auto;
}

.content-section.has-border {
    border-bottom: 1px solid var(--gray-100);
}


/* ===== TRUST INTRO ===== */
.trust-intro {
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
}

.trust-intro h2 {
    font-size: 30px;
    font-weight: 600;
    color: var(--gray-900);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.3;
}

.trust-intro p {
    font-size: 17px;
    color: var(--gray-600);
    line-height: 1.8;
}

.trust-intro p + p {
    margin-top: 16px;
}


/* ===== VALUE CARDS ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 0;
}

.value-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 16px;
    padding: 32px 28px;
    transition: all 0.2s ease;
}

.value-card:hover {
    border-color: var(--gray-200);
    box-shadow: var(--shadow-md);
}

.value-icon {
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.value-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary-600);
}

.value-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.value-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}


/* ===== EMAIL SECTION ===== */
.email-section {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.email-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 24px;
    text-align: center;
}

.email-inner h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.email-inner p {
    font-size: 17px;
    color: var(--gray-600);
    max-width: 520px;
    margin: 0 auto 16px;
    line-height: 1.7;
}

.email-inner p:last-of-type {
    margin-bottom: 28px;
}

.email-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-600);
    text-decoration: none;
    padding: 14px 28px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.2s;
}

.email-btn:hover {
    border-color: var(--primary-600);
    background: var(--primary-50);
    box-shadow: var(--shadow-sm);
}

.email-btn svg { width: 18px; height: 18px; }


/* ===== PRE-FOOTER ===== */
.pre-footer {
    background: var(--gray-900);
    padding: 48px 24px;
    text-align: center;
}

.pre-footer-container {
    max-width: 900px;
    margin: 0 auto;
}

.pre-footer-icon img { height: 84px; }

.pre-footer-details {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
    color: var(--gray-400);
    margin-top: 16px;
}

.pre-footer-dot { color: var(--gray-600); }

.pre-footer-details a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.pre-footer-details a:hover { color: var(--white); }


/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    padding: 24px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer p {
    font-size: 13px;
    color: var(--gray-500);
}

.footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

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


/* ===== LEGAL MODALS ===== */
.legal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    padding: 24px;
    overflow-y: auto;
}

.legal-overlay.open { display: flex; justify-content: center; align-items: flex-start; }

.legal-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 640px;
    width: 100%;
    margin: 40px auto;
    max-height: calc(100vh - 80px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.legal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    flex-shrink: 0;
    border-radius: 16px 16px 0 0;
}

.legal-modal-header h2 { font-size: 18px; font-weight: 600; color: #1a1a1a; }

.legal-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
}

.legal-modal-close:hover { color: #000; }

.legal-modal-body {
    padding: 24px 28px 32px;
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.legal-modal-body h3 { font-size: 15px; font-weight: 600; color: #1a1a1a; margin-top: 24px; margin-bottom: 8px; }
.legal-modal-body h3:first-child { margin-top: 0; }
.legal-modal-body p { margin-bottom: 12px; }
.legal-modal-body ul { margin: 8px 0 16px 20px; }
.legal-modal-body a { color: var(--primary-600); text-decoration: none; }
.legal-modal-body a:hover { text-decoration: underline; }
.legal-modal-body .legal-meta { margin-top: 32px; font-size: 12px; color: #888; }


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar {
        width: calc(100% - 32px);
        padding: 8px 8px 8px 20px;
    }

    .nav-links { display: none; }
    .navbar .btn-primary { display: none; }
    .hamburger { display: flex; align-items: center; justify-content: center; }

    .hero { padding: 140px 24px 64px; }
    .hero h1 { font-size: 36px; }
    .hero p { font-size: 18px; }

    .content-section { padding: 56px 20px; }

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

    .pre-footer-details {
        flex-direction: column;
        gap: 4px;
    }

    .pre-footer-dot { display: none; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 30px; }
}
