/* Self-hosted fonts (latin + latin-ext). No requests to Google. */
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/inter-latin-ext-749a30.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/inter-latin-1ab1ad.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/inter-latin-ext-749a30.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/inter-latin-1ab1ad.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/inter-latin-ext-749a30.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../assets/fonts/inter-latin-1ab1ad.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/inter-tight-latin-ext-8a39ba.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/inter-tight-latin-6c70c7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/inter-tight-latin-ext-8a39ba.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/inter-tight-latin-6c70c7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/jetbrains-mono-latin-ext-1483a6.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/jetbrains-mono-latin-559371.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/playfair-display-latin-ext-2f2aad.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/playfair-display-latin-652516.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* LVW — AI automations. Black canvas, hairline borders, one violet accent for code. */
:root {
  --black: #000000;
  --line: #292d30;
  --white: #ffffff;
  --bone: #f0f0f0;
  --ash: #a1a4a5;
  --smoke: #abafb4;
  --iron: #8b9097;
  --charcoal: #464a4d;
  --violet: #9281f7;
  --violet-glow: #baa7ff;
  --violet-grad: linear-gradient(135deg, #9281f7 0%, #9a54dc 100%);
  --blue: #3b9eff;
  --sky: #70b8ff;
  --green: #3ad389;
  --red: #ff9592;
  --amber: #ffca16;
  --lift: #0b0e14;

  --serif: "Playfair Display", "Tiempos Headline", Georgia, serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-sm: 6px;
  --r-lg: 16px;
  --max: 1200px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
code, .mono { font-family: var(--mono); }
::selection { background: rgba(146, 129, 247, .35); color: var(--white); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease-out;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.nav-links a:not(.btn) { color: var(--bone); transition: color .15s ease-out; }
.nav-links a:not(.btn):hover { color: var(--white); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--white); border-radius: var(--r-sm); padding: 8px 12px; font: 500 14px var(--sans); cursor: pointer; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: transparent;
  color: var(--white); font: 500 14px/1 var(--sans);
  transition: border-color .15s ease-out, background-color .15s ease-out;
  white-space: nowrap;
}
.btn:hover { border-color: rgba(255, 255, 255, .6); }
.btn.solid { background: var(--white); color: var(--black); border-color: var(--white); }
.btn.solid:hover { background: var(--bone); }
.btn.sm { padding: 8px 14px; }
.chev { display: inline-block; transition: transform .15s ease-out; }
a:hover .chev { transform: translateX(3px); }
.link { color: var(--bone); font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }
.link:hover { color: var(--white); }

/* ---------- Type ---------- */
.eyebrow { font: 400 12px/1.33 var(--mono); color: var(--ash); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 16px; }
h1, h2, h3 { color: var(--white); margin: 0; font-weight: 400; }
.display {
  font-family: var(--serif);
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 1.02; letter-spacing: -0.01em;
}
.h2 {
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.1; letter-spacing: -0.04em;
}
.h3 { font-family: var(--display); font-size: 24px; line-height: 1.3; letter-spacing: -0.02em; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ash); max-width: 620px; }
.muted { color: var(--ash); }
.violet { color: var(--violet); }

/* ---------- Sections ---------- */
section { padding: 96px 0; scroll-margin-top: 64px; }
.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head .lead { margin-top: 20px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 9999px;
  padding: 6px 12px; font-size: 13px; color: var(--bone);
  margin-bottom: 32px; transition: border-color .15s ease-out;
}
.pill:hover { border-color: rgba(255, 255, 255, .5); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.pill .chev { color: var(--violet-glow); }
.hero .lead { margin: 28px 0 36px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.fade { opacity: 0; transform: translateY(14px); animation: fadeUp .7s ease-out forwards; }
.fade.d1 { animation-delay: .08s; } .fade.d2 { animation-delay: .16s; } .fade.d3 { animation-delay: .24s; } .fade.d4 { animation-delay: .32s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Hero cube: wireframe, hairline edges, slow rotation */
.cube-stage { display: flex; justify-content: center; align-items: center; height: 420px; perspective: 1100px; }
.cube { position: relative; width: 210px; height: 210px; transform-style: preserve-3d; animation: spin 26s linear infinite; }
.cube .face {
  position: absolute; inset: 0;
  border: 1px solid #3a3f43;
  background: linear-gradient(rgba(27, 27, 27, .92), rgba(3, 3, 3, .96));
  display: grid; place-items: center;
  font: 400 12px/1.4 var(--mono); color: var(--iron);
  backface-visibility: visible;
}
.cube .face.f1 { transform: translateZ(105px); }
.cube .face.f2 { transform: rotateY(180deg) translateZ(105px); }
.cube .face.f3 { transform: rotateY(90deg) translateZ(105px); }
.cube .face.f4 { transform: rotateY(-90deg) translateZ(105px); }
.cube .face.f5 { transform: rotateX(90deg) translateZ(105px); }
.cube .face.f6 { transform: rotateX(-90deg) translateZ(105px); }
.cube .face b { font-weight: 400; color: var(--bone); }
@keyframes spin { from { transform: rotateX(-22deg) rotateY(0deg); } to { transform: rotateX(-22deg) rotateY(360deg); } }

/* ---------- Principle strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; }
.strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.strip .cell { padding: 28px 24px; font: 400 14px/1.43 var(--mono); color: var(--ash); border-left: 1px solid var(--line); }
.strip .cell:first-child { border-left: 0; padding-left: 0; }
.strip .cell b { display: block; font-weight: 400; color: var(--white); margin-bottom: 4px; }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; background: var(--black); }

/* ---------- Case study ---------- */
.case { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.case + .case { margin-top: 32px; }
.case-top { display: grid; grid-template-columns: 1fr 1fr; }
.case-text { padding: 40px; border-right: 1px solid var(--line); }
.case-text .h3 { margin: 12px 0 16px; font-size: 32px; letter-spacing: -0.03em; }
.case-text p { color: var(--ash); margin: 0 0 16px; }
.repo-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 400 13px var(--mono); color: var(--ash); }
.tag { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px 8px; font: 400 12px var(--mono); color: var(--ash); }
.case-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.case-code { padding: 24px; background: var(--black); min-width: 0; }

.steps { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--bone); align-items: baseline; }
.steps .n { font: 400 12px var(--mono); color: var(--iron); }
.steps .by { font: 400 12px var(--mono); color: var(--ash); }
.steps .by.person { color: var(--white); }
.steps .by.person::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: 1px; }

.case-bottom { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); }
.guard { padding: 24px 28px; border-left: 1px solid var(--line); }
.guard:first-child { border-left: 0; }
.guard b { display: block; font: 500 14px var(--sans); color: var(--white); margin-bottom: 6px; }
.guard span { font-size: 14px; line-height: 1.5; color: var(--ash); }


/* ---------- Terminal ---------- */
.term { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--charcoal); }
.term-bar span { margin-left: 8px; font: 400 12px var(--mono); color: var(--iron); }
.term pre { margin: 0; padding: 20px; font: 400 13px/1.7 var(--mono); color: var(--bone); overflow-x: auto; flex: 1; white-space: pre; }
.t-p { color: var(--iron); user-select: none; }
.t-c { color: #9a9ea4; }
.t-s { color: var(--violet); }
.t-f { color: var(--sky); }
.t-ok { color: var(--green); }
.t-err { color: var(--red); }
.t-w { color: var(--amber); }
.t-m { color: var(--ash); }

/* ---------- Principles grid ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.principle .icon {
  width: 40px; height: 40px; border-radius: 12px; background: var(--violet-grad);
  box-shadow: rgba(176, 199, 217, .145) 0 0 0 1px;
  display: grid; place-items: center; margin-bottom: 24px;
}
.principle .icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.principle h3 { margin-bottom: 10px; }
.principle p { margin: 0; color: var(--ash); }
.principle code { color: var(--violet); font-size: 14px; }

/* ---------- Use cases ---------- */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.use { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.use .k { font: 400 12px var(--mono); color: var(--iron); }
.use h3 { font: 500 17px/1.35 var(--sans); color: var(--white); margin: 12px 0 8px; letter-spacing: -0.01em; }
.use p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ash); }
.use .io { margin-top: 14px; font: 400 12px/1.5 var(--mono); color: var(--ash); }
.use .io em { font-style: normal; color: var(--violet); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.process .card { padding: 28px; }
.process .num { font: 400 12px var(--mono); color: var(--violet); }
.process h3 { font: 500 18px/1.35 var(--sans); color: var(--white); margin: 16px 0 10px; }
.process p { margin: 0; font-size: 14px; color: var(--ash); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 24px; font: 500 17px/1.4 var(--sans); color: var(--white); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px/1 var(--mono); color: var(--ash); transition: transform .15s ease-out; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ash); max-width: 720px; }

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--line); padding: 112px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact .display { font-size: clamp(40px, 5.4vw, 72px); }
.contact-intro .lead { margin: 24px 0 32px; }
.contact-points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-points li { padding: 14px 0 14px 22px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--bone); position: relative; }
.contact-points li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.mail { font: 400 14px var(--mono); color: var(--violet); }
.mail:hover { color: var(--violet-glow); }

