/* ============================================================
   Pelvin AI — Landing page
   ============================================================ */

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

:root {
    --bg: #0b0d12;
    --bg-soft: #0f1218;
    --surface: #12151c;
    --surface-2: #161a22;
    --border: #1f232d;
    --border-soft: #232735;
    --text: #e6e8ee;
    --text-muted: #a8adba;
    --text-dim: #6f7684;
    --accent: #7c5cff;
    --accent-2: #22d3ee;
    --success: #42d392;
    --danger: #ff5c72;
}

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

/* ============================================================
   NAVBAR
   ============================================================ */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 13, 18, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
}

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

/* --- Brand --- */
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    z-index: 2;
}
.nav-brand img {
    border-radius: 10px;
    display: block;
}
.brand-text {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

/* --- Menu --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.92rem;
}
.nav-menu > a {
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    transition: color .15s, background .15s;
    white-space: nowrap;
}
.nav-menu > a:hover {
    color: var(--text);
    background: var(--surface-2);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 10px;
    padding-left: 14px;
    border-left: 1px solid var(--border-soft);
}
.nav-link-muted {
    color: var(--text-muted);
    padding: 8px 12px;
    border-radius: 8px;
    transition: color .15s, background .15s;
    font-size: 0.92rem;
}
.nav-link-muted:hover {
    color: var(--text);
    background: var(--surface-2);
}

/* --- Toggle --- */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    z-index: 2;
    padding: 0;
    transition: border-color .15s;
}
.nav-toggle:hover { border-color: var(--accent); }

.nav-toggle-bars {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 20px;
    height: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.nav-toggle-bars span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
body.nav-open .nav-toggle-bars span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
body.nav-open .nav-toggle-bars span:nth-child(2) {
    opacity: 0;
}
body.nav-open .nav-toggle-bars span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    border: 1px solid transparent;
    font-family: inherit;
    white-space: nowrap;
    text-decoration: none;
    transition: transform .1s, opacity .15s, background .15s, border-color .15s;
}
.btn:active { transform: scale(0.985); }
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0b0d12;
    box-shadow: 0 8px 24px rgba(124, 92, 255, 0.2);
}
.btn-primary:hover { opacity: 0.94; }
.btn-outline {
    background: transparent;
    border-color: var(--border-soft);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); }
.btn-lg { padding: 14px 26px; font-size: 1rem; border-radius: 12px; }

