@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

/* ─── DESIGN SYSTEM ───────────────────────────────────────────────────────── */
:root {
    --bg-base: hsl(240, 10%, 4%);
    --bg-surface: hsl(240, 10%, 7%);
    --bg-elevated: hsl(240, 10%, 10%);
    --bg-glass: hsla(240, 10%, 4%, 0.85);
    --border-base: hsla(0, 0%, 100%, 0.08);

    --text-primary: hsl(0, 0%, 96%);
    --text-secondary: hsl(240, 5%, 64%);
    --text-muted: hsl(240, 5%, 44%);

    --accent: #ff3b3b;
    --accent-2: #b80000;
    --accent-glow: rgba(255, 40, 40, 0.25);
    --accent-soft: rgba(255, 40, 40, 0.08);
    --accent-gradient: linear-gradient(135deg, #ff2828, #b80000);

    --success: hsl(145, 70%, 48%);
    --amber: #ffb02e;
    --blue: #5b9dff;

    --shadow-sm: 0 2px 8px -2px rgba(0,0,0,0.4);
    --shadow-md: 0 8px 24px -8px rgba(0,0,0,0.5);
    --shadow-lg: 0 24px 48px -16px rgba(0,0,0,0.6);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;

    --section-gap: clamp(5rem, 12vh, 8rem);
}

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

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
}

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

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

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

/* ─── LAYOUT ───────────────────────────────────────────────────────────────── */
.container {
    width: min(1200px, 100% - 3rem);
    margin-inline: auto;
}

section {
    padding-block: var(--section-gap);
}

/* ─── SCROLL PROGRESS BAR ──────────────────────────────────────────────────── */
#scroll-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--accent-gradient);
    z-index: 2000;
    transition: width 0.1s linear;
}

/* ─── NAVIGATION ───────────────────────────────────────────────────────────── */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 48px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-base);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo img {
    height: 36px;
    width: 36px;
    object-fit: contain;
}

.nav-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 8px;
}

.nav-github {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: hsla(0, 0%, 100%, 0.05);
    border: 1px solid var(--border-base);
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    nav { padding: 12px 20px; }
    .nav-links a:not(.nav-github) { display: none; }
}

/* ─── HERO ─────────────────────────────────────────────────────────────────── */
.hero-shell {
    padding-top: 0;
}

.hero {
    position: relative;
    padding-top: 4rem;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero.reveal {
    animation: fadeIn 0.7s ease forwards;
}

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

.hero .hero-logo,
.hero .hero-title,
.hero .hero-desc,
.hero .hero-actions,
.hero .hero-visual-group {
    opacity: 0;
    transform: translateY(20px);
}

.hero.reveal .hero-logo          { animation: reveal 0.6s ease forwards 0.05s; }
.hero.reveal .hero-title         { animation: reveal 0.6s ease forwards 0.12s; }
.hero.reveal .hero-desc          { animation: reveal 0.6s ease forwards 0.2s; }
.hero.reveal .hero-actions       { animation: reveal 0.6s ease forwards 0.28s; }
.hero.reveal .hero-visual-group  { animation: reveal 0.8s ease forwards 0.3s; }

/* Hero wordmark logo */
.hero-logo {
    margin-bottom: 2rem;
}

.hero-wordmark {
    height: 80px;
    width: auto;
    object-fit: contain;
}

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

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 4.2rem);
    margin-bottom: 1.25rem;
    background: linear-gradient(to bottom, var(--text-primary) 40%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 480px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-visual-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-base);
    box-shadow: var(--shadow-lg);
}

.hero-visual video {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: auto;
    height: auto;
    border-radius: 20px;
}

/* ─── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 6px 20px -4px var(--accent-glow);
}

.gh-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 60, 60, 0.35);
    background: var(--bg-surface);
    color: var(--text-primary);
}

.gh-btn svg { flex-shrink: 0; }

.gh-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.gh-title { font-size: 0.92rem; font-weight: 700; font-family: 'Outfit', sans-serif; }
.gh-sub   { font-size: 0.68rem; opacity: 0.7; font-family: 'Space Mono', monospace; }
.gh-accent { color: var(--accent); }

/* ─── STAT STRIP ───────────────────────────────────────────────────────────── */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-base);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 1.5rem;
}

.stat-cell {
    background: var(--bg-surface);
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ─── SECTION HEADERS ──────────────────────────────────────────────────────── */
.section-head {
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-family: 'Space Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.75rem;
}

.section-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 0.85rem;
    background: linear-gradient(to bottom, var(--text-primary) 40%, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-head p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* ─── CONTROL CENTER ───────────────────────────────────────────────────────── */
.cc {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    overflow: hidden;
}

.cc::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(60%, 400px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.cc-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 2.5rem;
    padding: 0.35rem;
    background: var(--bg-base);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-full);
}

.cc-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
}

.cc-tab svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    opacity: 0.85;
}

.cc-tab.is-active {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 14px -6px var(--accent-glow);
}

.cc-stage { position: relative; }

.cc-panel {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
    animation: ccFade 0.4s ease;
}

.cc-panel[hidden] { display: none; }

@keyframes ccFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cc-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.cc-meta .feature-badge { margin-bottom: 0; }

.feature-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 40, 40, 0.2);
}

.cc-count {
    font-family: 'Space Mono', monospace;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-base);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-full);
    padding: 3px 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cc-info h3 {
    font-size: clamp(1.4rem, 2.8vw, 1.9rem);
    line-height: 1.2;
    margin: 0.6rem 0 0.6rem;
}

