/* ============================================
   Peekbar Landing Page — styles.css
   Design system derived from Theme.swift
   ============================================ */

/* ---- Custom Properties (Design Tokens) ---- */
:root {
    /* Backgrounds */
    --bg-primary: #0a0f1c;
    --bg-secondary: #111827;
    --bg-tertiary: #1a2235;

    /* Module Accent Colors (from Theme.swift) */
    --color-cpu: #007AFF;
    --color-cpu-glow: rgba(0, 122, 255, 0.25);
    --color-memory: #34C759;
    --color-memory-glow: rgba(52, 199, 89, 0.25);
    --color-network: #55BEF0;
    --color-network-glow: rgba(85, 190, 240, 0.25);
    --color-disk: #AF52DE;
    --color-disk-glow: rgba(175, 82, 222, 0.25);
    --color-battery: #34C759;
    --color-battery-glow: rgba(52, 199, 89, 0.25);
    --color-gpu: #FFCC00;
    --color-gpu-glow: rgba(255, 204, 0, 0.25);

    /* Text */
    --text-primary: #f0f0f5;
    --text-secondary: #8e8e93;
    --text-tertiary: #636366;
    --text-accent: #55BEF0;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-bg-hover: rgba(255, 255, 255, 0.10);
    --glass-border: rgba(255, 255, 255, 0.10);
    --glass-border-hover: rgba(255, 255, 255, 0.18);
    --glass-blur: 20px;
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display',
                   'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'SF Mono', ui-monospace, 'Cascadia Code', monospace;

    --fs-hero: clamp(2.5rem, 6vw, 4.5rem);
    --fs-section: clamp(1.75rem, 4vw, 2.75rem);
    --fs-card-title: 1.25rem;
    --fs-body: 1.0625rem;
    --fs-small: 0.875rem;
    --fs-caption: 0.75rem;

    --lh-hero: 1.1;
    --lh-heading: 1.2;
    --lh-body: 1.6;

    --fw-bold: 700;
    --fw-semibold: 600;
    --fw-normal: 400;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    --space-2xl: 8rem;

    --container-max: 1200px;
    --container-padding: 1.5rem;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 64px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

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

a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul, ol {
    list-style: none;
}

/* ---- Focus States ---- */
:focus-visible {
    outline: 2px solid var(--color-network);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ---- Section Titles ---- */
.section-title {
    font-size: var(--fs-section);
    font-weight: var(--fw-bold);
    line-height: var(--lh-heading);
    text-align: center;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color var(--transition-normal),
                border-color var(--transition-normal),
                backdrop-filter var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.nav--scrolled {
    background: rgba(10, 15, 28, 0.8);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom-color: var(--glass-border);
}

.nav__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--text-primary);
    font-weight: var(--fw-semibold);
    font-size: 1.125rem;
}

.nav__logo img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
}

.nav__links {
    display: none;
    align-items: center;
    gap: var(--space-md);
}

.nav__links a {
    color: var(--text-secondary);
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    transition: color var(--transition-fast);
}

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