/* --- Mobile navbar --- */
@media (max-width: 940px) {
    .nav-toggle { display: inline-flex; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(85vw, 340px);
        background: var(--bg-soft);
        border-left: 1px solid var(--border-soft);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 80px 20px 24px;
        transform: translateX(100%);
        transition: transform .28s ease;
        z-index: 1;
        overflow-y: auto;
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.4);
    }
    body.nav-open .nav-menu { transform: translateX(0); }

    .nav-menu > a {
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: 10px;
        border-bottom: 1px solid var(--border-soft);
        border-radius: 0;
    }

    .nav-auth {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin: 16px 0 0;
        padding: 16px 0 0;
        border-left: none;
        border-top: 1px solid var(--border-soft);
    }
    .nav-auth .btn,
    .nav-auth .nav-link-muted {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 13px 16px;
        font-size: 0.98rem;
    }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
    max-width: 960px;
    margin: 0 auto;
    padding: 90px 24px 40px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(124, 92, 255, 0.1);
    border: 1px solid rgba(124, 92, 255, 0.3);
    border-radius: 999px;
    color: #c8c1ff;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 22px;
}
.hero-badge .pulse {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(66, 211, 146, 0.7); }
    70%  { box-shadow: 0 0 0 8px rgba(66, 211, 146, 0); }
    100% { box-shadow: 0 0 0 0 rgba(66, 211, 146, 0); }
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}
.hero .grad {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hide-mobile { display: inline; }

.hero-sub {
    max-width: 640px;
    margin: 0 auto 36px;
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-badges {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    color: var(--text-dim);
    font-size: 0.86rem;
}
.hero-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   SHOWCASE HERO (3 preview tiles)
   ============================================================ */

.showcase-hero {
    max-width: 1160px;
    margin: 20px auto 80px;
    padding: 0 24px;
}
.showcase-hero-inner {
    background:
        radial-gradient(600px 400px at 20% 10%, rgba(124, 92, 255, 0.15), transparent 60%),
        radial-gradient(600px 400px at 80% 90%, rgba(34, 211, 238, 0.1), transparent 60%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px 32px;
    overflow: hidden;
}

.showcase-hero-text {
    text-align: center;
    margin-bottom: 28px;
}
.showcase-hero-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 999px;
    color: #7ce8f4;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.showcase-hero-text h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}
.showcase-hero-text p {
    color: var(--text-muted);
    margin: 0 auto;
    max-width: 520px;
}

.showcase-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

/* Media tiles — video / image / chat */
.showcase-tile {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
}
.showcase-tile > video,
.showcase-tile > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}
.showcase-tile-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 12px 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #e6e8ee;
    z-index: 2;
    overflow: hidden;
}
.showcase-tile-label span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    line-height: 1.5;
}
.badge-video { background: rgba(167, 139, 250, 0.25); color: #c4b5fd; }
.badge-image { background: rgba(255, 184, 107, 0.22); color: #ffb86b; }
.badge-chat  { background: rgba(139, 184, 255, 0.2); color: #8bb8ff; }

/* Chat tile */
.showcase-tile-chat {
    padding: 20px;
    aspect-ratio: auto;
    min-height: 260px;
}
.showcase-tile-chat .showcase-tile-label {
    position: static;
    background: transparent;
    padding: 12px 0 0;
    margin-top: auto;
}
.chat-preview {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}
.chat-preview-row {
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.45;
    word-wrap: break-word;
}
.chat-preview-row.user {
    align-self: flex-end;
    background: #1c2433;
    border: 1px solid #2a344a;
    max-width: 90%;
}
.chat-preview-row.ai {
    background: var(--surface-2);
    border: 1px solid var(--border);
    max-width: 95%;
}
.chat-preview-name {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-2);
    margin-bottom: 4px;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section-head {
    text-align: center;
    margin-bottom: 44px;
}
.section-eyebrow {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(124, 92, 255, 0.1);
    border: 1px solid rgba(124, 92, 255, 0.25);
    border-radius: 999px;
    color: #c8c1ff;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.section-head h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}
.section-sub {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1rem;
}

/* ============================================================
   FEATURES
   ============================================================ */

.features {
    max-width: 1160px;
    margin: 40px auto 100px;
    padding: 0 24px;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px 24px;
    transition: transform .18s, border-color .18s, box-shadow .18s;
    position: relative;
    overflow: hidden;
}
.feature::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.4), transparent);
    opacity: 0;
    transition: opacity .2s;
}
.feature:hover {
    transform: translateY(-3px);
    border-color: #2b3141;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25);
}
.feature:hover::before { opacity: 1; }
.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(34, 211, 238, 0.14));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 16px;
}
.feature h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    font-weight: 700;
}
.feature p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.55;
}

/* ============================================================
   SHOWCASE (full grid)
   ============================================================ */

