/* TrafficX public homepage: owner-selected Option E. */
:root {
  color-scheme: light;
  --paper: #f8fafc;
  --paper-card: #ffffff;
  --ink: #090d16;
  --ink-secondary: #1e293b;
  --muted: #475569;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-glow: rgba(37, 99, 235, 0.18);
  --emerald: #10b981;
  --emerald-bg: #ecfdf5;
  --coral: #ef4444;
  --coral-bg: #fef2f2;
  --amber: #f59e0b;
  --amber-bg: #fffbeb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 24px;
  z-index: 50;
  padding: 12px 18px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
  font-weight: 600;
  border-radius: 4px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: clamp(24px, 5vw, 88px);
  min-height: 80px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.signature { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.05em;
}
.signature-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--ink-secondary);
}
.language { display: flex; gap: 14px; align-items: center; font-size: 13px; white-space: nowrap; }
.language a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; color: var(--muted); font-weight: 500; }
.language a:hover { color: var(--blue); }
.language [aria-current] { font-weight: 700; color: var(--ink); }
.language-divider { color: var(--line-strong); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  align-items: stretch;
  min-height: calc(100svh - 152px);
}

.hero-copy {
  padding: clamp(48px, 8vh, 96px) clamp(30px, 4.5vw, 72px) 48px clamp(24px, 5vw, 88px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  animation: arrive .6s ease-out both;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--blue);
  margin-bottom: 22px;
}
.eyebrow-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