.cc-info > p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    max-width: 420px;
    line-height: 1.6;
}

.toggle-list {
    list-style: none;
    display: grid;
    gap: 0.55rem 1.2rem;
    margin-top: 1.25rem;
}

.toggle-list.cols { grid-template-columns: 1fr 1fr; }

.toggle-list li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.45;
}

.toggle-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 1rem;
    height: 0.6rem;
    border-radius: 1rem;
    background:
        radial-gradient(circle at calc(100% - 0.3rem) 50%, #fff 0.17rem, transparent 0.19rem),
        var(--accent-gradient);
    box-shadow: 0 0 0 1px rgba(255, 40, 40, 0.2);
}

.cc-media {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at 50% 40%, var(--accent-soft), transparent 65%);
}

.cc-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 20px;
    border: 1px solid var(--border-base);
    box-shadow: var(--shadow-lg);
}



/* ─── FOCUS MODES ──────────────────────────────────────────────────────────── */
.focus-section {
    background:
        radial-gradient(circle at 75% 0%, var(--accent-soft), transparent 40%),
        linear-gradient(180deg, var(--bg-surface), var(--bg-base));
    border-block: 1px solid var(--border-base);
}

.fm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.fm-card {
    background: var(--bg-base);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.fm-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--accent-gradient);
    margin-bottom: 1rem;
}

.fm-icon svg { width: 20px; height: 20px; color: #fff; }

.fm-card h4 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.fm-card p  { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.55; }

/* Focus mode screenshots */
.fm-shots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.fm-shot {
    margin: 0;
    text-align: center;
}

.fm-shot img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--border-base);
    box-shadow: var(--shadow-md);
}

.fm-shot figcaption {
    margin-top: 0.85rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: 'Space Mono', monospace;
}

/* Focus stats */
.focus-stats {
    background: var(--bg-base);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2rem;
    align-items: center;
}

.fs-head .eyebrow { margin-bottom: 0.4rem; }
.fs-head p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }

.fs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.fs-cell {
    background: var(--bg-surface);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-md);
    padding: 1rem 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.fs-num {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1;
}

.fs-num.red   { color: var(--accent); }
.fs-num.amber { color: var(--amber); }
.fs-num.green { color: var(--success); }
.fs-num.blue  { color: var(--blue); }

.fs-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

/* ─── APPEARANCE ───────────────────────────────────────────────────────────── */
.appearance {
    background: var(--bg-surface);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 2rem);
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem;
    align-items: center;
}

.appearance-copy h2 {
    font-size: clamp(1.25rem, 2.5vw, 1.7rem);
    margin: 0.4rem 0;
}

.appearance-copy p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

.theme-switch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    background: var(--bg-base);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-md);
    padding: 0.35rem;
}

.ts-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 0.9rem 0.5rem;
    border-radius: 11px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
}

.ts-opt svg { width: 20px; height: 20px; }

.ts-opt.is-active {
    background: var(--accent-gradient);
    color: #fff;
}

/* ─── BROWSERS ─────────────────────────────────────────────────────────────── */
#browsers {
    padding-top: 2rem;
}

.browsers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.25rem;
}

.browser-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-base);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.browser-card.featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, var(--accent-soft), var(--bg-surface));
}

.browser-tag {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 5px;
}

.browser-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.85rem;
}

.browser-icon img { width: 100%; height: 100%; object-fit: contain; }

.browser-card h4 { margin-bottom: 0.4rem; font-size: 0.95rem; }

.browser-card .status.available { color: var(--success); font-weight: 700; font-size: 0.85rem; }
.browser-card .status.review    { color: var(--text-muted); font-style: italic; font-size: 0.85rem; }

/* ─── PRIVACY CTA ──────────────────────────────────────────────────────────── */
.premium-cta {
    text-align: center;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-base);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.premium-cta::before {
    content: "";
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
    opacity: 0.2;
    pointer-events: none;
}

.cta-actions {
    justify-content: center;
    align-items: center;
}

/* ─── FOOTER ───────────────────────────────────────────────────────────────── */
.footer {
    padding-block: 3.5rem;
    border-top: 1px solid var(--border-base);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.footer-links {
    display: flex;
    gap: 1.75rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ─── ANIMATIONS ───────────────────────────────────────────────────────────── */
@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: reveal 0.6s ease forwards;
}

/* ─── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 3rem;
        gap: 3rem;
    }

    .hero-content {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-logo {
        display: flex;
        justify-content: center;
    }

    .hero-desc {
        margin-inline: auto;
    }
}

@media (max-width: 900px) {
    .cc-panel { grid-template-columns: 1fr; }
    .cc-info  { text-align: center; }
    .cc-info > p { margin-inline: auto; }
    .toggle-list { justify-content: center; max-width: 400px; margin-inline: auto; }
    .cc-media { order: -1; }
    .focus-stats { grid-template-columns: 1fr; }
    .fs-head { text-align: center; }
    .appearance { grid-template-columns: 1fr; text-align: center; }
    .fm-shots { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.6rem; }
    .fm-grid { grid-template-columns: 1fr 1fr; }
    .fm-shots { grid-template-columns: 1fr; max-width: 280px; margin-inline: auto; }
}

@media (max-width: 560px) {
    .stat-strip { grid-template-columns: 1fr 1fr; }
    .fm-grid { grid-template-columns: 1fr; }
    .fs-grid { grid-template-columns: 1fr 1fr; }
    .toggle-list.cols { grid-template-columns: 1fr; }
}
