/* ─────────────────────────────────────────────────────────
   codehamr — landing 2026 (positioning overhaul)
   Direction: warm dark workshop, identity-first, hammer voice.
   ──────────────────────────────────────────────────────── */

:root {
  /* surfaces */
  --bg:        #0d0b09;
  --bg-soft:   #15110d;
  --bg-card:   #19150f;
  --bg-elev:   #211c14;

  /* ink */
  --ink:       #f6f2e9;
  --ink-soft:  #aaa499;
  --ink-mute:  #6b6557;
  --rule:      #2a2620;
  --rule-soft: #1d1a14;

  /* accent — single */
  --orange:        #ff5b29;
  --orange-bright: #ff7a4a;
  --orange-deep:   #c43a14;
  --orange-soft:   #ffd2bb;

  /* status — minimal */
  --sage:          #6fc97a;  /* heartbeat dot only */

  /* control geometry */
  --control-h: 44px;
  --control-r: 6px;

  /* layout */
  --pad-page:    clamp(1.1rem, 3.5vw, 2.4rem);
  --pad-section: clamp(2.6rem, 6vw, 5rem);
  --max:         1180px;

  /* type */
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(900px 420px at 18% -8%, rgba(255,91,41,.05), transparent 60%),
    var(--bg);
}

::selection { background: var(--orange); color: var(--bg); }

a { color: inherit; }

.grain {
  pointer-events: none;
  position: fixed; inset: 0;
  z-index: 100;
  opacity: .08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}


/* ─── nav ───────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto;
  padding: .75rem var(--pad-page);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}

.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.005em;
  font-size: 1rem;
}
.brand__glyph { width: 22px; height: 22px; fill: var(--orange); }
.brand__word  { letter-spacing: .005em; }

.nav__links {
  display: none;
  gap: 1.4rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-soft);
  justify-content: center;
}
.nav__links a { text-decoration: none; transition: color .18s var(--ease-out); }
.nav__links a:hover { color: var(--orange); }
@media (min-width: 880px) {
  .nav__links { display: inline-flex; }
}

.nav__heartbeat {
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.dot {
  display: inline-block;
  width: .5rem; height: .5rem;
  background: var(--sage);
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 22%, transparent);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 22%, transparent); }
  50%      { box-shadow: 0 0 0 6px color-mix(in srgb, var(--sage) 4%, transparent); }
}


/* ─── shared section atoms ─────────────────────────────── */

main {
  display: block;
  padding: 0 0 var(--pad-section);
}

.sec {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--pad-section) var(--pad-page);
  border-top: 1px solid var(--rule-soft);
}
.sec:first-of-type { border-top: 0; }

.sec__head {
  margin: 0 0 1.8rem;
  max-width: 60ch;
}
.sec__head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.kicker {
  margin: 0 0 .9rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--orange);
}

.h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 80%;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -.025em;
  line-height: 1;
  color: var(--ink);
  text-wrap: balance;
}
.h1__line { display: block; }
.h1__line--mark { color: var(--orange); }

.h2 {
  margin: 0 0 .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}

.lede {
  margin: 0 0 1rem;
  max-width: 60ch;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.65;
}
.lede strong { color: var(--ink); font-weight: 600; }
.lede code   { color: var(--orange-bright); }

.ctas {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--control-h);
  padding: 0 1.2rem;
  border: 1px solid var(--rule);
  border-radius: var(--control-r);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s var(--ease-out),
              background .18s var(--ease-out),
              color .18s var(--ease-out),
              transform .12s var(--ease-out);
}
.btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.btn:hover { border-color: var(--orange); color: var(--ink); }
.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--orange-bright);
  border-color: var(--orange-bright);
  color: var(--bg);
  transform: translateY(-1px);
}
.btn--ghost { background: transparent; }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn--full { width: 100%; }
.btn[aria-disabled="true"],
.btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
}
.btn[aria-disabled="true"]:hover,
.btn[disabled]:hover { transform: none; }


/* ─── 01 hero ───────────────────────────────────────────── */

.sec--hero {
  border-top: 0;
  padding-top: clamp(2.4rem, 5vw, 4rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); }
}

.hero__copy { min-width: 0; }
.hero__copy .lede { margin-top: 1.1rem; max-width: 50ch; }


