/* ============================================================
   KOMputer — alt intro page
   Brand-matched to komputer.steeptech.dev
   ============================================================ */
:root {
  --bg: #0e0f11;
  --bg-alt: #14161a;
  --surface: #181b20;
  --line: #24282f;
  --line-soft: #1d2127;
  --ink: #e8eaf0;
  --ink-soft: #a2abb8;
  --ink-faint: #6b7280;
  --accent: #e8ff47;
  --accent-dim: #cfe63a;
  --slate: #3a4a5c;
  --radius: 12px;
  --wrap: 1080px;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Syne", "Barlow", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }

p { color: var(--ink-soft); }

.hl { color: var(--accent); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 15, 17, 0.78);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(14, 15, 17, 0.92); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
/* Explicit width AND height (matching the 732:120 viewBox ratio) so no
   browser has to infer intrinsic size — fixes Safari/WebKit SVG sizing. */
.brand__logo { width: auto; height: 38px; display: block; flex: none; }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { text-decoration: none; color: var(--ink-soft); font-size: 0.92rem; font-weight: 600; transition: color 0.15s ease; }
.nav__links a:hover { color: var(--ink); }
.nav__links a.btn { color: #0e0f11; }
.nav__links a.btn:hover { color: #0e0f11; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 700; font-size: 0.86rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 13px 24px; border-radius: 6px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: all 0.18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #0e0f11; }
.btn--primary:hover { background: var(--accent-dim); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 9px 18px; font-size: 0.78rem; background: var(--accent); color: #0e0f11; }
.btn--sm:hover { background: var(--accent-dim); }
.btn--lg { padding: 16px 30px; font-size: 0.92rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(76px, 12vw, 140px) 0 clamp(48px, 7vw, 88px); position: relative; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 0%, rgba(232, 255, 71, 0.06), transparent 70%);
}
.hero__title { max-width: 15ch; }
.hero__lede { font-size: clamp(1.08rem, 2vw, 1.3rem); color: var(--ink-soft); max-width: 58ch; margin-top: 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.4rem; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 3.8rem; padding-top: 2.4rem; border-top: 1px solid var(--line);
}
.stat dt { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.55rem; }
.stat dd { font-size: 1rem; font-weight: 600; color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 108px) 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.section__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.section__head h2 { margin-top: 0.2rem; }
.section__head--center { text-align: center; max-width: 660px; margin: 0 auto 3.4rem; }
.section__intro { margin-top: 1.2rem; font-size: 1.06rem; }
.section__body p + p { margin-top: 1.1rem; }

.pullquote {
  margin-top: 1.9rem; padding-left: 20px; border-left: 3px solid var(--accent);
  font-size: 1.15rem; font-weight: 500; color: var(--ink);
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; max-width: 760px; margin: 0 auto; display: grid; gap: 6px; }
.timeline__item {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: start;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.timeline__item:first-child { border-top: none; }
.timeline__step { font-family: var(--mono); font-size: 1.05rem; font-weight: 700; color: var(--accent); padding-top: 3px; }
.timeline__item h3 { margin-bottom: 0.55rem; }

/* ---------- Cards (stack) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 2.8rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
.card p { font-size: 0.94rem; flex: 1; }
.tag {
  align-self: flex-start; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); background: rgba(232, 255, 71, 0.09);
  padding: 5px 10px; border-radius: 4px;
}

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 40px; }
.feature { position: relative; padding-top: 20px; border-top: 2px solid var(--accent); }
.feature h3 { margin-bottom: 0.55rem; }
.feature p { font-size: 0.95rem; }

/* ---------- Disclosure (dev-audience detail) ---------- */
.disclosure {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin-top: 2.8rem;
}
.disclosure__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  cursor: pointer; list-style: none;
}
.disclosure__summary::-webkit-details-marker { display: none; }
.disclosure__summary .eyebrow { margin-bottom: 0.4rem; }
.disclosure__title { font-size: 1.05rem; }
.disclosure__chevron {
  flex: none; width: 22px; height: 22px; position: relative;
  border: 1px solid var(--line); border-radius: 50%; transition: transform 0.2s ease, border-color 0.2s ease;
}
.disclosure__chevron::before, .disclosure__chevron::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--ink-soft);
  transform: translate(-50%, -50%);
}
.disclosure__chevron::before { width: 10px; height: 1.5px; }
.disclosure__chevron::after { width: 1.5px; height: 10px; transition: opacity 0.2s ease; }
.disclosure[open] .disclosure__chevron { transform: rotate(45deg); border-color: var(--accent); }
.disclosure[open] .disclosure__chevron::before, .disclosure[open] .disclosure__chevron::after { background: var(--accent); }

.disclosure__body { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.disclosure__intro { font-size: 0.95rem; }

.stack-list { margin-top: 1.6rem; display: grid; gap: 0; }
.stack-list__item {
  display: grid; grid-template-columns: 160px 1fr; gap: 20px;
  padding: 16px 0; border-top: 1px solid var(--line-soft);
}
.stack-list__item:first-child { border-top: none; }
.stack-list__item dt {
  font-family: var(--mono); font-size: 0.82rem; font-weight: 700; color: var(--accent);
}
.stack-list__item dd { font-size: 0.9rem; color: var(--ink-soft); }

.callouts { list-style: none; margin-top: 1.8rem; display: grid; gap: 12px; }
.callouts li {
  font-size: 0.9rem; color: var(--ink-soft); padding-left: 20px; position: relative;
}
.callouts li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}
.callouts strong { color: var(--ink); font-weight: 700; }

/* ---------- CTA ---------- */
.cta { padding: clamp(76px, 11vw, 124px) 0; text-align: center; position: relative; }
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 70% at 50% 100%, rgba(232, 255, 71, 0.07), transparent 70%);
}
.cta__inner { max-width: 600px; margin: 0 auto; }
.cta p { margin: 1rem 0 0; font-size: 1.08rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 2rem; }
.cta__contact { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-faint); margin-top: 2.4rem; }
.cta__contact a { color: var(--accent); text-decoration: none; }
.cta__contact a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer .brand__logo { width: auto; height: 32px; }
.footer__meta { font-size: 0.84rem; color: var(--ink-faint); font-family: var(--mono); }
.footer a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.footer a:hover { color: var(--accent); }

.wordmark { display: inline-flex; align-items: center; gap: 8px; }
.wordmark__icon { display: block; flex: none; border-radius: 4px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .section__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; gap: 18px; }
  .stack-list__item { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 620px) {
  .nav__links { gap: 14px; }
  .nav__links a:not(.btn) { display: none; }
  .cards, .features { grid-template-columns: 1fr; }
  .timeline__item { grid-template-columns: 44px 1fr; gap: 14px; }
}
