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

:root {
    --bg: #0d0d0d;
    --bg2: #141414;
    --bg3: #1a1a1a;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f0f0f0;
    --text2: #a0a0a0;
    --text3: #606060;
    --accent: #e8e8e8;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.1);
    --radius: 16px;
    --radius-sm: 10px;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f5f5f5;
        --bg2: #ffffff;
        --bg3: #ededec;
        --border: rgba(0, 0, 0, 0.08);
        --text: #111111;
        --text2: #555555;
        --text3: #999999;
        --accent: #111111;
        --glass: rgba(255, 255, 255, 0.7);
        --glass-border: rgba(0, 0, 0, 0.08);
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ── Nav ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    background: rgba(13, 13, 13, 0.8);
}

@media (prefers-color-scheme: light) {
    nav {
        background: rgba(245, 245, 245, 0.85);
    }
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    margin-right: auto;
}

.nav-links a {
    color: var(--text2);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

/* ── Buttons ── */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--text);
    color: var(--bg);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.15s;
    letter-spacing: -0.01em;
}

.cta-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.ghost-btn {
    color: var(--text2);
    text-decoration: none;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    transition: all 0.2s;
}

.ghost-btn:hover {
    color: var(--text);
    border-color: var(--text3);
}

.nav-cta {
    padding: 0.5rem 1.1rem;
    font-size: 0.82rem;
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 2rem 80px;
    background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(120, 120, 120, 0.12), transparent);
}

.hero-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text2);
    border: 1px solid var(--border);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    margin-bottom: 2rem;
    background: var(--glass);
    animation: fadeUp 0.6s ease both;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.6s 0.1s ease both;
}

.gradient-text {
    background: linear-gradient(135deg, #e0e0e0 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (prefers-color-scheme: light) {
    .gradient-text {
        background: linear-gradient(135deg, #111 0%, #777 100%);
        -webkit-background-clip: text;
        background-clip: text;
    }
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text2);
    max-width: 560px;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 4rem;
    animation: fadeUp 0.6s 0.3s ease both;
}

/* Browser mock */
.hero-visual {
    width: 100%;
    max-width: 820px;
    animation: fadeUp 0.8s 0.4s ease both;
}

.browser-mock {
    background: var(--bg2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
}

.browser-top {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: var(--bg3);
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.r {
    background: #ff5f57;
}

.dot.y {
    background: #febc2e;
}

.dot.g {
    background: #28c840;
}

.browser-url {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text3);
    font-family: monospace;
}

.tab-groups-demo {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
}

.tab-group {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-top: 2px solid var(--c);
    border-radius: var(--radius-sm);
    padding: 12px;
    flex: 1 1 180px;
    min-width: 150px;
}

.group-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.tab-pill {
    font-size: 0.72rem;
    color: var(--text2);
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 8px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Sections ── */
.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text3);
    margin-bottom: 1rem;
}

.features,
.how {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 2rem;
}

.features h2,
.how h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 3rem;
}

/* ── Features Grid ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(8px);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}

@media (prefers-color-scheme: light) {
    .feature-card {
        background: rgba(255, 255, 255, 0.7);
    }

    .feature-card:hover {
        background: rgba(255, 255, 255, 0.95);
    }
}

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text2);
    line-height: 1.7;
}

/* ── How it works ── */
.how {
    border-top: 1px solid var(--border);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 680px;
}

.step {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.step:last-child {
    border-bottom: none;
}

.step-num {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text3);
    padding-top: 4px;
    min-width: 28px;
}

.step-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.step-content p {
    font-size: 0.875rem;
    color: var(--text2);
    line-height: 1.7;
}

.step-content a {
    color: var(--text);
}

.center-cta {
    display: flex;
    justify-content: flex-start;
    padding-top: 3rem;
}

/* ── Footer ── */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text2);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text3);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 0.78rem;
    color: var(--text3);
}

/* ── Inner pages (privacy, TOS) ── */
.inner-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 120px 2rem 80px;
}

.inner-page h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
}

.inner-page .updated {
    font-size: 0.82rem;
    color: var(--text3);
    margin-bottom: 3rem;
}

.inner-page h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 2.5rem 0 0.75rem;
    letter-spacing: -0.02em;
}

.inner-page p,
.inner-page li {
    font-size: 0.9rem;
    color: var(--text2);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.inner-page ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.inner-page a {
    color: var(--text);
}

.callout {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-left: 3px solid #888;
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    font-size: 0.875rem;
    color: var(--text2);
    line-height: 1.7;
}

/* ── Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ── */
@media (max-width: 700px) {
    .nav-links {
        display: none;
    }

    .browser-mock {
        display: none;
    }

    .hero {
        min-height: unset;
        padding-top: 100px;
    }
}