/* -----------------------------------------------------------
   idle-timing — product site
   dark terminal-adjacent aesthetic, single page, no build step
   ----------------------------------------------------------- */

:root {
  --bg:        #1c1c28;
  --bg-2:      #15151e;
  --bg-3:      #12121a;
  --panel:     #20202c;
  --panel-2:   #262633;
  --line:      #2a2a3a;
  --line-2:    #35354a;
  --text:      #d6d6de;
  --text-dim:  #9a9aa8;
  --text-xdim: #5c5c6e;
  --amber:     #e4b363;
  --amber-d:   #c48f3d;
  --green:     #8be378;
  --rose:      #e16b8c;
  --cyan:      #7fdbf2;
  --yellow:    #f3d86b;

  --mono: "IBM Plex Mono", ui-monospace, "JetBrains Mono", "Menlo", "Consolas", monospace;

  --w: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(ellipse 1200px 600px at 20% -10%, rgba(228,179,99,0.08), transparent 60%),
    radial-gradient(ellipse 900px 500px at 100% 15%, rgba(127,219,242,0.04), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* subtle scanline overlay — not a gimmick, just a breath of CRT */
.scan {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.012) 0,
    rgba(255,255,255,0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

a { color: var(--amber); text-decoration: none; border-bottom: 1px dashed transparent; transition: border-color 120ms ease, color 120ms ease; }
a:hover { color: var(--amber-d); border-bottom-color: var(--amber-d); }

code {
  font-family: var(--mono);
  font-size: 0.94em;
  color: var(--text);
  background: rgba(228,179,99,0.08);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(228,179,99,0.15);
  white-space: nowrap;
}

main {
  position: relative;
  z-index: 1;
  max-width: var(--w);
  margin: 0 auto;
  padding: 56px 40px 80px;
}

/* -----------------------------------------------------------
   shared — section heads, tags
   ----------------------------------------------------------- */

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--amber);
  text-transform: lowercase;
  padding: 2px 0;
  border-bottom: 1px solid rgba(228,179,99,0.25);
  margin-bottom: 18px;
}

.section-head {
  margin: 0 0 28px;
}
.section-head h2 {
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.section-head .sub {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

/* -----------------------------------------------------------
   hero
   ----------------------------------------------------------- */

.hero {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.4) inset,
    0 20px 60px rgba(0,0,0,0.35),
    0 2px 0 rgba(228,179,99,0.08) inset;
  margin-bottom: 72px;
}

.crown {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(180deg, #242434, #1c1c28);
  border-bottom: 1px solid var(--line);
}
.crown .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.crown .r { background: #ff5f57; }
.crown .y { background: #febc2e; }
.crown .g { background: #28c840; }
.crown-title {
  margin-left: 10px;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.crown-meta {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-xdim);
  padding: 2px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  padding: 48px 44px 44px;
}

.hero-left h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 6px 0 18px;
  color: var(--text);
}
.hero-left h1::after {
  content: "_";
  display: inline-block;
  color: var(--amber);
  margin-left: 4px;
  animation: blink 1.05s steps(2) infinite;
}
@keyframes blink { to { opacity: 0; } }

.hero-left .lede {
  font-size: 22px;
  color: var(--text);
  margin: 0 0 18px;
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.hero-left .blurb {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0 0 28px;
  max-width: 54ch;
}

.claim {
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--amber);
  background: linear-gradient(90deg, rgba(228,179,99,0.06), rgba(228,179,99,0) 65%);
  margin: 0 0 28px;
  border-radius: 2px;
}
.claim-num {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
  letter-spacing: -0.04em;
  align-self: center;
  text-shadow: 0 0 24px rgba(228,179,99,0.3);
}
.claim-body { display: flex; flex-direction: column; justify-content: center; }
.claim-label {
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.02em;
}
.claim-sub {
  font-size: 11px;
  color: var(--text-xdim);
  margin-top: 2px;
}

/* cli rows */
.cli { margin: 0 0 24px; }
.cli-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 10px 12px;
  margin: 0 0 8px;
  font-size: 13px;
  transition: border-color 120ms ease;
}
.cli-row:hover { border-color: var(--line-2); }
.cli-row:last-child { margin-bottom: 0; }
.cli-row .prompt {
  color: var(--amber);
  font-weight: 700;
  flex: 0 0 auto;
}
.cli-row code {
  flex: 1 1 auto;
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cli-row .copy {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--line-2);
  padding: 3px 9px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 120ms ease;
}
.cli-row .copy:hover { color: var(--amber); border-color: var(--amber); }
.cli-row .copy.ok { color: var(--green); border-color: var(--green); }

.links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
}
.lnk {
  color: var(--text-dim);
  border-bottom: 1px dashed transparent;
}
.lnk:hover { color: var(--amber); }

.hero-right {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.hero-right img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 3px;
  border: 1px solid var(--line);
  display: block;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.4),
    0 0 0 1px rgba(228,179,99,0.04);
  background: #000;
}
.hero-right figcaption {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-xdim);
  letter-spacing: 0.01em;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.hero-right .fc-mark { color: var(--amber); font-weight: 700; }

/* -----------------------------------------------------------
   split — what you see / what the model sees
   ----------------------------------------------------------- */

.split { margin-bottom: 72px; }

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.pane {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.pane-eyebrow {
  color: var(--text-dim);
  text-transform: uppercase;
}
.pane-label {
  color: var(--text-xdim);
  text-transform: lowercase;
}

.pane.user .pane-head { border-bottom-color: rgba(127,219,242,0.18); }
.pane.model .pane-head { border-bottom-color: rgba(228,179,99,0.22); }

.pane-body {
  flex: 1 1 auto;
  padding: 22px 20px;
  background:
    linear-gradient(var(--panel), var(--panel)),
    radial-gradient(circle at 50% 0%, rgba(228,179,99,0.05), transparent 60%);
}

.pane.model .pane-body {
  background:
    radial-gradient(circle at 100% 0%, rgba(228,179,99,0.06), transparent 55%),
    var(--panel);
}

.pane-foot {
  border-top: 1px dashed var(--line-2);
  padding: 10px 16px;
  background: var(--bg-3);
  font-size: 11px;
  color: var(--text-xdim);
  letter-spacing: 0.04em;
}
.tick { display: inline-flex; align-items: center; gap: 8px; }
.tick.live { color: var(--amber); }
.pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(228,179,99,0.6);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(228,179,99,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(228,179,99,0); }
  100% { box-shadow: 0 0 0 0 rgba(228,179,99,0); }
}

/* user pane content */
.chat-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.chat-line .who {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 6px;
}
.chat-bubble {
  padding: 10px 14px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--text);
  font-size: 14px;
}
.chat-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.04em;
  margin: 20px 0;
}
.chat-note em { color: var(--amber); font-style: normal; }
.chat-note .nd { color: var(--text-xdim); margin: 0 6px; }
.chat-meta {
  margin-top: 22px;
  padding: 10px 12px;
  background: var(--bg-3);
  border: 1px dashed var(--line-2);
  border-radius: 3px;
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 12px;
}
.chat-meta .meta-k {
  color: var(--text-xdim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}
.chat-meta .meta-v { color: var(--text); }

/* model pane content */
.block {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  padding: 16px 18px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
  border-radius: 2px;
  white-space: pre;
  overflow-x: auto;
}
.block #now, .block #idle {
  color: var(--amber);
}