@media (min-width: 768px) {
    .nav__links {
        display: flex;
    }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(64px + var(--space-xl)) var(--container-padding) var(--space-lg);
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: 0;
    width: 800px;
    height: 800px;
    background: radial-gradient(
        circle,
        rgba(85, 190, 240, 0.08) 0%,
        rgba(0, 122, 255, 0.04) 40%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.hero__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.hero__content {
    flex: 1.2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    font-size: var(--fs-small);
    color: var(--text-accent);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero__badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-network);
    box-shadow: 0 0 8px var(--color-network);
}

.hero__title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: var(--fw-bold);
    line-height: var(--lh-hero);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
    background: linear-gradient(
        180deg,
        var(--text-primary) 0%,
        rgba(240, 240, 245, 0.7) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 100%;
}

.hero__comparison {
    font-size: var(--fs-small);
    color: var(--text-tertiary);
    margin-top: var(--space-sm);
    font-weight: var(--fw-semibold);
}

/* App Store Badge CTA */
.app-store-badge {
    display: inline-block;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.app-store-badge:hover {
    transform: scale(1.05);
    opacity: 0.85;
}

.app-store-badge img,
.app-store-badge svg {
    height: 48px;
    width: auto;
    display: block;
}

/* Smaller badge for nav bar */
.app-store-badge--nav {
    margin-left: var(--space-xs);
}

.app-store-badge--nav img,
.app-store-badge--nav svg {
    height: 32px;
}

/* Hero Visual */
.hero__visual {
    flex: 0.8;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Menu bar strip above dropdowns */
.hero__menubar-strip {
    position: relative;
    z-index: 3;
    margin-bottom: -2px; /* seamless connection to dropdowns */
}

.hero__menubar-strip img {
    height: 40px;
    width: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Overlapping dropdown screenshots */
.hero__dropdowns {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    max-height: 520px;
    overflow: hidden;
    /* Fade out at bottom to imply scrollable content */
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}

.hero__dropdown {
    flex: 0 0 auto;
    width: 240px;
    position: relative;
}

.hero__dropdown img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Left panel: front, slightly right */
.hero__dropdown--left {
    z-index: 2;
    transform: translateX(12px);
}

/* Right panel: behind, shifted right + down for cascade effect */
.hero__dropdown--right {
    z-index: 1;
    transform: translate(-12px, 32px);
    opacity: 0.88;
}

/* Desktop: larger dropdowns */
@media (min-width: 768px) {
    .hero__dropdown {
        width: 280px;
    }

    .hero__dropdowns {
        max-height: 580px;
    }

    .hero__menubar-strip img {
        height: 48px;
    }
}

@media (min-width: 1024px) {
    .hero__dropdown {
        width: 320px;
    }

    .hero__dropdowns {
        max-height: 620px;
    }

    .hero__dropdown--left {
        transform: translateX(20px);
    }

    .hero__dropdown--right {
        transform: translate(-20px, 40px);
    }
}

/* Mobile: stack hero vertically */
@media (max-width: 767px) {
    .hero__container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero__content {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__dropdowns {
        max-height: 500px;
    }

    .hero__dropdown {
        width: 220px;
    }

    .hero__dropdown--left {
        transform: translateX(12px);
    }

    .hero__dropdown--right {
        transform: translate(-12px, 32px);
    }

    .hero__menubar-strip img {
        height: 32px;
    }
}

/* ============================================
   FEATURES BENTO GRID
   ============================================ */
.features {
    padding: var(--space-lg) var(--container-padding) var(--space-2xl);
}

.features__container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.bento-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 4px);
    transition: background var(--transition-normal),
                border-color var(--transition-normal),
                transform var(--transition-normal),
                box-shadow var(--transition-normal);
    overflow: hidden;
}

/* Colored left accent border */
.bento-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

.bento-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.bento-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.bento-card__icon svg {
    width: 22px;
    height: 22px;
}

.bento-card h3 {
    font-size: var(--fs-card-title);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.01em;
}

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

/* Decorative sparkline at bottom of wide cards */
.bento-card__sparkline {
    margin-top: var(--space-md);
    height: 40px;
    overflow: hidden;
    opacity: 0.5;
}

.bento-card__sparkline svg {
    width: 100%;
    height: 100%;
}

/* ---- Module color variants ---- */

/* CPU */
.bento-card--cpu::before { background: var(--color-cpu); }
.bento-card--cpu .bento-card__icon {
    background: var(--color-cpu-glow);
    color: var(--color-cpu);
}
.bento-card--cpu:hover {
    box-shadow: 0 8px 40px var(--color-cpu-glow);
}

/* Memory */
.bento-card--memory::before { background: var(--color-memory); }
.bento-card--memory .bento-card__icon {
    background: var(--color-memory-glow);
    color: var(--color-memory);
}
.bento-card--memory:hover {
    box-shadow: 0 8px 40px var(--color-memory-glow);
}

/* Network */
.bento-card--network::before { background: var(--color-network); }
.bento-card--network .bento-card__icon {
    background: var(--color-network-glow);
    color: var(--color-network);
}
.bento-card--network:hover {
    box-shadow: 0 8px 40px var(--color-network-glow);
}

/* Disk */
.bento-card--disk::before { background: var(--color-disk); }
.bento-card--disk .bento-card__icon {
    background: var(--color-disk-glow);
    color: var(--color-disk);
}
.bento-card--disk:hover {
    box-shadow: 0 8px 40px var(--color-disk-glow);
}

/* Battery */
.bento-card--battery::before {
    background: linear-gradient(180deg, var(--color-battery) 0%, #FFCC00 50%, #FF3B30 100%);
}
.bento-card--battery .bento-card__icon {
    background: var(--color-battery-glow);
    color: var(--color-battery);
}
.bento-card--battery:hover {
    box-shadow: 0 8px 40px var(--color-battery-glow);
}

/* GPU */
.bento-card--gpu::before { background: var(--color-gpu); }
.bento-card--gpu .bento-card__icon {
    background: var(--color-gpu-glow);
    color: var(--color-gpu);
}
.bento-card--gpu:hover {
    box-shadow: 0 8px 40px var(--color-gpu-glow);
}

/* ---- Bento grid responsive ---- */
@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-card--wide {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .bento-card--wide {
        grid-column: span 2;
    }
}

/* ============================================
   HIGHLIGHTS
   ============================================ */
.highlights {
    padding: var(--space-lg) var(--container-padding) var(--space-2xl);
}

.highlights__container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.highlights__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.highlight-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: background var(--transition-normal),
                border-color var(--transition-normal),
                transform var(--transition-normal);
}

.highlight-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.highlight-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(85, 190, 240, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.highlight-card__icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--color-network);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.highlight-card h3 {
    font-size: var(--fs-card-title);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-xs);
}

.highlight-card p {
    color: var(--text-secondary);
    font-size: var(--fs-small);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .highlights__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .highlights__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   EXPANDED MODE SHOWCASE
   ============================================ */
.expanded {
    padding: var(--space-lg) var(--container-padding) var(--space-2xl);
}

.expanded__container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.expanded__menubar {
    text-align: center;
    margin-bottom: var(--space-md);
}

.expanded__menubar img {
    height: 48px;
    width: auto;
    display: inline-block;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.expanded__screenshot {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.06);
}

.expanded__screenshot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

@media (max-width: 540px) {
    .expanded__menubar img {
        height: 32px;
    }

    .expanded__screenshot {
        border-radius: var(--radius-md);
        /* Allow horizontal scroll on mobile for the wide screenshot */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .expanded__screenshot img {
        min-width: 700px;
        border-radius: var(--radius-md);
    }
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
    padding: var(--space-lg) var(--container-padding) var(--space-2xl);
}

.pricing__container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.pricing-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(85, 190, 240, 0.06),
                var(--glass-shadow);
}

/* Subtle glow ring */
.pricing-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(85, 190, 240, 0.2) 0%,
        transparent 40%,
        transparent 60%,
        rgba(175, 82, 222, 0.2) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
                  linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.pricing-card__header {
    margin-bottom: var(--space-md);
}

.pricing-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin: 0 auto var(--space-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.pricing-card__header h3 {
    font-size: 1.5rem;
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-xs);
}

.pricing-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.375rem;
}

.pricing-card__amount {
    font-size: 2.5rem;
    font-weight: var(--fw-bold);
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--color-network), var(--color-cpu));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card__term {
    font-size: var(--fs-small);
    color: var(--text-tertiary);
    font-weight: var(--fw-semibold);
}

.pricing-card__features {
    text-align: left;
    margin-bottom: var(--space-lg);
    padding: var(--space-md) 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.pricing-card__features li {
    padding: 0.5rem 0;
    font-size: var(--fs-small);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pricing-card__features li::before {
    content: '';
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(52, 199, 89, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2334C759' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 11px;
}

/* Pricing requirements text */
.pricing-card__requirements {
    display: block;
    font-size: var(--fs-caption);
    color: var(--text-tertiary);
    margin-top: var(--space-sm);
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    padding: var(--space-lg) var(--container-padding) var(--space-2xl);
}

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

.faq__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.faq__item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: background var(--transition-normal),
                border-color var(--transition-normal);
}

.faq__item:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.faq__item[open] {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.faq__question {
    padding: var(--space-md);
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::marker {
    display: none;
    content: '';
}

.faq__question::after {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform var(--transition-normal);
}

.faq__item[open] .faq__question::after {
    transform: rotate(180deg);
}

.faq__answer {
    padding: 0 var(--space-md) var(--space-md);
}

.faq__answer p {
    color: var(--text-secondary);
    font-size: var(--fs-small);
    line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: var(--space-xl) var(--container-padding) var(--space-lg);
    border-top: 1px solid var(--glass-border);
    background: var(--bg-secondary);
}

.footer__container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    text-align: center;
}

.footer__left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-body);
}

.footer__brand img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.footer__tagline {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.footer__copy {
    font-size: var(--fs-caption);
    color: var(--text-tertiary);
    line-height: 1.5;
}

.footer__built-by {
    font-size: var(--fs-caption);
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

.footer__built-by a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-fast);
}

.footer__built-by a:hover {
    color: var(--text-primary);
}

.footer__right {
    display: flex;
    align-items: center;
}

.footer__social {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: background var(--transition-fast),
                border-color var(--transition-fast),
                transform var(--transition-fast);
}

.footer__social a:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-1px);
}

.footer__social a img,
.footer__social a svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.footer__social a:hover img,
.footer__social a:hover svg {
    opacity: 1;
}


@media (min-width: 768px) {
    .footer__container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }
    .footer__right {
        align-items: flex-start;
        padding-top: 3.75rem;
    }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger children in grids */
.bento-grid .fade-in:nth-child(2) { transition-delay: 80ms; }
.bento-grid .fade-in:nth-child(3) { transition-delay: 160ms; }
.bento-grid .fade-in:nth-child(4) { transition-delay: 240ms; }
.bento-grid .fade-in:nth-child(5) { transition-delay: 320ms; }
.bento-grid .fade-in:nth-child(6) { transition-delay: 400ms; }

.highlights__grid .fade-in:nth-child(2) { transition-delay: 80ms; }
.highlights__grid .fade-in:nth-child(3) { transition-delay: 160ms; }
.highlights__grid .fade-in:nth-child(4) { transition-delay: 240ms; }
.highlights__grid .fade-in:nth-child(5) { transition-delay: 320ms; }
.highlights__grid .fade-in:nth-child(6) { transition-delay: 400ms; }

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

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

    .hero__icon {
        animation: none;
    }
}
