:root {
  --bg: #111315;
  --bg-2: #15181c;
  --panel: #181b1f;
  --panel-soft: #20242a;
  --text: #ede7dc;
  --muted: #b8afa2;
  --faint: #7f786f;
  --accent: #c78f45;
  --accent-soft: #e0b86f;
  --signal: #6fa8b8;
  --line: #343a42;
  --danger: #c97064;
  --success: #7fa77b;
  --shadow: rgba(0, 0, 0, .28);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(111, 168, 184, .12), transparent 28rem),
    radial-gradient(circle at 82% 8%, rgba(199, 143, 69, .12), transparent 26rem),
    linear-gradient(180deg, var(--bg) 0%, #0e1012 100%);
  font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(237, 231, 220, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237, 231, 220, .035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.12));
}

a {
  color: var(--accent-soft);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 20;
  padding: .7rem 1rem;
  border-radius: 999px;
  color: var(--bg);
  background: var(--accent-soft);
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(17, 19, 21, .84);
  border-bottom: 1px solid rgba(52, 58, 66, .72);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--text);
  font-weight: 700;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--accent-soft);
  background: rgba(255, 255, 255, .03);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: -.06em;
}

.brand-text {
  letter-spacing: .01em;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  padding: .55rem .75rem;
  border-radius: 999px;
  font-size: .94rem;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  text-decoration: none;
}

.nav-links .nav-cta {
  color: var(--bg);
  background: var(--accent);
  font-weight: 700;
}

.nav-links .nav-cta:hover {
  color: var(--bg);
  background: var(--accent-soft);
}

.hero {
  padding: 84px 0 72px;
  border-bottom: 1px solid rgba(52, 58, 66, .6);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, .84fr);
  gap: 32px;
  align-items: center;
}

.kicker,
.section-number,
.panel-label {
  margin: 0 0 1rem;
  color: var(--signal);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.1rem;
  font-size: clamp(4rem, 11vw, 8.2rem);
  line-height: .84;
  letter-spacing: -.07em;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: .96;
  letter-spacing: -.045em;
}

h3 {
  margin-bottom: .55rem;
  font-size: 1.08rem;
  line-height: 1.2;
  color: var(--text);
}

.hero-subtitle {
  max-width: 780px;
  margin-bottom: 1rem;
  color: var(--text);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.18;
  letter-spacing: -.02em;
}

.hero-body,
.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .78rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.button:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.button.primary {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent-soft);
  box-shadow: 0 14px 34px rgba(199, 143, 69, .18);
}

.button.primary:hover {
  background: var(--accent-soft);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, .035);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, .06);
}

.hero-panel {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(32, 36, 42, .92), rgba(24, 27, 31, .92));
  box-shadow: 0 24px 70px var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(184, 175, 162, .2);
  border-radius: 22px;
  pointer-events: none;
}

.system-loop {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: loop;
}

.system-loop li {
  counter-increment: loop;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(52, 58, 66, .86);
  border-radius: 16px;
  background: rgba(17, 19, 21, .52);
}

.system-loop li::before {
  content: counter(loop, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--accent-soft);
  background: rgba(199, 143, 69, .1);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
}

.system-loop span {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
}

.section {
  padding: 74px 0;
  border-bottom: 1px solid rgba(52, 58, 66, .55);
}

.section.alt {
  background: rgba(255, 255, 255, .018);
}

.split {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr);
  gap: 48px;
}

.section-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.problem-card,
.not-item,
.intake-form,
.form-alert {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(24, 27, 31, .78);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .16);
}

.problem-card {
  padding: 20px;
}

.problem-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .98rem;
}

.not-list {
  display: grid;
  gap: 12px;
}

.not-item {
  padding: 16px 18px;
  color: var(--muted);
}

.not-item::before {
  content: "—";
  color: var(--accent-soft);
  margin-right: .5rem;
}

.intake-header {
  max-width: 820px;
  margin-bottom: 28px;
}

.intake-form {
  padding: clamp(20px, 4vw, 36px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

label,
fieldset {
  display: block;
  margin: 0 0 20px;
}

label span,
legend {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 700;
}

legend span {
  display: inline;
  color: var(--muted);
  font-weight: 400;
}

em {
  color: var(--accent-soft);
  font-style: normal;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  color: var(--text);
  background: rgba(17, 19, 21, .82);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: .9rem .95rem;
  font: inherit;
  outline: none;
}

textarea {
  resize: vertical;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(111, 168, 184, .15);
}

fieldset {
  padding: 0;
  border: 0;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.check-grid label,
.radio-row label {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: 0;
  padding: .75rem .8rem;
  border: 1px solid rgba(52, 58, 66, .84);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: rgba(17, 19, 21, .48);
  font-weight: 500;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
  margin-top: .2rem;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 8px;
  border-top: 1px solid rgba(52, 58, 66, .7);
}

.form-footer p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}

.form-alert {
  margin-bottom: 20px;
  padding: 18px;
  color: var(--text);
  border-color: rgba(201, 112, 100, .72);
  background: rgba(201, 112, 100, .12);
}

.form-alert ul {
  margin-bottom: 0;
}

.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.site-footer {
  padding: 42px 0;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}

.footer-brand {
  margin-bottom: .3rem;
  color: var(--text);
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--faint);
  font-size: .92rem;
}

.simple-page {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.simple-wrap {
  padding: 80px 0;
}

.simple-wrap h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

.prose {
  max-width: 820px;
}

.prose h1 {
  margin-bottom: 1.4rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -.025em;
}

.prose p {
  color: var(--muted);
  font-size: 1.08rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-top: 58px;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 28px, var(--max));
  }

  .nav-wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding: 44px 0 52px;
  }

  .section {
    padding: 54px 0;
  }

  h1 {
    font-size: clamp(3.15rem, 18vw, 5.4rem);
  }

  .problem-grid,
  .form-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .form-footer .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