.showcase {
    max-width: 1160px;
    margin: 40px auto 100px;
    padding: 0 24px;
}
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.showcase-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s, border-color .18s;
}
.showcase-card:hover {
    transform: translateY(-3px);
    border-color: #2b3141;
}
.showcase-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #000;
}
.showcase-media > img,
.showcase-media > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.showcase-card-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.showcase-card-body .badge {
    align-self: flex-start;
}
.showcase-prompt {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.45;
    font-style: italic;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.how {
    max-width: 1100px;
    margin: 40px auto 100px;
    padding: 0 24px;
}
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.step {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: left;
}
.step-num {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0b0d12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
.step p { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.step-arrow {
    color: var(--text-dim);
    font-size: 1.6rem;
    font-weight: 300;
}
@media (max-width: 900px) { .step-arrow { display: none; } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonials {
    max-width: 1160px;
    margin: 40px auto 100px;
    padding: 0 24px;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.testimonial {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.testimonial-quote {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0b0d12;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.testimonial-name { font-size: 0.88rem; font-weight: 600; }
.testimonial-role { font-size: 0.76rem; color: var(--text-dim); }

/* ============================================================
   FAQ
   ============================================================ */

.faq {
    max-width: 780px;
    margin: 40px auto 100px;
    padding: 0 24px;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .15s;
}
.faq-item[open] { border-color: #2b3141; }
.faq-item summary {
    list-style: none;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    color: var(--text-muted);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1;
    transition: transform .2s;
    flex-shrink: 0;
}
.faq-item[open] summary::after {
    content: "−";
    color: var(--accent);
}
.faq-item p {
    margin: 0;
    padding: 0 20px 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================================
   FINAL CTA
   ============================================================ */

.final-cta { padding: 0 24px 60px; }
.final-cta-inner {
    max-width: 1160px;
    margin: 0 auto;
    background:
        radial-gradient(600px 400px at 30% 20%, rgba(124, 92, 255, 0.25), transparent 65%),
        radial-gradient(600px 400px at 80% 80%, rgba(34, 211, 238, 0.18), transparent 65%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 60px 32px;
    text-align: center;
}
.final-cta h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}
.final-cta p {
    color: var(--text-muted);
    margin: 0 auto 32px;
    max-width: 520px;
    font-size: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
    border-top: 1px solid var(--border-soft);
    padding: 44px 24px 40px;
    margin-top: 80px;
}
.footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}
.footer-brand img { border-radius: 8px; }
.footer-nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-nav a { color: var(--text-muted); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--text); }
.footer-copy {
    color: var(--text-dim);
    font-size: 0.84rem;
    margin: 0;
}

/* ============================================================
   ALERTS
   ============================================================ */

.alert {
    max-width: 1000px;
    margin: 16px auto;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.92rem;
}
.alert-success {
    background: rgba(66, 211, 146, 0.08);
    border: 1px solid rgba(66, 211, 146, 0.3);
    color: #7ef0a5;
}
.alert-error {
    background: rgba(255, 92, 114, 0.08);
    border: 1px solid rgba(255, 92, 114, 0.3);
    color: #ff9aa6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .showcase-hero-grid { grid-template-columns: 1fr 1fr; }
    .showcase-tile-chat { grid-column: span 2; }
}

@media (max-width: 720px) {
    .hide-mobile { display: none; }
    .hero { padding: 60px 20px 30px; }
    .hero-badges { gap: 12px; font-size: 0.8rem; }
    .showcase-hero { margin: 12px auto 60px; }
    .showcase-hero-inner { padding: 24px 20px; border-radius: 18px; }
    .showcase-hero-text h3 { font-size: 1.3rem; }
    .showcase-hero-grid { grid-template-columns: 1fr; }
    .showcase-tile-chat { grid-column: auto; }
    .steps { flex-direction: column; }
    .final-cta-inner { padding: 40px 22px; border-radius: 18px; }
    .section-head { margin-bottom: 32px; }
    .features,
    .showcase,
    .how,
    .testimonials,
    .faq { margin-bottom: 70px; }
}



/* ============================================================
   MOBILE NAVBAR — full-height side drawer
   ============================================================ */

/* Drawer header — hidden on desktop */
.nav-drawer-head { display: none; }

@media (max-width: 940px) {

    .nav-toggle { display: inline-flex; }

    /* ---------- Full-height drawer ---------- */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;

        /* Full viewport height, not offset by navbar */
        height: 100vh;
        height: 100dvh;

        width: min(86vw, 360px);
        background: var(--bg-soft);
        border-left: 1px solid var(--border-soft);

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        /* No top padding — drawer header handles spacing */
        padding: 0;

        transform: translateX(100%);
        transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);

        z-index: 200;
        overflow-y: auto;
        overscroll-behavior: contain;

        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
        font-size: 1rem;

        visibility: hidden;
    }
    body.nav-open .nav-menu {
        transform: translateX(0);
        visibility: visible;
    }

    /* ---------- Backdrop ---------- */
    body.nav-open .nav-backdrop {
        display: block;
        opacity: 1;
    }
    .nav-backdrop {
        z-index: 150;
    }

    /* ---------- Drawer header ---------- */
    .nav-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: calc(16px + env(safe-area-inset-top)) 16px 16px;
        border-bottom: 1px solid var(--border-soft);
        background: var(--bg-soft);
        flex-shrink: 0;
        position: sticky;
        top: 0;
        z-index: 1;
    }
    .nav-drawer-brand {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        font-weight: 800;
        font-size: 1.05rem;
        text-decoration: none;
    }
    .nav-drawer-brand img { border-radius: 8px; display: block; }
    .nav-drawer-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 10px;
        color: var(--text-muted);
        cursor: pointer;
        padding: 0;
        transition: color .15s, border-color .15s, background .15s;
    }
    .nav-drawer-close:hover {
        color: var(--text);
        border-color: var(--accent);
        background: var(--surface-2);
    }

    /* ---------- Menu links ---------- */
    .nav-menu > a {
        padding: 16px 20px;
        font-size: 1rem;
        color: var(--text);
        border-bottom: 1px solid var(--border-soft);
        background: transparent;
        border-radius: 0;
        text-align: left;
        transition: background .15s, color .15s, padding-left .2s;
    }
    .nav-menu > a:hover,
    .nav-menu > a:active {
        background: var(--surface-2);
        padding-left: 24px;
    }

    /* ---------- Auth section ---------- */
    .nav-auth {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin: auto 0 0;          /* push to bottom if room */
        padding: 20px;
        border-left: none;
        border-top: 1px solid var(--border-soft);
        flex-shrink: 0;
    }
    .nav-auth .btn,
    .nav-auth .nav-link-muted {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 14px 16px;
        font-size: 0.98rem;
        border-radius: 12px;
    }
    .nav-auth .nav-link-muted {
        border: 1px solid var(--border-soft);
        background: var(--surface);
    }

    /* ---------- Hide hamburger while drawer is open (optional) ---------- */
    body.nav-open .nav-toggle {
        opacity: 0;
        pointer-events: none;
    }
}

/* Extra-narrow phones */
@media (max-width: 380px) {
    .nav-inner { padding: 10px 14px; }
    .nav-brand { font-size: 1rem; }
    .nav-brand img { width: 30px; height: 30px; }
    .nav-toggle { width: 40px; height: 40px; }
    .nav-drawer-head { padding-left: 14px; padding-right: 14px; }
    .nav-menu > a { padding: 14px 16px; font-size: 0.95rem; }
}

/* ============================================================
   PRICING PAGE
   ============================================================ */

.pricing-page {
    max-width: 1160px;
    margin: 0 auto;
    padding: 80px 24px 100px;
}

.pricing-hero {
    text-align: center;
    margin-bottom: 48px;
}
.pricing-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 14px 0 12px;
}
.pricing-hero .sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
    max-width: 520px;
    margin-inline: auto;
}

/* ---------- Grid ---------- */

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: stretch;
}

