/* ═══════════════════════════════════════════════════════════
   OpenWhisper — Flow-style App Shell Layout
   Typography: Anton (headings) + Inter 300 (body)
   Colors: HSL greyscale only — zero chromatic color
   ═══════════════════════════════════════════════════════════ */

/* ── Google Fonts (loaded via @import) ───────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@300;400&display=swap');

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

*:focus,
*:focus-visible,
*:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

:root {
    color-scheme: dark;

    --background: hsl(0 0% 14%);
    --foreground: hsl(0 0% 92%);
    --card: hsl(0 0% 18%);
    --card-foreground: hsl(0 0% 92%);
    --primary: hsl(0 0% 85%);
    --primary-foreground: hsl(0 0% 10%);
    --secondary: hsl(0 0% 20%);
    --secondary-foreground: hsl(0 0% 92%);
    --muted: hsl(0 0% 20%);
    --muted-foreground: hsl(0 0% 55%);
    --accent: hsl(0 0% 70%);
    --accent-foreground: hsl(0 0% 10%);
    --border: hsl(0 0% 22%);
    --input: hsl(0 0% 22%);
    --ring: hsl(0 0% 85%);
    --destructive: hsl(0 0% 45%);
    --glass: hsl(0 0% 100% / 0.04);
    --glass-border: hsl(0 0% 100% / 0.08);
    --glass-strong: hsl(0 0% 100% / 0.08);

    /* Shell layout */
    --outer-bg: hsl(0 0% 10%);     /* sidebar — dark grey */
    --container-bg: hsl(0 0% 14%); /* content — slightly brighter */

    /* Semi-transparent overlays (theme-aware) */
    --hover-bg: hsl(0 0% 100% / 0.06);
    --active-bg: hsl(0 0% 100% / 0.04);
    --hover-border-color: hsl(0 0% 100% / 0.15);
    --dashed-line: hsl(0 0% 100% / 0.2);
    --shell-border: hsl(0 0% 100% / 0.06);
    --dot-bg: hsl(0 0% 100% / 0.12);
    --scrollbar-thumb: hsl(0 0% 85% / 0.3);
    --btn-primary-hover: hsl(0 0% 75%);
    --btn-ghost-hover-border: hsl(0 0% 100% / 0.3);
    --t-dim: hsl(0 0% 35%);
    --card-shadow: hsl(0 0% 0% / 0.6);
    --shell-header-h: 48px;
    --shell-sidebar-w: 56px;
    --shell-radius: 16px;
    --shell-pad-right: 4px;
    --shell-pad-bottom: 4px;

    --font-display: 'Anton', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, 'Cascadia Code', Menlo, Monaco, 'Courier New', monospace;

    --max-width: 1200px;
    --section-padding: 128px 24px;
    --radius: 0.25rem;
    --radius-btn: 8px;
    --radius-container: 10px;
    --grid-gap: 8px;
    --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
    color-scheme: light;

    --background: hsl(0 0% 98%);
    --foreground: hsl(0 0% 10%);
    --card: hsl(0 0% 100%);
    --card-foreground: hsl(0 0% 10%);
    --primary: hsl(0 0% 15%);
    --primary-foreground: hsl(0 0% 98%);
    --secondary: hsl(0 0% 92%);
    --secondary-foreground: hsl(0 0% 15%);
    --muted: hsl(0 0% 92%);
    --muted-foreground: hsl(0 0% 28%);
    --accent: hsl(0 0% 30%);
    --accent-foreground: hsl(0 0% 98%);
    --border: hsl(0 0% 85%);
    --input: hsl(0 0% 88%);
    --ring: hsl(0 0% 25%);
    --destructive: hsl(0 0% 55%);
    --glass: hsl(0 0% 0% / 0.03);
    --glass-border: hsl(0 0% 0% / 0.06);
    --glass-strong: hsl(0 0% 0% / 0.06);

    --outer-bg: hsl(0 0% 90%);
    --container-bg: hsl(0 0% 96%);

    --hover-bg: hsl(0 0% 0% / 0.04);
    --active-bg: hsl(0 0% 0% / 0.03);
    --hover-border-color: hsl(0 0% 0% / 0.10);
    --dashed-line: hsl(0 0% 0% / 0.12);
    --shell-border: hsl(0 0% 0% / 0.06);
    --dot-bg: hsl(0 0% 0% / 0.10);
    --scrollbar-thumb: hsl(0 0% 15% / 0.3);
    --btn-primary-hover: hsl(0 0% 25%);
    --btn-ghost-hover-border: hsl(0 0% 0% / 0.2);
    --t-dim: hsl(0 0% 40%);
    --card-shadow: hsl(0 0% 0% / 0.15);
    --export-icon-brightness: 0.8;
    --hero-icon-brightness: 0.5;
}

/* ── Theme transition — 1s slow-fast-slow fade ── */
/* View Transitions API (Chrome/Edge) */
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.37, 0, 0.63, 1);
}

/* Fallback for Firefox / Safari — class applied via JS during toggle */
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
    transition:
        background-color 1s cubic-bezier(0.37, 0, 0.63, 1),
        color 1s cubic-bezier(0.37, 0, 0.63, 1),
        border-color 1s cubic-bezier(0.37, 0, 0.63, 1),
        fill 1s cubic-bezier(0.37, 0, 0.63, 1),
        stroke 1s cubic-bezier(0.37, 0, 0.63, 1),
        box-shadow 1s cubic-bezier(0.37, 0, 0.63, 1) !important;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Custom Scrollbar (on shell content) ─────────────── */
.shell-content::-webkit-scrollbar { width: 4px; }
.shell-content::-webkit-scrollbar-track { background: transparent; }
.shell-content::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 2px; }

/* ── React root — transparent to body grid ───────────── */
#root {
    display: contents;
}

/* ── Body — Shell Grid ────────────────────────────────── */
body {
    font-family: var(--font-body);
    font-weight: 300;
    background: var(--outer-bg);
    color: var(--foreground);
    line-height: 1.6;
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: var(--shell-sidebar-w) 1fr;
    grid-template-rows: var(--shell-header-h) 1fr;
    grid-template-areas:
        "header header"
        "sidebar content";
}

/* ── Shell Header ─────────────────────────────────────── */
.shell-header {
    grid-area: header;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 50;
    height: var(--shell-header-h);
    background: transparent;
}

.shell-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shell-logo img {
    border-radius: 4px;
}

.shell-wordmark {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.shell-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.shell-header-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: none;
    background: none;
    color: var(--muted-foreground);
    transition: all var(--transition);
    cursor: pointer;
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform var(--transition);
}

#theme-toggle:hover {
    background: none;
    transform: scale(1.2);
}

.shell-header-btn:hover {
    background: var(--hover-bg);
    color: var(--foreground);
    opacity: 1;
}

/* ── Mobile header nav (hidden on desktop) ────────────── */
.header-mobile-nav {
    display: none;
}

@media (max-width: 767px) {
    .header-mobile-nav {
        display: flex;
        align-items: center;
        gap: 2px;
    }

    .header-mobile-nav-btn {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        border: none;
        background: none;
        color: var(--muted-foreground);
        cursor: pointer;
        text-decoration: none;
        transition: all var(--transition);
        -webkit-tap-highlight-color: transparent;
        padding: 0;
    }

    .header-mobile-nav-btn:hover,
    .header-mobile-nav-btn:active {
        background: var(--hover-bg);
        color: var(--foreground);
    }

    .header-mobile-profile-btn {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        border: none;
        background: none;
        cursor: pointer;
        padding: 0;
        -webkit-tap-highlight-color: transparent;
        transition: background var(--transition);
    }

    .header-mobile-profile-btn:hover,
    .header-mobile-profile-btn:active {
        background: var(--hover-bg);
    }

    .header-mobile-avatar-img {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        object-fit: cover;
    }

    .header-mobile-avatar-initials {
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background: var(--accent, #3b82f6);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 9px;
        font-weight: 700;
        color: #fff;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        line-height: 1;
    }
}

/* ── Shell Sidebar ────────────────────────────────────── */
.shell-sidebar {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0 12px;
    gap: 4px;
    z-index: 50;
}

.sidebar-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    background: none;
    color: var(--muted-foreground);
    transition: all var(--transition);
    cursor: pointer;
}

.sidebar-icon:hover {
    background: var(--hover-bg);
    color: var(--foreground);
    opacity: 1;
}

.sidebar-icon.active {
    color: var(--foreground);
    background: var(--active-bg);
}

.sidebar-icon svg {
    flex-shrink: 0;
}

.sidebar-icon.sidebar-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.sidebar-tooltip {
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    color: var(--foreground);
    z-index: 100;
}

.sidebar-icon:hover .sidebar-tooltip {
    opacity: 1;
}

.sidebar-spacer {
    flex: 1;
}

/* Profile icon — thicker stroke, bottom position */
.sidebar-profile {
    margin-top: 4px;
}

.sidebar-profile svg {
    stroke-width: 2;
}

.sidebar-profile.authenticated {
    background: var(--hover-bg);
}

.sidebar-profile.authenticated svg {
    display: none;
}