/* ─── terminal ──────────────────────────────────────────── */

.term {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  height: 380px;            /* fixed: animation must not grow the section */
}
.term__chrome {
  display: flex; align-items: center; gap: .4rem;
  padding: .55rem .75rem;
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid var(--rule-soft);
}
.term__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--rule);
  display: inline-block;
}
.term__dot--r { background: #ff5b53; }
.term__dot--y { background: #ffbe2e; }
.term__dot--g { background: #28c93f; }
.term__title {
  margin-left: auto;
  color: var(--ink-mute);
  font-size: .7rem;
  letter-spacing: .02em;
}
.term__body {
  flex: 1;
  padding: .85rem 1rem;
  overflow: hidden;
  font-size: .85rem;
  line-height: 1.6;
}
.term__stage { display: flex; flex-direction: column; }
.term__line {
  white-space: pre-wrap;
  color: var(--ink);
  display: block;
  min-height: 1.4em;
}
.term__line.is-active::after {
  content: "▎";
  color: var(--orange);
  animation: blink 1s steps(2) infinite;
  margin-left: 1px;
}
@keyframes blink { 50% { opacity: 0; } }
.term__line.tk-dim    { color: var(--ink-mute); }
.term__line.tk-ok     { color: var(--sage); }
.term__line.tk-user   { color: var(--orange-bright); }
.term__line.tk-cmd    { color: var(--ink); }
.term__line.tk-prompt { color: var(--ink-soft); }

.term__footer {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .85rem;
  border-top: 1px solid var(--rule-soft);
  font-size: .68rem;
  color: var(--ink-mute);
}
.term__pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 22%, transparent);
}
.term__rt { display: inline-flex; align-items: center; gap: .35rem; }
.term__lbl { color: var(--ink-mute); text-transform: uppercase; letter-spacing: .15em; font-size: .58rem; }
.term__rt code {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: .7rem;
}
.term__sep { color: var(--ink-mute); }


/* ─── 02 / 03 · IS / IS-NOT (symmetric what-list) ──────── */

.what-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 78ch;
}
.what-item {
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  gap: .8rem;
  padding: .95rem 0;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--font-display);
  font-weight: 600;
  font-stretch: 90%;
  font-size: 1.15rem;
  letter-spacing: -.005em;
  line-height: 1.3;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.what-item:first-child { border-top: 0; }
.what-item__mark {
  color: var(--orange);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
}
.what-item__txt {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 540px) {
  .what-item {
    font-size: 1rem;
    white-space: normal;
  }
  .what-item__txt { white-space: normal; }
}

.what-foot {
  margin: 1.4rem 0 0;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: .78rem;
}
.what-foot a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}
.what-foot a:hover { color: var(--orange); text-decoration-color: var(--orange); }


/* ─── 03b we love local ─────────────────────────────────── */

.love-lede {
  max-width: 60ch;
  font-size: 1.05rem;
}


/* ─── 04 pick the right tool ────────────────────────────── */

.pick-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
  max-width: 78ch;
}

.pick-line {
  display: grid;
  grid-template-columns: 11.5rem 1fr;
  gap: .9rem;
  align-items: baseline;
  border: 1px solid var(--rule-soft);
  background: var(--bg-soft);
  border-radius: 6px;
  padding: .95rem 1.1rem;
  font-family: var(--font-mono);
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.pick-line strong {
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-display);
}
.pick-line__body {
  display: block;
}
@media (max-width: 560px) {
  .pick-line {
    grid-template-columns: 1fr;
    gap: .25rem;
  }
}
.pick-line__link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease-out), border-color .18s var(--ease-out);
}
.pick-line__link:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}
.pick-line__arr {
  display: inline-block;
  margin-left: .2em;
  color: var(--ink-mute);
  font-weight: 500;
  font-size: .82em;
  transition: color .18s var(--ease-out);
}
.pick-line__link:hover .pick-line__arr { color: var(--orange); }
.pick-line--me {
  border-color: rgba(255, 91, 41, .45);
  background: color-mix(in srgb, var(--orange) 6%, var(--bg-soft));
  color: var(--ink);
}
.pick-line--me strong { color: var(--orange); }


/* ─── 05 three paths ────────────────────────────────────── */

