/* ============================================================
   repomon — Bold editorial mockup
   Color story: near-black ink + electric teal + warm amber
   Type: Archivo Black (display) / Space Grotesk (text) / JetBrains Mono (code)
   ============================================================ */

:root {
  --ink:      #0c0b0a;   /* near-black */
  --paper:    #f4efe6;   /* warm off-white */
  --paper-2:  #ebe3d4;
  --teal:     #00e0c6;   /* electric teal */
  --teal-d:   #00b3a0;
  --amber:    #ff5b1f;   /* warm electric orange */
  --amber-2:  #ffb01f;
  --violet:   #7c5cff;
  --line:     rgba(12,11,10,0.14);

  --maxw: 1280px;

  --f-display: 'Archivo Black', system-ui, sans-serif;
  --f-text: 'Space Grotesk', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-text);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--teal); color: var(--ink); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

kbd {
  font-family: var(--f-mono);
  font-size: 0.82em;
  background: var(--ink);
  color: var(--teal);
  border-radius: 5px;
  padding: 0.08em 0.42em;
  border: 1px solid rgba(0,0,0,0.4);
  box-shadow: 0 2px 0 rgba(0,0,0,0.35);
  white-space: nowrap;
}

code { font-family: var(--f-mono); }

.section-eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.4rem;
  display: inline-block;
  border-bottom: 2px solid var(--amber);
  padding-bottom: 0.35rem;
}
.section-eyebrow.light { color: var(--teal); border-color: var(--teal); }

.hl { color: var(--teal); }
.hl-out {
  color: var(--ink);
  background: var(--amber);
  padding: 0 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-text);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 6px 6px 0 var(--teal);
}
.btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--teal); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: 6px 6px 0 var(--amber); }
.btn-ghost:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--amber); background: var(--ink); color: var(--paper); }
.btn-star {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--ink);
  font-size: 0.9rem;
  padding: 0.6rem 1.1rem;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-star:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-lg { font-size: 1.15rem; padding: 1.1rem 2rem; }