.sidebar-profile.authenticated::before {
    content: attr(data-initials);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: hsl(220 60% 50% / 0.2);
    color: hsl(220 60% 65%);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ── Shell Content Container ──────────────────────────── */
.shell-content {
    grid-area: content;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: var(--shell-radius) 0 0 0;
    background: var(--container-bg);
    border-top: none;
    border-left: 1px solid var(--shell-border);
    position: relative;
    scroll-behavior: smooth;
}

/* ── Dashed viewport border lines ──────────────────────── */
.dashed-borders {
    position: fixed;
    top: var(--shell-header-h);
    left: var(--shell-sidebar-w);
    right: var(--shell-pad-right);
    bottom: var(--shell-pad-bottom);
    pointer-events: none;
    z-index: 40;
    border-radius: var(--shell-radius) 0 0 0;
    overflow: hidden;
}

.dashed-border-top {
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    height: 0;
    border-top: 1px dashed var(--dashed-line);
}

.dashed-border-left {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 0;
    border-left: 1px dashed var(--dashed-line);
}

.dashed-border-right {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 24px;
    width: 0;
    border-right: 1px dashed var(--dashed-line);
}



/* ── Typography ────────────────────────────────────────── */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.9;
    color: var(--foreground);
}

h4 {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: 0;
    color: var(--foreground);
}

h1 { font-size: clamp(3rem, 8vw, 8rem); }
h2 { font-size: clamp(1.875rem, 5vw, 3.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2rem); }

p {
    color: var(--muted-foreground);
    line-height: 1.7;
    font-weight: 300;
    font-size: 0.875rem;
}

a {
    color: var(--foreground);
    text-decoration: none;
    transition: opacity var(--transition);
}

a:hover {
    opacity: 0.7;
}

.mono {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--primary);
}

.kbd {
    display: inline-block;
    padding: 2px 6px;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 300;
    line-height: 1.4;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid var(--primary);
    border-radius: var(--radius-btn);
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--muted-foreground);
    border-color: var(--border);
}

.btn-ghost:hover {
    color: var(--foreground);
    border-color: var(--btn-ghost-hover-border);
    opacity: 1;
}

.btn-large {
    padding: 16px 40px;
    font-size: 12px;
}

/* ── Download Modal ───────────────────────────────────── */
.download-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: hsla(0, 0%, 0%, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.download-modal {
    position: relative;
    background: var(--card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 440px;
    animation: modalSlideIn 0.25s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.download-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--muted-foreground);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.download-modal-close:hover {
    color: var(--foreground);
    background: var(--glass);
}

.download-modal-title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.download-modal-sub {
    color: var(--muted-foreground);
    font-size: 13px;
    margin: 0 0 28px;
    font-weight: 300;
}

.download-modal-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.download-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--foreground);
    transition: border-color 0.15s, background 0.15s;
    cursor: pointer;
}

.download-option:hover {
    border-color: var(--muted-foreground);
    background: hsla(0, 0%, 100%, 0.06);
}

.download-option-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border-radius: 10px;
}

.download-option-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.download-option-name {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.download-option-desc {
    font-size: 12px;
    color: var(--muted-foreground);
    font-weight: 300;
}

.download-option-arrow {
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.15s, transform 0.15s;
}

.download-option:hover .download-option-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* ── Hero Section ──────────────────────────────────────── */
.hero {
    position: relative;
    min-height: calc(100vh - var(--shell-header-h));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 130px 24px 80px;
    overflow: hidden;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 8px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-btn);
}

.hero-badge .dot {
    width: 3px;
    height: 3px;
    background: var(--muted-foreground);
    border-radius: 50%;
}

.hero-title {
    margin-bottom: 24px;
    max-width: 900px;
    line-height: 0.9;
}

.hero-sub {
    font-size: clamp(0.875rem, 2vw, 1rem);
    max-width: 560px;
    margin-bottom: 48px;
    color: var(--muted-foreground);
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Floating icons */
.hero-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-icon {
    position: absolute;
    width: 64px;
    height: 64px;
    opacity: 0.06;
    filter: grayscale(1) brightness(var(--hero-icon-brightness, 2));
    animation: float 6s ease-in-out infinite;
}

.hero-icon-1 { top: 15%; left: 8%; animation-delay: 0s; }
.hero-icon-2 { top: 20%; right: 10%; animation-delay: 1.5s; }
.hero-icon-3 { bottom: 30%; left: 12%; animation-delay: 3s; }
.hero-icon-4 { bottom: 25%; right: 8%; animation-delay: 4.5s; }

/* Hero screenshot */
.hero-screenshot {
    margin-top: 64px;
    width: 100%;
    max-width: 1276px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.hero-screenshot-img {
    width: 100%;
    display: block;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.window-chrome {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: var(--glass-strong);
    border-bottom: 1px solid var(--glass-border);
}

.window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dot-bg);
}

.screenshot-body {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border: 1px dashed var(--border);
    margin: 24px;
}

.screenshot-body--flush {
    margin: 0;
    padding: 0;
    border: none;
    aspect-ratio: auto;
    background: transparent;
}

.screenshot-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0.3;
}

.screenshot-placeholder--video {
    padding: 0;
    background: transparent;
    border: none;
    opacity: 1;
}

.hero-demo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    background: var(--glass-strong);
}

.screenshot-logo {
    width: 64px;
    height: 64px;
    filter: grayscale(1);
}

/* ── Section Layout ────────────────────────────────────── */
.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.pitch {
    padding: var(--section-padding);
    text-align: center;
}

.pitch .section-title {
    margin-bottom: 24px;
}

.pitch .section-sub {
    max-width: 640px;
    margin: 0 auto;
    font-size: 0.875rem;
}

.feature-section {
    padding: var(--section-padding);
}

.feature-section.alt {
    background: var(--card);
}

.section-header {
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 4px 16px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    border-radius: var(--radius-btn);
}

.section-title {
    margin-bottom: 16px;
}

.section-sub {
    font-size: 0.875rem;
    max-width: 640px;
    color: var(--muted-foreground);
    font-weight: 300;
}

/* ── macOS Dock Section ───────────────────────────────── */
.macos-dock-section {
    padding: 96px 24px 128px;
}

.dock-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    margin: 0 auto;
    width: fit-content;
    background: hsl(0 0% 100% / 0.06);
    border: 1px solid hsl(0 0% 100% / 0.08);
    border-radius: 20px;
}

[data-theme="light"] .dock-container {
    background: hsl(0 0% 0% / 0.04);
    border-color: hsl(0 0% 0% / 0.06);
}

.dock-item {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: bottom center;
    will-change: transform;
}

.dock-item img {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    pointer-events: none;
    user-select: none;
}

/* Resting state — bell curve: neighbors slightly elevated, hero most elevated */
.dock-item.dock-neighbor {
    transform: scale(1.12) translateY(-4px);
}

.dock-item.dock-hero {
    transform: scale(1.3) translateY(-8px);
}

/* ── ASCII Divider ─────────────────────────────────────── */
.ascii-divider {
    text-align: center;
    padding: 24px;
    color: var(--border);
    overflow: hidden;
}

/* ── Feature Grid ──────────────────────────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

.feature-grid.four-col {
    grid-template-columns: repeat(4, 1fr);
}

.feature-card {
    padding: 32px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-container);
    transition: all var(--transition);
}

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

.card-icon {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--muted-foreground);
}

.feature-card h4 {
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--foreground);
}

.feature-card p {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    font-weight: 300;
}

/* ── Feature Card with Art Background ───────────────────── */
.feature-card--art {
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 180px;
    max-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.feature-card--art .card-art-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.5s ease;
}

.feature-card--art:hover .card-art-bg {
    transform: scale(1.05);
}

.feature-card--art .card-art-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top right,
        hsl(0 0% 0% / 0.85) 0%,
        hsl(0 0% 0% / 0.6) 40%,
        hsl(0 0% 0% / 0.15) 80%,
        transparent 100%
    );
}

.feature-card--art .card-art-content {
    position: relative;
    z-index: 2;
    padding: 24px;
}

.feature-card--art .card-art-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 6px;
}

.feature-card--art .card-art-content p {
    font-size: 0.8125rem;
    color: hsl(0 0% 80%);
    line-height: 1.5;
    font-weight: 300;
}

/* ── Feature Card with Media ────────────────────────────── */
.feature-card--media {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.feature-card--media .card-icon,
.feature-card--media h4,
.feature-card--media p {
    padding-left: 24px;
    padding-right: 24px;
}

.feature-card--media .card-icon {
    margin-top: 20px;
    margin-bottom: 12px;
}

.feature-card--media h4 {
    margin-bottom: 6px;
}

.feature-card--media p {
    padding-bottom: 24px;
}

.card-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--glass-strong);
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.card-media img,
.card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.feature-card--media:hover .card-media img,
.feature-card--media:hover .card-media video {
    transform: scale(1.03);
}

/* ── Section Hero Media (above card grids) ──────────────── */
.section-hero-media {
    width: 100%;
    margin-bottom: 48px;
    border-radius: var(--radius-container);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass);
}

