:root {
    --bg: #070b14;
    --bg-soft: #0d1422;
    --bg-card: rgba(22, 30, 46, 0.76);
    --bg-card-strong: rgba(27, 38, 59, 0.92);
    --text: #f4f7fb;
    --muted: #9ca9bb;
    --muted-strong: #c4cede;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.18);
    --teal: #18c2b4;
    --blue: #5c8df6;
    --amber: #f0b36b;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    --radius: 8px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 14% 8%, rgba(24, 194, 180, 0.12), transparent 24rem),
        radial-gradient(circle at 92% 12%, rgba(92, 141, 246, 0.13), transparent 22rem),
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        var(--bg);
    background-size: auto, auto, 42px 42px, 42px 42px, auto;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
}

p,
h1,
h2,
h3 {
    margin-top: 0;
}

p {
    color: var(--muted-strong);
}

.skip-link {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 999;
    transform: translateY(-150%);
    background: var(--text);
    color: var(--bg);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-weight: 700;
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 11, 20, 0.84);
    backdrop-filter: blur(18px);
}

.navbar {
    width: min(100%, var(--max));
    margin: 0 auto;
    min-height: 76px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 760;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(24, 194, 180, 0.44);
    border-radius: var(--radius);
    color: var(--teal);
    background: rgba(24, 194, 180, 0.08);
    font-size: 0.82rem;
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 650;
    transition: color 180ms ease;
}

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

.nav-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

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

.container {
    width: min(100% - 3rem, var(--max));
    margin: 0 auto;
}

.section-shell {
    padding: 6.5rem 0;
    scroll-margin-top: 88px;
}

.hero-section {
    min-height: calc(100vh - 76px);
    display: grid;
    align-items: center;
    padding-top: 3.25rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 3.5rem;
    align-items: center;
}

.eyebrow {
    margin-bottom: 0.95rem;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    color: var(--text);
    letter-spacing: 0;
}

h1 {
    max-width: 820px;
    margin-bottom: 1.35rem;
    font-size: clamp(2.65rem, 7vw, 5.5rem);
    line-height: 0.97;
    font-weight: 850;
}

.hero-copy h1 {
    max-width: 720px;
    margin-bottom: 0.9rem;
    font-size: clamp(2.55rem, 5.4vw, 4.35rem);
    line-height: 1.04;
}

h2 {
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 1.05;
    font-weight: 800;
}

h3 {
    font-size: 1.08rem;
    line-height: 1.24;
}

.hero-lede {
    max-width: 760px;
    margin-bottom: 1.6rem;
    font-size: clamp(1.02rem, 1.5vw, 1.15rem);
    color: var(--muted-strong);
}

.hero-subtitle {
    margin-bottom: 1rem;
    color: var(--text);
    font-size: clamp(1.08rem, 1.8vw, 1.28rem);
    font-weight: 720;
}

.hero-statement {
    max-width: 720px;
    margin-bottom: 1.8rem;
    border-left: 3px solid var(--teal);
    padding: 1rem 1.15rem;
    background: rgba(24, 194, 180, 0.06);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.hero-statement p {
    margin: 0;
    color: var(--text);
    font-weight: 650;
}

.hero-actions,
.interview-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.75rem 1.1rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 780;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

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

.btn-primary {
    background: var(--teal);
    color: #041112;
}

.btn-secondary {
    border-color: rgba(24, 194, 180, 0.4);
    background: rgba(24, 194, 180, 0.06);
    color: var(--text);
}

.hero-panel,
.disclosure-card,
.interview-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.86), rgba(12, 19, 32, 0.94));
    box-shadow: var(--shadow);
}

.hero-panel {
    overflow: hidden;
}

.panel-header {
    padding: 1.55rem;
    border-bottom: 1px solid var(--line);
}

.panel-header h2 {
    margin-bottom: 0;
    font-size: 1.55rem;
    line-height: 1.18;
}

.panel-kicker {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 760;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.signal-list {
    padding: 1.55rem;
}

.signal-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.signal-row:first-child {
    padding-top: 0;
}

.signal-row span {
    color: var(--muted);
}

.signal-row strong {
    max-width: 14rem;
    text-align: right;
    font-size: 0.95rem;
}

.panel-note {
    margin: 0;
    border-top: 1px solid var(--line);
    padding: 1.55rem;
    color: var(--text);
    background: rgba(24, 194, 180, 0.055);
}

.centered-section {
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(30, 41, 59, 0.18), transparent);
}