.split-foot {
  margin: 20px 0 0;
  color: var(--text-dim);
  font-size: 13px;
  max-width: 80ch;
}

/* -----------------------------------------------------------
   details — hooks cards
   ----------------------------------------------------------- */

.details { margin-bottom: 56px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
  margin-bottom: 48px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 1px;
  width: 30%;
  background: var(--amber);
}
.card-k {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dotted var(--line-2);
}
.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
}

.statusline {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
}
.statusline h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--text);
}
.statusline p {
  margin: 0 0 14px;
  color: var(--text-dim);
  font-size: 13px;
  max-width: 72ch;
}
.statusline p.dim { color: var(--text-xdim); font-size: 12px; margin-top: 10px; margin-bottom: 0; }
.statusline .cli { margin-bottom: 0; }

/* -----------------------------------------------------------
   footer
   ----------------------------------------------------------- */

.foot {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px dashed var(--line-2);
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 12px;
  color: var(--text-xdim);
}
.foot .tag { margin-bottom: 10px; }
.foot-line { color: var(--text-dim); font-size: 13px; }
.foot-sub { margin-top: 4px; font-size: 11px; }
.foot-right { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.foot-right a { font-size: 12px; }

/* -----------------------------------------------------------
   responsive
   ----------------------------------------------------------- */

@media (max-width: 900px) {
  main { padding: 32px 20px 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
  .hero-left h1 { font-size: 48px; }
  .hero-left .lede { font-size: 18px; }
  .split-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .foot-right { text-align: left; }
}

@media (max-width: 520px) {
  .hero-left h1 { font-size: 40px; }
  .claim-num { font-size: 32px; }
  .cli-row { font-size: 12px; }
  .cli-row code { font-size: 11.5px; }
  .section-head h2 { font-size: 22px; }
}

/* respect user motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-left h1::after { animation: none; }
  .pulse { animation: none; }
}