.section-hero-video,
.section-hero-img {
    width: 100%;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-container);
}

/* ── Hero MacBook Image ──────────────────────────────── */
.hero-macbook-img {
    width: 100%;
    max-width: 900px;
    display: block;
    border-radius: 12px;
}

/* ── AI Section Images ───────────────────────────────── */
.ai-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.ai-section-img {
    width: 100%;
    display: block;
    border-radius: var(--radius-container);
    border: 1px solid var(--glass-border);
    object-fit: cover;
}

/* ── Dock Preferences Image ──────────────────────────── */
.dock-preferences {
    max-width: 480px;
    margin: 0 auto 40px;
}

.dock-preferences-img {
    width: 100%;
    display: block;
    border-radius: var(--radius-container);
    border: 1px solid var(--glass-border);
}

/* ── Export Card with Media Preview ────────────────────── */
.export-card--media {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.export-card-preview {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--glass-strong);
    border-bottom: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.export-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.export-card--media:hover .export-card-preview img {
    transform: scale(1.03);
}

.export-card--media .export-icon {
    padding: 20px 20px 0;
}

.export-card--media h4,
.export-card--media p {
    padding-left: 20px;
    padding-right: 20px;
}

.export-card--media p {
    padding-bottom: 20px;
}

/* ── Animation Showcase ────────────────────────────────── */
.animation-showcase {
    margin-top: 64px;
    padding: 48px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-container);
    text-align: center;
}

.animation-showcase h3 {
    margin-bottom: 32px;
    color: var(--muted-foreground);
    font-size: 10px;
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.style-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.style-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.style-preview {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.style-preview::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.style-mellow .style-preview::after,
.style-mellow::after { animation: mellow-move 3s ease-in-out infinite; }
.style-smooth .style-preview::after,
.style-smooth::after { animation: smooth-move 3s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.style-snappy .style-preview::after,
.style-snappy::after { animation: snappy-move 2s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite; }
.style-bouncy .style-preview::after,
.style-bouncy::after { animation: bouncy-move 2.5s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }

.style-card .mono {
    color: var(--foreground);
}

.style-desc {
    font-size: 10px;
    color: var(--muted-foreground);
    font-weight: 300;
    letter-spacing: 0.15em;
}

/* ── Feature Split Layout ──────────────────────────────── */
.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap);
}

/* ── Models Grid (3-col) ──────────────────────────────── */
.models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

.model-card {
    aspect-ratio: 1 / 1;
    padding: 32px;
    background: hsl(0 0% 0% / 0.35);
    border: 1px solid hsl(0 0% 100% / 0.06);
    border-radius: var(--radius-container);
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}

.model-card:hover {
    background: hsl(0 0% 0% / 0.45);
    border-color: hsl(0 0% 100% / 0.12);
    transform: translateY(-2px);
}

.model-card h3 {
    margin: 12px 0 8px;
    font-family: 'Anton', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.model-card p {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    font-weight: 100;
    line-height: 1.5;
    flex: 1;
}

.model-card .section-tag {
    display: inline-block;
    margin-top: 4px;
}

.model-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
}

.model-card--cta {
    border-style: dashed;
    background: hsl(0 0% 0% / 0.2);
}

.model-card--cta:hover {
    background: hsl(0 0% 0% / 0.3);
}

[data-theme="light"] .model-card {
    background: hsl(0 0% 0% / 0.06);
    border-color: hsl(0 0% 0% / 0.08);
}

[data-theme="light"] .model-card:hover {
    background: hsl(0 0% 0% / 0.09);
    border-color: hsl(0 0% 0% / 0.14);
}

[data-theme="light"] .model-card--cta {
    background: hsl(0 0% 0% / 0.03);
}

[data-theme="light"] .model-card--cta:hover {
    background: hsl(0 0% 0% / 0.06);
}

.model-logo {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.logo-row img {
    width: 32px;
    height: 32px;
    opacity: 0.5;
}

.logo-row .logo-primary {
    width: 40px;
    height: 40px;
    opacity: 0.8;
}

.logo-row .logo-plus {
    font-size: 18px;
    color: var(--muted-foreground);
    opacity: 0.4;
}

.models-api-note {
    margin-top: var(--grid-gap);
    padding: 24px 32px;
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius-container);
    text-align: center;
    color: var(--muted-foreground);
    font-weight: 300;
}

.models-api-note .section-tag {
    margin-bottom: 8px;
    color: hsl(45 80% 55%);
    border-color: hsl(45 80% 50% / 0.25);
}

.feature-card-large {
    padding: 48px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-container);
}

.card-icon-large {
    font-size: 3rem;
    margin-bottom: 24px;
    color: var(--muted-foreground);
}

.feature-card-large h3 {
    margin-bottom: 16px;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.feature-card-large p {
    color: var(--muted-foreground);
    margin-bottom: 24px;
    font-weight: 300;
}

.card-detail {
    color: var(--muted-foreground);
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.15em;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--grid-gap);
}

.feature-list-item {
    display: flex;
    gap: 16px;
    padding: 24px 32px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-container);
    transition: all var(--transition);
}

.feature-list-item:hover {
    background: var(--glass-strong);
    border-color: var(--hover-border-color);
}

.list-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-list-item h4 {
    font-size: 0.875rem;
    font-weight: 300;
    margin-bottom: 4px;
}

.feature-list-item p {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    font-weight: 300;
}

/* ── Export Grid ───────────────────────────────────────── */
.export-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
    margin-bottom: 32px;
}

.export-card {
    padding: 32px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-container);
    text-align: center;
    transition: all var(--transition);
}

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

.export-icon {
    margin-bottom: 16px;
}

.export-icon img {
    filter: grayscale(1) brightness(var(--export-icon-brightness, 1.2));
    opacity: 0.8;
    transition: all var(--transition);
}

.export-card:hover .export-icon img {
    filter: grayscale(0);
    opacity: 1;
}

.export-card h4 {
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
}

.export-card p {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    font-weight: 300;
}

/* Aspect badges */
.aspect-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 16px;
    border: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.2em;
    border-radius: var(--radius-btn);
}

/* ── Terminal Block ────────────────────────────────────── */
.terminal-block {
    margin-bottom: 48px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-container);
    overflow: hidden;
}

.terminal-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--glass-strong);
    border-bottom: 1px solid var(--glass-border);
}

.terminal-title {
    margin-left: auto;
    color: var(--muted-foreground);
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.15em;
}

.terminal-body {
    padding: 24px;
    background: var(--card);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.8;
    overflow-x: auto;
    color: var(--muted-foreground);
}

.terminal-body code {
    font-family: inherit;
}

.t-prompt { color: var(--muted-foreground); }
.t-info { color: var(--foreground); font-weight: 350; }
.t-dim { color: var(--t-dim); }

/* ── AI Features ───────────────────────────────────────── */
.ai-section {
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ai-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

.ai-card {
    padding: 32px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-container);
    transition: all var(--transition);
}

.ai-card:hover {
    border-color: var(--hover-border-color);
}

.ai-card h4 {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 10px;
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.ai-card p {
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    font-weight: 300;
}

/* ── Comparison Table ──────────────────────────────────── */
.comparison-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-container);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.comparison-table thead th {
    padding: 20px 20px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    border-bottom: 1px solid var(--border);
    text-align: center;
    white-space: nowrap;
}

.comparison-table thead th:first-child {
    text-align: left;
}

.comparison-table thead th.highlight-col {
    color: var(--foreground);
    font-weight: 600;
}

.comparison-table tbody td {
    padding: 12px 20px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid var(--glass-border);
    color: var(--foreground);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table .feature-name {
    text-align: left;
    font-size: 0.8125rem;
    font-weight: 300;
    color: var(--muted-foreground);
    white-space: nowrap;
}

.comparison-table .feature-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    position: relative;
    top: -1px;
    opacity: 0.45;
}

.comparison-table .highlight-col {
    background: var(--glass);
}

.comparison-table .check-icon {
    color: hsl(142 60% 40%);
}

.comparison-table .cross-icon {
    color: hsl(0 45% 55%);
}

/* Header logos + names */
.comparison-table thead th .th-logo-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.comparison-table thead th .th-logo-wrap img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

/* Bold first row and first column */
.comparison-table thead th {
    font-weight: 500;
}

.comparison-table tbody tr:first-child td {
    font-weight: 350;
}

.comparison-table .feature-name {
    font-weight: 350;
}

.comparison-table .table-note {
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    opacity: 0.6;
}

.comparison-table .price-row td {
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid var(--border);
}

.comparison-table .price-row .feature-name {
    color: var(--foreground);
    font-weight: 600;
    font-size: 0.9375rem;
}

.price-free {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--foreground);
    line-height: 1;
}

.price-tag {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

/* ── Open Source CTA ───────────────────────────────────── */
.oss-section {
    position: relative;
    padding: 168px 24px 156px;
    text-align: center;
    background:
        radial-gradient(circle at top center, hsl(0 0% 100% / 0.08), transparent 32%),
        linear-gradient(180deg, hsl(0 0% 2%), hsl(0 0% 1%));
    color: hsl(0 0% 92%);
    border-top: 1px solid hsl(0 0% 100% / 0.06);
    border-bottom: 1px solid hsl(0 0% 100% / 0.06);
    overflow: hidden;
}

.oss-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, hsl(0 0% 100% / 0.02), transparent),
        radial-gradient(circle at center, transparent 0, transparent 55%, hsl(0 0% 0% / 0.55) 100%);
    pointer-events: none;
}

