/* =========================================================
   Kinavity — static site
   Design language inherited from nhantb.kinavity.com
   (dark canvas, violet→magenta gradient, glass surfaces)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
    --brand: #9d00ff;
    --brand-2: #f718e0;
    --brand-3: #00e5ff;

    --bg: #05030a;
    --bg-soft: #0a0712;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-2: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(157, 0, 255, 0.35);

    --text: #f4f1f8;
    --muted: #a9a2b8;
    --muted-2: #7d7690;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    --container: 1200px;
    --nav-h: 72px;

    --grad: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 100%);
    --grad-soft: linear-gradient(135deg, rgba(157, 0, 255, 0.18), rgba(247, 24, 224, 0.1));

    --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

button {
    font: inherit;
    cursor: pointer;
}

/* ---------- Ambient background ---------- */
.bg-fx {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.bg-fx__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.5;
}

.bg-fx__orb--1 {
    width: 620px;
    height: 620px;
    top: -220px;
    left: -160px;
    background: radial-gradient(circle, rgba(157, 0, 255, 0.55), transparent 70%);
}

.bg-fx__orb--2 {
    width: 540px;
    height: 540px;
    top: 38%;
    right: -200px;
    background: radial-gradient(circle, rgba(247, 24, 224, 0.4), transparent 70%);
}

.bg-fx__orb--3 {
    width: 480px;
    height: 480px;
    bottom: -180px;
    left: 30%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.22), transparent 70%);
}

.bg-fx__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.section {
    padding-block: 96px;
    position: relative;
}

.section--tight {
    padding-block: 64px;
}

.section__head {
    max-width: 760px;
    margin-bottom: 48px;
}

.section__head--center {
    margin-inline: auto;
    text-align: center;
}

.section__head h2 + p,
.section__head h3 + p {
    margin-top: 18px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(157, 0, 255, 0.1);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #e6d8ff;
    margin-bottom: 20px;
}

.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-2);
    box-shadow: 0 0 10px var(--brand-2);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.3rem, 5.4vw, 4.1rem);
}

h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.75rem);
}

h3 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 16px;
    color: var(--muted);
}

.lead {
    font-size: 1.06rem;
    color: #c7c0d6;
}

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

strong,
b {
    color: #efe9f8;
    font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.94rem;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--brand-3);
    outline-offset: 3px;
}

.btn--primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 10px 34px -12px rgba(157, 0, 255, 0.85);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -12px rgba(247, 24, 224, 0.8);
}

.btn--ghost {
    background: var(--surface);
    border-color: var(--line);
    color: var(--text);
}

.btn--ghost:hover {
    background: var(--surface-2);
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

/* ---------- Navbar ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 100;
    display: flex;
    align-items: center;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
    border-bottom: 1px solid transparent;
}

.nav.is-stuck {
    background: rgba(5, 3, 10, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--line);
}

.nav__inner {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: -0.01em;
    flex-shrink: 0;
}

.brand__mark {
    width: 32px;
    height: 32px;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav__links a {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    color: var(--muted);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav__links a:hover {
    color: var(--text);
    background: var(--surface);
}

.nav__links a.is-active {
    color: #fff;
    background: rgba(157, 0, 255, 0.18);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.lang-switch {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.lang-switch button {
    background: transparent;
    border: 0;
    color: var(--muted);
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch button:hover {
    color: var(--text);
}

.lang-switch button.is-active {
    background: var(--grad);
    color: #fff;
}

.nav__toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.nav__toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding-top: calc(var(--nav-h) + 72px);
    padding-bottom: 80px;
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero__sub {
    font-size: 1.08rem;
    max-width: 56ch;
}

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

.chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 0.8rem;
    color: #d6cfe3;
}

.chip__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22e07a;
    box-shadow: 0 0 8px #22e07a;
}

/* Hero visual: AI-DLC loop */
.hero__visual {
    position: relative;
}

.loop {
    position: relative;
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 70% 10%, rgba(157, 0, 255, 0.16), transparent 60%),
        rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.loop__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-2);
    margin-bottom: 18px;
}

.loop__badge {
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: #9ff0ff;
}

.loop__steps {
    display: grid;
    gap: 10px;
}

.loop__step {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.loop__step:hover {
    border-color: var(--line-strong);
    background: rgba(157, 0, 255, 0.08);
    transform: translateX(4px);
}

.loop__n {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--grad-soft);
    border: 1px solid var(--line-strong);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: #e7d6ff;
}

.loop__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ece6f6;
}

.loop__hint {
    display: block;
    font-size: 0.74rem;
    font-weight: 400;
    color: var(--muted-2);
}

.loop__who {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
}

.loop__who--ai {
    color: #d9b9ff;
    border-color: rgba(157, 0, 255, 0.4);
    background: rgba(157, 0, 255, 0.1);
}