.form-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font: 500 14px var(--sans); color: var(--bone); padding: 0; }
.field legend { margin-bottom: 8px; }
.opt { font: 400 12px var(--mono); color: var(--iron); margin-left: 6px; }
.form input[type=text], .form input[type=email], .form select, .form textarea {
  width: 100%; background: var(--black); color: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; font: 400 16px/1.4 var(--sans);
  transition: border-color .15s ease-out;
  -webkit-appearance: none; appearance: none;
}
.form textarea { resize: vertical; min-height: 128px; }
.form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a1a4a5' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form select option { background: #0b0e14; color: var(--white); }
.form ::placeholder { color: var(--iron); }
.form input:hover, .form select:hover, .form textarea:hover { border-color: #3a3f43; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--violet); }
.form .invalid { border-color: var(--red) !important; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); font: 500 14px var(--sans); color: var(--ash); transition: border-color .15s ease-out, color .15s ease-out; }
.seg input:checked + span { border-color: var(--white); color: var(--white); }
.seg input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; cursor: pointer; font-size: 15px; padding: 13px 20px; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 0; font: 400 13px/1.5 var(--mono); min-height: 1em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }
.form-note { margin: 0; font-size: 13px; color: var(--iron); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 32px 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--ash); }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
footer a:hover { color: var(--white); }