.oss-section .section-inner {
    position: relative;
    z-index: 1;
}

.oss-badge {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid hsl(0 0% 100% / 0.35);
    margin-bottom: 40px;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.36em;
    color: hsl(0 0% 56%);
    border-radius: var(--radius-btn);
    text-transform: uppercase;
    background: hsl(0 0% 100% / 0.02);
}

.oss-title {
    font-size: clamp(3.5rem, 10vw, 8rem);
    margin-bottom: 28px;
    line-height: 0.88;
    color: hsl(0 0% 88%);
}

.oss-sub {
    font-size: clamp(0.95rem, 1.8vw, 1.125rem);
    color: hsl(0 0% 30%);
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.7;
}

.oss-actions {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.oss-btn {
    width: min(100%, 320px);
    min-height: 64px;
    padding: 18px 28px;
    font-size: 12px;
    letter-spacing: 0.28em;
}

.oss-btn-primary {
    background: hsl(0 0% 88%);
    border-color: hsl(0 0% 88%);
    color: hsl(0 0% 8%);
}

.oss-btn-primary:hover {
    background: hsl(0 0% 96%);
    border-color: hsl(0 0% 96%);
}

.oss-btn-secondary {
    background: transparent;
    border-color: hsl(0 0% 100% / 0.08);
    color: hsl(0 0% 24%);
}

.oss-btn-secondary:hover {
    color: hsl(0 0% 48%);
    border-color: hsl(0 0% 100% / 0.18);
}

.oss-stats {
    display: flex;
    gap: clamp(28px, 5vw, 72px);
    justify-content: center;
    flex-wrap: wrap;
}

.oss-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 132px;
}

.oss-stat .mono {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: hsl(0 0% 86%);
    line-height: 0.95;
}

.oss-stat span:last-child {
    font-size: 11px;
    color: var(--muted-foreground);
    font-weight: 300;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

/* ── Hero Badges (platform badges below CTA) ─────────── */
.hero-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* ── Language Grid ─────────────────────────────────────── */
.lang-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.lang-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 300;
    color: var(--foreground);
    letter-spacing: 0.05em;
    transition: all var(--transition);
}

.lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-chip:hover {
    background: var(--glass-strong);
    border-color: var(--hover-border-color);
    transform: translateY(-2px);
}

.lang-note {
    text-align: center;
    margin-top: 32px;
    color: var(--muted-foreground);
    font-size: 11px;
}

/* ── Platform Card ─────────────────────────────────────── */
.platform-card {
    text-align: center;
}

.platform-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    background: var(--glass-strong);
}

.platform-card-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.platform-card-icon {
    color: var(--muted-foreground);
    opacity: 0.6;
    transition: all var(--transition);
}

.platform-card:hover .platform-card-icon {
    opacity: 1;
    color: var(--foreground);
}

.platform-card-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.platform-card-body h4 {
    margin-bottom: 6px;
}

.platform-card-body .card-detail {
    margin-bottom: 12px;
}

.platform-card-body .platform-status {
    margin-bottom: 16px;
}

.platform-card-body .btn {
    width: 100%;
}

.platform-status {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.platform-status--available {
    background: hsl(142 60% 40% / 0.12);
    color: hsl(142 60% 50%);
    border: 1px solid hsl(142 60% 40% / 0.25);
}

.platform-status--soon {
    background: hsl(45 80% 50% / 0.1);
    color: hsl(45 80% 55%);
    border: 1px solid hsl(45 80% 50% / 0.2);
}

.platform-status--call {
    background: hsl(210 70% 50% / 0.1);
    color: hsl(210 70% 60%);
    border: 1px solid hsl(210 70% 50% / 0.2);
}

/* ── Card Badge (inline) ───────────────────────────────── */
.card-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 9px;
    letter-spacing: 0.15em;
    background: hsl(45 80% 50% / 0.1);
    color: hsl(45 80% 55%);
    border: 1px solid hsl(45 80% 50% / 0.2);
    vertical-align: middle;
}

/* ── Stats Section ─────────────────────────────────────── */
.stats-section {
    padding: 128px 24px;
    background:
        radial-gradient(circle at top center, hsl(0 0% 100% / 0.04), transparent 40%),
        var(--container-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--foreground);
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    color: var(--muted-foreground);
    letter-spacing: 0.3em;
}

/* ── Stats Section responsive ──────────────────────────── */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .stats-section {
        padding: 64px 16px;
    }
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
    padding: 0 0 40px;
    border-top: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

/* Subtle gradient wash at the top edge */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--foreground) 30%,
        var(--foreground) 70%,
        transparent 100%);
    opacity: 0.08;
}

.footer-inner {
    max-width: none;
    margin: 0;
}

.footer-top {
    display: flex;
    align-items: stretch;
}

/* Brand section: giant text + tagline */
.footer-brand-section {
    width: 62%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 58px; /* matches footer-right bottom padding + bottom-bar height */
}

/* Giant "OPEN WHISPER" text fills the brand section */
.footer-brand-giant {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    font-size: clamp(2rem, 8.5vw, 10rem);
    color: var(--foreground);
    opacity: 0.9;
    padding-left: calc(var(--shell-sidebar-w) + 16px);
    user-select: none;
    flex: 1;
}

[data-theme="light"] .footer-brand-giant {
    opacity: 0.07;
}

.footer-tagline {
    font-size: 9px;
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    padding-left: calc(var(--shell-sidebar-w) + 16px);
    margin: 0;
    padding-bottom: 18px; /* aligns baseline with footer-bottom */
}

/* Right column: links + bottom bar */
.footer-right {
    width: 38%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px 24px 40px 0;
}

/* Fix: grid so all 3 columns always sit in one row */
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    margin-bottom: 6px;
    color: var(--foreground);
    font-size: 9px;
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    opacity: 0.35;
}

.footer-col a {
    font-size: 10px;
    color: var(--muted-foreground);
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.2s, opacity 0.2s;
}

.footer-col a:hover {
    color: var(--foreground);
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    margin-top: 36px;
    border-top: 1px solid var(--border);
    font-size: 9px;
    color: var(--muted-foreground);
    font-weight: 300;
    letter-spacing: 0.2em;
}

.footer-bottom-badge {
    opacity: 0.4;
}

/* ── Login Pill Button (header) ────────────────────────── */
.login-pill-btn {
    padding: 6px 18px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    background: hsl(0 0% 100%);
    color: hsl(0 0% 5%);
}

.login-pill-btn:hover {
    background: hsl(0 0% 88%);
}

[data-theme="light"] .login-pill-btn {
    background: hsl(0 0% 8%);
    color: hsl(0 0% 98%);
}

[data-theme="light"] .login-pill-btn:hover {
    background: hsl(0 0% 20%);
}

/* ── User Avatar (header, logged-in state) ───────────── */
.user-avatar-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(0 0% 20%);
    cursor: default;
    flex-shrink: 0;
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar-initials {
    font-size: 11px;
    font-weight: 600;
    color: hsl(0 0% 90%);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}

[data-theme="light"] .user-avatar-btn {
    background: hsl(0 0% 75%);
}

[data-theme="light"] .user-avatar-initials {
    color: hsl(0 0% 10%);
}

/* ── Login Modal Overlay ──────────────────────────────── */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(0 0% 0% / 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

body.modal-open .shell-header,
body.modal-open .shell-sidebar,
body.modal-open .shell-content,
body.modal-open .dashed-borders {
    filter: blur(8px);
    pointer-events: none;
}

.login-modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 24px;
    background: hsl(0 0% 100% / 0.03);
    border: 1px solid hsl(0 0% 100% / 0.06);
    border-radius: 20px;
    padding: 48px 36px 36px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(12px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-modal-overlay.open .login-modal {
    transform: translateY(0) scale(1);
}

[data-theme="light"] .login-modal {
    background: hsl(0 0% 100% / 0.85);
    border-color: hsl(0 0% 0% / 0.08);
}

.login-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: none;
    border: none;
    color: hsl(0 0% 100% / 0.3);
    cursor: pointer;
    transition: all 0.2s;
}

.login-modal-close:hover {
    background: hsl(0 0% 100% / 0.06);
    color: hsl(0 0% 100% / 0.7);
}

[data-theme="light"] .login-modal-close {
    color: hsl(0 0% 0% / 0.3);
}

[data-theme="light"] .login-modal-close:hover {
    background: hsl(0 0% 0% / 0.06);
    color: hsl(0 0% 0% / 0.7);
}

/* ── Modal internal styles ── */
.login-modal .login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-modal .login-header h1 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--foreground);
    margin: 0 0 6px;
}

.login-modal .login-header .subtitle {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 300;
    color: hsl(0 0% 100% / 0.4);
}

