/* Voir Labs open-source landing pages. One stylesheet shared by every project,
   following the voirlabs.io look: near-black, serif headlines, violet accent,
   iridescent glass. Each page may set --hue (deg) to tint its hero artwork. */

:root {
  --bg: #080809;
  --bg-2: #0f0e11;
  --bg-3: #131016;
  --card: #17141d;
  --text: #f3f1ed;
  --text-2: #ded7e7;
  --muted: #b3acbc;
  --faint: #8f8799;
  --line: #27252b;
  --line-2: #37313d;
  --accent: #d0a2ff;
  --accent-2: #c8acf5;
  --accent-soft: #bea1e7;
  --pill: #f2f0ed;
  --pill-hover: #d6c3ef;
  --hue: 0deg;
  --sans: Urbanist, Gilroy, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); }
::selection { background: var(--accent-soft); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 5px; border-radius: 6px; }
code { font-family: var(--mono); font-size: .86em; color: var(--text-2); background: #1d1a22; border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; letter-spacing: -0.04em; line-height: 1; }
.brand img { width: 28px; height: 28px; filter: brightness(1.4); }
.brand .by { font-size: 13px; letter-spacing: 0; color: var(--faint); margin-left: 4px; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 14px; color: #b8b6bd; }
.nav a:hover { color: #ddc8fc; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 27px; border-radius: 50px; border: 1px solid var(--pill); background: var(--pill); color: #151417; font-size: 14px; line-height: 1.4; white-space: nowrap; transition: background .2s, border-color .2s, transform .2s, color .2s; }
.btn:hover { background: var(--pill-hover); border-color: var(--pill-hover); transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; }
.btn.small { min-height: 40px; padding: 9px 22px; font-size: 13px; }
.btn.ghost { background: transparent; color: #eee; border-color: #48464c; }
.btn.ghost:hover { color: #151417; }
.text-link { font-size: 14px; border-bottom: 1px solid #615866; padding: 6px 0; color: var(--text-2); }
.text-link:hover { color: #ddc8fc; }

/* Type */
h1, h2 { font-family: var(--serif); font-weight: 400; margin: 0; color: var(--text); }
h1 { font-size: clamp(48px, 6.6vw, 96px); line-height: 1.03; letter-spacing: -0.035em; }
h2 { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.05; letter-spacing: -0.03em; }
h1 em { font-style: italic; color: var(--accent); }
h2 em { font-style: normal; color: var(--accent); }
h3 { font-weight: 500; line-height: 1.3; margin: 0; }
.eyebrow { font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; color: #aaa6b0; margin: 0 0 24px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #c4a2e5; box-shadow: 0 0 12px #aa81d677; margin: 0 10px 2px 0; }

/* Hero */
.hero { position: relative; isolation: isolate; text-align: center; padding: 96px 0 0; overflow: hidden; }
.hero-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-art img { position: absolute; left: 50%; top: 150px; width: min(1500px, 140%); max-width: none; transform: translateX(-50%); opacity: .9; filter: saturate(1.22) brightness(1.08) hue-rotate(var(--hue)); -webkit-mask-image: linear-gradient(#000 55%, transparent 92%); mask-image: linear-gradient(#000 55%, transparent 92%); }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--bg) 0%, transparent 25%, transparent 55%, var(--bg) 92%); }
.lede { font-size: 17px; line-height: 1.65; color: var(--text-2); max-width: 560px; margin: 28px auto 30px; }
.ctas { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; }
.note { font-size: 12px; color: #bcb0cc; margin-top: 20px; }

/* Product frame */
.frame { margin: 72px auto 0; max-width: 960px; text-align: left; border: 1px solid #302b39; border-radius: 10px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(14px); box-shadow: 0 40px 120px -40px #6d4fa066; overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid #2c2833; }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3541; }
.frame-bar span { margin-left: 10px; font-size: 11px; letter-spacing: .4px; color: var(--faint); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame-body { padding: 26px; }

/* Capability rail */
.rail { margin-top: 72px; border-top: 1px solid #2b2731; border-bottom: 1px solid #2b2731; background: linear-gradient(90deg, #1a1222 0%, #100e13 50%, #0f1a1c 100%); }
.rail .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-top: 26px; padding-bottom: 26px; font-size: 14px; color: #d9d4df; flex-wrap: wrap; }
.rail i { font-style: normal; color: #8d6fd1; }

/* Sections */
section { padding: 110px 0; }
.alt { background: var(--bg-2); border-top: 1px solid #25222a; border-bottom: 1px solid #25222a; }
.head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 56px; flex-wrap: wrap; }
.head p.sub { max-width: 360px; margin: 0; font-size: 15px; line-height: 1.75; }

.grid { display: grid; gap: 40px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { border-top: 1px solid var(--line-2); padding-top: 22px; }
.card .num { font-size: 12px; color: #b49bc5; }
.card h3 { font-size: 21px; margin: 26px 0 8px; }
.card p { margin: 0; font-size: 15px; line-height: 1.75; }

.steps { counter-reset: step; display: grid; gap: 40px 28px; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; border-top: 1px solid var(--line-2); padding-top: 20px; }
.steps li::before { content: counter(step, decimal-leading-zero); font-size: 12px; color: #b49bc5; display: block; }
.steps h3 { font-size: 19px; margin: 24px 0 6px; }
.steps p { margin: 0; font-size: 14px; line-height: 1.8; }
.steps.stack { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 8px; }
.steps.stack li { padding: 18px 0; }
.steps.stack h3 { margin-top: 10px; }

/* Code */
.split { display: grid; gap: 8%; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
.split h2 { margin-bottom: 22px; }
.split p.sub { font-size: 15px; line-height: 1.75; max-width: 420px; margin: 0 0 28px; }
.code { position: relative; background: #0b0a0d; border: 1px solid #2c2833; border-radius: 10px; padding: 22px 24px; font: 13.5px/1.75 var(--mono); color: #e6e1ec; overflow-x: auto; }
.code pre { margin: 0; white-space: pre; }
.code .c { color: #7b7385; }
.code .k { color: var(--accent-2); }
.copy { position: absolute; top: 12px; right: 12px; height: 30px; padding: 0 12px; border-radius: 50px; border: 1px solid #48464c; background: #151417; color: #d9d4df; font: 500 12px var(--sans); cursor: pointer; }
.copy:hover { background: var(--pill-hover); color: #151417; border-color: var(--pill-hover); }
.checks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.checks li::before { content: "✳"; position: absolute; left: 0; top: 0; color: #8d6fd1; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 64px; font-size: 13px; color: #9f99a8; }
footer .wrap { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
footer a:hover { color: #ddc8fc; }
footer .made { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
footer .made img { width: 20px; height: 20px; filter: brightness(1.4); }
.family { display: flex; gap: 22px; flex-wrap: wrap; }
.fine { margin: 10px 0 0; font-size: 12px; color: #8f8799; max-width: 48em; }

/* Mock UI inside .frame */
.mock { display: grid; gap: 12px; font-size: 14px; align-content: start; }
.mock-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.label { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: #b8a8c8; }
.bubble { max-width: 82%; padding: 11px 15px; border-radius: 14px; background: #201c26; border: 1px solid #2f2a36; color: var(--text-2); line-height: 1.5; }
.bubble.me { justify-self: end; background: #2a1f3a; border-color: #46345f; }
.bubble small { display: block; font-size: 11px; color: var(--faint); margin-bottom: 3px; letter-spacing: .3px; }
.chip { justify-self: start; font: 12px var(--mono); color: #b9a5c6; border: 1px dashed #4a4152; border-radius: 8px; padding: 4px 9px; }
.score { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.score div { border: 1px solid #2f2a36; border-radius: 10px; padding: 12px; background: #1b1820; }
.score b { display: block; font: 400 30px/1 var(--serif); color: var(--text); }
.score span { display: block; margin-top: 6px; font-size: 11px; color: var(--faint); }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; justify-self: end; }
.pill { border: 1px solid #5d4a78; color: #ddc8fc; border-radius: 50px; padding: 4px 13px; font-size: 13px; }

@media (max-width: 900px) {
  .nav .hide-sm { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .mock-cols { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .rail .wrap { justify-content: center; }
}
@media (max-width: 600px) {
  .top .wrap { height: 68px; }
  .brand .by { display: none; }
  .hero { padding-top: 64px; }
  .hero-art img { top: 260px; width: 260%; }
  section { padding: 80px 0; }
  .grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .score b { font-size: 24px; }
  .frame-body { padding: 16px; }
  .bubble { max-width: 94%; }
  .rail i { display: none; }
  .ctas { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