.path-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 880px) {
  .path-grid { grid-template-columns: repeat(3, 1fr); }
}

.path-card {
  position: relative;
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  padding: 1.1rem 1.2rem 1.25rem;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.path-card__lab {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-mute);
}
.path-card__title {
  margin: .15rem 0 .45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: 1.35rem;
  letter-spacing: -.015em;
  color: var(--ink);
}
.path-card__cmd {
  display: block;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--ink-soft);
  margin: 0 0 .35rem;
}
.path-card__cmd em {
  color: var(--orange);
  font-style: normal;
}
.path-card__body {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .9rem;
  line-height: 1.6;
  color: var(--ink-soft);
  flex: 1;
}
.path-card__body code {
  color: var(--orange-bright);
  font-family: var(--font-mono);
  font-size: .82em;
}
.path-card .btn { margin-top: .9rem; }

.path-card--feat {
  border-color: rgba(255, 91, 41, .45);
  background: color-mix(in srgb, var(--orange) 5%, var(--bg-soft));
}
.path-card--feat .path-card__lab { color: var(--orange); }
.path-card__ribbon {
  position: absolute;
  top: -.6rem; right: 1rem;
  background: var(--orange);
  color: var(--bg);
  padding: .15rem .55rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 700;
}


/* ─── 06 setup ─────────────────────────────────────────── */

.setup-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 88ch;
}

.setup-block {
  border: 1px solid var(--rule-soft);
  background: var(--bg-soft);
  border-radius: 6px;
  overflow: hidden;
}

.setup-block__head {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: rgba(255,255,255,.025);
  border-bottom: 1px solid var(--rule-soft);
}

.setup-block__label {
  margin: 0;
  padding: .5rem .9rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.setup-copy {
  border: 0;
  background: transparent;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .5rem .9rem;
  cursor: pointer;
  border-left: 1px solid var(--rule-soft);
  transition: color .18s var(--ease-out), background .18s var(--ease-out);
}
.setup-copy:hover { color: var(--orange); background: rgba(255,91,41,.06); }
.setup-copy:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.setup-copy.is-copied { color: var(--sage); }

.setup-hint {
  margin: 0;
  padding: 0 .15rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.setup-hint code {
  color: var(--orange-bright);
  font-family: var(--font-mono);
  font-size: .9em;
}

.setup-block__code {
  margin: 0;
  padding: 1rem 1.05rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.6;
  color: var(--ink);
  overflow-x: auto;
  white-space: pre;
}

.setup-block__code code {
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  white-space: pre;
}

.setup-note {
  margin: 1.4rem 0 0;
  max-width: 78ch;
  font-family: var(--font-mono);
  font-size: .92rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.setup-note code {
  color: var(--orange-bright);
  font-family: var(--font-mono);
  font-size: .9em;
}


/* ─── 07 final cta ──────────────────────────────────────── */

.sec--final {
  text-align: center;
  padding: clamp(2.6rem, 6vw, 5rem) var(--pad-page) clamp(3rem, 7vw, 5.5rem);
}
.sec--final .kicker { display: inline-block; }
.sec--final .h1 {
  margin: .35rem auto .55rem;
  font-size: clamp(1.9rem, 5.5vw, 3.4rem);
  max-width: 18ch;
}
.sec--final .lede {
  margin: 0 auto 1.2rem;
  max-width: 50ch;
}
.sec--final .ctas { justify-content: center; }


/* ─── footer ────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--rule-soft);
  padding: 1.4rem var(--pad-page) 2rem;
  margin-top: 1rem;
}
.foot__row {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
  align-items: center;
  text-align: center;
}
.brand--foot { font-size: .9rem; }
.brand--foot .brand__glyph { width: 18px; height: 18px; }
.foot__copy {
  color: var(--ink-mute);
  font-size: .72rem;
  letter-spacing: .02em;
}
.foot__links {
  display: inline-flex;
  gap: 1.2rem;
  justify-content: center;
}
.foot__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .02em;
  transition: color .18s var(--ease-out);
}
.foot__links a:hover { color: var(--orange); }

@media (min-width: 880px) {
  .foot__row {
    grid-template-columns: auto 1fr auto;
    text-align: left;
  }
  .foot__links { justify-content: flex-end; }
}
