/* Hallmark · macrostructure: Split Studio · genre: modern-minimal (dark) · theme: custom · nav: N5 · footer: Ft2
 * See tokens.css for the full stamp. */

@import url("tokens.css");

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

html, body {
  margin: 0;
  overflow-x: clip;
}

html { scroll-behavior: smooth; }

body {
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle single-source glow behind the hero — the only atmospheric flourish */
body::before {
  content: "";
  position: fixed;
  inset: -20% 0 auto 0;
  height: 70vh;
  background: radial-gradient(60% 55% at 70% 0%, oklch(64% 0.19 350 / 0.13), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}

p { margin: 0; }
a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-accent-2);
  margin: 0 0 var(--space-md);
}

.lede {
  color: var(--color-ink-2);
  font-size: var(--text-lg);
  line-height: 1.55;
  max-width: var(--measure);
}

.hero__points {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
  display: grid;
  gap: var(--space-md);
}
.hero__points li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-ink-2);
  font-size: var(--text-lg);
  line-height: 1.5;
}
.hero__points li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--color-accent);
  transform: translateY(-50%) rotate(45deg);
}
.hero__points strong {
  color: var(--color-ink);
  font-weight: 600;
}
.hero__points code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* ============================================================= NAV · N5 floating pill */
.nav {
  position: fixed;
  top: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - 2rem);
  max-width: 60rem;
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: 0.6rem 0.7rem 0.6rem var(--space-lg);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  background: oklch(17% 0.014 320 / 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 30px -18px oklch(0% 0 0 / 0.8);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking-snug);
  text-decoration: none;
  white-space: nowrap;
}
.brand__dot {
  width: 0.62rem; height: 0.62rem;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent);
  flex: none;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-left: auto;
  font-size: var(--text-sm);
}
.nav__links a {
  color: var(--color-ink-2);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__links a:hover { color: var(--color-ink); }
.nav__cta.btn--primary { white-space: nowrap; color: #000; }

/* ============================================================= BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-snug);
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-pill);
  border: var(--rule-hair) solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.btn--sm { padding: 0.5rem 0.95rem; }
.btn--primary {
  background: var(--color-accent);
  color: var(--color-accent-ink);
}
.btn--primary:hover { background: var(--color-accent-2); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-rule);
}
.btn--ghost:hover { border-color: var(--color-ink-2); transform: translateY(-2px); }
.btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}
.btn svg { width: 1em; height: 1em; }

/* ============================================================= HERO · H2 split diptych */
.hero {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--space-4xl) + var(--space-md));
  padding-bottom: var(--space-3xl);
}
.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}
.hero__prose { max-width: 58rem; }
.hero__title {
  font-size: var(--text-display);
  line-height: 1.03;
  letter-spacing: var(--tracking-snug);
  margin-bottom: var(--space-lg);
  max-width: 18ch;
}
.hero__title .accent { color: var(--color-accent); }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}
.hero__meta {
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}
.hero__meta .dot { color: var(--color-rule); }

.shot {
  margin: var(--space-2xl) 0 0;
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-paper-2);
  box-shadow: 0 40px 80px -50px oklch(0% 0 0 / 0.9),
              0 0 0 1px oklch(64% 0.19 350 / 0.06);
}
.shot img { width: 100%; height: auto; display: block; }
.shot figcaption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  padding: var(--space-sm) var(--space-md);
  border-top: var(--rule-hair) solid var(--color-rule-2);
}

/* ============================================================= FEATURE BANDS · Split Studio diptychs */
.band {
  position: relative;
  z-index: 1;
  padding-block: var(--space-3xl);
  border-top: var(--rule-hair) solid var(--color-rule-2);
}
.band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-2xl);
  align-items: center;
}
.band--flip .band__prose { order: 2; }
.band__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}
.band__body {
  color: var(--color-ink-2);
  max-width: 46ch;
  line-height: 1.6;
}
.band__body + .band__body { margin-top: var(--space-md); }
.band__body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--color-ink);
  background: var(--color-paper-2);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  border: var(--rule-hair) solid var(--color-rule-2);
}