.wordmark {
  font-size: clamp(76px, 8.5vw, 136px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.075em;
  margin-left: -5px;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark span { color: var(--blue); }

.headline {
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.25;
  margin-top: 28px;
  color: var(--ink);
}
.headline > span { display: block; }
.headline .last-line {
  color: var(--blue);
  background: linear-gradient(135deg, var(--blue) 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
html[lang="zh-CN"] .headline { letter-spacing: -.03em; line-height: 1.35; }

.intro {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 440px;
  margin-top: 22px;
  font-weight: 400;
}

.cta-group {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 36px;
}
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 54px;
  padding: 16px 26px;
  border-radius: 6px;
  color: white;
  background: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(9, 13, 22, 0.2), 0 1px 3px rgba(9, 13, 22, 0.1);
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.primary-link .arrow { font-size: 20px; transition: transform .2s ease; }
.primary-link:hover {
  background: var(--blue);
  box-shadow: 0 8px 24px var(--blue-glow);
  transform: translateY(-2px);
}
.primary-link:hover .arrow { transform: translate(3px, -3px); }

.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 15px 22px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all .2s ease;
}
.secondary-link:hover {
  border-color: var(--ink);
  background: #f8fafc;
  transform: translateY(-1px);
}

/* Right Stage - Mission Control Card */
.demo-stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px clamp(24px, 4vw, 68px) 44px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e8eef5 100%);
  border-left: 1px solid var(--line);
  min-width: 0;
}

.brief {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: clip;
  box-shadow: 0 24px 48px -18px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.03);
  animation: arrive .7s .1s ease-out both;
  transition: box-shadow .2s ease;
}
.brief:hover {
  box-shadow: 0 30px 60px -18px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.brief-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: #0f172a;
  color: #fff;
  border-bottom: 1px solid #1e293b;
}
.brief-brand {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}
.brief-brand span { color: #60a5fa; }
.brief-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.pulse-emerald {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse-green 2s infinite;
}

.brief-body { padding: 26px 26px 0; }

.market-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.pill-country { background: #0f172a; color: #fff; }
.pill-channel { background: #e0e7ff; color: #3730a3; }
.pill-target { background: #fef3c7; color: #92400e; }

.question {
  margin-top: 18px;
  font-size: clamp(22px, 2.1vw, 29px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--ink);
}
.question span { display: block; }

.signals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  gap: 20px;
}
.signal-col:first-child { border-right: 1px solid var(--line); padding-right: 16px; }
.signal-title { font-size: 12px; font-weight: 600; color: var(--muted); }
.signal-value {
  font-size: clamp(34px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.06em;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.val-up { color: var(--blue); }
.val-alert { color: var(--coral); }

.bar-wrapper {
  margin-top: 8px;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill { height: 100%; border-radius: 3px; }
.bar-fill-blue { width: 90%; background: var(--blue); }
.bar-fill-coral { width: 10%; background: var(--coral); }

.divergence-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 8px 12px;
  background: var(--coral-bg);
  border: 1px solid #fecaca;
  border-radius: 6px;
  font-size: 11px;
  color: #991b1b;
  font-weight: 600;
}

.uncertainty-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--amber-bg);
  border: 1px solid #fde68a;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
  color: #78350f;
}
.uncertainty-badge {
  flex: none;
  font-size: 10px;
  font-weight: 800;
  background: #f59e0b;
  color: #fff;
  padding: 2px 5px;
  border-radius: 3px;
  margin-top: 2px;
}

.disclosure {
  border-top: 1px solid var(--line);
  margin-top: 18px;
}
.disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  min-height: 48px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  transition: color .18s ease;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary:hover { color: var(--blue); }
.disclosure summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transition: transform .18s ease;
}
.disclosure[open] > summary::after { transform: rotate(45deg); }
.disclosure-content {
  padding-bottom: 20px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.evidence-table { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-bottom: 12px; }
.evidence-table caption { text-align: left; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.evidence-table th, .evidence-table td {
  text-align: right;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.evidence-table th:first-child, .evidence-table td:first-child { text-align: left; padding-left: 0; }
.evidence-table th { font-weight: 600; color: var(--ink); background: #f8fafc; }
.evidence-table tbody tr:hover { background: #f1f5f9; }

/* Proposal Card Block */
.proposal-box {
  padding: 24px 26px 22px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-top: 1px solid #334155;
}
.proposal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #38bdf8;
  text-transform: uppercase;
}
.proposal-box h3 {
  margin-top: 8px;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
  color: #f8fafc;
}
.proposal-description {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.65;
  margin-top: 8px;
  padding-bottom: 16px;
}
.proposal-box .disclosure { border-color: rgba(255, 255, 255, 0.15); margin-top: 0; }
.proposal-box summary { color: #cbd5e1; font-weight: 600; }
.proposal-box summary:hover { color: #fff; }
.proposal-box .disclosure-content { color: #cbd5e1; }
.proposal-box ol { margin: 0; padding-left: 20px; }
.proposal-box li { margin-bottom: 8px; }
.guardian-pill {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(110, 231, 183, 0.3);
}

.site-footer {
  min-height: 72px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(24px, 5vw, 88px);
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
}
.site-footer a:hover { color: var(--blue); }

@keyframes arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 40px 24px; }
  .demo-stage { padding: 32px 20px; border-left: 0; border-top: 1px solid var(--line); }
  .wordmark { font-size: clamp(68px, 16vw, 100px); }
  .headline { font-size: 32px; }
  .site-header { padding-inline: 20px; }
  .site-footer { padding-inline: 20px; }
}

/* Public-page labels, accessible mobile layout and reduced motion. */
.availability { margin-top: 15px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.example-note { font-size: 11px; line-height: 1.7; color: var(--muted); margin-bottom: 13px; }
.chart-caption { margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.signals-grid { margin-top: 10px; }
.delta-up { color: var(--blue); font-weight: 700; }
.delta-alert { color: #b91c1c; font-weight: 700; }
.uncertainty-badge { color: #78350f; }
.brief-brand { flex-wrap: wrap; gap: 4px; }
.brief-status-tag { flex-shrink: 0; }
.proposal-box summary:focus-visible { outline-color: #7dd3fc; }
@keyframes pulse-green { 0% { opacity: .65; } 50% { opacity: 1; } 100% { opacity: .65; } }
@media (max-width: 600px) {
  .site-header { gap: 12px; padding-inline: 20px; }
  .signature-label { font-size: 9px; letter-spacing: .08em; }
  .language { gap: 10px; font-size: 12px; }
  .hero-copy { padding-inline: 22px; }
  .headline { font-size: 30px; }
  .eyebrow-pill { font-size: 10px; }
  .intro { font-size: 15px; }
  .demo-stage { padding: 25px 14px; }
  .brief-header { flex-wrap: wrap; gap: 10px; padding: 15px 18px; }
  .brief-body { padding: 20px 18px 0; }
  .proposal-box { padding: 21px 18px 16px; }
  .signals-grid { padding: 12px; gap: 12px; }
  .signal-title { font-size: 11px; }
  .signal-col:first-child { padding-right: 10px; }
  .divergence-callout { flex-wrap: wrap; gap: 5px; }
  .uncertainty-box { display: block; padding: 11px; }
  .uncertainty-badge { display: inline-block; margin-bottom: 7px; }
  .evidence-table { font-size: 10px; }
  .evidence-table th, .evidence-table td { padding-inline: 5px; }
  .site-footer { flex-wrap: wrap; gap: 10px; padding-block: 18px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