[data-theme="light"] .login-modal .login-header .subtitle {
    color: hsl(0 0% 0% / 0.4);
}

.login-modal .auth-view {
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.login-modal .auth-view.active {
    display: block;
    opacity: 1;
}

.login-modal .oauth-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-modal .oauth-btn {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 350;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, opacity 0.2s, transform 0.1s;
    border: 1px solid hsl(0 0% 100% / 0.10);
    outline: none;
}
.login-modal .oauth-btn:active { transform: scale(0.99); }
.login-modal .oauth-btn:disabled { opacity: 0.6; cursor: wait; }
.login-modal .oauth-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.login-modal .oauth-btn--google {
    background: hsl(0 0% 100% / 0.05);
    color: hsl(0 0% 93%);
}
.login-modal .oauth-btn--google:hover:not(:disabled) {
    background: hsl(0 0% 100% / 0.08);
    border-color: hsl(0 0% 100% / 0.18);
}

[data-theme="light"] .login-modal .oauth-btn--google {
    background: hsl(0 0% 0% / 0.03);
    color: hsl(0 0% 10%);
    border-color: hsl(0 0% 0% / 0.10);
}
[data-theme="light"] .login-modal .oauth-btn--google:hover:not(:disabled) {
    background: hsl(0 0% 0% / 0.06);
    border-color: hsl(0 0% 0% / 0.18);
}

.login-modal .oauth-btn--github {
    background: hsl(0 0% 100% / 0.92);
    color: hsl(0 0% 5%);
    border-color: transparent;
}
.login-modal .oauth-btn--github:hover:not(:disabled) {
    background: hsl(0 0% 100% / 0.82);
}
.login-modal .oauth-btn--github svg { color: hsl(0 0% 5%); }

[data-theme="light"] .login-modal .oauth-btn--github {
    background: hsl(0 0% 10%);
    color: hsl(0 0% 98%);
}
[data-theme="light"] .login-modal .oauth-btn--github:hover:not(:disabled) {
    background: hsl(0 0% 20%);
}
[data-theme="light"] .login-modal .oauth-btn--github svg { color: hsl(0 0% 98%); }

.login-modal .stay-signed-in {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 14px;
}
.login-modal .stay-signed-in button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.login-modal .stay-signed-in .checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid hsl(0 0% 100% / 0.25);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.login-modal .stay-signed-in .checkbox.checked {
    background: hsl(0 0% 93%);
    border-color: hsl(0 0% 93%);
}
.login-modal .stay-signed-in .checkbox svg {
    width: 10px; height: 10px;
    color: hsl(0 0% 5%);
    opacity: 0;
    transition: opacity 0.15s ease;
}
.login-modal .stay-signed-in .checkbox.checked svg { opacity: 1; }
.login-modal .stay-signed-in button:hover .checkbox:not(.checked) {
    border-color: hsl(0 0% 100% / 0.4);
}
.login-modal .stay-signed-in span {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 350;
    color: hsl(0 0% 100% / 0.5);
    transition: color 0.15s;
}
.login-modal .stay-signed-in button:hover span {
    color: hsl(0 0% 100% / 0.7);
}

[data-theme="light"] .login-modal .stay-signed-in .checkbox {
    border-color: hsl(0 0% 0% / 0.25);
}
[data-theme="light"] .login-modal .stay-signed-in .checkbox.checked {
    background: hsl(0 0% 15%);
    border-color: hsl(0 0% 15%);
}
[data-theme="light"] .login-modal .stay-signed-in .checkbox svg { color: hsl(0 0% 98%); }
[data-theme="light"] .login-modal .stay-signed-in span { color: hsl(0 0% 0% / 0.5); }

.login-modal .auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 0;
}
.login-modal .auth-divider::before,
.login-modal .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: hsl(0 0% 100% / 0.08);
}
.login-modal .auth-divider span {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 350;
    color: hsl(0 0% 100% / 0.3);
    text-transform: lowercase;
}

[data-theme="light"] .login-modal .auth-divider::before,
[data-theme="light"] .login-modal .auth-divider::after {
    background: hsl(0 0% 0% / 0.08);
}
[data-theme="light"] .login-modal .auth-divider span { color: hsl(0 0% 0% / 0.3); }

.login-modal .email-trigger-btn {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 350;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
    background: transparent;
    border: 1px solid hsl(0 0% 100% / 0.15);
    color: hsl(0 0% 93%);
    outline: none;
}
.login-modal .email-trigger-btn:hover {
    background: hsl(0 0% 100% / 0.04);
    border-color: hsl(0 0% 100% / 0.25);
}
.login-modal .email-trigger-btn:active { transform: scale(0.99); }
.login-modal .email-trigger-btn svg { width: 18px; height: 18px; opacity: 0.7; }

[data-theme="light"] .login-modal .email-trigger-btn {
    border-color: hsl(0 0% 0% / 0.15);
    color: hsl(0 0% 10%);
}
[data-theme="light"] .login-modal .email-trigger-btn:hover {
    background: hsl(0 0% 0% / 0.04);
    border-color: hsl(0 0% 0% / 0.25);
}

.login-modal .form-error {
    margin-top: 12px;
    padding: 10px 14px;
    background: hsl(0 70% 50% / 0.08);
    border: 1px solid hsl(0 70% 50% / 0.15);
    border-radius: 10px;
    color: hsl(0 70% 65%);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 350;
    text-align: center;
    display: none;
}
.login-modal .form-error.visible { display: block; }

.login-modal .auth-switch {
    text-align: center;
    padding-top: 18px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 350;
    color: hsl(0 0% 100% / 0.35);
}
.login-modal .auth-switch button {
    background: none;
    border: none;
    color: hsl(0 0% 100% / 0.7);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 350;
    cursor: pointer;
    transition: color 0.15s;
    padding: 0;
}
.login-modal .auth-switch button:hover { color: hsl(0 0% 100% / 0.95); }

[data-theme="light"] .login-modal .auth-switch { color: hsl(0 0% 0% / 0.35); }
[data-theme="light"] .login-modal .auth-switch button { color: hsl(0 0% 0% / 0.7); }
[data-theme="light"] .login-modal .auth-switch button:hover { color: hsl(0 0% 0% / 0.95); }

.login-modal .back-to-options {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: hsl(0 0% 100% / 0.4);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 350;
    cursor: pointer;
    padding: 0;
    margin-bottom: 18px;
    transition: color 0.15s;
}
.login-modal .back-to-options:hover { color: hsl(0 0% 100% / 0.7); }
.login-modal .back-to-options svg { width: 15px; height: 15px; }

[data-theme="light"] .login-modal .back-to-options { color: hsl(0 0% 0% / 0.4); }
[data-theme="light"] .login-modal .back-to-options:hover { color: hsl(0 0% 0% / 0.7); }

.login-modal .form-group { margin-bottom: 14px; }
.login-modal .form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 350;
    letter-spacing: 0.04em;
    color: hsl(0 0% 100% / 0.5);
    margin-bottom: 6px;
    margin-left: 2px;
}
.login-modal .form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    margin-left: 2px;
}
.login-modal .forgot-link {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 350;
    color: hsl(0 0% 100% / 0.3);
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}
.login-modal .forgot-link:hover { color: hsl(0 0% 100% / 0.6); }

[data-theme="light"] .login-modal .form-label { color: hsl(0 0% 0% / 0.5); }
[data-theme="light"] .login-modal .forgot-link { color: hsl(0 0% 0% / 0.3); }
[data-theme="light"] .login-modal .forgot-link:hover { color: hsl(0 0% 0% / 0.6); }

.login-modal .input-wrapper { position: relative; }
.login-modal .input-wrapper svg.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px; height: 15px;
    color: hsl(0 0% 100% / 0.25);
    pointer-events: none;
}
.login-modal .input-wrapper .toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: hsl(0 0% 100% / 0.25);
    cursor: pointer;
    padding: 2px;
    transition: color 0.15s;
}
.login-modal .input-wrapper .toggle-pw:hover { color: hsl(0 0% 100% / 0.5); }
.login-modal .input-wrapper .toggle-pw svg { width: 15px; height: 15px; }

[data-theme="light"] .login-modal .input-wrapper svg.input-icon { color: hsl(0 0% 0% / 0.25); }
[data-theme="light"] .login-modal .input-wrapper .toggle-pw { color: hsl(0 0% 0% / 0.25); }
[data-theme="light"] .login-modal .input-wrapper .toggle-pw:hover { color: hsl(0 0% 0% / 0.5); }

.login-modal .form-input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    background: hsl(0 0% 100% / 0.04);
    border: 1px solid hsl(0 0% 100% / 0.07);
    border-radius: 12px;
    color: var(--foreground);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 350;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}
.login-modal .form-input:focus {
    border-color: hsl(0 0% 100% / 0.18);
    background: hsl(0 0% 100% / 0.06);
}
.login-modal .form-input::placeholder {
    color: hsl(0 0% 100% / 0.22);
    font-weight: 350;
}

