:root {
    --bg: #070b18;
    --bg-2: #0b1020;
    --surface: rgba(255, 255, 255, 0.075);
    --surface-strong: rgba(255, 255, 255, 0.12);
    --border: rgba(255, 255, 255, 0.14);
    --text: #edf2ff;
    --muted: #a8b3cf;
    --muted-2: #7d8aad;
    --primary: #7c3aed;
    --secondary: #06b6d4;
    --accent: #22c55e;
    --danger: #fb7185;
    --warning: #fbbf24;
    --radius: 24px;
    --radius-sm: 16px;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
    --container: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 5%, rgba(124, 58, 237, 0.35), transparent 34rem),
        radial-gradient(circle at 88% 12%, rgba(6, 182, 212, 0.2), transparent 28rem),
        linear-gradient(180deg, #070b18 0%, #0b1020 48%, #070b18 100%);
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black, transparent 75%);
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    color: #06101f;
    background: #fff;
    border-radius: 999px;
}

.skip-link:focus {
    top: 1rem;
}

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

.container.narrow {
    width: min(100% - 32px, 860px);
}

.section-pad {
    padding: 96px 0;
}

.section-pad.compact {
    padding: 40px 0 72px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 11, 24, 0.72);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

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

.site-nav a {
    padding: 10px 14px;
    color: var(--muted);
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text);
    background: rgba(255,255,255,0.08);
}

.site-nav .nav-cta {
    color: #07111f;
    background: linear-gradient(135deg, var(--secondary), #7dd3fc);
    margin-left: 8px;
}

.site-nav .nav-cta:hover {
    color: #07111f;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    border-radius: 999px;
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 56px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 12px;
    border: 1px solid rgba(125, 211, 252, 0.26);
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.1);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero h1,
.section-heading h2,
.split-card h2,
.roadmap-grid h2,
.security-grid h2,
.cta-card h2,
.legal-hero h1,
.dashboard-hero h1 {
    margin: 18px 0 0;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(3rem, 8vw, 6.4rem);
}

.lead {
    max-width: 720px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: clamp(1.06rem, 1.7vw, 1.28rem);
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #07111f;
    background: linear-gradient(135deg, #22d3ee, #a78bfa 58%, #f0abfc);
    box-shadow: 0 18px 44px rgba(124, 58, 237, 0.28);
}

.btn-secondary {
    color: #06101f;
    background: linear-gradient(135deg, #86efac, #67e8f9);
    margin-top: 22px;
}

.btn-ghost {
    color: var(--text);
    border-color: var(--border);
    background: rgba(255,255,255,0.06);
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.trust-row span {
    padding: 8px 12px;
    color: #dbeafe;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
}

.hero-panel,
.dashboard-mock,
.dash-panel,
.split-card,
.cta-card,
.stat-card,
.dash-sidebar {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.045));
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -20% -35% 15%;
    height: 180px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.32), transparent 70%);
    pointer-events: none;
}

.panel-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 20px;
    color: var(--muted);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.panel-top strong {
    margin-left: 10px;
    color: var(--text);
    font-size: 0.9rem;
}

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

