/* ═══════════════════════════════════════════════════
   Chat Manager for Claude — Site Styles
   Design system: Anthropic-inspired warm neutrals
   Supports light / dark / auto (prefers-color-scheme)
═══════════════════════════════════════════════════ */

/* ─── TOKENS ─── */
:root {
    --accent: #d97757;
    --accent-h: #c4673f;
    --blue: #5a8bb8;
    --green: #5a8b5a;

    --bg: #faf9f5;
    --bg2: #f3f1eb;
    --surface: #ffffff;
    --surface2: #f0ece4;
    --border: #e0ddd4;
    --border2: #ccc9c0;

    --text: #1a1a15;
    --text2: #5a574f;
    --muted: #9c9990;

    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);

    --font-ui:
        "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: "Lora", Georgia, "Times New Roman", serif;
    --font-mono: "IBM Plex Mono", "Fira Code", "Cascadia Code", monospace;

    --max-w: 1040px;
    --nav-h: 60px;

    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #141413;
    --bg2: #1a1917;
    --surface: #201e1c;
    --surface2: #2a2826;
    --border: #2c2a27;
    --border2: #3a3733;

    --text: #f0ece4;
    --text2: #b0aea5;
    --muted: #6b6760;

    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    [data-theme="auto"] {
        --bg: #141413;
        --bg2: #1a1917;
        --surface: #201e1c;
        --surface2: #2a2826;
        --border: #2c2a27;
        --border2: #3a3733;
        --text: #f0ece4;
        --text2: #b0aea5;
        --muted: #6b6760;
        color-scheme: dark;
    }
}

/* ─── RESET ─── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
    transition:
        background 0.2s,
        color 0.2s;
    min-height: 100vh;
}
a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
img {
    max-width: 100%;
    display: block;
}
ul,
ol {
    padding-left: 1.4em;
}

/* ─── NAV ─── */
.site-nav {
    position: sticky;
    top: 0;
    height: var(--nav-h);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 24px;
}
.nav-inner {
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}
.nav-brand-icon {
    width: 30px;
    height: 30px;
    background: var(--surface2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nav-brand-icon svg {
    width: 18px;
    height: 18px;
}
.nav-brand-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text2);
    transition:
        background 0.15s,
        color 0.15s;
    text-decoration: none;
}
.nav-link:hover {
    background: var(--surface2);
    color: var(--text);
    text-decoration: none;
}
.nav-cta {
    padding: 7px 16px;
    background: var(--accent);
    color: #fff !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    transition:
        background 0.15s,
        transform 0.1s;
    white-space: nowrap;
}
.nav-cta:hover {
    background: var(--accent-h);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Theme toggle */
.theme-toggle {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition:
        background 0.15s,
        border-color 0.15s;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: var(--surface2);
    border-color: var(--border2);
}

/* ─── LAYOUT ─── */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}
section {
    padding: 80px 0;
}
section:first-of-type {
    padding-top: 60px;
}

/* ─── HERO ─── */
.hero {
    padding: 80px 0 72px;
    text-align: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(217, 119, 87, 0.12);
    border: 1px solid rgba(217, 119, 87, 0.25);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    font-family: var(--font-mono);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.hero-title em {
    font-style: normal;
    color: var(--accent);
}
.hero-sub {
    font-size: clamp(16px, 2.5vw, 19px);
    color: var(--text2);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.65;
    font-family: var(--font-body);
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 10px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    text-decoration: none;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(217, 119, 87, 0.35);
}
.btn-primary:hover {
    background: var(--accent-h);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 119, 87, 0.4);
    text-decoration: none;
    color: #fff;
}
.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--surface2);
    transform: translateY(-1px);
    text-decoration: none;
    color: var(--text);
}

/* Browser mockup */
.browser-mockup {
    max-width: 780px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
}
.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border2);
}
.browser-dot:nth-child(1) {
    background: #ff5f57;
}
.browser-dot:nth-child(2) {
    background: #febc2e;
}
.browser-dot:nth-child(3) {
    background: #28c840;
}
.browser-url {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    height: 22px;
    margin: 0 8px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
}
.browser-content {
    aspect-ratio: 16/9;
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
}
.browser-screenshot {
    width: 100%;
    object-fit: cover;
}

/* ─── HERO CAROUSEL ─── */
.hero-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg2);
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition:
        opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-carousel:hover .carousel-slide.active img {
    transform: scale(1.025);
}

/* Slide captions — now live below the carousel */
.carousel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 4px 0;
    max-width: 780px;
    margin: 0 auto;
}

.carousel-captions {
    position: relative;
    flex: 1;
    min-height: 28px;
}

.slide-caption {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-ui);
    color: var(--text2);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(5px);
    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
    pointer-events: none;
}

.slide-caption.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.slide-caption-icon {
    font-size: 14px;
    line-height: 1;
}