[data-theme="light"] .login-modal .form-input {
    background: hsl(0 0% 0% / 0.04);
    border-color: hsl(0 0% 0% / 0.07);
}
[data-theme="light"] .login-modal .form-input:focus {
    border-color: hsl(0 0% 0% / 0.18);
    background: hsl(0 0% 0% / 0.06);
}
[data-theme="light"] .login-modal .form-input::placeholder { color: hsl(0 0% 0% / 0.22); }

.login-modal .pw-match {
    font-size: 11px;
    font-weight: 350;
    margin-top: 4px;
    margin-left: 2px;
    opacity: 0;
    transition: opacity 0.2s;
}
.login-modal .pw-match.visible { opacity: 1; }
.login-modal .pw-match.match { color: hsl(140 50% 55%); }
.login-modal .pw-match.no-match { color: hsl(0 70% 65%); }

.login-modal .form-submit {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 350;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    border: none;
    background: hsl(0 0% 93%);
    color: hsl(0 0% 5%);
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
}
.login-modal .form-submit:hover:not(:disabled) { background: hsl(0 0% 83%); }
.login-modal .form-submit:active:not(:disabled) { transform: scale(0.99); }
.login-modal .form-submit:disabled { opacity: 0.6; cursor: wait; }
.login-modal .form-submit svg { width: 15px; height: 15px; }

[data-theme="light"] .login-modal .form-submit {
    background: hsl(0 0% 12%);
    color: hsl(0 0% 98%);
}
[data-theme="light"] .login-modal .form-submit:hover:not(:disabled) { background: hsl(0 0% 22%); }

@keyframes spin {
    to { transform: rotate(360deg); }
}
.login-modal .spinner {
    width: 16px; height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.login-modal .profile-section {
    text-align: center;
    display: none;
}
.login-modal .profile-section.visible { display: block; }
.login-modal .profile-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: hsl(0 0% 100% / 0.08);
    color: hsl(0 0% 93%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 350;
}
.login-modal .profile-name {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 350;
    color: var(--foreground);
    margin-bottom: 4px;
}
.login-modal .profile-email {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 350;
    color: hsl(0 0% 100% / 0.4);
    margin-bottom: 24px;
}
.login-modal .btn-signout {
    padding: 10px 24px;
    background: hsl(0 70% 50% / 0.08);
    border: 1px solid hsl(0 70% 50% / 0.15);
    border-radius: 10px;
    color: hsl(0 70% 65%);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 350;
    cursor: pointer;
    transition: background 0.2s;
}
.login-modal .btn-signout:hover { background: hsl(0 70% 50% / 0.15); }

[data-theme="light"] .login-modal .profile-email { color: hsl(0 0% 0% / 0.4); }
[data-theme="light"] .login-modal .profile-avatar {
    background: hsl(0 0% 0% / 0.08);
    color: hsl(0 0% 10%);
}

/* ── Responsive ────────────────────────────────────────── */
@media (min-width: 768px) {
    .dashed-border-left {
        left: 40px;
    }

    .dashed-border-right {
        right: 40px;
    }

    p {
        font-size: 1rem;
    }

    .mono {
        font-size: 12px;
    }

    .btn {
        font-size: 12px;
    }

    .section-tag {
        font-size: 12px;
    }
}

@media (max-width: 1024px) {
    .feature-grid.four-col,
    .export-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .ai-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 40px 14px;
    }

    .section-header {
        margin-bottom: 28px;
    }

    .section-tag {
        font-size: 8px;
        letter-spacing: 0.2em;
    }

    .pitch .section-sub {
        font-size: 0.75rem;
    }

    p {
        font-size: 0.8rem;
    }

    .section-hero-media {
        margin-bottom: 24px;
    }

    .ai-images {
        grid-template-columns: 1fr;
    }

    .card-media {
        aspect-ratio: 4 / 3;
    }

    .login-modal {
        max-width: 100%;
        margin: 16px;
        padding: 36px 24px 28px;
    }

    /* Collapse shell layout on mobile */
    body {
        display: block;
        height: auto;
        overflow-y: auto;
        background: var(--container-bg);
    }

    .shell-sidebar {
        display: none;
    }

    .shell-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: var(--outer-bg);
        border-bottom: 1px solid var(--border);
        z-index: 100;
    }

    .shell-content {
        border-radius: 0;
        border: none;
        margin-top: var(--shell-header-h);
        overflow: visible;
    }

    .dashed-borders {
        top: var(--shell-header-h);
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }

    .dashed-border-top {
        top: 24px;
    }

    .dashed-border-left {
        left: 12px;
    }

    .dashed-border-right {
        right: 12px;
    }

    .hero {
        min-height: auto;
        padding: 48px 16px 40px;
        justify-content: flex-start;
    }

    .hero-badge {
        gap: 8px;
        padding: 5px 12px;
        margin-bottom: 24px;
        letter-spacing: 0.15em;
    }

    .hero-badge.mono {
        font-size: 9px;
    }

    .hero-badge .dot {
        width: 2px;
        height: 2px;
    }

    h1 {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    h3 {
        font-size: clamp(1rem, 4vw, 1.5rem);
    }

    .hero-title {
        margin-bottom: 16px;
    }

    .hero-sub {
        font-size: clamp(0.75rem, 2vw, 0.875rem);
        margin-bottom: 24px;
        max-width: 400px;
    }

    .hero-screenshot {
        margin-top: 24px;
    }

    .hero-badges {
        margin-top: 20px;
        gap: 8px;
    }

    .hero-badges .badge {
        font-size: 8px;
        padding: 4px 8px;
    }

    /* 3-col grids -> 2-col; 4-col/export stay at 2-col (from 1024px rule) */
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card {
        padding: 20px;
    }

    .feature-split {
        grid-template-columns: 1fr;
    }

    .model-card {
        padding: 16px;
    }

    .model-card h3 {
        font-size: 0.9rem;
    }

    .model-card p {
        font-size: 0.75rem;
    }

    .model-card-details {
        gap: 4px;
    }

    .model-card-details .card-detail {
        font-size: 10px;
    }

    .model-logo {
        width: 28px;
        height: 28px;
        margin-bottom: 8px;
    }

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

    .comparison-wrapper {
        margin: 0 -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        -webkit-overflow-scrolling: touch;
    }

    .terminal-block {
        margin-bottom: 24px;
    }

    .terminal-body {
        font-size: 10px;
        overflow-x: auto;
    }

    .footer-top {
        flex-direction: column;
        min-height: auto;
    }

    .footer-brand-section {
        width: 100%;
        padding-bottom: 0;
    }

    .footer-brand-giant {
        font-size: clamp(1.25rem, 7vw, 2rem);
        padding-left: 16px;
    }

    .footer-tagline {
        padding-left: 16px;
        margin-top: 6px;
    }

    .footer-right {
        width: 100%;
        padding: 20px 16px 0;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .footer-bottom {
        margin-top: 20px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-actions .btn {
        padding: 10px 24px;
        font-size: 9px !important;
    }

    .hero-icon {
        display: none;
    }

    .dock-item img {
        width: 56px;
        height: 56px;
    }

    .macos-dock-section {
        padding: 64px 16px 80px;
    }

    .oss-section {
        padding: 104px 16px 96px;
    }

    .oss-badge {
        margin-bottom: 28px;
        padding: 10px 18px;
        letter-spacing: 0.28em;
    }

    .oss-sub {
        margin-bottom: 40px;
    }

    .oss-actions {
        margin-bottom: 56px;
    }

    .oss-btn {
        width: min(100%, 360px);
        min-height: 58px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 32px 12px;
    }

    .dashed-border-left {
        left: 8px;
    }

    .dashed-border-right {
        right: 8px;
    }

    .hero {
        padding: 40px 12px 28px;
    }

    .hero-badge {
        gap: 6px;
        padding: 4px 10px;
        margin-bottom: 18px;
    }

    .hero-badge.mono {
        font-size: 8px;
    }

    h1 {
        font-size: clamp(1.75rem, 10vw, 3rem);
    }

    h2 {
        font-size: clamp(1.25rem, 7vw, 2rem);
    }

    .hero-sub {
        font-size: 0.75rem;
        margin-bottom: 20px;
    }

    .hero-actions .btn {
        padding: 9px 20px;
        font-size: 8px !important;
        width: 100%;
        max-width: 280px;
    }

    .hero-badges .badge {
        font-size: 7px;
        padding: 3px 6px;
    }

    /* Feature grids fully collapse to 1-col on phones */
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 16px;
    }

    /* OSS section */
    .oss-actions {
        flex-direction: column;
        align-items: center;
    }

    .oss-title {
        font-size: clamp(2rem, 12vw, 3.5rem);
    }

    .oss-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .oss-stat {
        min-width: 100%;
    }

    /* Footer — keep 3-col links, smaller brand */
    .footer-brand-giant {
        font-size: clamp(1rem, 7vw, 1.5rem);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    /* Dock — shrink items so they don't overflow on 375px */
    .dock-container {
        gap: 6px;
        padding: 10px 12px;
    }

    .dock-item img {
        width: 44px;
        height: 44px;
    }
}

/* ══════════════════════════════════════════════════════════
   Transcription Page
   ══════════════════════════════════════════════════════════ */

.transcription-page {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  background: var(--container-bg, #161616);
  color: var(--foreground, #ebebeb);
  display: flex;
  flex-direction: column;
}

.transcription-page--loading,
.transcription-page--error {
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.transcription-main {
  flex: 1;
  max-width: none;
  margin: 0;
  width: 100%;
  padding: 48px 0 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── Transcriptions Header ───────────────────────────────── */
.transcription-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.transcription-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.transcription-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  color: var(--foreground);
  text-align: left;
}

.transcription-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

.transcription-search-wrap {
  position: relative;
}

.transcription-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  opacity: 0.35;
  transition: opacity 0.2s;
}

.transcription-search-wrap:focus-within .transcription-search-icon {
  opacity: 0.7;
}

.transcription-search {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 10px 14px 10px 36px;
  font-size: 13px;
  color: var(--foreground);
  font-family: var(--font-body);
  font-weight: 300;
  width: 240px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.transcription-search::placeholder {
  color: var(--muted-foreground);
  opacity: 0.6;
}

.transcription-search:focus {
  border-color: var(--hover-border-color);
  background: var(--glass-strong);
}

.transcription-sort {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--foreground);
  font-family: var(--font-body);
  font-weight: 300;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.transcription-sort:hover,
.transcription-sort:focus {
  border-color: var(--hover-border-color);
  background: var(--glass-strong);
}

.transcription-stats {
  font-size: 12px;
  color: var(--muted-foreground);
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* ── Transcription Error ─────────────────────────────────── */
.transcription-error {
  padding: 14px 18px;
  background: hsl(0 70% 50% / 0.08);
  border: 1px solid hsl(0 70% 50% / 0.15);
  border-radius: 10px;
  font-size: 13px;
  color: hsl(0 70% 65%);
  font-weight: 300;
}

/* ── Empty State ─────────────────────────────────────────── */
.transcription-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  gap: 24px;
}

.transcription-empty-icon {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transcription-empty-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  animation: empty-pulse 3s ease-in-out infinite;
}

.transcription-empty-icon::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed var(--glass-border);
  animation: empty-spin 20s linear infinite;
}

.transcription-empty-icon svg {
  position: relative;
  z-index: 1;
  opacity: 0.3;
}

@keyframes empty-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.6; }
}

@keyframes empty-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.transcription-empty-text {
  font-size: 15px;
  color: var(--muted-foreground);
  max-width: 340px;
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}

/* ── Transcription List ──────────────────────────────────── */
.transcription-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ── Transcription Card ──────────────────────────────────── */
.transcription-card {
  padding: 20px 24px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-container);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.transcription-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: var(--foreground);
  opacity: 0;
  border-radius: 1px;
  transition: opacity 0.25s;
}

.transcription-card:hover {
  background: var(--glass-strong);
  border-color: var(--hover-border-color);
  transform: translateX(2px);
}

.transcription-card:hover::before {
  opacity: 0.15;
}

.transcription-card-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.transcription-badge {
  font-size: 10px;
  font-weight: 350;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  color: var(--muted-foreground);
  line-height: 1.4;
}

.transcription-badge--success {
  background: hsl(140 50% 50% / 0.08);
  color: hsl(140 50% 55%);
}

.transcription-badge--error {
  background: hsl(0 70% 50% / 0.08);
  color: hsl(0 70% 65%);
}

.transcription-time {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted-foreground);
  opacity: 0.7;
  font-weight: 300;
  letter-spacing: 0.02em;
}