/* ---- Code sample surface (real code as content — no window chrome) ---- */
.code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.7;
  background: var(--color-paper-2);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  overflow-x: auto;
  color: var(--color-code-field);
  tab-size: 2;
}
.code pre { margin: 0; }
.code .filename {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-muted);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-md);
}
.code .kw   { color: var(--color-code-keyword); }
.code .fld  { color: var(--color-code-field); }
.code .arg  { color: var(--color-code-arg); }
.code .str  { color: var(--color-code-string); }
.code .punc { color: var(--color-code-punc); }
.code .cmt  { color: var(--color-code-comment); font-style: italic; }

/* CodeLens ▶ Run line — VS Code renders this as inline text above an operation */
.codelens {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-accent-2);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
  user-select: none;
}
.codelens::before { content: "\25B6"; font-size: 0.7em; }

/* Diagnostic squiggle under an unknown field */
.diag {
  text-decoration: underline wavy var(--color-diag);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

/* Ghost inline completion (dimmed suggestion text) */
.ghost { color: var(--color-muted); opacity: 0.75; }
.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--color-accent);
  vertical-align: text-bottom;
  transform: translateY(2px);
}

/* Compact completion menu (adjacent to code — not a fake window) */
.complete {
  margin-top: var(--space-md);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-sm);
  background: var(--color-paper-3);
  overflow: hidden;
  max-width: 22rem;
  font-size: var(--text-sm);
}
.complete li {
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding: 0.4rem var(--space-md);
}
.complete ul { margin: 0; padding: 0; }
.complete li[aria-selected="true"] {
  background: oklch(64% 0.19 350 / 0.16);
}
.complete .glyph {
  font-family: var(--font-mono);
  color: var(--color-accent-2);
  font-size: var(--text-xs);
  width: 1.2em;
  flex: none;
}
.complete .kind { margin-left: auto; color: var(--color-muted); font-size: var(--text-xs); }

/* ============================================================= EVERYTHING-ELSE GRID */
.more {
  position: relative;
  z-index: 1;
  padding-block: var(--space-3xl);
  border-top: var(--rule-hair) solid var(--color-rule-2);
}
.more__head { margin-bottom: var(--space-2xl); max-width: var(--measure); }
.more__head h2 { font-size: var(--text-3xl); margin-bottom: var(--space-sm); }
.more__head p { color: var(--color-ink-2); }
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--rule-hair);
  background: var(--color-rule-2);
  border: var(--rule-hair) solid var(--color-rule-2);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.cell {
  background: var(--color-paper);
  padding: var(--space-xl);
}
.cell h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  letter-spacing: var(--tracking-snug);
}
.cell p { color: var(--color-muted); font-size: var(--text-sm); line-height: 1.55; }
.cell .num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent-2);
  display: block;
  margin-bottom: var(--space-md);
}

/* ============================================================= FINAL CTA */
.final {
  position: relative;
  z-index: 1;
  padding-block: var(--space-4xl);
  border-top: var(--rule-hair) solid var(--color-rule-2);
  text-align: center;
}
.final h2 {
  font-size: var(--text-4xl);
  max-width: 20ch;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}
.final .accent { color: var(--color-accent); }
.final__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
}
.textlink {
  color: var(--color-ink-2);
  text-decoration: none;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-rule);
  padding-bottom: 2px;
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.textlink:hover { color: var(--color-ink); border-color: var(--color-accent); }

/* ============================================================= FOOTER · Ft2 inline single line */
.foot {
  position: relative;
  z-index: 1;
  border-top: var(--rule-hair) solid var(--color-rule);
  padding-block: var(--space-xl);
  font-size: var(--text-sm);
  color: var(--color-muted);
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
}
.foot__inner .brand { color: var(--color-ink); }
.foot__sep { color: var(--color-rule); }
.foot a { color: var(--color-ink-2); text-decoration: none; }
.foot a:hover { color: var(--color-ink); }
.foot__right { margin-left: auto; }

/* ============================================================= RESPONSIVE */
@media (max-width: 60rem) {
  .band__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .hero__inner { gap: var(--space-2xl); }
  .band--flip .band__prose { order: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__links { gap: var(--space-md); }
}
@media (max-width: 40rem) {
  .nav__inner { padding-left: var(--space-md); gap: var(--space-sm); }
  .nav__links .nav__link { display: none; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: calc(var(--space-3xl) + var(--space-lg)); }
  .btn { min-height: 44px; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 1ms !important; }
  .btn:hover { transform: none; }
}
