/* ===========================================================================
   ClaudeTracker — landing
   Direction: a developer's instrument. Monospaced display (Space Mono), faint
   graph-paper, hairline rules. Signature = a log → ledger that prices raw JSONL
   into euros. Violet is the brand; green/amber/red carry the real limit states.
   =========================================================================== */

:root {
  --ink: #0b0a0f;
  --panel: #131119;
  --panel2: #19161f;
  --line: #262233;
  --line-soft: #1c1925;
  --grid: rgba(124, 58, 237, 0.055);

  --violet: #7c3aed;
  --violet-lt: #b58bff;
  --violet-dim: #6d28d9;

  --paper: #edeaf5;
  --muted: #8a8698;
  --muted2: #5d5a6a;

  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;

  --display: "Space Mono", ui-monospace, "SFMono-Regular", monospace;
  --body: Inter, system-ui, -apple-system, sans-serif;

  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--violet-lt); outline-offset: 3px; border-radius: 4px; }

.mono { font-family: var(--display); }
.eur { color: var(--violet-lt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--display); font-weight: 700; font-size: 0.9rem;
  letter-spacing: -0.01em; cursor: pointer;
  border: 1px solid transparent; border-radius: 10px;
  transition: transform 0.14s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn--sm { padding: 0.5rem 0.9rem; background: var(--violet); color: #fff; }
.btn--lg { padding: 0.85rem 1.4rem; font-size: 0.98rem; background: var(--violet); color: #fff; box-shadow: 0 12px 34px -12px rgba(124, 58, 237, 0.85); }
.btn--lg:hover, .btn--sm:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(124, 58, 237, 0.9); }
.btn--ghost { padding: 0.85rem 1.3rem; font-size: 0.98rem; background: transparent; border-color: var(--line); color: var(--paper); }
.btn--ghost:hover { border-color: var(--violet); background: rgba(124, 58, 237, 0.08); }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.4rem;
  max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.5rem;
}
.nav::before { content: ""; position: absolute; inset: 0; background: rgba(11, 10, 15, 0.72); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); z-index: -1; }
.brand { display: flex; align-items: center; gap: 0.55rem; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.04em; }
.brand-accent { color: var(--violet-lt); }
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; font-size: 0.9rem; color: var(--muted); }
.nav-links a:hover { color: var(--paper); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  /* graph-paper field, faded toward the bottom */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(120% 80% at 70% 0%, #000 35%, transparent 78%);
          mask-image: radial-gradient(120% 80% at 70% 0%, #000 35%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; top: -200px; right: -120px; width: 620px; height: 540px; z-index: 0;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.42), transparent 62%);
  filter: blur(70px); pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; padding: 4rem 1.5rem 5rem;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 3rem; align-items: center;
}

.path {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--display); font-size: 0.78rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 7px; padding: 0.3rem 0.7rem; margin-bottom: 1.7rem;
}
.path .blink { color: var(--violet-lt); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.05rem, 5.4vw, 3.35rem); line-height: 1.04; letter-spacing: -0.045em;
  margin-bottom: 1.3rem;
}
.hero h1 .price { color: var(--violet-lt); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 31rem; margin-bottom: 1.9rem; }
.lead b { color: var(--paper); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.cta-meta { margin-top: 0.9rem; font-family: var(--display); font-size: 0.76rem; color: var(--muted2); }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.3rem; margin-top: 1.5rem; font-size: 0.82rem; color: var(--muted); }
.trust li::before { content: "✓ "; color: var(--green); }

