:root {
  --bg: #0a0e0f;
  --bg-raised: #101516;
  --paper: #e8e4d8;
  --paper-dim: #b8b4a8;
  --orange: #ff6b35;
  --green: #4ade80;
  --gray: #8b8578;
  --divider: #23292a;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --serif: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--mono);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* subtle CRT scanline overlay */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.012) 0px,
    rgba(255,255,255,0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

a { color: inherit; }

::selection { background: var(--orange); color: var(--bg); }

/* ---------------- topbar ---------------- */
.topbar {
  border-bottom: 1px solid var(--divider);
  position: sticky;
  top: 0;
  background: rgba(10,14,15,0.92);
  backdrop-filter: blur(6px);
  z-index: 50;
}
.topbar-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.logo-dot { color: var(--orange); }
.topbar-status {
  font-size: 11px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.04em;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
}
.dot-green { background: var(--green); box-shadow: 0 0 6px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ---------------- hero ---------------- */
.hero {
  max-width: 1040px;
  margin: 0 auto;
  padding: 90px 24px 60px;
}
.hero-inner { max-width: 720px; }

.eyebrow {
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 0.08em;
  margin: 0 0 20px;
  font-weight: 500;
}
.eyebrow.center { text-align: center; margin: 0 auto 36px; }

.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.08;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.glitch-word {
  color: var(--orange);
  font-style: italic;
  position: relative;
  display: inline-block;
}
.glitch-word::before {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--green);
  opacity: 0.5;
  clip-path: inset(0 0 55% 0);
  animation: glitchShift 4s infinite steps(1);
}
@keyframes glitchShift {
  0%, 92% { transform: translate(0,0); opacity: 0.5; }
  93% { transform: translate(-2px, 1px); opacity: 0.7; }
  95% { transform: translate(2px, -1px); opacity: 0.3; }
  97% { transform: translate(0,0); opacity: 0.5; }
}

.hero-sub {
  font-size: 16px;
  color: var(--paper-dim);
  max-width: 560px;
  margin: 0 0 28px;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.35);
  border-radius: 6px;
  padding: 12px 18px;
  margin: 0 0 28px;
}
.price-badge-amount {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 22px;
  color: var(--green);
}
.price-badge-label {
  font-size: 12.5px;
  color: var(--paper-dim);
  letter-spacing: 0.01em;
}
@media (max-width: 480px) {
  .price-badge { display: flex; }
}

/* ---------------- form ---------------- */
.scan-form {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 12px;
  align-items: end;
  max-width: 640px;
}
@media (max-width: 640px) {
  .scan-form { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 10.5px;
  color: var(--gray);
  letter-spacing: 0.08em;
}
.field input {
  background: var(--bg-raised);
  border: 1px solid var(--divider);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 14px;
  padding: 13px 14px;
  border-radius: 3px;
  outline: none;
  transition: border-color 0.15s;
}
.field input:focus {
  border-color: var(--orange);
}
.field input::placeholder { color: #5a564c; }

/* date input icon color fix for dark bg */
.field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
}

.btn-scan {
  background: var(--orange);
  color: #1a0d05;
  border: none;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 14px 24px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s, background 0.12s;
}
.btn-scan:hover { background: #ff8257; transform: translateY(-1px); }
.btn-scan:active { transform: translateY(0); }
.btn-scan:disabled { opacity: 0.6; cursor: wait; }

.hero-disclaimer {
  font-size: 11.5px;
  color: var(--gray);
  margin: 16px 0 0;
}

/* ---------------- terminal ---------------- */
/* ---------------- origin story ---------------- */
.origin {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px 70px;
}
.origin-card {
  max-width: 720px;
  background: var(--bg-raised);
  border: 1px solid var(--divider);
  border-left: 2px solid var(--orange);
  border-radius: 6px;
  padding: 28px 32px;
}
.origin-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.25;
  margin: 4px 0 18px;
  color: var(--paper);
}
.origin-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--paper-dim);
  margin: 0 0 14px;
}
.origin-body:last-child { margin-bottom: 0; }
.origin-body em { color: var(--orange); font-style: normal; font-weight: 600; }