/* ---------- Card ---------- */

.plan-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px 26px 26px;
    display: flex;
    flex-direction: column;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.plan-card:hover {
    transform: translateY(-4px);
    border-color: #2b3141;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* Featured (Pro) */
.plan-card.featured {
    border-color: var(--accent);
    box-shadow:
        0 0 0 1px rgba(124, 92, 255, 0.4),
        0 16px 46px rgba(124, 92, 255, 0.18);
    background:
        linear-gradient(180deg, rgba(124, 92, 255, 0.06), transparent 55%),
        var(--surface);
}

/* Current plan (already subscribed) */
.plan-card.current {
    border-color: var(--success);
    box-shadow: 0 0 0 1px rgba(66, 211, 146, 0.35);
}

/* ---------- Ribbon ---------- */

.plan-ribbon {
    position: absolute;
    top: -12px;
    right: 22px;
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0b0d12;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(124, 92, 255, 0.35);
}
.plan-ribbon.current-ribbon {
    background: var(--success);
    color: #06281a;
    box-shadow: 0 4px 14px rgba(66, 211, 146, 0.35);
}

/* ---------- Head ---------- */

.plan-head {
    margin-bottom: 18px;
}
.plan-head h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.plan-tagline {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ---------- Price ---------- */

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 22px;
    line-height: 1;
    min-height: 44px;
}
.plan-price .currency {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 2px;
}
.plan-price .amount {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
}
.plan-price .per {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
}

/* ---------- Feature list ---------- */

.plan-features {
    list-style: none;
    padding: 18px 0 22px;
    margin: 0;
    border-top: 1px solid var(--border);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 11px;
}
.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
}
.plan-features .check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(66, 211, 146, 0.15);
    color: var(--success);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    margin-top: 1px;
}
.plan-features strong {
    color: var(--text);
    font-weight: 700;
}

/* ---------- CTA ---------- */

.plan-card .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.94rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .1s, opacity .15s, border-color .15s, background .15s;
    font-family: inherit;
    width: 100%;
}
.plan-card .btn:active { transform: scale(0.985); }