.transcription-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--foreground);
  margin: 0;
  word-break: break-word;
  font-weight: 300;
}

.transcription-text--empty {
  color: var(--muted-foreground);
  font-style: italic;
}

/* ── Transcription Actions ───────────────────────────────── */
.transcription-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.transcription-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.03em;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}

.transcription-action-btn:hover {
  border-color: var(--hover-border-color);
  color: var(--foreground);
  background: var(--glass);
}

.transcription-action-btn--danger {
  /* default state */
}

.transcription-action-btn--danger:hover {
  border-color: hsl(0 70% 50% / 0.3);
  color: hsl(0 70% 65%);
  background: hsl(0 70% 50% / 0.06);
}

.transcription-action-btn--danger-confirm {
  background: hsl(0 70% 50% / 0.08);
  border-color: hsl(0 70% 50% / 0.25);
  color: hsl(0 70% 65%);
}

/* ── Skeleton Loading ────────────────────────────────────── */
.transcription-skeleton {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.transcription-skeleton-card {
  height: 100px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-container);
  animation: pulse 2s ease-in-out infinite;
}

.transcription-skeleton-card:nth-child(2) { animation-delay: 0.15s; }
.transcription-skeleton-card:nth-child(3) { animation-delay: 0.3s; }

/* ── Footer Minimal (inner pages) ────────────────────────── */
.footer-minimal {
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
  padding: 0 32px;
}

.footer-minimal-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  font-size: 11px;
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--muted-foreground);
  opacity: 0.6;
  transition: opacity 0.3s;
}

.footer-minimal:hover .footer-minimal-inner {
  opacity: 1;
}

.footer-minimal-brand {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 12px;
  color: var(--foreground);
  opacity: 0.5;
}

.footer-minimal-sep {
  opacity: 0.3;
  font-size: 8px;
}

.footer-minimal-copy {
  text-transform: uppercase;
}

.footer-minimal-link {
  color: var(--muted-foreground);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-minimal-link:hover {
  color: var(--foreground);
}

.footer-minimal-right {
  margin-left: auto;
  text-transform: uppercase;
  opacity: 0.5;
}

/* ── Auth Callback Page ─────────────────────────────────── */
.callback-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 32px;
}

.callback-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid hsl(0 0% 20%);
  border-top-color: hsl(0 0% 80%);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.callback-text {
  font-size: 15px;
  font-weight: 500;
  color: hsl(0 0% 80%);
  text-align: center;
}

.callback-error {
  font-size: 13px;
  color: hsl(0 0% 55%);
  text-align: center;
  max-width: 320px;
}

.callback-retry,
.callback-open-btn {
  display: inline-block;
  padding: 10px 24px;
  background: hsl(0 0% 100%);
  color: hsl(0 0% 5%);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}
.callback-retry:hover,
.callback-open-btn:hover { opacity: 0.85; }

.callback-continue {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: hsl(0 0% 45%);
  padding: 4px 0;
  transition: color 0.15s;
}
.callback-continue:hover { color: hsl(0 0% 70%); }

/* ── Sidebar bottom-left user avatar ─────────────────── */
.sidebar-user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: hsl(0 0% 20%);
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.sidebar-user-btn:hover {
    opacity: 0.8;
}

.sidebar-user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-user-avatar-initials {
    font-size: 11px;
    font-weight: 600;
    color: hsl(0 0% 90%);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
}

[data-theme="light"] .sidebar-user-btn {
    background: hsl(0 0% 75%);
}

[data-theme="light"] .sidebar-user-avatar-initials {
    color: hsl(0 0% 10%);
}

/* ── Profile View (workspace-embedded) ───────────────── */
.profile-view {
    max-width: 760px;
}

.profile-view-header {
    margin-bottom: 28px;
}

.profile-view-card {
    position: relative;
    z-index: 1;
    background: hsl(0 0% 20%);
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
}

[data-theme="light"] .profile-view-card {
    background: hsl(0 0% 100%);
}

.profile-view-section {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.profile-view-section:last-child {
    border-bottom: none;
}

.profile-view-avatar-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-avatar-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-avatar-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--foreground);
}

.profile-avatar-email {
    margin: 0;
    font-size: 13px;
    color: var(--muted-foreground);
}

/* Avatar circle */
.profile-avatar-circle {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: hsl(0 0% 20%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-initials {
    font-size: 18px;
    font-weight: 600;
    color: hsl(0 0% 90%);
    text-transform: uppercase;
}

.profile-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.05em;
}

.profile-avatar-circle:hover .profile-avatar-overlay {
    opacity: 1;
}

.profile-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    display: block;
    margin-bottom: 8px;
}

.profile-input {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    color: var(--foreground);
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.15s;
}

.profile-input:focus {
    outline: none;
    border-color: var(--foreground);
}

.profile-email-text {
    font-size: 14px;
    color: var(--muted-foreground);
    margin: 0;
}

.profile-error {
    font-size: 13px;
    color: hsl(0 72% 55%);
    margin: 0;
}

.profile-success {
    font-size: 13px;
    color: hsl(140 60% 45%);
    margin: 0;
}

.profile-save-btn {
    padding: 9px 18px;
    border-radius: 6px;
    border: none;
    background: var(--foreground);
    color: var(--background);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.profile-save-btn:hover:not(:disabled) { opacity: 0.8; }
.profile-save-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.profile-signout-btn {
    padding: 9px 18px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted-foreground);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.profile-signout-btn:hover {
    color: hsl(0 72% 55%);
    border-color: hsl(0 72% 55%);
}

[data-theme="light"] .profile-avatar-circle {
    background: hsl(0 0% 75%);
}

[data-theme="light"] .profile-avatar-initials {
    color: hsl(0 0% 10%);
}

/* ── Notifications Panel ──────────────────────────────────────────────── */
.notif-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.notif-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  color: var(--fg-secondary, hsl(0 0% 55%));
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
}
.notif-bell:hover {
  background: hsl(0 0% 14%);
  color: hsl(0 0% 90%);
}