/* ===== TOP MARQUEE ===== */
.topbar {
  background: var(--ink);
  color: var(--teal);
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 2px solid var(--ink);
}
.marquee {
  display: inline-flex;
  padding: 0.5rem 0;
  animation: scroll 28s linear infinite;
}
.marquee span { padding-right: 1rem; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem clamp(1.25rem, 5vw, 4rem);
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.brand {
  font-family: var(--f-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.brand-dot { color: var(--amber); }
.nav-links {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a { position: relative; padding-bottom: 3px; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: var(--teal); transition: width 0.18s ease;
}
.nav-links a:hover::after { width: 100%; }

/* ===== HERO ===== */
.hero {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 5vw, 4rem);
  max-width: var(--maxw);
  margin: 0 auto;
  /* fill the viewport below the ticker + nav, content vertically centered */
  min-height: calc(100svh - 6.5rem);
  display: grid;
  align-content: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.kicker {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-d);
  margin-bottom: 0.8rem;
}
.hero-title {
  font-family: var(--f-display);
  /* grows with both viewport width and height so the hero scales to fill big
     screens but still fits short ones */
  font-size: clamp(2rem, 2.3vw + 1.5vh, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.hero-title em { font-style: italic; font-family: var(--f-text); font-weight: 700; }
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  max-width: 40ch;
  color: rgba(12,11,10,0.78);
  margin-bottom: 1.2rem;
}

/* inline install on hero */
.install-cli {
  display: flex;
  align-items: stretch;
  background: var(--ink);
  border: 2px solid var(--ink);
  margin-bottom: 1.2rem;
  max-width: 460px;
  box-shadow: 5px 5px 0 var(--teal);
}
.install-cli code {
  flex: 1;
  color: var(--paper);
  font-size: 0.88rem;
  padding: 0.85rem 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prompt { color: var(--teal); margin-right: 0.5rem; }
.copy-btn {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--teal);
  color: var(--ink);
  border: none;
  border-left: 2px solid var(--ink);
  padding: 0 1.1rem;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.12s ease;
}
.copy-btn:hover { background: var(--amber-2); }
.copy-btn.copied { background: var(--amber); }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* hero figure */
.hero-figure {
  position: relative;
  border: 2px solid var(--ink);
  background: var(--ink);
  box-shadow: 12px 12px 0 var(--amber);
  transform: rotate(0.6deg);
}
.hero-figure img,
.hero-figure video { width: 100%; display: block; }
.figure-tag {
  position: absolute;
  top: -14px;
  left: 20px;
  background: var(--teal);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border: 2px solid var(--ink);
  z-index: 2;
}

/* ===== STAT STRIP ===== */
.stats {
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.stat {
  padding: clamp(1.8rem, 3vw, 2.6rem) clamp(1.25rem, 3vw, 2.2rem);
  border-right: 1px solid rgba(244,239,230,0.16);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--teal);
  letter-spacing: -0.02em;
}
.stat-lbl { font-size: 0.92rem; color: rgba(244,239,230,0.7); max-width: 22ch; }

/* ===== WEDGE ===== */
.wedge {
  background: var(--amber);
  color: var(--ink);
  padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 5vw, 4rem);
  border-bottom: 2px solid var(--ink);
}
.wedge .section-eyebrow { color: var(--ink); border-color: var(--ink); }
.wedge-head {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 6.5vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
  max-width: 16ch;
}
.strike { position: relative; white-space: nowrap; }
.strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: 6px;
  background: var(--ink); transform: rotate(-2deg);
}
.wedge-body {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  max-width: 42ch;
  margin: 2rem 0 3rem;
  font-weight: 500;
}
.wedge-punch {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.wedge-punch .hl-out { background: var(--ink); color: var(--amber); }
.wedge-foot {
  margin-top: 2.4rem;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 56ch;
  border-left: 5px solid var(--ink);
  padding-left: 1.2rem;
  font-weight: 500;
}

/* ===== FOUR ZOOM LEVELS ===== */
.zoom {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.zoom-intro { position: sticky; top: 90px; }
.zoom-title {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.zoom-lede { margin-top: 1.6rem; color: rgba(244,239,230,0.75); font-size: 1.05rem; max-width: 30ch; }
.zoom-list { list-style: none; }
.zoom-step {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  border-bottom: 1px solid rgba(244,239,230,0.16);
}
.zoom-step:first-child { border-top: 1px solid rgba(244,239,230,0.16); }
.zoom-no {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--teal);
  line-height: 1;
  min-width: 2.4ch;
  letter-spacing: -0.04em;
}
.zoom-text h3 {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.zoom-text p { color: rgba(244,239,230,0.78); font-size: 1.02rem; max-width: 46ch; }

/* ===== FEATURES ===== */
.features {
  background: var(--paper-2);
  padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 5vw, 4rem);
  border-bottom: 2px solid var(--ink);
}
.features-head {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  letter-spacing: -0.025em;
  margin-bottom: 3rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--maxw);
}
.feat {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 1.8rem;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.feat:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--teal); }
.feat h3 {
  font-family: var(--f-display);
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.feat p { color: rgba(12,11,10,0.78); font-size: 1rem; }
.feat-big { grid-column: span 1; background: var(--teal); }
.feat-big:hover { box-shadow: 7px 7px 0 var(--ink); }
.feat-remote { grid-column: span 2; background: var(--ink); color: var(--paper); }
.feat-remote p { color: rgba(244,239,230,0.8); }
.feat-remote:hover { box-shadow: 7px 7px 0 var(--amber); }
.badge-soon {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--ink);
  padding: 0.18em 0.5em;
  border-radius: 99px;
  font-weight: 700;
  align-self: center;
}

/* ===== COMPARISON ===== */
.compare {
  background: var(--teal);
  color: var(--ink);
  padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 5vw, 4rem);
  border-bottom: 2px solid var(--ink);
}
.compare .section-eyebrow.light { color: var(--ink); border-color: var(--ink); }
.compare-head {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  letter-spacing: -0.025em;
  margin-bottom: 2.5rem;
}
.table-wrap { overflow-x: auto; border: 2px solid var(--ink); background: var(--paper); }
.cmp {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 0.95rem;
  min-width: 760px;
}
.cmp th, .cmp td {
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cmp thead th {
  font-family: var(--f-text);
  font-weight: 700;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  position: sticky;
  top: 0;
}
.cmp thead th.me { background: var(--teal); color: var(--ink); }
.cmp tbody th[scope="row"] {
  font-weight: 700;
  background: var(--paper-2);
  width: 14ch;
}
.cmp td.me {
  background: rgba(0,224,198,0.16);
  font-weight: 600;
  border-left: 3px solid var(--teal);
  border-right: 3px solid var(--teal);
}
.cmp tbody tr:last-child td, .cmp tbody tr:last-child th { border-bottom: none; }
.cmp .badge-soon { font-size: 0.55rem; }
.compare-note {
  margin-top: 2rem;
  font-size: 1.1rem;
  max-width: 64ch;
  font-weight: 500;
}

/* ===== INSTALL ===== */
.install {
  background: var(--paper);
  padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 5vw, 4rem);
  border-bottom: 2px solid var(--ink);
}
.install-head {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  letter-spacing: -0.025em;
  margin-bottom: 2.5rem;
}
.install-cards { display: flex; flex-direction: column; gap: 1.4rem; max-width: 920px; }
.install-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-d);
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.cmd {
  display: flex;
  align-items: stretch;
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}
.cmd code {
  flex: 1;
  color: var(--paper);
  font-size: 0.9rem;
  padding: 0.95rem 1.1rem;
  overflow-x: auto;
  white-space: nowrap;
}
.install-fine {
  margin-top: 2.4rem;
  font-size: 1rem;
  color: rgba(12,11,10,0.8);
  max-width: 62ch;
}
.install-fine code {
  background: var(--ink);
  color: var(--teal);
  padding: 0.08em 0.4em;
  border-radius: 4px;
  font-size: 0.85em;
}
.install-prereq { margin-top: 2.2rem; }
.prereq-title { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 1rem; }
.prereq-title code { background: var(--ink); color: var(--teal); padding: 0.08em 0.4em; border-radius: 4px; font-size: 0.85em; }
.prereq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 820px;
}
.prereq-card { display: flex; flex-direction: column; gap: 0.5rem; }
.prereq-os {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-d);
}
.prereq-cmd {
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--teal);
  padding: 0.6rem 0.85rem;
  overflow-x: auto;
}
.prereq-cmd code { font-family: var(--f-mono); font-size: 0.85rem; color: var(--paper); white-space: nowrap; }
.prereq-cmd .prompt { color: var(--teal); margin-right: 0.45rem; }
@media (max-width: 600px) { .prereq-grid { grid-template-columns: 1fr; } }

