/* === TRANSCODE — Design System v2 === */

:root {
  --bg-primary: #0a0a0c;
  --bg-secondary: #101013;
  --bg-card: #151518;
  --bg-card-hover: #1b1b1f;
  --bg-elevated: #1f1f24;
  --border: #1c1c22;
  --border-hover: #2a2a32;
  --border-subtle: #16161c;
  --text-primary: #f0f0f2;
  --text-secondary: #9a9aa6;
  --text-muted: #5c5c68;
  --text-dim: #3e3e48;
  --accent: #d4d4d8;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --badge-gov: #3b82f6;
  --badge-gov-bg: rgba(59,130,246,0.12);
  --badge-mkt: #34d399;
  --badge-mkt-bg: rgba(52,211,153,0.12);
  --badge-cbk: #fbbf24;
  --badge-cbk-bg: rgba(251,191,36,0.12);
  --badge-ai: #5eead4;
  --badge-ai-bg: rgba(94,234,212,0.10);
  --json-key: #9a9aa6;
  --json-string: #7dba96;
  --json-number: #d4a76a;
  --json-bracket: #5c5c68;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* === NAV === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 24px;
  background: rgba(10,10,12,0.75);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 14px; font-weight: 700; letter-spacing: 0.16em;
  color: var(--text-primary); text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 13px; font-weight: 500; transition: color 0.25s;
}
.nav-links a:hover { color: var(--text-secondary); }
.nav-cta {
  padding: 6px 14px !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  transition: all 0.25s !important;
}
.nav-cta:hover {
  border-color: var(--border-hover) !important;
  color: var(--text-primary) !important;
  background: var(--bg-card) !important;
}

/* === HERO === */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; padding: 120px 24px 80px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 45%, black 10%, transparent 70%);
}
.hero-glow {
  position: absolute; top: 38%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.025) 0%, transparent 65%);
  animation: glow-pulse 12s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes glow-pulse {
  0% { opacity: 0.6; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 1; transform: translate(-50%,-50%) scale(1.08); }
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-tag {
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(52px, 9vw, 88px); font-weight: 700;
  letter-spacing: 0.06em; line-height: 1;
  margin-bottom: 28px;
  background: linear-gradient(180deg, #f0f0f2 20%, #5c5c68 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 17px; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 48px; font-weight: 400;
}
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; margin-bottom: 48px;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat-num {
  font-size: 36px; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--text-primary);
}
.stat-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
}
.stat-divider { width: 1px; height: 44px; background: var(--border); }
.hero-actions { display: flex; gap: 12px; justify-content: center; }

.btn {
  display: inline-flex; align-items: center;
  padding: 11px 26px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: all 0.25s ease; cursor: pointer; border: none;
  font-family: var(--font-sans);
}
.btn-primary {
  background: var(--text-primary); color: var(--bg-primary);
}
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-secondary {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--border-hover); color: var(--text-primary);
}

/* === LIVE DEMO (Terminal) === */
.demo { padding: 40px 0 140px; }
.demo-label {
  text-align: center; font-size: 13px; font-weight: 500;
  color: var(--text-muted); letter-spacing: 0.06em; margin-bottom: 24px;
}
.terminal {
  max-width: 680px; margin: 0 auto;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: #0c0c0f;
}
.terminal-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px; background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg-elevated);
}
.terminal-title {
  font-size: 11px; color: var(--text-muted);
  font-family: var(--font-mono); margin-left: 8px;
}
.terminal-body { padding: 22px 24px; overflow-x: auto; }
.terminal-body pre {
  margin: 0; background: transparent; border: none;
  border-radius: 0; padding: 0;
}
.terminal-body code {
  font-family: var(--font-mono); font-size: 13px;
  line-height: 1.75; color: var(--text-secondary);
  white-space: pre;
}
.terminal-prompt { color: var(--text-muted); }
.terminal-cmd { color: var(--text-primary); }
.terminal-url { color: var(--text-secondary); }
.terminal-flag { color: var(--json-string); }
.terminal-response { margin-top: 16px; }
.terminal-cursor {
  display: inline-block; width: 7px; height: 15px;
  background: var(--text-muted); vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; } 50% { opacity: 0; }
}
.jk { color: var(--json-key); }
.js { color: var(--json-string); }
.jn { color: var(--json-number); }
.jb { color: var(--json-bracket); }
.jp { color: var(--text-dim); }

