:root {
  color-scheme: dark;
  --bg: #0b0c0e;
  --bg-deep: #070809;
  --surface: #111316;
  --surface-2: #171a1e;
  --line: #2c3035;
  --text: #f4f5f6;
  --muted: #a4a9b0;
  --amber: #ffc400;
  --amber-dark: #e5ad00;
  --cyan: #5fd3e6;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(7,8,9,.86);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; font-weight: 750; }
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-size: 13px;
  font-weight: 850;
}
.site-nav { display: flex; align-items: center; gap: 32px; color: var(--muted); font-size: 14px; }
.site-nav a:hover { color: var(--text); }
.header-action { justify-self: end; color: var(--amber); font-size: 14px; font-weight: 750; }

.hero {
  position: relative;
  min-height: min(860px, 88svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,8,9,.98) 0%, rgba(7,8,9,.88) 34%, rgba(7,8,9,.25) 70%, rgba(7,8,9,.12) 100%); }
.hero-content { position: relative; z-index: 2; width: min(100% - 48px, var(--max)); margin: 80px auto 0; }
.eyebrow, .section-label { margin: 0 0 18px; color: var(--amber); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--cyan); box-shadow: 0 0 0 4px rgba(95,211,230,.12); }
h1, h2, h3, p { letter-spacing: 0; overflow-wrap: anywhere; }
h1 { max-width: 720px; margin: 0; font-size: clamp(58px, 9vw, 116px); line-height: .92; font-weight: 820; }
.hero-copy { max-width: 650px; margin: 30px 0 0; color: #d1d4d7; font-size: clamp(18px, 2vw, 23px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; border: 1px solid transparent; font-size: 15px; font-weight: 800; }
.button-primary { background: var(--amber); color: #0a0b0c; }
.button-primary:hover { background: #ffd234; }
.button-secondary { border-color: #4a4f55; background: rgba(12,14,16,.72); color: var(--text); }
.button-secondary:hover { border-color: #7f858d; }
.hero-stats { max-width: 760px; display: grid; grid-template-columns: repeat(3, 1fr); margin: 62px 0 0; border-top: 1px solid rgba(255,255,255,.18); }
.hero-stats div { padding: 18px 18px 0 0; }
.hero-stats dt { color: var(--text); font-weight: 780; }
.hero-stats dd { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.band { border-bottom: 1px solid var(--line); }
.band-dark { background: var(--bg-deep); }
.section-inner { width: min(100% - 48px, var(--max)); margin: 0 auto; padding: 96px 0; }
.intro-grid, .process-layout, .index-layout, .faq-layout, .final-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(48px, 8vw, 120px); }
.intro-grid > *, .process-layout > *, .index-layout > *, .faq-layout > *, .final-layout > *, .hero-stats > * { min-width: 0; }
h2 { max-width: 720px; margin: 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.1; font-weight: 780; }
h3 { margin: 0; font-size: 20px; line-height: 1.3; }
.intro-copy p, .process-copy > p:not(.section-label), .index-copy p { margin: 0 0 18px; color: var(--muted); font-size: 18px; }
.section-heading { max-width: 760px; margin-bottom: 56px; }

.format-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.format-item { min-height: 330px; display: flex; flex-direction: column; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.format-number { margin-bottom: 58px; color: var(--amber); font-size: 12px; font-weight: 800; }
.format-item p { color: var(--muted); }
.format-item code { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); color: var(--cyan); font-size: 13px; }

.process-copy { align-self: start; position: sticky; top: 112px; }
.text-link { display: inline-flex; gap: 8px; margin-top: 16px; color: var(--amber); font-weight: 750; }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-list li { display: grid; grid-template-columns: 72px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.process-list li > span { color: var(--amber); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.process-list p { margin: 7px 0 0; color: var(--muted); }

.index-layout { align-items: center; }
.index-panel { min-height: 430px; padding: 24px; border: 1px solid #3a3f45; background: #090a0c; box-shadow: 0 26px 80px rgba(0,0,0,.35); }
.panel-head { display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--amber); font: 700 11px ui-monospace, monospace; }
.panel-state { color: var(--cyan); }
.profile-line { display: flex; align-items: center; gap: 18px; margin: 38px 0; }
.profile-avatar { width: 62px; height: 62px; border: 1px solid #4c5259; background: linear-gradient(145deg, #282c31, #101215); }
.profile-line span:last-child { display: flex; flex-direction: column; }
.profile-line small { color: var(--muted); }
.timeline { height: 122px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: #565d65; }
.timeline span { z-index: 1; width: 14px; height: 14px; border: 3px solid #090a0c; background: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.timeline span:nth-child(3), .timeline span:nth-child(4) { background: var(--cyan); box-shadow: 0 0 0 1px var(--cyan); }
.panel-fields { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.panel-fields span { padding: 14px 8px; border-right: 1px solid var(--line); color: var(--muted); text-align: center; font: 700 10px ui-monospace, monospace; }
.panel-fields span:last-child { border-right: 0; }

.resource-list { border-top: 1px solid var(--line); }
.resource-list a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); font-size: clamp(20px, 3vw, 34px); font-weight: 680; }
.resource-list a:hover { color: var(--amber); }
.resource-list b { color: var(--amber); font: 700 12px ui-monospace, monospace; }

.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 24px 38px 24px 0; list-style: none; position: relative; font-weight: 720; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; color: var(--amber); font-size: 24px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: 0; padding: 0 42px 24px 0; color: var(--muted); }

.final-cta { background: var(--amber); color: #0b0c0e; }
.final-layout { align-items: end; padding: 72px 0; }
.final-cta .section-label { color: #4b3900; }
.final-cta .button-primary { justify-self: end; border: 1px solid #0b0c0e; background: #0b0c0e; color: white; }
.site-footer { width: min(100% - 48px, var(--max)); min-height: 92px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; margin: 0 auto; color: var(--muted); font-size: 13px; }
.site-footer a { justify-self: end; color: var(--text); }

@media (max-width: 800px) {
  .site-header { height: 64px; grid-template-columns: 1fr auto; padding: 0 20px; }
  .site-nav { display: none; }
  .header-action { font-size: 13px; }
  .hero { min-height: 820px; align-items: flex-end; }
  .hero-image { object-position: 67% center; opacity: .72; }
  .hero-shade { background: linear-gradient(180deg, rgba(7,8,9,.3), rgba(7,8,9,.84) 48%, rgba(7,8,9,.99) 82%); }
  .hero-content { width: min(100% - 40px, var(--max)); margin: 0 auto 42px; }
  h1 { font-size: clamp(54px, 18vw, 78px); }
  .hero-copy { font-size: 18px; }
  .hero-stats { margin-top: 42px; }
  .hero-stats dd { display: none; }
  .section-inner { width: min(100% - 40px, var(--max)); padding: 72px 0; }
  .intro-grid, .process-layout, .index-layout, .faq-layout, .final-layout { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .format-grid { grid-template-columns: 1fr; }
  .format-item { min-height: 270px; }
  .format-number { margin-bottom: 38px; }
  .process-copy { position: static; }
  .index-panel { min-height: 360px; padding: 18px; }
  .panel-fields { grid-template-columns: repeat(2, 1fr); }
  .panel-fields span { border-bottom: 1px solid var(--line); }
  .resource-list a { font-size: 20px; }
  .final-cta .button-primary { justify-self: start; }
  .site-footer { grid-template-columns: 1fr; padding: 28px 0; gap: 8px; }
  .site-footer a { justify-self: start; }
}

@media (max-width: 420px) {
  .site-header { gap: 12px; }
  .brand { white-space: nowrap; }
  .header-action { width: 40px; height: 40px; display: grid; place-items: center; overflow: hidden; font-size: 0; border: 1px solid #4a4f55; }
  .header-action span { font-size: 18px; }
  h2 { font-size: clamp(26px, 12vw, 34px); }
  .process-list li { grid-template-columns: 48px minmax(0, 1fr); gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
