:root {
  --black: #0a0a0a;
  --ink: #111111;
  --panel: #161616;
  --panel-2: #1d1d1d;
  --line: #2a2a2a;
  --text: #f3f0eb;
  --muted: #a39d94;
  --orange: #ff6b1a;
  --orange-hi: #ff8a45;
  --orange-lo: #c94d08;
  --orange-wash: rgba(255, 107, 26, 0.12);
  --danger: #ff5c5c;
  --ok: #4fd18b;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --radius: 14px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font: 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-hi); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  display: inline-block;
  font: 600 .78rem/1 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.accent { color: var(--orange); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 .98rem/1 var(--font-body);
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn-primary { background: var(--orange); color: #0a0a0a; }
.btn-primary:hover { background: var(--orange-hi); color: #0a0a0a; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-dark { background: var(--black); color: var(--text); }
.btn-dark:hover { background: #222; color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, .82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font: 700 1.2rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand .tld { color: var(--muted); font-weight: 400; }
.brand-mark { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .btn { padding: .6rem 1.1rem; font-size: .9rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.2rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; justify-content: center; padding: .85rem; }
}

/* Hero */
.hero { position: relative; padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 380px at 85% 10%, rgba(255, 107, 26, .22), transparent 70%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 .accent { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.2rem; padding: 0; list-style: none; }
.hero-tags li { font: 500 .8rem/1 var(--font-mono); color: var(--muted); border: 1px solid var(--line); padding: .5rem .7rem; border-radius: 8px; }

.code-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(255, 107, 26, .35), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow: hidden;
  font: 400 .84rem/1.75 var(--font-mono);
}
.code-card .bar { display: flex; align-items: center; gap: .45rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); background: var(--panel-2); color: var(--muted); font-size: .76rem; }
.code-card .bar i { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.code-card .bar i:first-child { background: var(--orange); }
.code-card .bar span { margin-left: .5rem; }
.code-card pre { margin: 0; padding: 1.1rem 1.2rem 1.3rem; overflow-x: auto; color: #d9d4cc; }
.tk-k { color: var(--orange); }
.tk-t { color: #f5c08f; }
.tk-s { color: #9fd3a7; }
.tk-c { color: #6c675f; font-style: italic; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* Sections */
section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
section[id] { scroll-margin-top: 68px; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.alt { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(255, 107, 26, .55); transform: translateY(-3px); }
.card p { color: var(--muted); margin-bottom: 0; }
.card ul { margin: 1rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.card ul li { padding: .3rem 0 .3rem 1.2rem; position: relative; }
.card ul li::before { content: ""; position: absolute; left: 0; top: .85rem; width: 6px; height: 6px; background: var(--orange); border-radius: 2px; }
.icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--orange-wash); color: var(--orange);
  margin-bottom: 1.2rem;
}
.icon svg { width: 24px; height: 24px; }

/* Stack */
.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 900px) { .stack { grid-template-columns: 1fr; } }
.stack-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; background: var(--panel); }
.stack-col h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.stack-col h3 small { font: 500 .72rem/1 var(--font-mono); color: var(--orange); letter-spacing: .1em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; padding: 0; list-style: none; }
.chips li { padding: .45rem .8rem; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: .88rem; }
.chips li.primary { background: var(--orange); color: #0a0a0a; border-color: var(--orange); font-weight: 600; }

/* Process */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; padding: 0; margin: 0; list-style: none; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; border-top: 2px solid var(--line); padding-top: 1.3rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font: 700 2rem/1 var(--font-display); color: var(--orange); margin-bottom: .8rem;
}
.steps li:first-child { border-top-color: var(--orange); }
.steps p { color: var(--muted); }

/* CTA band */
.cta-band { padding: 0 0 clamp(4rem, 9vw, 6.5rem); }
.cta-inner {
  background: var(--orange);
  color: #0a0a0a;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-inner::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  border: 40px solid rgba(10,10,10,.08); border-radius: 50%;
}
.cta-inner h2 { margin-bottom: .3rem; }
.cta-inner p { margin: 0; font-size: 1.08rem; max-width: 52ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--orange); }

/* Quote page */
.page-head { padding: clamp(3rem, 8vw, 5rem) 0 2rem; position: relative; }
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px 300px at 90% 0%, rgba(255, 107, 26, .18), transparent 70%);
  pointer-events: none;
}
.page-head .wrap { position: relative; }
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; align-items: start; padding-bottom: 5rem; }
@media (max-width: 960px) { .quote-layout { grid-template-columns: 1fr; } .quote-aside { order: -1; } }

.quote-form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.8rem;
  margin: 0 0 1.25rem;
  min-width: 0;
}
.quote-form legend {
  font: 600 1.15rem/1 var(--font-display);
  padding: 0 .5rem; margin-left: -.5rem;
  display: flex; align-items: center; gap: .7rem;
}
.quote-form legend .num {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--orange); color: #0a0a0a;
  font: 700 .85rem/1 var(--font-mono);
}
.fieldset-note { color: var(--muted); font-size: .92rem; margin: .9rem 0 1.2rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.1rem; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.field label, .field .label { font-weight: 600; font-size: .92rem; }
.field .req { color: var(--orange); }
.field .opt { color: var(--muted); font-weight: 400; font-size: .82rem; }
.hint { color: var(--muted); font-size: .84rem; margin: 0; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%;
  background: var(--black);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .8rem .9rem;
  font: 400 .97rem/1.4 var(--font-body);
  transition: border-color .15s, box-shadow .15s;
  color-scheme: dark;
}
textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23ff6b1a' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem;
}
input:hover, select:hover, textarea:hover { border-color: #3a3a3a; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-wash); }
.field.invalid input, .field.invalid select, .field.invalid textarea, .field.invalid .checks { border-color: var(--danger); }
.error { color: var(--danger); font-size: .84rem; margin: 0; display: none; }
.field.invalid .error { display: block; }

.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; border: 1px solid transparent; border-radius: 12px; }
@media (max-width: 620px) { .checks { grid-template-columns: 1fr; } }
.check {
  display: flex; align-items: center; gap: .7rem;
  padding: .8rem .9rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--black);
  cursor: pointer; font-size: .93rem;
  transition: border-color .15s, background .15s;
}
.check:hover { border-color: #3a3a3a; }
.check input { accent-color: var(--orange); width: 18px; height: 18px; margin: 0; flex: none; }
.check:has(input:checked) { border-color: var(--orange); background: var(--orange-wash); }
.inline-check { display: inline-flex; align-items: center; gap: .55rem; font-size: .9rem; color: var(--muted); cursor: pointer; margin-top: .2rem; }
.inline-check input { accent-color: var(--orange); width: 16px; height: 16px; margin: 0; }
.other-input { margin-top: .5rem; }
.other-input[hidden] { display: none; }
.counter { font: 400 .78rem/1 var(--font-mono); color: var(--muted); align-self: flex-end; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 1.5rem; }
.form-status { margin: 0; font-size: .92rem; color: var(--muted); }
.form-status.err { color: var(--danger); }

.quote-aside { position: sticky; top: 92px; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; background: var(--panel); }
.aside-card + .aside-card { margin-top: 1.25rem; }
.aside-card h3 { font-size: 1.05rem; }
.aside-card ol { margin: 0; padding-left: 1.2rem; color: var(--muted); font-size: .93rem; }
.aside-card ol li { margin-bottom: .6rem; }
.aside-card ol li::marker { color: var(--orange); font-weight: 700; }
.aside-card p { color: var(--muted); font-size: .93rem; margin: 0; }

.success {
  border: 1px solid var(--orange);
  background: linear-gradient(180deg, var(--orange-wash), transparent 70%), var(--panel);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
}
.success .icon { margin: 0 auto 1.2rem; width: 60px; height: 60px; border-radius: 50%; }
.success .icon svg { width: 30px; height: 30px; }
.success p { color: var(--muted); max-width: 48ch; margin-left: auto; margin-right: auto; }
.success code { font-family: var(--font-mono); color: var(--orange); }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .big { font: 700 clamp(5rem, 18vw, 10rem)/1 var(--font-display); color: var(--orange); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