/* === PILLARS === */
.pillars { padding: 140px 0; }
.pillars-list { max-width: 720px; margin: 0 auto; }
.pillar {
  display: flex; gap: 28px; align-items: flex-start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.pillar:first-child { padding-top: 0; }
.pillar:last-child { border-bottom: none; }
.pillar-num {
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  font-variant-numeric: tabular-nums; min-width: 28px;
  padding-top: 2px; letter-spacing: 0.02em;
}
.pillar-content {}
.pillar-title {
  font-size: 17px; font-weight: 600; margin-bottom: 6px;
  color: var(--text-primary); line-height: 1.4;
}
.pillar-desc {
  font-size: 14px; color: var(--text-secondary); line-height: 1.7;
}

/* === SOURCES === */
.sources { padding: 140px 0; background: var(--bg-secondary); }
.section-title {
  font-size: 32px; font-weight: 700; margin-bottom: 12px;
  text-align: center; letter-spacing: -0.01em; line-height: 1.2;
}
.section-sub {
  font-size: 15px; color: var(--text-secondary); text-align: center;
  margin-bottom: 56px; max-width: 560px;
  margin-left: auto; margin-right: auto; line-height: 1.7;
}
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.bento-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 26px;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.bento-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.bento-card.span-2 { grid-column: span 2; }
.bento-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bento-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  padding: 3px 7px; border-radius: 4px; text-transform: uppercase;
}
.bento-badge.gov { background: var(--badge-gov-bg); color: var(--badge-gov); }
.bento-badge.mkt { background: var(--badge-mkt-bg); color: var(--badge-mkt); }
.bento-badge.cbk { background: var(--badge-cbk-bg); color: var(--badge-cbk); }
.bento-badge.ai  { background: var(--badge-ai-bg);  color: var(--badge-ai);  }
.bento-name { font-size: 15px; font-weight: 600; }
.bento-desc {
  font-size: 13px; color: var(--text-secondary); line-height: 1.6;
}
.bento-card.dashed {
  border-style: dashed; border-color: var(--border);
  display: flex; flex-direction: column; justify-content: center;
}
.bento-card.dashed:hover { border-color: var(--border-hover); }

/* === INTEGRATION === */
.integrate { padding: 140px 0; }
.integrate-tabs {
  display: flex; gap: 4px; justify-content: center;
  margin: 40px 0 24px;
}
.tab {
  padding: 8px 20px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  background: transparent; border: 1px solid transparent;
  cursor: pointer; transition: all 0.25s; font-family: var(--font-sans);
}
.tab:hover { color: var(--text-secondary); }
.tab.active {
  color: var(--text-primary); background: var(--bg-card);
  border-color: var(--border);
}
.code-panels { max-width: 640px; margin: 0 auto; }
.code-panel { display: none; }
.code-panel.active { display: block; }
.code-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 18px; background: var(--bg-card);
  border: 1px solid var(--border); border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-size: 12px; color: var(--text-muted); font-family: var(--font-mono);
}
.copy-btn {
  font-size: 11px; font-weight: 500; color: var(--text-muted);
  background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: 4px; padding: 4px 10px; cursor: pointer;
  transition: all 0.2s; font-family: var(--font-sans);
}
.copy-btn:hover { color: var(--text-primary); border-color: var(--border-hover); }
.code-block {
  background: #0c0c0f; border: 1px solid var(--border); border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 20px; overflow-x: auto; margin: 0;
}
.code-block code {
  font-family: var(--font-mono); font-size: 13px;
  line-height: 1.75; color: var(--text-secondary); white-space: pre;
}