.loop__who--human {
    color: #9ff0ff;
    border-color: rgba(0, 229, 255, 0.3);
    background: rgba(0, 229, 255, 0.08);
}

.loop__foot {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
    font-size: 0.78rem;
    color: var(--muted-2);
}

/* ---------- Stat strip ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--line);
}

.stat {
    padding: 28px 24px;
    background: var(--bg-soft);
}

.stat__num {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat__label {
    margin: 6px 0 0;
    font-size: 0.84rem;
    color: var(--muted);
}

/* ---------- Generic cards ---------- */
.card {
    padding: 26px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.card__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--grad-soft);
    border: 1px solid var(--line-strong);
    margin-bottom: 18px;
    color: #e3cdff;
}

.card__icon svg {
    width: 21px;
    height: 21px;
}

.card h3 {
    margin-bottom: 10px;
}

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

.card ul {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}

.card li {
    position: relative;
    padding-left: 20px;
    font-size: 0.88rem;
    color: #b9b2c8;
}

.card li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--grad);
}

.grid {
    display: grid;
    gap: 20px;
}

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

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

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

/* ---------- Problem / Solution split ---------- */
.split {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.panel {
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--bg-soft);
}

.panel--problem {
    border-color: rgba(255, 92, 92, 0.22);
    background: linear-gradient(160deg, rgba(255, 92, 92, 0.06), rgba(255, 255, 255, 0.015));
}

.panel--solution {
    border-color: var(--line-strong);
    background: linear-gradient(160deg, rgba(157, 0, 255, 0.1), rgba(255, 255, 255, 0.015));
}

.panel__tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.panel--problem .panel__tag {
    color: #ffb3b3;
    background: rgba(255, 92, 92, 0.12);
    border: 1px solid rgba(255, 92, 92, 0.3);
}

.panel--solution .panel__tag {
    color: #e3cdff;
    background: rgba(157, 0, 255, 0.14);
    border: 1px solid var(--line-strong);
}

.panel h3 {
    font-size: 1.32rem;
    margin-bottom: 14px;
}

.checklist {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.checklist li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    font-size: 0.92rem;
    color: #b9b2c8;
}

.checklist li svg {
    width: 20px;
    height: 20px;
    margin-top: 3px;
}

.panel--problem .checklist li svg {
    color: #ff7a7a;
}

.panel--solution .checklist li svg {
    color: #b36bff;
}

/* ---------- AI-DLC phases ---------- */
.phases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    counter-reset: phase;
}

.phase {
    position: relative;
    padding: 28px 26px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--bg-soft);
    overflow: hidden;
}

.phase::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: var(--grad);
    opacity: 0.8;
}

.phase__n {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--muted-2);
    text-transform: uppercase;
}

.phase h3 {
    margin: 10px 0 12px;
    font-size: 1.28rem;
}

.phase p {
    font-size: 0.9rem;
}

.phase__io {
    margin-top: 18px;
    display: grid;
    gap: 10px;
    font-size: 0.82rem;
}

.phase__io div {
    display: grid;
    grid-template-columns: 62px 1fr;
    gap: 10px;
    align-items: start;
}

.phase__io dt,
.phase__io span:first-child {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-2);
    padding-top: 2px;
}

.phase__io span:last-child {
    color: #b9b2c8;
}

/* ---------- How we operationalise (table) ---------- */
.table-wrap {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-soft);
}

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

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

th,
td {
    text-align: left;
    padding: 16px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

thead th {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted-2);
    background: rgba(255, 255, 255, 0.03);
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: rgba(157, 0, 255, 0.05);
}

td:first-child {
    color: #ece6f6;
    font-weight: 600;
}

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

.tick {
    color: #b36bff;
    font-weight: 700;
}

/* ---------- Products ---------- */
.product {
    display: grid;
    gap: 14px;
}

.product__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.badge {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--muted);
    white-space: nowrap;
}

.badge--live {
    color: #7bf3b0;
    border-color: rgba(34, 224, 122, 0.35);
    background: rgba(34, 224, 122, 0.1);
}

.badge--beta {
    color: #9ff0ff;
    border-color: rgba(0, 229, 255, 0.32);
    background: rgba(0, 229, 255, 0.08);
}

.badge--rnd {
    color: #e3cdff;
    border-color: var(--line-strong);
    background: rgba(157, 0, 255, 0.1);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tags span {
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(157, 0, 255, 0.28);
    background: rgba(157, 0, 255, 0.08);
    font-size: 0.76rem;
    color: #ded4f0;
}

/* ---------- Case study ---------- */
.case {
    display: grid;
    grid-template-columns: 1fr 0.78fr;
    gap: 28px;
    padding: 34px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 92% 0%, rgba(157, 0, 255, 0.14), transparent 55%),
        var(--bg-soft);
}

