:root {
  --bg: #080810;
  --bg-card: #0f0f18;
  --bg-card-hover: #141420;
  --fg: #e2dfd8;
  --fg-muted: #6b6877;
  --accent: #00e676;
  --accent-dim: rgba(0,230,118,0.12);
  --accent-dim2: rgba(0,230,118,0.06);
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(0,230,118,0.3);
  --pass: #00e676;
  --fail: #ff4455;
  --warn: #ffaa00;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'DM Mono', 'Courier New', monospace;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--fg-muted) var(--bg);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--fg-muted); border-radius: 3px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,16,0.85);
  backdrop-filter: blur(12px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--fg);
}

/* HERO */
.hero {
  min-height: 100vh;
  padding: 140px 48px 80px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 28px;
  background: var(--accent-dim);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--accent); }
  50% { opacity: 0.6; box-shadow: 0 0 12px var(--accent); }
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-size: 22px; font-weight: 500; color: var(--fg); }
.stat-label { font-size: 11px; color: var(--fg-muted); max-width: 120px; line-height: 1.4; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

.live-trend-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 14px;
  background: var(--accent-dim2);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  font-size: 12px;
  color: var(--fg-muted);
  max-width: 460px;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-glow 2s infinite;
  flex-shrink: 0;
}
.live-text { flex: 1; line-height: 1.4; }
.live-text strong { color: var(--fg); }
.live-link {
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
}
.live-link:hover { text-decoration: underline; }

/* HERO VISUAL */
.hero-visual { display: flex; flex-direction: column; gap: 16px; }

.scan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,230,118,0.04);
}

.scan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card-hover);
}

.scan-title { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--fg-muted); }

.scan-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-glow 2s infinite;
}

.scan-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }

.scan-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.scan-item--pass { border-color: rgba(0,230,118,0.2); }
.scan-item--fail { border-color: rgba(255,68,85,0.25); }

.scan-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.scan-icon--pass { background: rgba(0,230,118,0.15); color: var(--pass); }
.scan-icon--fail { background: rgba(255,68,85,0.15); color: var(--fail); }

.scan-content { flex: 1; min-width: 0; }
.scan-label { display: block; font-size: 12px; color: var(--fg); font-weight: 500; margin-bottom: 2px; }
.scan-verdict { display: block; font-size: 11px; color: var(--fg-muted); }

.scan-score { font-size: 12px; font-weight: 500; flex-shrink: 0; }
.score-pass { color: var(--pass); }
.score-fail { color: var(--fail); }

/* TICKER */
.scan-ticker {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 16px;
  overflow: hidden;
  position: relative;
}

.scan-ticker::before,
.scan-ticker::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
}
.scan-ticker::before { left: 0; background: linear-gradient(to right, var(--bg-card), transparent); }
.scan-ticker::after { right: 0; background: linear-gradient(to left, var(--bg-card), transparent); }

.ticker-track {
  display: flex;
  gap: 20px;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.ticker-track .sep { color: var(--accent); opacity: 0.4; }

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* SECTION SHARED */
.section-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-headline {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 48px;
}

/* DETECTION */
.detection {
  padding: 96px 48px;
  background: linear-gradient(180deg, var(--bg) 0%, #0a0a14 100%);
}

.detection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.detection-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s;
}

.detection-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--border-accent);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 12px;
}

.card-body {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.card-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.metric-val {
  font-size: 24px;
  font-weight: 500;
  color: var(--fg);
}

.metric-label {
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.4;
}

/* HOW */
.how {
  padding: 96px 48px;
  background: var(--bg);
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
}

.how-steps { display: flex; flex-direction: column; gap: 0; }

.step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.step:first-child { padding-top: 0; }

.step-num {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 2px;
  flex-shrink: 0;
  width: 28px;
}

.step-body h4 {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 8px;
}

.step-body p { font-size: 13px; color: var(--fg-muted); line-height: 1.7; }

/* FLOW DIAGRAM */
.flow-diagram {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.flow-node {
  width: 100%;
  display: flex;
  justify-content: center;
}

.flow-node--brand {
  padding: 14px 24px;
  background: var(--accent-dim2);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}

.flow-node--agent {
  width: 100%;
}

.agent-core {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
}

.flow-arrow { display: flex; justify-content: center; }

.flow-plat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.flow-platform {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  background: var(--bg);
}

.flow-node--output { width: 100%; }

.output-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.chip {
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 100px;
  font-weight: 500;
}

.chip--warn { background: rgba(255,170,0,0.12); color: var(--warn); border: 1px solid rgba(255,170,0,0.25); }
.chip--alert { background: rgba(255,68,85,0.12); color: var(--fail); border: 1px solid rgba(255,68,85,0.25); }
.chip--info { background: rgba(0,230,118,0.1); color: var(--accent); border: 1px solid rgba(0,230,118,0.2); }

/* MARKET */
.market {
  padding: 96px 48px;
  background: linear-gradient(180deg, #0a0a14 0%, var(--bg) 100%);
}

.market-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.market-body { display: flex; flex-direction: column; gap: 20px; }

.market-body p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.8;
}

.reg-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.reg-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.reg-badge {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  white-space: nowrap;
  margin-top: 2px;
}

.reg-text { font-size: 13px; color: var(--fg-muted); line-height: 1.5; }

/* CLOSING */
.closing {
  padding: 120px 48px;
  text-align: center;
  position: relative;
}

.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,230,118,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.closing-headline {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 24px;
}

.closing-headline em { font-style: italic; color: var(--accent); }

.closing-sub {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* FOOTER */
.footer {
  padding: 32px 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-name { font-size: 13px; font-weight: 500; color: var(--fg); }
.footer-tagline { font-size: 12px; color: var(--fg-muted); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { padding: 120px 24px 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }

  .detection { padding: 64px 24px; }
  .detection-grid { grid-template-columns: 1fr; }

  .how { padding: 64px 24px; }
  .how-grid { grid-template-columns: 1fr; gap: 48px; }

  .market { padding: 64px 24px; }
  .market-inner { grid-template-columns: 1fr; gap: 40px; }

  .closing { padding: 80px 24px; }
  .footer { padding: 24px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .nav { padding: 16px 24px; }
}