/* ---------- Reveal on scroll ---------- */
/* V4: hidden only once main.js is running (html.js), so content never stays invisible without the script. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease-out, transform .6s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .case-top { grid-template-columns: 1fr; }
  .case-text { border-right: 0; border-bottom: 1px solid var(--line); }
  .case-bottom { grid-template-columns: repeat(2, 1fr); }
  .guard:nth-child(3) { border-left: 0; }
  .guard:nth-child(n+3) { border-top: 1px solid var(--line); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .uses { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact { padding: 88px 0; }
  .hero { padding: 56px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .cube-stage { height: 280px; }
  .cube { width: 150px; height: 150px; }
  .cube .face.f1 { transform: translateZ(75px); }
  .cube .face.f2 { transform: rotateY(180deg) translateZ(75px); }
  .cube .face.f3 { transform: rotateY(90deg) translateZ(75px); }
  .cube .face.f4 { transform: rotateY(-90deg) translateZ(75px); }
  .cube .face.f5 { transform: rotateX(90deg) translateZ(75px); }
  .cube .face.f6 { transform: rotateX(-90deg) translateZ(75px); }
  .strip .wrap { grid-template-columns: 1fr; }
  .strip .cell { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0; }
  .strip .cell:first-child { border-top: 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  section { padding: 72px 0; }
  .case-text { padding: 28px 20px; }
  .case-code { padding: 16px; }
  .case-bottom, .grid-4, .process, .uses { grid-template-columns: 1fr; }
  .guard { border-left: 0 !important; border-top: 1px solid var(--line); padding: 20px; }
  .guard:first-child { border-top: 0; }
  .card, .process .card { padding: 24px; }
  .term pre { font-size: 12px; padding: 16px; }
  .steps li { grid-template-columns: 24px 1fr; }
  .steps .by { grid-column: 2; }
  .form-card { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .cube { animation: none; transform: rotateX(-22deg) rotateY(-32deg); }
  .fade, .reveal { animation: none; opacity: 1; transform: none; transition: none; }
}

/* ---------- Use cases ---------- */
.nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a[aria-current="page"]::after { content: ""; display: block; height: 1px; background: var(--violet); margin-top: 4px; }
.small { font-size: 13px; }
.inline { color: var(--white); border-bottom: 1px solid var(--line); transition: border-color .15s ease-out; }
.inline:hover { border-color: var(--white); }
code.ic { font: 400 .88em var(--mono); color: var(--violet); }

