:root {
  --bg: #0b0c0a;
  --bg-2: #12130f;
  --bg-3: #1a1b16;
  --paper: #f3efe4;
  --paper-soft: #d8d3c6;
  --muted: #9b978c;
  --acid: #d2f15a;
  --acid-ink: #1a2208;
  --line: rgba(243, 239, 228, 0.1);
  --line-strong: rgba(243, 239, 228, 0.22);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 22px;
  --max: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
}

body {
  min-height: 100vh;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(210, 241, 90, 0.08), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(243, 239, 228, 0.05), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, #0e0f0c 100%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 80;
  background: var(--acid);
  color: var(--acid-ink);
  padding: 8px 12px;
  border-radius: 8px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acid);
}

.kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--acid);
}

h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.04em; }
h1 {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  line-height: 0.92;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.98;
}
h3 { font-size: 1.35rem; letter-spacing: -0.03em; }

.lede {
  color: var(--paper-soft);
  font-size: 1.08rem;
  max-width: 42rem;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(11, 12, 10, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.top.is-scrolled { border-bottom-color: var(--line); }

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 560;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand img, .brand svg {
  width: 34px;
  height: 34px;
  color: var(--paper);
}
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--paper-soft);
  font-size: 0.95rem;
}
.nav a:hover { color: var(--paper); }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 0;
  line-height: 0;
}
.menu-btn::before {
  content: "";
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 13px 22px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-acid {
  background: var(--acid);
  color: var(--acid-ink);
  font-weight: 600;
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--paper);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--paper); }

/* Hero */
.hero {
  position: relative;
  padding: 48px 0 28px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
}
.hero h1 em {
  font-style: italic;
  color: var(--acid);
}
.hero .lede { margin-top: 22px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.terminal {
  background: linear-gradient(180deg, #171813, #10110d);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
}
.terminal::after {
  content: "";
  position: absolute;
  inset: auto 18px -20px 18px;
  height: 40px;
  background: linear-gradient(180deg, rgba(210,241,90,0.18), transparent);
  filter: blur(18px);
  pointer-events: none;
}
.term-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.dots { display: flex; gap: 6px; }
.dots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3a3c34;
  display: block;
}
.dots i:first-child { background: #f15a5a; }
.dots i:nth-child(2) { background: #f1c45a; }
.dots i:nth-child(3) { background: var(--acid); }

.term-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.pill {
  background: rgba(243,239,228,0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.pill span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.pill strong {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.pill strong span {
  font-size: 0.72em;
  margin-left: 2px;
  color: var(--muted);
}
.pill b { color: var(--acid); font-weight: 500; }

.tree {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 14px 8px;
}
.tree-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.tree-line:first-child { border-top: 0; }
.tree-line em {
  font-style: normal;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}
.node {
  display: flex;
  align-items: center;
  gap: 10px;
}
.node i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(210,241,90,0.12);
}

.ticker {
  margin: 56px 0 8px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ticker-track span { white-space: nowrap; }
.ticker-track span::before {
  content: "◆";
  color: var(--acid);
  margin-right: 48px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
section { padding: 92px 0; }
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
  align-items: end;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover {
  border-color: rgba(210,241,90,0.45);
  transform: translateY(-3px);
}
.card.wide { grid-column: span 3; }
.card.tall { grid-column: span 2; min-height: 280px; }
.card p { color: var(--paper-soft); margin: 12px 0 0; }
.idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--acid);
  letter-spacing: 0.14em;
}

.stack {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step strong { display: block; font-size: 1.2rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--paper-soft); }
.num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--acid);
  line-height: 1;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  background: var(--bg-3);
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  letter-spacing: -0.04em;
  margin: 8px 0 4px;
}
.stat span { color: var(--muted); font-size: 0.92rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
}
.panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
}
.form { display: grid; gap: 14px; }
label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--muted);
}
input, textarea, select {
  width: 100%;
  background: #0d0e0b;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
}
input:focus, textarea:focus {
  border-color: var(--acid);
}
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-msg {
  min-height: 1.4em;
  font-size: 0.92rem;
  color: var(--acid);
}
.mailto {
  display: inline-flex;
  margin-top: 18px;
  color: var(--acid);
  border-bottom: 1px solid rgba(210,241,90,0.35);
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}
.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot nav { display: flex; gap: 18px; }

.legal {
  padding: 80px 0 120px;
}
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 12px 0 24px; }
.legal p, .legal li { color: var(--paper-soft); }
.legal a { color: var(--acid); }

@media (max-width: 900px) {
  .hero-grid, .sec-head, .stack, .contact-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .card, .card.wide, .card.tall { grid-column: span 1; min-height: 0; }
  .stats { grid-template-columns: 1fr; }
  .nav {
    position: absolute;
    inset: 76px 20px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #141510;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 10px;
  }
  .nav.open { display: flex; }
  .nav a, .nav .btn { padding: 12px; }
  .menu-btn { display: grid; place-items: center; }
  .step { grid-template-columns: 56px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .btn, .card { transition: none; }
}