.plan-card .btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0b0d12;
    box-shadow: 0 8px 24px rgba(124, 92, 255, 0.22);
}
.plan-card .btn-primary:hover { opacity: 0.94; }

.plan-card .btn-outline {
    background: transparent;
    border-color: var(--border-soft);
    color: var(--text);
}
.plan-card .btn-outline:hover { border-color: var(--accent); }

.plan-card .btn-ghost {
    background: rgba(66, 211, 146, 0.08);
    border-color: rgba(66, 211, 146, 0.3);
    color: var(--success);
    cursor: default;
}

.plan-note {
    text-align: center;
    font-size: 0.74rem;
    color: var(--text-dim);
    margin: 12px 0 0;
    letter-spacing: 0.01em;
}

/* ---------- Footnote ---------- */

.pricing-footnote {
    text-align: center;
    margin-top: 48px;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.pricing-footnote p { margin: 4px 0; }
.pricing-footnote .muted {
    color: var(--text-dim);
    font-size: 0.84rem;
}
.pricing-footnote strong { color: var(--text); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .pricing-page { padding: 50px 20px 80px; }
    .pricing-hero { margin-bottom: 36px; }
    .plan-grid { grid-template-columns: 1fr; gap: 16px; }
    .plan-card { padding: 26px 22px 22px; }
    .plan-ribbon { right: 16px; }
}

@media (max-width: 380px) {
    .plan-price .amount { font-size: 1.9rem; }
    .plan-head h3 { font-size: 1.1rem; }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-hero {
    max-width: 860px;
    margin: 0 auto;
    padding: 90px 24px 50px;
    text-align: center;
}
.about-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 18px 0 22px;
}
.about-lede {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ============================================================
   STATS
   ============================================================ */

.about-stats {
    max-width: 1160px;
    margin: 20px auto 60px;
    padding: 0 24px;
}
.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px 24px;
}
.about-stat {
    text-align: center;
    padding: 6px 10px;
    border-right: 1px solid var(--border-soft);
}
.about-stat:last-child { border-right: none; }
.about-stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 4px;
}
.about-stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}
@media (max-width: 720px) {
    .about-stat {
        border-right: none;
        border-bottom: 1px solid var(--border-soft);
        padding-bottom: 16px;
    }
    .about-stat:last-child { border-bottom: none; padding-bottom: 6px; }
}

/* ============================================================
   SECTIONS
   ============================================================ */

.about-section {
    max-width: 1160px;
    margin: 0 auto 100px;
    padding: 0 24px;
}
.about-section-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.about-section-inner-narrow {
    display: block;
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}
.about-section-text h2,
.about-section-inner-narrow h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 14px 0 18px;
    line-height: 1.2;
}
.about-section-text p,
.about-section-inner-narrow p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 16px;
}
.about-section-text p:last-child,
.about-section-inner-narrow p:last-child { margin-bottom: 0; }

.about-section-alt {
    background: var(--bg-soft);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    max-width: none;
    padding: 80px 24px;
    margin-bottom: 100px;
}
.about-section-alt .about-section-inner,
.about-section-alt .about-founder,
.about-section-alt .about-section-inner-narrow {
    max-width: 1160px;
    margin: 0 auto;
}
.about-section-alt .about-section-inner-narrow {
    max-width: 720px;
}

/* ---------- Visual cards next to mission ---------- */

.about-section-visual {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform .18s, border-color .18s;
}
.about-card:hover {
    transform: translateX(4px);
    border-color: var(--accent);
}
.about-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(34, 211, 238, 0.14));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.about-card h4 {
    margin: 4px 0 0;
    font-size: 1rem;
    font-weight: 700;
}
.about-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ============================================================
   VALUES
   ============================================================ */

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.about-value {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: transform .18s, border-color .18s, box-shadow .18s;
}
.about-value:hover {
    transform: translateY(-3px);
    border-color: #2b3141;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.about-value-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(34, 211, 238, 0.14));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 14px;
}
.about-value h3 {
    margin: 0 0 8px;
    font-size: 1.02rem;
    font-weight: 700;
}
.about-value p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* ============================================================
   FOUNDER
   ============================================================ */