.case h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.case__url {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--brand-2);
    margin-bottom: 18px;
    display: inline-block;
}

.case__url:hover {
    text-decoration: underline;
}

.metrics {
    display: grid;
    gap: 12px;
    align-content: start;
}

.metric {
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.metric__val {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.metric__val em {
    font-style: normal;
    font-size: 0.9rem;
    color: #7bf3b0;
    margin-left: 6px;
}

.metric__key {
    font-size: 0.78rem;
    color: var(--muted-2);
    margin: 2px 0 0;
}

/* ---------- Stack ---------- */
.stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stack__group {
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
}

.stack__group h3 {
    font-size: 0.95rem;
    margin-bottom: 14px;
    color: #ece6f6;
}

/* ---------- Timeline ---------- */
.timeline {
    display: grid;
    gap: 0;
    position: relative;
}

.tl {
    display: grid;
    grid-template-columns: 136px 1fr;
    gap: 28px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.timeline .tl:last-child {
    border-bottom: 0;
}

.tl__when {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--brand-2);
    padding-top: 2px;
}

.tl h3 {
    font-size: 1.08rem;
    margin-bottom: 8px;
}

.tl p {
    font-size: 0.9rem;
    margin: 0;
}

/* ---------- Team ---------- */
.team {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
}

.founder {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 20px;
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    background: linear-gradient(150deg, rgba(157, 0, 255, 0.1), rgba(255, 255, 255, 0.02));
    align-items: start;
}

.founder__avatar {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: var(--grad-soft);
}

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

.founder h3 {
    font-size: 1.22rem;
    margin-bottom: 4px;
}

.founder__role {
    font-size: 0.86rem;
    color: var(--brand-2);
    margin-bottom: 12px;
}

.founder__links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.icon-link {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--muted);
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.icon-link:hover {
    color: #fff;
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.icon-link svg {
    width: 17px;
    height: 17px;
}

/* ---------- CTA ---------- */
.cta {
    position: relative;
    padding: 56px 44px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    background:
        radial-gradient(circle at 15% 15%, rgba(157, 0, 255, 0.22), transparent 55%),
        radial-gradient(circle at 85% 85%, rgba(247, 24, 224, 0.18), transparent 55%),
        var(--bg-soft);
    text-align: center;
    overflow: hidden;
}

.cta h2 {
    margin-bottom: 14px;
}

.cta p {
    max-width: 58ch;
    margin-inline: auto;
}

.cta .btn-row {
    justify-content: center;
}

.contact-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 28px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px dashed var(--line);
    font-size: 0.88rem;
    color: var(--muted);
}

.contact-list a:hover {
    color: #fff;
}

.contact-list strong {
    color: var(--muted-2);
    font-weight: 500;
    margin-right: 6px;
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--line);
    padding-block: 40px;
    margin-top: 40px;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--muted-2);
}

.footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.84rem;
}

.footer__nav a {
    color: var(--muted);
}

.footer__nav a:hover {
    color: #fff;
}

.credit {
    margin-top: 18px;
    font-size: 0.76rem;
    color: var(--muted-2);
}

.credit a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

/* Skip link */
.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    padding: 12px 20px;
    background: var(--brand);
    color: #fff;
    border-radius: 0 0 10px 0;
}

.skip:focus {
    left: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .hero__grid,
    .team,
    .case {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 860px) {
    .nav__links {
        position: fixed;
        inset: var(--nav-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 16px 24px 24px;
        background: rgba(5, 3, 10, 0.97);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--line);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
    }

    .nav__links.is-open {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .nav__links a {
        padding: 12px 14px;
        font-size: 0.95rem;
        border-radius: 12px;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__actions {
        margin-left: auto;
    }
}

@media (max-width: 720px) {
    .section {
        padding-block: 68px;
    }

    .hero {
        padding-top: calc(var(--nav-h) + 48px);
    }

    .split,
    .grid--2,
    .grid--3,
    .grid--4,
    .phases,
    .stack {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .tl {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .founder {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: 38px 24px;
    }

    .case {
        padding: 26px 22px;
    }

    .container {
        padding-inline: 18px;
    }

    /* Let the Bolt steps breathe: actor chip drops to its own row */
    .loop {
        padding: 20px 18px;
    }

    .loop__step {
        grid-template-columns: 34px 1fr;
    }

    .loop__who {
        grid-column: 2;
        justify-self: start;
    }
}

/* ---------- Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media print {
    .bg-fx,
    .nav,
    .nav__toggle {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .card,
    .panel,
    .phase,
    .cta,
    .case {
        border-color: #ccc;
        background: #fff;
    }

    p,
    td,
    li {
        color: #222;
    }
}