/* Dot indicators */
.carousel-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border2);
    border: none;
    cursor: pointer;
    transition:
        background 0.25s ease,
        transform 0.2s ease,
        width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.carousel-dot:hover {
    background: var(--muted);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--accent);
    width: 22px;
    border-radius: 4px;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(250, 249, 245, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    color: var(--text2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition:
        opacity 0.25s ease,
        transform 0.2s ease,
        background 0.15s,
        color 0.15s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .carousel-btn {
    background: rgba(32, 30, 28, 0.88);
    color: var(--text2);
}

.hero-carousel:hover .carousel-btn {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.carousel-btn:hover {
    background: var(--surface) !important;
    color: var(--accent) !important;
    transform: translateY(-50%) scale(1.08) !important;
}

.carousel-btn-prev {
    left: 12px;
}
.carousel-btn-next {
    right: 12px;
}

/* Prev / Next buttons */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    z-index: 10;
}

.carousel-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
}

/* ─── FEATURES GRID ─── */
.section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.section-sub {
    font-size: 16px;
    color: var(--text2);
    max-width: 520px;
    font-family: var(--font-body);
    line-height: 1.65;
    margin-bottom: 48px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition:
        border-color 0.15s,
        box-shadow 0.15s,
        transform 0.15s;
}
.feature-card:hover {
    border-color: rgba(217, 119, 87, 0.4);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.feature-icon {
    width: 42px;
    height: 42px;
    background: rgba(217, 119, 87, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}
.feature-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.feature-desc {
    font-size: 13.5px;
    color: var(--text2);
    line-height: 1.6;
    font-family: var(--font-body);
}
.feature-badge {
    display: inline-block;
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.badge-free {
    background: rgba(90, 139, 90, 0.15);
    color: var(--green);
    border: 1px solid rgba(90, 139, 90, 0.3);
}
.badge-pro {
    background: rgba(217, 119, 87, 0.12);
    color: var(--accent);
    border: 1px solid rgba(217, 119, 87, 0.25);
}

/* ─── HOW IT WORKS ─── */
.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 640px;
}
.step {
    display: flex;
    gap: 20px;
    position: relative;
    padding-bottom: 32px;
}
.step:last-child {
    padding-bottom: 0;
}
.step-num-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}
.step-num {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}
.step-line {
    width: 2px;
    flex: 1;
    background: var(--border);
    margin-top: 6px;
}
.step:last-child .step-line {
    display: none;
}
.step-body {
    padding-top: 6px;
}
.step-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.step-desc {
    font-size: 13.5px;
    color: var(--text2);
    font-family: var(--font-body);
    line-height: 1.6;
}

/* ─── PRICING ─── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 700px;
}
.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
}
.pricing-card.featured {
    border-color: var(--accent);
    box-shadow:
        0 0 0 1px var(--accent),
        var(--shadow);
}
.pricing-featured-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 100px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.pricing-plan {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    font-family: var(--font-mono);
}
.pricing-price {
    font-size: 40px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}
.pricing-price sup {
    font-size: 20px;
    vertical-align: top;
    margin-top: 8px;
    display: inline-block;
}
.pricing-period {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}
.pricing-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 16px 0;
}
.pricing-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 24px;
}
.pricing-features li {
    display: flex;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text2);
    align-items: flex-start;
}
.pricing-features li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}
.pricing-features li.dim {
    color: var(--muted);
}
.pricing-features li.dim::before {
    content: "–";
    color: var(--muted);
}
.pricing-btn {
    display: block;
    width: 100%;
    padding: 11px;
    text-align: center;
    border-radius: 8px;
    font-family: var(--font-ui);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    text-decoration: none;
}
.pricing-btn.primary {
    background: var(--accent);
    color: #fff;
}
.pricing-btn.primary:hover {
    background: var(--accent-h);
    text-decoration: none;
    color: #fff;
}
.pricing-btn.ghost {
    background: transparent;
    color: var(--text2);
    border: 1px solid var(--border);
}
.pricing-btn.ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

/* ─── FAQ ─── */
.faq-list {
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
    border-top: 1px solid var(--border);
}
.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    gap: 12px;
    user-select: none;
}
.faq-q:hover {
    color: var(--accent);
}
.faq-arrow {
    font-size: 12px;
    color: var(--muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}
.faq-a {
    display: none;
    padding-bottom: 18px;
    font-size: 14px;
    color: var(--text2);
    font-family: var(--font-body);
    line-height: 1.7;
}
.faq-item.open .faq-a {
    display: block;
}

/* ─── CTA SECTION ─── */
.cta-section {
    background: linear-gradient(
        135deg,
        rgba(217, 119, 87, 0.08) 0%,
        rgba(90, 139, 204, 0.06) 100%
    );
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 56px 40px;
    text-align: center;
}
.cta-title {
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}
.cta-sub {
    font-size: 16px;
    color: var(--text2);
    font-family: var(--font-body);
    margin-bottom: 28px;
}

/* ─── FOOTER ─── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 40px 0 32px;
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text2);
    font-size: 13.5px;
    text-decoration: none;
}
.footer-brand:hover {
    color: var(--text);
    text-decoration: none;
}
.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-link {
    font-size: 13px;
    color: var(--muted);
    transition: color 0.15s;
}
.footer-link:hover {
    color: var(--text);
    text-decoration: none;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--muted);
}
.footer-disclaimer {
    max-width: 520px;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.5;
}

/* ─── LEGAL PAGES ─── */
.legal-hero {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}
.legal-hero-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 8px;
}
.legal-hero-title {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}
.legal-hero-date {
    font-size: 13px;
    color: var(--muted);
    font-family: var(--font-mono);
}
.legal-body {
    max-width: 720px;
}
.legal-body h2 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text);
    margin: 40px 0 12px;
    padding-top: 8px;
}
.legal-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text2);
    margin: 24px 0 8px;
}
.legal-body p {
    font-size: 14.5px;
    color: var(--text2);
    font-family: var(--font-body);
    line-height: 1.75;
    margin-bottom: 14px;
}
.legal-body ul,
.legal-body ol {
    margin-bottom: 14px;
}
.legal-body li {
    font-size: 14.5px;
    color: var(--text2);
    font-family: var(--font-body);
    line-height: 1.7;
    margin-bottom: 4px;
}
.legal-body a {
    color: var(--accent);
}
.legal-body strong {
    color: var(--text);
    font-weight: 600;
}
.legal-callout {
    background: rgba(217, 119, 87, 0.08);
    border: 1px solid rgba(217, 119, 87, 0.2);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 20px 0;
}
.legal-callout p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text2);
}

