/* =========================================
   MacrosGPT — Dark Theme
   0.1% Design System
   ========================================= */

:root {
    /* Colors — Dark */
    --color-background: #0a0a0a;
    --color-surface: #141414;
    --color-surface-hover: #1a1a1a;
    --color-text-primary: #f5f5f5;
    --color-text-secondary: #a3a3a3;
    --color-text-tertiary: #525252;
    --color-accent: #3b82f6;
    --color-accent-hover: #60a5fa;
    --color-accent-light: rgba(59, 130, 246, 0.1);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-light: rgba(255, 255, 255, 0.04);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --section-pad: 120px;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-pill: 9999px;

    /* Motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   Reset
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

/* =========================================
   Layout
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   Typography
   ========================================= */
.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    margin-bottom: 16px;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 64px;
    text-align: center;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    transition: all 0.3s var(--ease);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.35);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
    border-radius: var(--radius-lg);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* =========================================
   Floating Nav Pill
   ========================================= */
.nav-pill {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 90%;
    max-width: 900px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 12px 24px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
}

.nav-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--color-text-primary);
}

.nav-cta {
    background: var(--color-accent);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Mobile Menu Button (inside nav pill) */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    padding: 4px 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    border-radius: 2px;
    transition: all 0.2s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background-color: var(--color-background);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

/* =========================================
   Hero
   ========================================= */
.hero {
    position: relative;
    padding: 160px 0 80px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-glow {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-glow-2 {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

/* Micro Badge */
.micro-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent-hover);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 28px;
}

.pulse-dot {
    position: relative;
    width: 8px;
    height: 8px;
    display: inline-block;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--color-accent);
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--color-accent);
    animation: pulse 2s ease-out infinite;
    opacity: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.hero-title {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--color-text-primary);
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 460px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.hero-note {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
}

/* Phone Mockup — Real Device Frame */
.phone-mockup {
    position: relative;
    aspect-ratio: 1022 / 2082;
    width: 100%;
}

.mockup-frame {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    user-select: none;
}

.mockup-screen {
    position: absolute;
    left: 5.088%;
    top: 2.210%;
    width: 89.824%;
    height: 95.581%;
    border-radius: 13.725% / 6.332%;
    object-fit: cover;
    object-position: top;
    pointer-events: none;
}

/* Hero Phone */
.hero-phone {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-mockup-hero {
    width: 300px;
    filter: drop-shadow(0 50px 80px rgba(0, 0, 0, 0.5)) drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
    transform: perspective(1200px) rotateY(-8deg) rotateX(3deg);
    transition: transform 0.6s var(--ease);
}

.phone-mockup-hero:hover {
    transform: perspective(1200px) rotateY(-12deg) rotateX(6deg) scale(1.02);
}

/* Phone shadow */
.hero-phone::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 15%;
    right: 15%;
    height: 60px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

/* =========================================
   Social Proof Bar
   ========================================= */
.proof-bar {
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.proof-items {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.proof-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.proof-stars {
    color: #fbbf24;
    letter-spacing: 2px;
}

.proof-divider {
    width: 1px;
    height: 20px;
    background: var(--color-border);
}

/* =========================================
   Problem Section
   ========================================= */
.problem {
    padding: var(--section-pad) 0;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}

.problem-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 36px;
    transition: all 0.3s var(--ease);
}

.problem-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.problem-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(239, 68, 68, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.problem-icon svg {
    width: 22px;
    height: 22px;
    stroke: #f87171;
}

.problem-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

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

.problem-transition {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

/* Stagger */
.problem-grid .problem-card:nth-child(1) {
    transition-delay: 0ms;
}

.problem-grid .problem-card:nth-child(2) {
    transition-delay: 75ms;
}

.problem-grid .problem-card:nth-child(3) {
    transition-delay: 150ms;
}

/* =========================================
   How It Works
   ========================================= */
.how-it-works {
    padding: var(--section-pad) 0;
    border-top: 1px solid var(--color-border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step {
    text-align: center;
    padding: 40px 24px;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-pill);
    background: var(--color-accent);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 0 30px -5px rgba(59, 130, 246, 0.3);
}

.step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.step p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 300px;
    margin: 0 auto;
}

/* Stagger */
.steps-grid .step:nth-child(1) {
    transition-delay: 0ms;
}

.steps-grid .step:nth-child(2) {
    transition-delay: 100ms;
}

.steps-grid .step:nth-child(3) {
    transition-delay: 200ms;
}

/* =========================================
   Features Bento Grid
   ========================================= */
.features {
    padding: var(--section-pad) 0;
    border-top: 1px solid var(--color-border);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.bento-card {
    grid-column: span 2;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 36px;
    transition: all 0.3s var(--ease);
}

.bento-card:hover {
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.12);
}

.bento-wide {
    grid-column: span 4;
}

/* Last row: two cards fill evenly */
.bento-card:nth-child(5),
.bento-card:nth-child(6) {
    grid-column: span 3;
}

.bento-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.bento-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--color-accent-hover);
}

.bento-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

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

/* Bento — Wide card with screenshot (side-by-side layout) */
.bento-visual {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 36px;
    overflow: hidden;
}

.bento-text {
    flex: 1;
    min-width: 0;
}

.bento-screenshot {
    flex: 0 0 200px;
    display: flex;
    justify-content: center;
}

.bento-screenshot .phone-mockup {
    width: 180px;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
}

/* Bento — Regular card with screenshot preview (peeks from bottom) */
.bento-has-img {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    overflow: hidden;
}

.bento-preview {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex: 1;
    min-height: 0;
}

.bento-preview .phone-mockup {
    width: 160px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
    transform: translateY(20%);
}

/* Stagger */
.bento-grid .bento-card:nth-child(1) {
    transition-delay: 0ms;
}

.bento-grid .bento-card:nth-child(2) {
    transition-delay: 60ms;
}

.bento-grid .bento-card:nth-child(3) {
    transition-delay: 120ms;
}

.bento-grid .bento-card:nth-child(4) {
    transition-delay: 180ms;
}

.bento-grid .bento-card:nth-child(5) {
    transition-delay: 240ms;
}

.bento-grid .bento-card:nth-child(6) {
    transition-delay: 300ms;
}

/* =========================================
   Testimonials
   ========================================= */
.testimonials {
    padding: var(--section-pad) 0;
    border-top: 1px solid var(--color-border);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 36px;
    transition: all 0.3s var(--ease);
}

.testimonial-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 0.875rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.testimonial-quote {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text-primary);
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #8b5cf6 100%);
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-text-primary);
}

.author-result {
    font-size: 0.8125rem;
    color: var(--color-accent-hover);
    font-weight: 500;
}

/* Stagger */
.testimonials-grid .testimonial-card:nth-child(1) {
    transition-delay: 0ms;
}

.testimonials-grid .testimonial-card:nth-child(2) {
    transition-delay: 100ms;
}

.testimonials-grid .testimonial-card:nth-child(3) {
    transition-delay: 200ms;
}

/* =========================================
   FAQ
   ========================================= */
.faq {
    padding: var(--section-pad) 0;
    border-top: 1px solid var(--color-border);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
    border-top: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-text-primary);
    text-align: left;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--color-accent-hover);
}