.dot.red { background: #fb7185; }
.dot.amber { background: #fbbf24; }
.dot.green { background: #34d399; }

.terminal-lines {
    padding: 22px;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.terminal-lines p {
    margin: 0;
    padding: 9px 0;
    color: #c7d2fe;
    border-bottom: 1px dashed rgba(255,255,255,0.09);
    font-size: 0.94rem;
}

.terminal-lines span {
    display: inline-block;
    width: 28px;
    color: #67e8f9;
    font-weight: 900;
}

.metric-strip {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.08);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.metric-strip div {
    padding: 20px;
    background: rgba(7,11,24,0.58);
}

.metric-strip strong {
    display: block;
    font-size: 1.25rem;
}

.metric-strip small {
    display: block;
    color: var(--muted);
}

.split-card,
.cta-card {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 28px;
    align-items: center;
    border-radius: var(--radius);
    padding: 34px;
}

.split-card p,
.cta-card p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 46px;
    text-align: center;
}

.section-heading.align-left {
    margin-inline: 0;
    text-align: left;
}

.section-heading h2,
.split-card h2,
.roadmap-grid h2,
.security-grid h2,
.cta-card h2 {
    font-size: clamp(2.2rem, 4vw, 4.3rem);
}

.section-heading p,
.roadmap-grid p,
.security-grid p,
.legal-hero p,
.dashboard-hero p {
    color: var(--muted);
    font-size: 1.05rem;
}

.pipeline-grid,
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.pipeline-card,
.feature-card {
    min-height: 240px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.055);
    transition: 0.2s ease;
}

.pipeline-card:hover,
.feature-card:hover,
.stat-card:hover,
.dash-panel:hover {
    transform: translateY(-3px);
    border-color: rgba(125, 211, 252, 0.34);
}

.pipeline-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 28px;
    color: #06101f;
    background: linear-gradient(135deg, #67e8f9, #a78bfa);
    border-radius: 14px;
    font-weight: 900;
}

.pipeline-card h3,
.feature-card h3 {
    margin: 0 0 12px;
    font-size: 1.3rem;
}

.pipeline-card p,
.feature-card p {
    margin: 0;
    color: var(--muted);
}

.section-dark {
    background: linear-gradient(180deg, rgba(124,58,237,0.11), rgba(6,182,212,0.06));
    border-block: 1px solid rgba(255,255,255,0.08);
}

.section-soft {
    background: rgba(255,255,255,0.035);
}

.icon-box {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 28px;
    border-radius: 14px;
    background: rgba(34, 197, 94, 0.14);
    color: #86efac;
    border: 1px solid rgba(134,239,172,0.24);
    font-weight: 900;
}

.dashboard-grid,
.roadmap-grid,
.security-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 42px;
    align-items: center;
}

.check-list {
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin: 12px 0;
    color: var(--muted);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #67e8f9);
    box-shadow: 0 0 0 4px rgba(34,197,94,0.1);
}

.check-list.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
}

.dashboard-mock {
    border-radius: var(--radius);
    overflow: hidden;
}

.mock-header,
.mock-row,
.panel-heading,
.job-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.mock-header {
    padding: 18px 22px;
    background: rgba(255,255,255,0.07);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mock-row {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 10px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(148, 163, 184, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.22);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.status-ready,
.status-ready-to-publish,
.status-published {
    color: #bbf7d0;
    background: rgba(34,197,94,0.12);
    border-color: rgba(34,197,94,0.28);
}

.status-processing,
.status-clipper-processing {
    color: #bae6fd;
    background: rgba(6,182,212,0.12);
    border-color: rgba(6,182,212,0.28);
}

.status-queued {
    color: #fde68a;
    background: rgba(251,191,36,0.12);
    border-color: rgba(251,191,36,0.28);
}

.status-failed {
    color: #fecdd3;
    background: rgba(244,63,94,0.12);
    border-color: rgba(244,63,94,0.28);
}

.mock-code {
    display: grid;
    gap: 10px;
    padding: 22px;
    color: #c4b5fd;
    font-size: 0.9rem;
}

code {
    color: #bae6fd;
    word-break: break-word;
}

.architecture {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.architecture div {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(255,255,255,0.07);
    font-weight: 800;
}

.architecture span {
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 999px;
}

.timeline {
    display: grid;
    gap: 16px;
}

.timeline-item {
    position: relative;
    padding: 22px 22px 22px 58px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.055);
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 22px;
    top: 25px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.timeline-item p {
    margin: 6px 0 0;
    color: var(--muted);
}

.security-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.security-list div {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.055);
}

.security-list strong,
.security-list span {
    display: block;
}

.security-list span {
    margin-top: 8px;
    color: var(--muted);
}

.cta-card {
    grid-template-columns: 1.2fr 0.8fr;
    background:
        radial-gradient(circle at 0% 0%, rgba(34,211,238,0.24), transparent 28rem),
        linear-gradient(135deg, rgba(124,58,237,0.22), rgba(255,255,255,0.05));
}

.cta-actions {
    justify-content: flex-end;
    margin-top: 0;
}

.site-footer {
    padding: 58px 0 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.18);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 34px;
}

.footer-brand {
    margin-bottom: 16px;
}

.site-footer p,
.site-footer span,
.site-footer a {
    color: var(--muted);
}

.site-footer h3 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.site-footer a {
    display: block;
    margin: 9px 0;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.92rem;
}

.legal-hero,
.dashboard-hero {
    padding-bottom: 44px;
}

.legal-hero h1,
.dashboard-hero h1 {
    font-size: clamp(3rem, 7vw, 5.8rem);
}

.legal-content {
    padding-top: 16px;
}

.legal-content .narrow {
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.055);
}

