/* ============================================================
   How's My AI Coding — landing page
   Terminal / scorecard aesthetic. Zero dependencies.
   ============================================================ */

:root {
  --bg:        #0a0d12;
  --bg-soft:   #0e131a;
  --surface:   #11161f;
  --surface-2: #161c27;
  --border:    #232b38;
  --border-soft:#1a212c;

  --text:      #e8edf3;
  --muted:     #8a94a3;
  --faint:     #5c6675;

  --green:     #4ade80;
  --green-dim: #2ea043;
  --amber:     #fbbf24;
  --red:       #f87171;
  --accent:    #5eead4;       /* teal — links / brand pop */
  --accent-2:  #7dd3fc;

  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1080px;
  --radius: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(94,234,212,0.07), transparent 60%),
    radial-gradient(700px 420px at 8% 4%, rgba(125,211,252,0.05), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

code { font-family: var(--mono); font-size: 0.92em; }

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

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #04201b; padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; z-index: 100; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,13,18,0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: baseline; gap: 7px; font-family: var(--mono); font-weight: 700; color: var(--text); font-size: 1.02rem; }
.brand:hover { text-decoration: none; }
.brand__mark { color: var(--green); animation: blink 1.2s step-end infinite; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav__links a:hover { color: var(--text); text-decoration: none; }
.nav__gh {
  border: 1px solid var(--border); padding: 7px 14px; border-radius: 8px;
  color: var(--text) !important;
}
.nav__gh:hover { border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px;
  align-items: center;
  padding: 84px 24px 72px;
}
.eyebrow { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); margin: 0 0 18px; letter-spacing: 0.02em; }
.eyebrow a { color: var(--accent); }
.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.02; font-weight: 800; letter-spacing: -0.025em;
  margin: 0 0 22px;
}
.grad {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 45%, var(--green) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: 1.12rem; color: #c4ccd6; margin: 0 0 30px; max-width: 38ch; }
.hero__sub code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; color: var(--accent); }
.hero__sub strong { color: var(--text); }

.cta__then { font-size: 0.95rem; color: var(--muted); margin: 12px 2px 0; }
.cta__then code { background: var(--surface-2); padding: 2px 7px; border-radius: 5px; color: var(--green); }

.hero__badges {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px;
  padding: 0; margin: 26px 0 0; font-size: 0.9rem; color: var(--muted); font-family: var(--mono);
}
.hero__badges li { white-space: nowrap; }

/* ---------- Command box ---------- */
.cmd {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 13px 13px 13px 16px;
  font-family: var(--mono); font-size: 0.95rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.cmd__prompt { color: var(--green); font-weight: 700; user-select: none; }
.cmd__text { color: var(--text); flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cmd__copy {
  flex-shrink: 0; cursor: pointer;
  background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--border); border-radius: 6px;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
  padding: 6px 12px; transition: all 0.15s ease;
}
.cmd__copy:hover { color: var(--text); border-color: var(--accent); }
.cmd__copy.copied { color: var(--green); border-color: var(--green-dim); }
.cmd--center { max-width: 540px; margin: 0 auto; }

/* ---------- Terminal scorecard ---------- */
.term {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(94,234,212,0.04);
}
.term__bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 11px 15px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot--r { background: #ff5f57; } .dot--y { background: #febc2e; } .dot--g { background: #28c840; }
.term__title { margin-left: 8px; font-family: var(--mono); font-size: 0.82rem; color: var(--faint); }
.term__body { padding: 20px 22px 22px; font-family: var(--mono); font-size: 0.9rem; }
.term__line { color: var(--text); margin-bottom: 16px; }
.term__line .muted { color: var(--green); }

.scorecard {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 18px;
}
.scorecard__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.scorecard__label { color: var(--muted); font-size: 0.85rem; }
.grade {
  font-size: 2.5rem; font-weight: 700; line-height: 1;
  color: var(--green); text-shadow: 0 0 28px rgba(74,222,128,0.4);
}
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.row {
  display: grid; grid-template-columns: 1fr 84px auto; align-items: center; gap: 12px;
  font-size: 0.82rem;
  opacity: 0; transform: translateY(4px);
  animation: rowIn 0.4s ease forwards;
  animation-delay: calc(var(--d) * 0.12s + 0.3s);
}
.row__k { color: var(--muted); }
.bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--accent);
  animation: barGrow 0.7s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--d) * 0.12s + 0.45s); }
.bar i.ok { background: var(--green); } .bar i.warn { background: var(--amber); } .bar i.bad { background: var(--red); }
.row__v { text-align: right; font-size: 0.78rem; white-space: nowrap; }
.row__v.ok { color: var(--green); } .row__v.warn { color: var(--amber); } .row__v.bad { color: var(--red); }
.scorecard__foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-soft); font-size: 0.8rem; color: var(--muted); }
.scorecard__foot .muted { color: var(--green); }
.scorecard__foot .ok { color: var(--green); }

.caret { color: var(--green); animation: blink 1s step-end infinite; }