/* ---------- Signature: log → ledger ---------- */
.ledger {
  position: relative; z-index: 1;
  background: linear-gradient(180deg, var(--panel), #0e0c14);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.85);
  font-family: var(--display);
}
.ledger-bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line-soft); }
.ledger-bar .d { width: 10px; height: 10px; border-radius: 50%; background: #2b2738; }
.ledger-bar .d.live { background: var(--green); box-shadow: 0 0 8px var(--green); }
.ledger-bar .name { margin-left: 0.4rem; font-size: 0.74rem; color: var(--muted); }
.ledger-rows { padding: 0.5rem 0.2rem; }
.ledger-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.6rem;
  padding: 0.42rem 0.9rem; font-size: 0.74rem;
  opacity: 0; transform: translateY(6px); animation: rowin 0.5s ease forwards;
}
.ledger-row .log { color: #6c6781; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger-row .log b { color: #9b95b3; font-weight: 400; }
.ledger-row .amt { color: var(--violet-lt); font-weight: 700; }
.ledger-row:nth-child(1) { animation-delay: 0.05s; }
.ledger-row:nth-child(2) { animation-delay: 0.18s; }
.ledger-row:nth-child(3) { animation-delay: 0.31s; }
.ledger-row:nth-child(4) { animation-delay: 0.44s; }
.ledger-row:nth-child(5) { animation-delay: 0.57s; }
@keyframes rowin { to { opacity: 1; transform: none; } }

.ledger-total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0.85rem 0.9rem; border-top: 1px dashed var(--line);
  opacity: 0; animation: rowin 0.5s ease 0.72s forwards;
}
.ledger-total .lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.ledger-total .sum { font-size: 1.5rem; font-weight: 700; color: var(--paper); }
.ledger-total .sum .eur { color: var(--violet-lt); }