/* === ARCHITECTURE === */
.architecture { padding: 140px 0; background: var(--bg-secondary); }
.arch-flow {
  display: flex; align-items: stretch; gap: 0;
  max-width: 860px; margin: 56px auto 0;
}
.arch-step {
  flex: 1; padding: 28px 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color 0.3s;
}
.arch-step:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.arch-step:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.arch-step:not(:first-child) { border-left: none; }
.arch-step:hover { border-color: var(--border-hover); }
.arch-step-num {
  font-size: 11px; font-weight: 700; color: var(--text-dim);
  letter-spacing: 0.1em; margin-bottom: 12px;
}
.arch-step-title {
  font-size: 15px; font-weight: 600; margin-bottom: 8px;
}
.arch-step-items {
  list-style: none; padding: 0;
}
.arch-step-items li {
  font-size: 12px; color: var(--text-muted); line-height: 1.8;
}
.arch-arrow {
  display: flex; align-items: center; color: var(--text-dim);
  font-size: 18px; padding: 0 2px; background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* === TRUST === */
.trust { padding: 140px 0; }
.trust-label {
  text-align: center; font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 32px;
}
.trust-sources {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; margin-bottom: 56px;
}
.trust-chip {
  font-size: 12px; font-weight: 500; color: var(--text-secondary);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 100px; padding: 8px 18px;
  transition: border-color 0.25s;
}
.trust-chip:hover { border-color: var(--border-hover); }
.trust-chip span { color: var(--text-muted); font-size: 11px; margin-left: 4px; }
.trust-metrics {
  display: flex; justify-content: center; gap: 48px;
  flex-wrap: wrap;
}
.trust-metric { text-align: center; }
.trust-metric-num {
  font-size: 28px; font-weight: 700; color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.trust-metric-label {
  font-size: 11px; font-weight: 500; color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px;
}

/* === CTA === */
.cta {
  padding: 120px 0; text-align: center;
  background: var(--bg-secondary);
}
.cta-title {
  font-size: 28px; font-weight: 700; margin-bottom: 8px;
  line-height: 1.3;
}
.cta-sub {
  font-size: 15px; color: var(--text-muted); margin-bottom: 36px;
}
.cta-actions { display: flex; gap: 12px; justify-content: center; }
.cta-requests {
  margin-top: 32px; display: flex; align-items: center;
  justify-content: center; gap: 16px;
}
.cta-link {
  font-size: 13px; color: var(--text-muted); text-decoration: none;
  transition: color 0.25s;
}
.cta-link:hover { color: var(--text-secondary); }
.cta-divider { color: var(--text-dim); font-size: 12px; }

/* === FOOTER === */
.footer { padding: 36px 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; align-items: baseline; gap: 12px; }
.footer-logo {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
}
.footer-tagline {
  font-size: 11px; color: var(--text-muted); font-weight: 400;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 12px; transition: color 0.25s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-copy { font-size: 11px; color: var(--text-dim); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 100px 20px 60px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .stat-divider { display: none; }
  .hero-actions { flex-direction: column; align-items: center; }
  .pillars, .sources, .integrate, .architecture, .trust, .cta { padding: 80px 0; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.span-2 { grid-column: span 1; }
  .arch-flow { flex-direction: column; }
  .arch-step:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
  .arch-step:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); }
  .arch-step:not(:first-child) { border-left: 1px solid var(--border); border-top: none; }
  .arch-arrow { justify-content: center; padding: 4px 0;
    border-left: 1px solid var(--border); border-right: 1px solid var(--border);
    border-top: none; border-bottom: none;
    transform: rotate(90deg); width: fit-content; margin: 0 auto;
  }
  .trust-metrics { gap: 28px; }
  .footer-inner { flex-direction: column; gap: 14px; text-align: center; }
}

@media (max-width: 480px) {
  .section-title { font-size: 26px; }
  .pillar { flex-direction: column; gap: 8px; }
  .terminal-body { padding: 16px; }
  .terminal-body code { font-size: 11.5px; }
}

/* === ANIMATIONS === */
.fade-in {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.08s; }
.fade-in-delay-2 { transition-delay: 0.16s; }
.fade-in-delay-3 { transition-delay: 0.24s; }
.fade-in-delay-4 { transition-delay: 0.32s; }