.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: hsl(0 72% 51%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-height: 420px;
  overflow-y: auto;
  background: hsl(0 0% 10%);
  border: 1px solid hsl(0 0% 18%);
  border-radius: 10px;
  box-shadow: 0 8px 32px hsl(0 0% 0% / 0.5);
  z-index: 200;
}

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid hsl(0 0% 14%);
  font-size: 13px;
  font-weight: 600;
  color: hsl(0 0% 80%);
}

.notif-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: hsl(0 0% 40%);
}

.notif-list {
  display: flex;
  flex-direction: column;
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid hsl(0 0% 10%);
  cursor: default;
  transition: background 0.1s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item--unread {
  background: hsl(220 100% 50% / 0.05);
  cursor: pointer;
}
.notif-item--unread:hover { background: hsl(220 100% 50% / 0.1); }

.notif-title {
  font-size: 13px;
  font-weight: 600;
  color: hsl(0 0% 88%);
  margin-bottom: 2px;
}

.notif-body {
  font-size: 12px;
  color: hsl(0 0% 55%);
  margin-bottom: 4px;
  line-height: 1.4;
}

.notif-time {
  font-size: 11px;
  color: hsl(0 0% 38%);
}

/* ── Login Page (full-page wrapper) ──────────────────────── */
.login-page-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--shell-header-h) - 80px);
  padding: 40px 24px;
}

/* ── Legal Pages (License, Privacy) ───────────────────────── */

.legal-page {
    padding: 80px 0 120px;
    min-height: 60vh;
}

.legal-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

.legal-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--foreground);
    margin: 12px 0 0;
    line-height: 1.05;
}

.legal-updated {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 100;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    margin: 16px 0 48px;
    opacity: 0.7;
}

.legal-body {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 200;
    line-height: 1.8;
    color: var(--muted-foreground);
}

.legal-body h2 {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--foreground);
    margin: 48px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
}

.legal-body p {
    margin: 0 0 16px;
}

.legal-body ul {
    margin: 0 0 16px;
    padding-left: 20px;
    list-style: none;
}

.legal-body ul li {
    position: relative;
    padding-left: 8px;
    margin-bottom: 8px;
}

.legal-body ul li::before {
    content: '—';
    position: absolute;
    left: -16px;
    color: var(--muted-foreground);
    opacity: 0.4;
}

.legal-body strong {
    font-weight: 400;
    color: var(--foreground);
}

.legal-body a {
    color: var(--foreground);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--glass-border);
    transition: text-decoration-color 0.2s;
}

.legal-body a:hover {
    text-decoration-color: var(--foreground);
}

@media (max-width: 768px) {
    .legal-page {
        padding: 48px 0 80px;
    }

    .legal-inner {
        padding: 0 16px;
    }
}

/* ── Checkout Page ────────────────────────────────────────── */

.checkout-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: var(--section-padding);
}

.checkout-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 440px;
    width: 100%;
    text-align: center;
}

.checkout-icon {
    margin-bottom: 20px;
    color: var(--foreground);
}

.checkout-title {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--foreground);
    margin-bottom: 8px;
}

.checkout-subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--muted-foreground);
    margin-bottom: 28px;
    line-height: 1.5;
}

.checkout-features {
    text-align: left;
    margin-bottom: 28px;
}

.checkout-feature {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--foreground);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.checkout-feature::before {
    content: "\2713";
    margin-right: 10px;
    color: var(--accent);
}

.checkout-divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

.checkout-btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 14px 24px;
    margin-bottom: 16px;
}

.checkout-notice {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--muted-foreground);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.checkout-error {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.85rem;
    color: hsl(0 60% 60%);
    background: hsl(0 60% 60% / 0.08);
    border: 1px solid hsl(0 60% 60% / 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.checkout-secure {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.8rem;
    color: var(--muted-foreground);
}

.checkout-success-icon {
    color: hsl(120 40% 55%);
    margin-bottom: 20px;
}

.checkout-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 0;
    color: var(--muted-foreground);
    font-family: var(--font-body);
    font-weight: 300;
}

.checkout-downloads {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.checkout-download-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--foreground);
    transition: background var(--transition), border-color var(--transition);
    cursor: pointer;
}

.checkout-download-card:hover {
    background: var(--hover-bg);
    border-color: var(--hover-border-color);
}

.checkout-download-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-strong);
    border-radius: 10px;
    color: var(--foreground);
}

.checkout-download-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.checkout-download-name {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--foreground);
}

.checkout-download-meta {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    letter-spacing: 0.02em;
}

.checkout-download-arrow {
    flex-shrink: 0;
    color: var(--muted-foreground);
    transition: color var(--transition);
}

.checkout-download-card:hover .checkout-download-arrow {
    color: var(--foreground);
}

.checkout-back-link {
    display: inline-block;
    margin-top: 12px;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color var(--transition);
}

.checkout-back-link:hover {
    color: var(--foreground);
}

@media (max-width: 768px) {
    .checkout-card {
        padding: 32px 20px;
    }
}

/* ── Skeleton pulse animation ────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.15; }
}

/* ═══════════════════════════════════════════════════════════
   Admin Dashboard
   ═══════════════════════════════════════════════════════════ */

.admin-pill-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--foreground);
  background: hsl(0 0% 25%);
  border: 1px solid hsl(0 0% 30%);
  text-decoration: none;
  transition: background 0.2s;
}

.admin-pill-btn:hover {
  background: hsl(0 0% 30%);
}

[data-theme="light"] .admin-pill-btn {
  background: hsl(0 0% 88%);
  border-color: hsl(0 0% 80%);
  color: hsl(0 0% 15%);
}

[data-theme="light"] .admin-pill-btn:hover {
  background: hsl(0 0% 82%);
}

.admin-dashboard {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}

.admin-title {
  font-family: 'Anton', sans-serif;
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--foreground);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.admin-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.admin-stat-label {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 4px;
}

.admin-stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--foreground);
}

.admin-stat-sub {
  font-size: 12px;
  opacity: 0.5;
  margin-top: 4px;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.admin-tab {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--foreground);
  opacity: 0.6;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.admin-tab:hover {
  opacity: 0.8;
}

.admin-tab.active {
  opacity: 1;
  border-bottom-color: var(--foreground);
}

.admin-tab-content {
  min-height: 300px;
}

.admin-table-container {
  overflow-x: auto;
}

.admin-search {
  width: 100%;
  max-width: 400px;
  padding: 10px 16px;
  margin-bottom: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--foreground);
  font-size: 14px;
}

.admin-search::placeholder {
  opacity: 0.4;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 400;
  opacity: 0.5;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid hsl(0 0% 20%);
}

[data-theme="light"] .admin-table td {
  border-bottom-color: hsl(0 0% 90%);
}

.admin-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.admin-badge-completed {
  background: hsl(140 30% 20%);
  color: hsl(140 40% 70%);
}

.admin-badge-pending {
  background: hsl(45 30% 20%);
  color: hsl(45 40% 70%);
}

.admin-badge-failed {
  background: hsl(0 30% 20%);
  color: hsl(0 40% 70%);
}

.admin-badge-admin {
  background: hsl(210 30% 20%);
  color: hsl(210 40% 70%);
}

.admin-badge-user {
  background: hsl(0 0% 22%);
  color: hsl(0 0% 65%);
}

[data-theme="light"] .admin-badge-completed {
  background: hsl(140 30% 90%);
  color: hsl(140 40% 30%);
}

[data-theme="light"] .admin-badge-pending {
  background: hsl(45 30% 90%);
  color: hsl(45 40% 30%);
}

[data-theme="light"] .admin-badge-failed {
  background: hsl(0 30% 90%);
  color: hsl(0 40% 30%);
}

[data-theme="light"] .admin-badge-admin {
  background: hsl(210 30% 90%);
  color: hsl(210 40% 30%);
}

[data-theme="light"] .admin-badge-user {
  background: hsl(0 0% 92%);
  color: hsl(0 0% 45%);
}

.admin-pagination {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 14px;
}

.admin-pagination button {
  padding: 6px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--foreground);
  cursor: pointer;
  font-size: 13px;
}

.admin-pagination button:disabled {
  opacity: 0.3;
  cursor: default;
}

.admin-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.admin-analytics-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.admin-analytics-section h3 {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.6;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-analytics-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid hsl(0 0% 20%);
}

[data-theme="light"] .admin-analytics-row {
  border-bottom-color: hsl(0 0% 92%);
}

.admin-analytics-row:last-child {
  border-bottom: none;
}

.admin-empty {
  opacity: 0.4;
  font-size: 14px;
}

.admin-overview h3 {
  font-size: 16px;
  margin-bottom: 8px;
  margin-top: 20px;
}

.admin-overview h3:first-child {
  margin-top: 0;
}

.admin-overview p {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-analytics-grid {
    grid-template-columns: 1fr;
  }
}