.uc-hero .wrap { grid-template-columns: 1.15fr 1fr; }
.uc-stack { position: relative; height: 380px; }
.uc-stack img { position: absolute; width: 88%; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.uc-stack img:nth-child(1) { right: 0; top: 0; opacity: .45; }
.uc-stack img:nth-child(2) { right: 6%; top: 52px; opacity: .7; }
.uc-stack img:nth-child(3) { right: 12%; top: 104px; }

.uc-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.uc-step { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; padding: 48px 0; border-bottom: 1px solid var(--line); align-items: start; scroll-margin-top: 80px; }
.uc-num span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--violet-grad); box-shadow: rgba(176, 199, 217, .145) 0 0 0 1px; font: 400 14px var(--mono); color: #fff; }
.uc-body .h3 { margin: 6px 0 14px; }
.uc-body p { color: var(--ash); margin: 0 0 14px; }
.uc-body p b { color: var(--bone); font-weight: 500; }
.uc-side .term pre { font-size: 12.5px; }

.prompt { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(rgb(14, 14, 18), rgb(3, 3, 3)); }
.prompt-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); font: 400 12px var(--mono); color: var(--iron); }
.copy { background: transparent; border: 1px solid var(--line); color: var(--bone); border-radius: var(--r-sm); padding: 5px 10px; font: 500 12px var(--sans); cursor: pointer; transition: border-color .15s ease-out; }
.copy:hover { border-color: rgba(255, 255, 255, .6); }
.copy.done { color: var(--green); border-color: rgba(58, 211, 137, .5); }
.prompt pre { margin: 0; padding: 20px; font: 400 15px/1.65 var(--sans); color: var(--bone); white-space: pre-wrap; }
.prompt pre b { color: var(--white); font-weight: 600; }
.prompt pre .t-s { font-family: var(--mono); font-size: 14px; }