.terminal-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.terminal {
  background: #060909;
  border: 1px solid var(--divider);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.terminal-titlebar {
  background: #12181a;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--divider);
}
.tdot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.tdot-r { background: #ff5f56; }
.tdot-y { background: #ffbd2e; }
.tdot-g { background: #27c93f; }
.terminal-titletext {
  margin-left: 8px;
  font-size: 11.5px;
  color: var(--gray);
}
.terminal-body {
  padding: 22px 20px;
  font-size: 12.5px;
  min-height: 140px;
  color: var(--paper-dim);
}
.term-line { margin: 0 0 6px; white-space: pre-wrap; }
.term-line .ok { color: var(--green); }
.term-line .warn { color: var(--orange); }
.term-cursor {
  display: inline-block;
  width: 7px; height: 13px;
  background: var(--green);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------------- results card ---------------- */
.results-card {
  background: var(--bg-raised);
  border: 1px solid var(--divider);
  border-radius: 6px;
  padding: 32px;
}
.results-head h2 {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--orange);
  margin: 4px 0 0;
  font-weight: 600;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0;
  padding: 22px 0;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
@media (max-width: 640px) {
  .results-grid { grid-template-columns: repeat(2, 1fr); }
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-label {
  font-size: 10px;
  color: var(--gray);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--paper);
}

.flags-box { margin-bottom: 28px; }
.flags-title { font-size: 12.5px; color: var(--paper-dim); margin: 0 0 10px; }
.flags-box ul { margin: 0; padding: 0; list-style: none; }
.flags-box li {
  font-size: 11.5px;
  color: var(--orange);
  margin-bottom: 6px;
}
.flags-box li::before { content: '[!] '; }
.flags-locked {
  font-size: 11px;
  color: var(--gray);
  margin: 8px 0 0;
  font-style: italic;
}

.locked-box {
  background: rgba(255,107,53,0.06);
  border: 1px dashed rgba(255,107,53,0.4);
  border-radius: 6px;
  padding: 20px 22px;
  margin-bottom: 28px;
}
.locked-title { font-size: 12.5px; color: var(--orange); margin: 0 0 12px; font-weight: 700; }
.locked-box ul { margin: 0; padding-left: 18px; }
.locked-box li { font-size: 13px; color: var(--paper-dim); margin-bottom: 8px; }

.email-field { margin-bottom: 16px; }
.email-field input { width: 100%; }

.btn-buy {
  width: 100%;
  background: var(--green);
  color: #052e12;
  border: none;
  border-radius: 4px;
  padding: 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: var(--mono);
  transition: transform 0.12s, background 0.12s;
}
.btn-buy:hover { background: #6ee7a0; transform: translateY(-1px); }
.btn-buy span:first-child { font-size: 15px; font-weight: 800; letter-spacing: 0.02em; }
.btn-buy-sub { font-size: 11px; opacity: 0.75; }

/* ---------------- how it works ---------------- */
.how {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 24px 90px;
  border-top: 1px solid var(--divider);
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 720px) {
  .how-grid { grid-template-columns: 1fr; }
}
.how-item {
  border: 1px solid var(--divider);
  border-radius: 6px;
  padding: 24px 20px;
  background: var(--bg-raised);
}
.how-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--green);
  border: 1px solid rgba(74,222,128,0.35);
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.how-item p { font-size: 13.5px; color: var(--paper-dim); margin: 0; }

/* ---------------- FAQ ---------------- */
.faq {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 100px;
}
.faq-item {
  border-bottom: 1px solid var(--divider);
  padding: 22px 0;
}
.faq-q { font-size: 15px; font-weight: 700; margin: 0 0 8px; color: var(--paper); }
.faq-a { font-size: 13.5px; color: var(--paper-dim); margin: 0; }

/* ---------------- footer ---------------- */
.footer {
  border-top: 1px solid var(--divider);
  padding: 28px 24px;
  text-align: center;
}
.footer p {
  font-size: 11px;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
}