/* ---------- Trust strip ---------- */
.strip {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 28px;
  padding: 22px 24px; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
  margin-top: 8px;
}
.strip__lead { font-size: 0.8rem; color: var(--faint); font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.strip__logos { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; }
.strip__logos li { color: var(--muted); font-weight: 600; font-size: 0.95rem; }

/* ---------- Sections ---------- */
.section { padding: 84px 24px; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(22,28,39,0.4) 12%, rgba(22,28,39,0.4) 88%, transparent); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section--alt > .wrap { padding-left: 0; padding-right: 0; }
.section--alt .wrap { padding: 0 24px; }
.section__title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; text-align: center; }
.section__lead { color: var(--muted); text-align: center; max-width: 56ch; margin: 0 auto 44px; font-size: 1.05rem; }
.section__lead code { background: var(--surface-2); padding: 1px 6px; border-radius: 5px; color: var(--green); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px;
}
.pillar--key {
  background: linear-gradient(180deg, rgba(94,234,212,0.06), transparent 45%), var(--surface);
  border-color: rgba(94,234,212,0.28);
}
.pillar__n { font-family: var(--mono); font-size: 0.8rem; color: var(--green); font-weight: 700; letter-spacing: 0.06em; }
.pillar h3 { margin: 8px 0 4px; font-size: 1.5rem; letter-spacing: -0.02em; }
.pillar__tagline { margin: 0 0 14px; font-family: var(--mono); font-size: 0.9rem; color: var(--accent); }
.pillar > p:not(.pillar__tagline) { margin: 0 0 22px; color: var(--muted); font-size: 0.96rem; }
.pillar code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; color: var(--accent); }
.chips { margin-top: auto; display: flex; flex-wrap: wrap; gap: 7px; font-family: var(--mono); font-size: 0.73rem; }
.chips span { background: var(--surface-2); border: 1px solid var(--border-soft); color: var(--muted); padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
.pillar__badge {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--faint); border: 1px solid var(--border); padding: 3px 8px; border-radius: 99px;
}
.pillars__note { max-width: 62ch; margin: 44px auto 0; text-align: center; font-size: 1.12rem; line-height: 1.6; color: #c4ccd6; }
.pillars__note strong { color: var(--accent); font-weight: 600; }

/* ---------- Make it yours (custom topic) ---------- */
.mine { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; max-width: 940px; margin: 0 auto; }
.mine__title { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 16px; }
.mine__copy p { margin: 0 0 14px; color: #c4ccd6; font-size: 1.02rem; }
.mine__copy em { color: var(--text); font-style: normal; font-weight: 600; }
.mine__copy .mine__note { font-size: 0.9rem; color: var(--muted); }
.mini__bar--mid { border-top: 1px solid var(--border-soft); }

.mini { background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: 10px; overflow: hidden; font-family: var(--mono); }
.mini__bar { background: var(--surface); border-bottom: 1px solid var(--border-soft); padding: 8px 14px; color: var(--faint); font-size: 0.76rem; }
.mini__rows { list-style: none; margin: 0; padding: 13px 14px; display: grid; gap: 9px; font-size: 0.8rem; }
.mini__rows li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: var(--muted); }
.mini__rows .ok { color: var(--green); } .mini__rows .bad { color: var(--red); } .mini__rows .muted { color: var(--faint); }
.mini__k { color: var(--text); }
.mini__note { color: var(--faint); font-size: 0.72rem; }
.mini__foot { margin-top: 3px; padding-top: 10px; border-top: 1px solid var(--border-soft); color: var(--muted); }
.mini__foot .ok { color: var(--green); }

/* ---------- Two modes (setup / wrapup) ---------- */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: 0 auto; }
.mode { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; }
.mode__cmd { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.98rem; color: var(--text); background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: 8px; padding: 9px 13px; margin-bottom: 18px; }
.mode__cmd .cmd__prompt { color: var(--green); }
.mode h3 { margin: 0 0 8px; font-size: 1.2rem; }
.mode p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- Finale ---------- */
.finale { text-align: center; padding: 90px 24px 80px; }
.finale h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 28px; }
.finale__sub { color: var(--muted); margin: 20px 0 0; font-size: 0.98rem; }
.finale__sub code { color: var(--green); background: var(--surface-2); padding: 2px 7px; border-radius: 5px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-soft); padding: 32px 24px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer__brand { font-family: var(--mono); font-size: 0.92rem; color: var(--text); }
.footer__by { color: var(--faint); font-family: var(--sans); font-size: 0.86rem; }
.footer__by::before { content: "· "; color: var(--faint); }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: var(--muted); font-size: 0.9rem; }
.footer__links a:hover { color: var(--text); }

/* ---------- Animations ---------- */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes rowIn { to { opacity: 1; transform: translateY(0); } }
@keyframes barGrow { to { width: var(--w); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .row { opacity: 1; transform: none; }
  .bar i { width: var(--w); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 56px; }
  .hero__sub { max-width: none; }
  .pillars { grid-template-columns: 1fr; }
  .mine { grid-template-columns: 1fr; gap: 30px; }
  .modes { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav__links { gap: 16px; }
  .nav__links a:not(.nav__gh) { display: none; }
  .section { padding: 60px 24px; }
  .hero { padding-top: 40px; }
  .strip { gap: 12px 18px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