.chat { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.msg { min-width: 0; }
.msg { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.msg .who { display: block; font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--iron); margin-bottom: 8px; }
.msg p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--bone); }
.msg.me { margin-left: 48px; background: #0b0e14; }
.msg.me .who { color: var(--violet-glow); }
.sw { font: 400 12px var(--mono); color: var(--bone); white-space: nowrap; }
.sw i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: 0; }
.qa { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.qa li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.qa li:last-child { border-bottom: 0; padding-bottom: 0; }
.qa span { color: var(--ash); font-family: var(--mono); font-size: 12px; }
.qa b { color: var(--white); font-weight: 500; text-align: right; }
.msg.log pre { margin: 0; font: 400 12.5px/1.75 var(--mono); color: var(--bone); white-space: pre; overflow-x: auto; }

.plan-tag { display: inline-block; font: 400 12px var(--mono); color: var(--amber); border: 1px solid rgba(255, 202, 22, .45); border-radius: var(--r-sm); padding: 1px 7px; vertical-align: 2px; }
.uc-dl { margin-top: 28px; align-items: center; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure { margin: 0; }
.gallery button { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; cursor: zoom-in; transition: border-color .15s ease-out, transform .15s ease-out; }
.gallery button:hover { border-color: rgba(255, 255, 255, .5); }
.gallery button:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.gallery img { width: 100%; height: auto; }
.gallery figcaption { margin-top: 10px; font-size: 13px; color: var(--ash); }
.gallery figcaption span { font: 400 12px var(--mono); color: var(--iron); margin-right: 10px; }

.uc-notes { margin-top: 48px; border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; grid-template-columns: repeat(4, 1fr); }

.uc-cta { border-top: 1px solid var(--line); text-align: center; padding: 120px 0; }
.uc-cta .display { font-size: clamp(38px, 5.4vw, 72px); }
.uc-cta .lead { margin: 24px auto 36px; }
.uc-cta .hero-ctas { justify-content: center; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .92); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox img { grid-column: 2; max-width: 100%; max-height: 86vh; margin: 0 auto; border: 1px solid var(--line); border-radius: 10px; }
.lb-nav, .lb-close { background: transparent; border: 1px solid var(--line); color: var(--white); border-radius: var(--r-sm); width: 44px; height: 44px; font: 400 24px/1 var(--sans); cursor: pointer; justify-self: center; }
.lb-nav:hover, .lb-close:hover { border-color: rgba(255, 255, 255, .6); }
.lb-prev { grid-column: 1; grid-row: 1; }
.lb-next { grid-column: 3; grid-row: 1; }
.lightbox img { grid-row: 1; }
.lb-close { position: fixed; top: 16px; right: 16px; }
.lb-count { position: fixed; bottom: 16px; left: 0; right: 0; text-align: center; margin: 0; font: 400 13px var(--mono); color: var(--ash); }

@media (max-width: 1000px) {
  .uc-step { grid-template-columns: 56px minmax(0, 1fr); }
  .uc-side { grid-column: 2; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .uc-notes { grid-template-columns: repeat(2, 1fr); }
  .uc-notes .guard:nth-child(3) { border-left: 0; }
  .uc-notes .guard:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .uc-hero .wrap { grid-template-columns: 1fr; }
  .uc-stack { height: 250px; }
}
@media (max-width: 640px) {
  .uc-step { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 36px 0; }
  .uc-side { grid-column: 1; }
  .uc-num span { width: 38px; height: 38px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery figcaption { font-size: 12px; }
  .uc-notes { grid-template-columns: 1fr; }
  .uc-notes .guard { border-left: 0 !important; border-top: 1px solid var(--line); }
  .uc-notes .guard:first-child { border-top: 0; }
  .msg.me { margin-left: 20px; }
  .prompt pre { font-size: 14px; padding: 16px; }
  .uc-cta { padding: 88px 0; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lb-nav { display: none; }
}

.uc-teaser { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; transition: border-color .15s ease-out; }
.uc-teaser:hover { border-color: rgba(255, 255, 255, .4); }
.uc-teaser .h3 { margin-bottom: 12px; font-size: 28px; letter-spacing: -0.03em; }
.uc-teaser p:not(.eyebrow) { color: var(--ash); margin: 0 0 20px; }
.uc-teaser img { border: 1px solid var(--line); border-radius: 10px; }
@media (max-width: 820px) { .uc-teaser { grid-template-columns: 1fr; padding: 24px 20px; gap: 24px; } }

/* ---------- Language switch ---------- */
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; font: 400 12px/1 var(--mono); }
.lang a, .lang span { padding: 7px 9px; color: var(--ash); }
.lang span[aria-current] { color: var(--black); background: var(--white); }
.lang a:hover { color: var(--white); }

/* ---------- Results ---------- */
.results { padding: 88px 0 80px; }
.results .section-head { margin-bottom: 40px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); }
.stat { padding: 32px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .big { font-family: var(--display); font-size: clamp(48px, 6vw, 72px); line-height: 1; letter-spacing: -0.05em; color: var(--white); }
.stat .big em { font-style: normal; background: var(--violet-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat h3 { font: 500 17px/1.35 var(--sans); color: var(--white); margin: 18px 0 8px; }
.stat p { margin: 0; font-size: 14px; color: var(--ash); }
.stats-note { margin: 16px 0 0; font: 400 12px/1.6 var(--mono); color: var(--iron); max-width: 820px; }

/* ---------- Legal page ---------- */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 860px; }
.legal h1 { font-family: var(--serif); font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 16px; }
.legal .updated { font: 400 13px var(--mono); color: var(--iron); margin: 0 0 40px; }
.legal h2 { font: 500 24px/1.3 var(--display); letter-spacing: -0.02em; color: var(--white); margin: 48px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal h3 { font: 500 17px/1.4 var(--sans); color: var(--white); margin: 24px 0 8px; }
.legal p, .legal li { color: var(--bone); font-size: 16px; line-height: 1.7; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--iron); }
.legal a { color: var(--white); border-bottom: 1px solid var(--line); }
.legal a:hover { border-color: var(--white); }
.legal .toc { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 24px; margin: 0 0 8px; }
.legal .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal .toc li { font-size: 14px; margin-bottom: 4px; }
.legal .toc a { border: 0; color: var(--bone); }
.legal .toc a:hover { color: var(--white); }
.table-wrap { overflow-x: auto; margin: 8px 0 20px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.legal th, .legal td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--bone); }
.legal th { font: 400 12px var(--mono); color: var(--ash); text-transform: uppercase; letter-spacing: .04em; }
.legal tr:last-child td { border-bottom: 0; }
.legal code { font: 400 13px var(--mono); color: var(--violet); }
.fill { color: var(--amber); font-family: var(--mono); font-size: .9em; }
.form-note a { color: var(--ash); border-bottom: 1px solid var(--line); }
.form-note a:hover { color: var(--white); }
footer .linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
footer .linkbtn:hover { color: var(--white); }

/* ---------- Cookie consent ---------- */
.cc { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-left: auto;
  background: rgba(11, 14, 20, .97); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 22px 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); }
.cc[hidden], .cc [hidden] { display: none !important; }
.cc h2 { font: 500 16px/1.3 var(--sans); color: var(--white); margin: 0 0 8px; }
.cc p { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--ash); }
.cc p a { color: var(--white); border-bottom: 1px solid var(--line); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-actions .btn { cursor: pointer; padding: 10px 14px; }
.cc-opts { border-top: 1px solid var(--line); margin: 0 0 16px; }
.cc-opt { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cc-opt b { display: block; font: 500 14px var(--sans); color: var(--white); margin-bottom: 4px; }
.cc-opt span { font-size: 13px; line-height: 1.5; color: var(--ash); }
.switch { position: relative; flex: none; width: 40px; height: 22px; margin-top: 2px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; border: 1px solid var(--line); background: #15181c; transition: background-color .15s ease-out; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--iron); transition: transform .15s ease-out, background-color .15s ease-out; }
.switch input:checked + i { background: var(--violet); border-color: var(--violet); }
.switch input:checked + i::after { transform: translateX(18px); background: #fff; }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + i { opacity: .55; }
.switch input:focus-visible + i { outline: 2px solid var(--violet); outline-offset: 2px; }

@media (max-width: 1000px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
}
@media (max-width: 820px) {
  .nav-right { gap: 10px; }
}
@media (max-width: 640px) {
  .results { padding: 64px 0 56px; }
  .stat { padding: 24px 20px; }
  .legal .toc ol { columns: 1; }
  .cc { left: 8px; right: 8px; bottom: 8px; padding: 18px 16px 16px; }
  .cc-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Collapsed navigation (tablet and phone) */
@media (max-width: 980px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: #000; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 0; width: 100%; font-size: 16px; }
  .nav-links .btn { margin-top: 8px; }
  .menu-btn { display: inline-block; }
  .brand img { height: 26px; }
  .nav-links a[aria-current="page"]::after { display: none; }
}

/* =====================================================================
   V4 design layer — visual and UX fixes only; content and markup unchanged.
   ===================================================================== */

/* Anchors and keyboard focus land below the sticky bar */
html { scroll-padding-top: 80px; scroll-padding-bottom: calc(var(--cc-h, 0px) + 16px); }

/* ---------- Focus: always visible for keyboard users ---------- */
:focus-visible { outline: 2px solid var(--violet-glow); outline-offset: 3px; border-radius: var(--r-sm); }
.btn:focus-visible { outline-offset: 2px; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--violet-glow); outline-offset: 1px; }
.uc-teaser:focus-visible, .case:focus-within { outline-offset: 4px; }

/* ---------- Buttons: step on hover, press on click, 44px targets ---------- */
.btn { min-height: 44px; padding: 13px 18px; justify-content: center;
  transition: border-color .15s ease-out, background-color .15s ease-out, transform .15s ease-out, box-shadow .15s ease-out; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .05s; }
.btn.solid:hover { box-shadow: 0 6px 20px rgba(255, 255, 255, .12); }
.btn.sm { min-height: 36px; padding: 8px 14px; }
.menu-btn { min-height: 44px; padding: 10px 14px; transition: border-color .15s ease-out; }
.menu-btn:hover { border-color: rgba(255, 255, 255, .6); }
.pill { transition: border-color .15s ease-out, transform .15s ease-out; }
.pill:hover { transform: translateY(-1px); }

/* Underline draws in on the plain links */
.inline, .form-note a, .cc p a, .legal a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease-out, border-color .15s ease-out; }
.inline:hover, .form-note a:hover, .cc p a:hover, .legal a:hover { background-size: 100% 1px; }
.link { position: relative; }
.link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease-out; }
a:hover .link::after, .link:hover::after { transform: scaleX(1); }

/* ---------- Hero: fills the first screen alone, h1 sized to the viewport ---------- */
.hero { min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); display: flex; align-items: center; padding: 56px 0; }
.hero .wrap { width: 100%; }
@media (min-width: 821px) { .hero .wrap { grid-template-columns: 1.4fr 1fr; } }
.hero .display { font-size: clamp(44px, min(6.4vw, 9.5vh), 84px); }
.hero .lead { margin: 24px 0 32px; }
.pill { margin-bottom: 28px; }

/* Hero cube: lit edges, readable labels; turns into place once, spins again on hover */
.cube-stage { position: relative; }
.cube-stage::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(360px, 100%); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(146, 129, 247, .16), rgba(146, 129, 247, 0)); pointer-events: none; }
.cube-stage::after { content: ""; position: absolute; left: 50%; bottom: 40px; width: 240px; height: 28px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, .08), transparent); pointer-events: none; }
/* One continuous turn; hovering pauses it in place (no restart, no jump). */
.cube { animation: spin-v4 26s linear infinite; }
.cube-stage:hover .cube { animation-play-state: paused; }
@keyframes spin-v4 { from { transform: rotateX(-22deg) rotateY(-32deg); } to { transform: rotateX(-22deg) rotateY(-392deg); } }
.cube .face {
  border: 1px solid #4a5056;
  background: linear-gradient(160deg, #17191d 0%, #0a0b0d 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), inset 0 1px 0 rgba(255, 255, 255, .08);
  font: 400 13px/1.5 var(--mono); color: #a7abb1; text-align: center;
}
.cube .face b { color: var(--white); }
.cube .face.f3 { border-color: rgba(58, 211, 137, .55); }
.cube .face.f3 b { color: var(--green); }
.cube .face.f5 { background: linear-gradient(160deg, #202329, #121417); }

/* ---------- Strip ---------- */
.strip .cell { color: #b4b8bd; }

/* ---------- Results: figures sit below the section heading in size ---------- */
.stat .big { font-size: clamp(32px, 4.2vw, 52px); }
.stat h3 { font: 500 20px/1.3 var(--display); letter-spacing: -0.01em; }

/* ---------- One heading system: h3 at 28px (feature) or 20px (card), one face ---------- */
.case-text .h3, .uc-teaser .h3 { font-size: 28px; }
.principle .h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.use h3, .process h3 { font: 500 20px/1.3 var(--display); letter-spacing: -0.01em; }

/* ---------- Cards answer the pointer ---------- */
.card, .use, .case { transition: border-color .2s ease-out, background-color .2s ease-out, transform .2s ease-out; }
.case:hover { border-color: #3a3f43; }
.card:hover { border-color: #3a3f43; background: #050608; }
.use:hover { background: #07080a; }
.uc-teaser { transition: border-color .2s ease-out, transform .2s ease-out; }
.uc-teaser:hover { transform: translateY(-2px); }
.uc-teaser img { transition: transform .35s ease-out, border-color .2s ease-out; }
.uc-teaser:hover img { transform: scale(1.02); border-color: #3a3f43; }

/* ---------- Process: numbered badges joined by a line ---------- */
.process .num { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid rgba(146, 129, 247, .45); border-radius: 999px; color: var(--violet-glow); background: rgba(146, 129, 247, .08); }
@media (min-width: 1001px) {
  .process { position: relative; }
  .process .card { position: relative; }
  .process .card:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: -17px; width: 17px; height: 1px; background: rgba(146, 129, 247, .45); }
}

/* ---------- Principle icons: lit tile ---------- */
.principle .icon { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 24px rgba(146, 129, 247, .25); }

/* ---------- Terminal: nothing hidden, comments readable ---------- */
.term { height: auto; min-height: 100%; }
.term pre { flex: 1 1 auto; min-width: 0; }
.term-bar span { color: #a7abb1; }
@media (max-width: 1100px) {
  .term pre { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: visible; }
}

/* ---------- FAQ: hover and marker ---------- */
.faq summary { transition: color .15s ease-out; }
.faq summary:hover { color: var(--violet-glow); }
.faq summary:hover::after { color: var(--white); }

/* ---------- Contact ---------- */
.form-card { background: linear-gradient(180deg, #07080a, #000); }

/* ---------- Footer: 44px tap targets ---------- */
footer nav { gap: 0 24px; align-items: center; }
footer nav a, footer .linkbtn { display: inline-flex; align-items: center; min-height: 44px; transition: color .15s ease-out; }

/* ---------- Nav ---------- */
.brand { min-height: 44px; }
.lang a, .lang span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 10px; }
@media (max-width: 1100px) and (min-width: 981px) {
  .nav-links { gap: 20px; }
  .nav-right { gap: 12px; }
}
/* Tablet: the main action stays in the bar, the rest folds into the menu */
@media (max-width: 980px) and (min-width: 641px) {
  .nav-links:not(.open) { display: flex; position: static; flex-direction: row; padding: 0; border: 0; background: none; }
  .nav-links:not(.open) a:not(.btn) { display: none; }
  .nav-links:not(.open) .btn { margin-top: 0; }
  .nav-links.open .btn { min-height: 44px; }
}
@media (max-width: 820px) {
  .lang a, .lang span { min-height: 44px; padding: 0 12px; }
  .nav-links .btn.sm { min-height: 44px; }
}

/* ---------- Cookie bar: compact, one row on wide screens ---------- */
.cc { max-width: 980px; padding: 14px 16px 14px 20px; display: grid; grid-template-columns: 1fr auto; column-gap: 20px; align-items: center; border-radius: 12px; }
.cc h2 { grid-column: 1; font-size: 14px; margin: 0 0 2px; }
.cc p { grid-column: 1; font-size: 13px; line-height: 1.5; margin: 0; }
.cc-opts { grid-column: 1 / -1; margin: 14px 0 12px; }
.cc-actions { grid-column: 2; grid-row: 1 / span 2; flex-wrap: nowrap; }
.cc-actions .btn { min-height: 38px; padding: 8px 12px; font-size: 13px; }
.cc.cc-settings .cc-actions { grid-column: 1 / -1; grid-row: auto; justify-content: flex-end; }
html.cc-open body { padding-bottom: var(--cc-h, 0px); }
@media (max-width: 760px) {
  .cc { grid-template-columns: 1fr; left: 8px; right: 8px; bottom: 8px; padding: 12px 12px 10px; max-width: none; }
  .cc h2 { display: none; }
  .cc p { font-size: 12.5px; }
  .cc-actions { grid-column: 1; grid-row: auto; margin-top: 10px; }
  .cc-actions .btn { flex: 1 1 0; min-height: 44px; padding: 8px 6px; }
}

/* ---------- Reduced motion: everything rests ---------- */
@media (prefers-reduced-motion: reduce) {
  .cube, .cube-stage:hover .cube { animation: none; transform: rotateX(-22deg) rotateY(-32deg); }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .uc-teaser, .uc-teaser img, .pill { transition: none; }
  .btn:hover, .uc-teaser:hover, .pill:hover { transform: none; }
  .uc-teaser:hover img { transform: none; }
}