/* ===== FINAL CTA ===== */
.final-cta {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: clamp(5rem, 11vw, 9rem) clamp(1.25rem, 5vw, 4rem);
}
.final-head {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
}
.final-head { color: var(--paper); }
.final-actions { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.final-cta .btn-ghost { color: var(--paper); border-color: var(--paper); }
.final-cta .btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* ===== FOOTER ===== */
.footer {
  background: var(--paper);
  padding: 2.5rem clamp(1.25rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-brand { font-family: var(--f-display); font-size: 1.3rem; }
.footer-links { display: flex; gap: 1.4rem; font-weight: 600; font-size: 0.95rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--teal-d); }
.footer-meta {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: rgba(12,11,10,0.6);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { transform: none; margin-top: 1rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(244,239,230,0.16); }
  .zoom { grid-template-columns: 1fr; }
  .zoom-intro { position: static; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-remote, .feat-big { grid-column: span 2; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .marquee { animation-duration: 18s; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid rgba(244,239,230,0.16); }
  .stat:last-child { border-bottom: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feat-remote, .feat-big { grid-column: span 1; }
  .hero-cta, .final-actions { flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .final-actions .btn { justify-content: center; }
  .install-cli { max-width: 100%; }
  .install-cli code { font-size: 0.78rem; }
  .footer-meta { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