.legal-content h2 {
    margin-top: 34px;
    margin-bottom: 10px;
    font-size: 1.35rem;
}

.legal-content p,
.legal-content li {
    color: var(--muted);
}

.legal-content a {
    color: #7dd3fc;
    font-weight: 800;
}

.dashboard-page {
    padding-top: 28px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    padding: 24px;
    border-radius: var(--radius-sm);
}

.stat-card span {
    color: var(--muted);
    font-weight: 800;
}

.stat-card strong {
    display: block;
    margin: 12px 0 2px;
    font-size: 2.2rem;
    letter-spacing: -0.06em;
}

.stat-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.dash-sidebar {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: var(--radius-sm);
}

.dash-sidebar strong {
    margin-bottom: 6px;
}

.dash-sidebar a {
    padding: 10px 12px;
    color: var(--muted);
    border-radius: 12px;
}

.dash-sidebar a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.07);
}

.dash-main {
    display: grid;
    gap: 24px;
}

.dash-panel {
    padding: 24px;
    border-radius: var(--radius);
}

.panel-heading {
    margin-bottom: 22px;
}

.panel-heading h2 {
    margin: 8px 0 0;
    font-size: 1.65rem;
}

.mini-btn {
    border: 1px solid rgba(125,211,252,0.28);
    border-radius: 999px;
    padding: 10px 14px;
    color: #dff7ff;
    background: rgba(6,182,212,0.13);
    cursor: pointer;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
}

.form-grid input {
    width: 100%;
    padding: 12px 14px;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(0,0,0,0.18);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th,
td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

th {
    color: #dbeafe;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

td {
    color: var(--muted);
}

.job-list {
    display: grid;
    gap: 12px;
}

.job-list article,
.prompt-grid article {
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    background: rgba(0,0,0,0.12);
}

.job-list span {
    color: var(--muted);
}

.prompt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.prompt-grid p {
    color: var(--muted);
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.12s;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn:hover,
    .pipeline-card:hover,
    .feature-card:hover,
    .stat-card:hover,
    .dash-panel:hover { transform: none; }
}

@media (max-width: 980px) {
    .section-pad { padding: 72px 0; }
    .hero-grid,
    .dashboard-grid,
    .roadmap-grid,
    .security-grid,
    .split-card,
    .cta-card {
        grid-template-columns: 1fr;
    }
    .pipeline-grid,
    .feature-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cta-actions {
        justify-content: flex-start;
    }
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .dash-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: inline-block;
    }
    .site-nav {
        position: fixed;
        inset: 76px 16px auto 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid var(--border);
        border-radius: 22px;
        background: rgba(7, 11, 24, 0.96);
        box-shadow: var(--shadow);
    }
    body.nav-open .site-nav {
        display: flex;
    }
    .site-nav .nav-cta {
        margin-left: 0;
        text-align: center;
    }
    .hero h1 {
        font-size: clamp(2.7rem, 14vw, 4.4rem);
    }
    .pipeline-grid,
    .feature-grid,
    .stats-grid,
    .security-list,
    .form-grid,
    .prompt-grid,
    .check-list.two-col,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .metric-strip {
        grid-template-columns: 1fr;
    }
    .mock-header,
    .mock-row,
    .panel-heading,
    .job-list article,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
    .split-card,
    .cta-card,
    .legal-content .narrow,
    .dash-panel {
        padding: 22px;
    }
}