.ledger-gauges { padding: 0.2rem 0.9rem 0.95rem; opacity: 0; animation: rowin 0.5s ease 0.85s forwards; }
.gauge { margin-top: 0.6rem; }
.gauge-row { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--muted); margin-bottom: 0.32rem; }
.gauge-row .v { font-weight: 700; }
.gauge-track { height: 6px; background: #1d1a26; border-radius: 99px; overflow: hidden; }
.gauge-fill { height: 100%; border-radius: 99px; width: 0; animation: fill 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s forwards; }
@keyframes fill { to { width: var(--w); } }

/* ---------- Value line ---------- */
.thesis { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.thesis-in { max-width: 820px; margin: 0 auto; padding: 3rem 1.5rem; text-align: center; }
.thesis-in p { font-family: var(--display); font-size: clamp(1.2rem, 2.9vw, 1.75rem); font-weight: 400; line-height: 1.5; letter-spacing: -0.02em; color: var(--muted); }
.thesis-in p b { color: var(--paper); font-weight: 700; }
.thesis-in p .price { color: var(--violet-lt); }

/* ---------- Section heads ---------- */
.head { max-width: var(--maxw); margin: 0 auto; padding: 4.5rem 1.5rem 0; }
.head .kicker { font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.05em; color: var(--violet-lt); }
.head h2 { font-family: var(--display); font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 700; letter-spacing: -0.04em; margin-top: 0.6rem; max-width: 22ch; }

/* ---------- Features ---------- */
.features { padding-bottom: 5rem; }
.grid { max-width: var(--maxw); margin: 2.4rem auto 0; padding: 0 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; }
.card { background: var(--ink); padding: 1.6rem 1.4rem; transition: background 0.2s ease; }
.card:hover { background: var(--panel); }
.tag { display: inline-block; font-family: var(--display); font-size: 0.72rem; color: var(--violet-lt); background: rgba(124, 58, 237, 0.1); border: 1px solid rgba(124, 58, 237, 0.22); border-radius: 6px; padding: 0.12rem 0.45rem; margin-bottom: 0.95rem; }
.card h3 { font-size: 1.04rem; font-weight: 600; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.9rem; }
.card b { color: var(--paper); font-weight: 600; }
.card code { font-family: var(--display); font-size: 0.82em; color: var(--violet-lt); }

/* ---------- Showcase (the real widget) ---------- */
.show { padding: 0 0 5rem; }
.show-in { max-width: var(--maxw); margin: 2.5rem auto 0; padding: 0 1.5rem; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: center; }
.show-copy h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.8rem; }
.show-copy p { color: var(--muted); margin-bottom: 1rem; }
.show-list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.show-list li { font-size: 0.92rem; color: var(--muted); padding-left: 1.4rem; position: relative; }
.show-list li::before { content: "→"; position: absolute; left: 0; color: var(--violet-lt); font-family: var(--display); }
.show-art { display: flex; justify-content: center; }

/* app popup mockup */
.popup { width: 330px; background: linear-gradient(180deg, #131119, #0c0b11); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 12.5px; box-shadow: 0 40px 80px -34px rgba(0, 0, 0, 0.85); }
.popup-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; }
.popup-title { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 12px; }
.popup-led { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.badge-model { font-family: var(--display); font-size: 10px; color: var(--violet-lt); background: var(--panel2); padding: 3px 7px; border-radius: 6px; }
.popup-sec { padding: 12px 14px; border-top: 1px solid var(--line-soft); }
.sec-row { display: flex; justify-content: space-between; align-items: baseline; }
.sec-label { font-family: var(--display); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.sec-val { font-family: var(--display); font-weight: 700; }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 9px; }
.tk { background: var(--panel2); border-radius: 8px; padding: 8px 4px; text-align: center; }
.tk b { display: block; font-family: var(--display); font-size: 12px; }
.tk span { font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.spark { display: flex; align-items: flex-end; gap: 5px; height: 50px; margin-top: 11px; }
.spark span { flex: 1; background: #322e3f; border-radius: 3px 3px 0 0; }
.spark .now { background: var(--violet); }
.roi { margin-top: 9px; border: 1px solid rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); border-radius: 9px; padding: 8px 10px; }
.roi-top { color: var(--green); font-family: var(--display); font-weight: 700; font-size: 12px; }
.roi-sub { color: var(--muted); font-size: 10px; margin-top: 2px; }
.lim { margin-bottom: 9px; }
.lim-row { display: flex; justify-content: space-between; font-size: 10.5px; margin-bottom: 4px; }
.lim-row .ok { color: var(--green); font-weight: 700; }
.lim-row .warn { color: var(--amber); font-weight: 700; }
.lim-bar { height: 6px; background: var(--panel2); border-radius: 99px; overflow: hidden; }
.lim-bar i { display: block; height: 100%; border-radius: 99px; }
.lim-real { font-size: 9.5px; color: var(--green); margin-top: 2px; }
.popup-foot { display: flex; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line-soft); font-family: var(--display); font-size: 10px; color: var(--muted); }

/* ---------- Steps (a real sequence) ---------- */
.steps-wrap { padding: 0 0 5rem; }
.steps { max-width: var(--maxw); margin: 2.5rem auto 0; padding: 0 1.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.step { padding: 1.7rem 1.4rem; border: 1px solid var(--line-soft); border-radius: 13px; background: var(--panel); }
.step .n { font-family: var(--display); font-size: 0.78rem; color: var(--violet-lt); letter-spacing: 0.05em; }
.step h3 { font-family: var(--display); font-size: 1.12rem; font-weight: 700; margin: 0.5rem 0 0.4rem; letter-spacing: -0.02em; }
.step p { color: var(--muted); font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq { padding: 0 0 5rem; }
.faq-list { max-width: 760px; margin: 2.4rem auto 0; padding: 0 1.5rem; }
details { border-bottom: 1px solid var(--line-soft); }
summary { cursor: pointer; padding: 1.05rem 0.2rem; font-family: var(--display); font-weight: 700; font-size: 0.96rem; letter-spacing: -0.02em; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--violet-lt); font-size: 1.25rem; font-weight: 400; transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0.2rem 1.1rem; color: var(--muted); font-size: 0.93rem; }
details code { font-family: var(--display); color: var(--violet-lt); font-size: 0.85em; }

/* ---------- Final CTA ---------- */
.final { padding: 1rem 1.5rem 6rem; }
.final-card { position: relative; max-width: 760px; margin: 0 auto; text-align: center; padding: 3.5rem 2rem; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--panel); }
.final-card::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(circle at 50% -10%, rgba(124, 58, 237, 0.28), transparent 60%); }
.final-card > * { position: relative; z-index: 1; }
.final-card h2 { font-family: var(--display); font-size: clamp(1.5rem, 3.6vw, 2.1rem); font-weight: 700; letter-spacing: -0.04em; margin: 1rem 0 0.6rem; }
.final-card > p { color: var(--muted); margin-bottom: 1.7rem; }
.final-card .btn { margin: 0 auto; }
.final-card .cta-meta { margin-top: 0.9rem; }

/* ---------- Footer ---------- */
.footer { max-width: var(--maxw); margin: 0 auto; padding: 2.4rem 1.5rem; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer p { color: var(--muted2); font-size: 0.8rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .show-in { grid-template-columns: 1fr; gap: 2rem; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 540px) {
  .grid { grid-template-columns: 1fr; }
  .popup { width: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .gauge-fill { width: var(--w); }
  .ledger-row, .ledger-total, .ledger-gauges { opacity: 1; transform: none; }
}