/* ─── UTILS ─── */
.text-center {
    text-align: center;
}
.mt-48 {
    margin-top: 48px;
}
.inline-code {
    font-family: var(--font-mono);
    font-size: 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    section {
        padding: 56px 0;
    }
    .hero {
        padding: 56px 0 48px;
    }
    .nav-links {
        display: none;
    }
    .cta-section {
        padding: 40px 20px;
    }
    .footer-top {
        flex-direction: column;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    .carousel-footer {
        padding: 10px 2px 0;
    }
    .slide-caption {
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════════════════
   MOBILE NAV
═══════════════════════════════════════════════════ */

/* Hamburger button — hidden on desktop */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition:
        background 0.15s,
        border-color 0.15s;
}
.nav-hamburger:hover {
    background: var(--surface2);
    border-color: var(--border2);
}
.hamburger-bar {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--text2);
    border-radius: 2px;
    transition:
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.2s ease,
        width 0.2s ease;
    transform-origin: center;
}

/* Animate bars → X when open */
body.nav-open .nav-hamburger .hamburger-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
body.nav-open .nav-hamburger .hamburger-bar:nth-child(2) {
    opacity: 0;
    width: 0;
}
body.nav-open .nav-hamburger .hamburger-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Backdrop */
.mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 21, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.mobile-nav-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Prevent body scroll when nav is open */
body.nav-open {
    overflow: hidden;
}

/* The drawer itself */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 88vw);
    background: var(--bg);
    border-left: 1px solid var(--border);
    z-index: 300;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    overscroll-behavior: contain;
}
.mobile-nav.is-open {
    transform: translateX(0);
}

/* Header row inside drawer */
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    height: var(--nav-h);
    flex-shrink: 0;
}
.mobile-nav-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text2);
    cursor: pointer;
    transition:
        background 0.15s,
        color 0.15s;
    flex-shrink: 0;
}
.mobile-nav-close:hover {
    background: var(--surface2);
    color: var(--text);
}

/* Nav links list */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 12px 12px;
    flex: 1;
    gap: 2px;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text2);
    text-decoration: none;
    transition:
        background 0.14s,
        color 0.14s;
}
.mobile-nav-link:hover {
    background: var(--surface2);
    color: var(--text);
    text-decoration: none;
}
.mobile-nav-link-icon {
    font-size: 9px;
    color: var(--accent);
    opacity: 0.7;
    flex-shrink: 0;
}

/* Footer area with CTA */
.mobile-nav-footer {
    padding: 16px 20px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}
.mobile-nav-disclaimer {
    font-size: 11px;
    color: var(--muted);
    font-family: var(--font-mono);
    text-align: center;
    line-height: 1.5;
}

/* Show hamburger + wiring on mobile only */
@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }
    .mobile-nav-backdrop,
    .mobile-nav {
        display: flex;
    }
    /* Hide the desktop CTA in the nav on very small screens to avoid crowding */
    @media (max-width: 380px) {
        .nav-cta {
            display: none;
        }
    }
}