.about-founder {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: center;
}
.about-founder-avatar {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0b0d12;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    box-shadow: 0 12px 32px rgba(124, 92, 255, 0.35);
}
.about-founder-info h2 {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 800;
    margin: 10px 0 6px;
    letter-spacing: -0.02em;
}
.about-founder-alias {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 14px;
}
.about-founder-alias strong {
    color: var(--accent);
    font-weight: 700;
}
.about-founder-info p {
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.65;
    margin: 0;
    max-width: 620px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .about-section-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .about-section-visual {
        order: -1;
    }
}

@media (max-width: 720px) {
    .about-hero { padding: 60px 20px 30px; }
    .about-lede { font-size: 1rem; }
    .about-stats { margin: 12px auto 40px; }
    .about-stats-grid { padding: 22px 18px; border-radius: 16px; }
    .about-stat-value { font-size: 1.5rem; }
    .about-section { margin-bottom: 60px; }
    .about-section-alt { padding: 50px 20px; margin-bottom: 60px; }
    .about-founder {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: left;
    }
    .about-founder-avatar {
        width: 72px;
        height: 72px;
        border-radius: 18px;
        font-size: 1.5rem;
    }
    .about-section-inner-narrow { padding: 0; }
}

@media (max-width: 480px) {
    .about-hero h1 { font-size: 1.75rem; }
    .about-stat-value { font-size: 1.35rem; }
    .about-value { padding: 20px; }
}
/* ============================================================
   LEGAL PAGES (Terms & Privacy)
   ============================================================ */

.legal-hero {
    max-width: 860px;
    margin: 0 auto;
    padding: 90px 24px 40px;
    text-align: center;
}
.legal-hero h1 {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 16px 0 14px;
}
.legal-meta {
    color: var(--text-dim);
    font-size: 0.88rem;
    margin: 0;
}

.legal-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px 100px;
}

.legal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 44px;
    font-size: 0.98rem;
    line-height: 1.7;
}

.legal-content p {
    color: var(--text-muted);
    margin: 0 0 18px;
}

.legal-content p.legal-lede {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.legal-content h2 {
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 40px 0 14px;
    padding-top: 4px;
    scroll-margin-top: 90px;
}
.legal-content h2:first-of-type { margin-top: 24px; }

.legal-content h3 {
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    margin: 22px 0 8px;
}

.legal-content ul {
    margin: 0 0 20px;
    padding-left: 22px;
    color: var(--text-muted);
}
.legal-content li { margin-bottom: 8px; }
.legal-content li::marker { color: var(--accent); }

.legal-content strong { color: var(--text); font-weight: 700; }

.legal-content a {
    color: var(--accent-2);
    text-decoration: none;
    border-bottom: 1px solid rgba(34, 211, 238, 0.35);
    transition: border-color .15s, color .15s;
}
.legal-content a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* ---------- Table of Contents ---------- */

.legal-toc {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px 26px;
    margin: 0 0 36px;
}
.legal-toc h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin: 0 0 12px;
    font-weight: 700;
}
.legal-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 24px;
}
.legal-toc li {
    margin: 0 0 8px;
    break-inside: avoid;
}
.legal-toc a {
    color: var(--text-muted);
    font-size: 0.88rem;
    text-decoration: none;
    border-bottom: none;
    transition: color .15s;
}
.legal-toc a:hover { color: var(--accent-2); }

/* ---------- Signoff ---------- */

.legal-signoff {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.legal-signoff p {
    margin: 0 0 4px;
    color: var(--text-muted);
    font-size: 0.94rem;
}
.legal-signoff-name {
    color: var(--text) !important;
    font-weight: 600;
    margin-top: 14px !important;
}
.legal-signoff-role {
    color: var(--text-dim) !important;
    font-size: 0.85rem !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
    .legal-hero { padding: 60px 20px 24px; }
    .legal-body { padding: 0 16px 60px; }
    .legal-content {
        padding: 32px 22px;
        border-radius: 16px;
        font-size: 0.94rem;
    }
    .legal-content p.legal-lede { font-size: 1rem; }
    .legal-content h2 { font-size: 1.1rem; margin-top: 32px; }
    .legal-toc ol { columns: 1; }
    .legal-toc { padding: 18px 20px; }
}

@media (max-width: 380px) {
    .legal-content { padding: 26px 18px; }
    .legal-hero h1 { font-size: 1.7rem; }
}