.narrow {
    max-width: 880px;
}

.narrow p {
    margin-bottom: 0;
    font-size: 1.08rem;
}

#why h2 {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(1.9rem, 3.4vw, 2.75rem);
    line-height: 1.14;
}

#why .narrow p {
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
}

#why .narrow p + p {
    margin-top: 1rem;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    gap: 3rem;
    align-items: start;
}

.section-intro p,
.section-heading p {
    max-width: 700px;
    margin-bottom: 0;
}

.section-heading {
    margin-bottom: 2rem;
}

#role .section-intro h2 {
    font-size: clamp(1.85rem, 3.1vw, 2.65rem);
    line-height: 1.12;
}

.compact-heading {
    max-width: 820px;
}

.role-grid,
.proof-list,
.use-case-grid,
.link-grid {
    display: grid;
    gap: 1rem;
}

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

.mini-card,
.use-card,
.proof-item,
.link-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.mini-card {
    min-height: 6rem;
    padding: 1.2rem;
    color: var(--muted-strong);
    font-weight: 720;
}

.wide-card {
    grid-column: 1 / -1;
}

.mini-card:hover,
.use-card:hover,
.link-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    background: var(--bg-card-strong);
}

.workflow-section {
    background: rgba(30, 41, 59, 0.18);
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.workflow-card {
    grid-column: span 2;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(17, 25, 40, 0.72);
    overflow: hidden;
    transition: border-color 180ms ease, background 180ms ease;
}

.workflow-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(17, 25, 40, 0.82);
}

.workflow-trigger {
    width: 100%;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    color: var(--text);
    text-align: left;
}

.step-number,
.card-index {
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 820;
}

.workflow-content {
    max-height: 18rem;
    overflow: visible;
    opacity: 1;
    padding: 0 1.25rem 1.25rem;
    transition: opacity 180ms ease, padding 220ms ease;
}

.workflow-content p {
    margin: 0;
    font-size: 0.95rem;
}

.use-case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#use-cases .use-case-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.use-card {
    min-height: 16rem;
    padding: 1.5rem;
}

.use-card h3 {
    margin: 0.8rem 0 0.85rem;
}

.use-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

@media (max-width: 1180px) {
    #use-cases .use-case-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.proof-section {
    background: linear-gradient(180deg, transparent, rgba(92, 141, 246, 0.08), transparent);
}

.proof-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#proves .section-intro h2 {
    font-size: clamp(1.85rem, 3.1vw, 2.65rem);
    line-height: 1.12;
}

.proof-item {
    padding: 1.1rem 1.2rem;
    color: var(--text);
    font-weight: 720;
    border-left: 3px solid var(--teal);
}

.links-section {
    text-align: left;
}

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

.link-card {
    min-height: 10rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
}

.link-card span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.link-card strong {
    font-size: 1.35rem;
    line-height: 1.22;
}

.disclosure-card {
    padding: 1.5rem;
}

.disclosure-card p:last-child {
    margin-bottom: 0;
}

.interview-section {
    padding-bottom: 7.5rem;
}

.interview-panel {
    padding: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
}

.interview-panel h2 {
    margin-bottom: 1rem;
}

.interview-panel p:last-child {
    margin-bottom: 0;
}

@media (max-width: 980px) {
    .hero-grid,
    .two-column,
    .interview-panel {
        grid-template-columns: 1fr;
    }

    .hero-section {
        min-height: auto;
    }

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

    .workflow-card {
        grid-column: span 1;
    }

    .use-case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .navbar {
        min-height: 68px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 68px;
        right: 1rem;
        left: 1rem;
        display: grid;
        gap: 0;
        padding: 0.6rem;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: rgba(7, 11, 20, 0.96);
        box-shadow: var(--shadow);
        transform: translateY(-1rem);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    }

    body.nav-open .nav-links {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links a {
        display: block;
        padding: 0.8rem;
    }

    .container {
        width: min(100% - 2rem, var(--max));
    }

    .section-shell {
        padding: 4.5rem 0;
        scroll-margin-top: 76px;
    }

    .role-grid,
    .workflow-grid,
    .use-case-grid,
    .proof-list,
    .link-grid {
        grid-template-columns: 1fr;
    }

    #use-cases .use-case-grid {
        grid-template-columns: 1fr;
    }

    .signal-row {
        display: grid;
    }

    .signal-row strong {
        max-width: none;
        text-align: left;
    }

    .interview-actions,
    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

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