.faq-chevron {
    width: 20px;
    height: 20px;
    stroke: var(--color-text-tertiary);
    transition: transform 0.3s var(--ease);
    flex-shrink: 0;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 24px;
}

.faq-answer p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.faq-answer a {
    color: var(--color-accent-hover);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* =========================================
   Final CTA
   ========================================= */
.final-cta {
    padding: var(--section-pad) 0;
}

.cta-card {
    position: relative;
    text-align: center;
    padding: 80px 40px;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(59, 130, 246, 0.02));
    border: 1px solid rgba(59, 130, 246, 0.12);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    line-height: 1.15;
    position: relative;
    z-index: 1;
}

.cta-sub {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.cta-card .btn {
    position: relative;
    z-index: 1;
}

.cta-note {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
}

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

.footer-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 9px;
    object-fit: cover;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-logo {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

.footer-tagline {
    font-size: 0.8125rem;
    color: var(--color-text-tertiary);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--color-text-tertiary);
}

/* =========================================
   Animations
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* Hero stagger — faster entry */
.hero-content .fade-in:nth-child(1) {
    transition-delay: 0ms;
}

.hero-content .fade-in:nth-child(2) {
    transition-delay: 80ms;
}

.hero-content .fade-in:nth-child(3) {
    transition-delay: 160ms;
}

.hero-content .fade-in:nth-child(4) {
    transition-delay: 240ms;
}

.hero-phone.fade-in {
    transition-delay: 150ms;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }
}

/* =========================================
   Responsive — Tablet
   ========================================= */
@media (max-width: 1024px) {
    :root {
        --section-pad: 96px;
    }

    .hero-grid {
        gap: 48px;
    }

    .problem-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card,
    .bento-wide,
    .bento-card:nth-child(5),
    .bento-card:nth-child(6) {
        grid-column: span 1;
    }

    .bento-wide {
        grid-column: span 2;
    }

    .bento-screenshot .phone-mockup {
        width: 160px;
    }
}

/* =========================================
   Responsive — Mobile
   ========================================= */
@media (max-width: 768px) {
    :root {
        --section-pad: 80px;
    }

    .container {
        padding: 0 20px;
    }

    /* Nav */
    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 140px 0 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-sub {
        max-width: 100%;
    }

    .hero-cta {
        align-items: center;
    }

    .phone-mockup-hero {
        width: 260px;
        transform: none;
    }

    .phone-mockup-hero:hover {
        transform: none;
    }

    /* Bento — stack wide card layout on mobile */
    .bento-visual {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .bento-screenshot {
        flex: 0 0 auto;
        width: 100%;
    }

    .bento-screenshot .phone-mockup {
        width: 160px;
    }

    .bento-preview .phone-mockup {
        width: 140px;
    }

    /* Section titles */
    .section-title {
        margin-bottom: 48px;
    }

    .section-title br {
        display: none;
    }

    /* Proof bar */
    .proof-items {
        flex-direction: column;
        gap: 12px;
    }

    .proof-divider {
        display: none;
    }

    /* Problem */
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .problem-transition {
        font-size: 1.25rem;
    }

    /* Steps */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .step {
        padding: 32px 20px;
    }

    /* Bento */
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card,
    .bento-wide,
    .bento-card:nth-child(5),
    .bento-card:nth-child(6) {
        grid-column: span 1;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* CTA */
    .cta-card {
        padding: 60px 24px;
    }

    .cta-title br {
        display: none;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

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

@media (max-width: 480px) {
    .hero-title br {
        display: none;
    }

    .hero-note {
        text-align: center;
    }
}

/* =========================================
   Legacy — Sub-page Header Support
   (support.html, privacy.html, terms.html)
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.header.scrolled {
    border-bottom-color: var(--color-border);
    background-color: rgba(10, 10, 10, 0.95);
}

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

.logo {
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
}

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: var(--color-surface);
}

/* Sub-page content (support/privacy/terms) */
.support-page,
.privacy-page,
.terms-page {
    color: var(--color-text-primary);
}
