/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0c0f14;
  --bg-card: #11151c;
  --bg-card-2: #1c2230;
  --text: #e8f4f0;
  --text-muted: #8a9bb0;
  --accent: #ff6b35;
  --accent-dim: #c44d1a;
  --accent-glow: rgba(255, 107, 53, 0.18);
  --green: #3ddc97;
  --green-dim: #1a6648;
  --border: #1e2633;
  --font-heading: 'Syne', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --radius: 8px;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-body {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-body.centered { text-align: center; max-width: 600px; margin: 0 auto; }

/* === LAYOUT === */
.section-inner { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }

/* === HERO === */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  min-height: 100vh;
  align-content: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.5);
  animation: pulse-glow 2s ease-in-out infinite;
}

.pulse-dot.large { width: 12px; height: 12px; }

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(61, 220, 151, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.4rem;
}

.headline-accent { color: var(--accent); }

.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.4rem;
  max-width: 480px;
}

/* Hero Terminal */
.hero-terminal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 460px;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--bg-card-2);
  border-bottom: 1px solid var(--border);
}

.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: block; }
.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }

.terminal-title { font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-mono); }

.terminal-body { padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }

.terminal-line { font-size: 0.8rem; display: flex; align-items: baseline; gap: 0.5rem; }
.terminal-line.muted { color: var(--text-muted); font-size: 0.75rem; }

.line-prompt { color: var(--accent); font-weight: 600; }
.line-cmd { color: var(--text); }
.ok { color: var(--green); font-weight: 600; }

.terminal-divider { height: 1px; background: var(--border); margin: 0.3rem 0; }

.terminal-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
}

.alert-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255, 107, 53, 0.15);
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.alert-text { font-size: 0.75rem; color: var(--text-muted); }

/* Hero Radar Visual */
.hero-right { display: flex; flex-direction: column; align-items: center; justify-content: center; }

.radar-visual {
  position: relative;
  width: 320px;
  height: 320px;
}

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255,107,53,0.12) 30deg, transparent 60deg);
  animation: sweep 4s linear infinite;
}

@keyframes sweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-ring {
  position: absolute;
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: 50%;
  inset: 0;
}
.radar-ring.ring-1 { inset: 25%; }
.radar-ring.ring-2 { inset: 50%; }
.radar-ring.ring-3 { inset: 75%; }

.radar-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
}

.radar-blip {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: blip-pulse 2s ease-in-out infinite;
}

.radar-blip.blip-1 { top: 15%; left: 60%; animation-delay: 0s; }
.radar-blip.blip-2 { top: 55%; left: 80%; animation-delay: 0.7s; }
.radar-blip.blip-3 { top: 75%; left: 35%; animation-delay: 1.4s; }

@keyframes blip-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.radar-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* === RADAR SECTION === */
.radar-section {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}

.radar-section .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.radar-section .section-inner.reverse { direction: rtl; }
.radar-section .section-inner.reverse > * { direction: ltr; }

/* Diagram Nodes */
.radar-diagram {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.diagram-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  flex-shrink: 0;
}

.node-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
}

.node-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

.pulse-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 2px solid var(--accent);
  animation: pulse-glow 2s ease-in-out infinite;
  opacity: 0.4;
}

.pulse-core {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.output-icon { font-weight: 700; color: var(--text); font-size: 1.1rem; }

.diagram-arrow {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--text-muted);
}

.arrow-line {
  width: 40px; height: 1px;
  background: var(--border);
}

.arrow-head {
  width: 0; height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--border);
}

/* Feature List */
.feature-list { list-style: none; margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }

.feature-check {
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.5rem;
}

.feature-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: baseline;
}

/* === HOW IT WORKS === */
.how-it-works { padding: 6rem 0; border-top: 1px solid var(--border); }

.section-header-centered { text-align: center; margin-bottom: 3rem; }
.section-header-centered .section-body { margin-top: 0.75rem; }

.workflow-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 2rem;
}

.workflow-card {
  flex: 1;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.workflow-divider {
  width: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workflow-divider::after {
  content: '...';
  color: var(--border);
  font-size: 1.2rem;
  letter-spacing: 4px;
}

.card-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--bg-card-2);
  line-height: 1;
  margin-bottom: 1rem;
  -webkit-text-stroke: 1px var(--border);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-body {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* === PR EXPLAINER === */
.pr-explainer { padding: 6rem 0; border-top: 1px solid var(--border); }

.pr-explainer .section-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* PR Mockup */
.pr-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg-card-2);
  border-bottom: 1px solid var(--border);
}

.pr-meta { display: flex; flex-direction: column; gap: 0.3rem; }

.pr-branch {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text);
}

.pr-badge {
  font-size: 0.68rem;
  color: var(--accent);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.pr-badge::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.pr-stat { text-align: right; }
.stat-num { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; color: var(--text); display: block; line-height: 1; }
.stat-label { font-size: 0.7rem; color: var(--text-muted); font-family: var(--font-mono); }

.pr-findings { padding: 0; }

.finding {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.finding:last-child { border-bottom: none; }

.finding-high { background: rgba(255, 107, 53, 0.04); }
.finding-medium { background: rgba(255, 200, 50, 0.03); }

.finding-left { display: flex; align-items: center; gap: 0.75rem; }

.finding-badge {
  font-size: 0.62rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 3px;
  flex-shrink: 0;
}

.finding-badge { background: rgba(255, 107, 53, 0.2); color: var(--accent); }
.finding-badge.med { background: rgba(255, 200, 50, 0.15); color: #ffc832; }
.finding-badge.inf { background: rgba(61, 220, 151, 0.1); color: var(--green); }

.finding-file { font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-mono); }

.finding-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

.finding-desc code {
  background: var(--bg-card-2);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.75rem;
  color: var(--accent);
}

/* === THE PROBLEM === */
.the-problem { padding: 6rem 0; border-top: 1px solid var(--border); }

.the-problem .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.problem-stats { display: flex; flex-direction: column; gap: 2rem; }

.stat-block { padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }

.stat-block .stat-value {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-block .stat-label { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* === SILENT MONITOR === */
.silent-monitor { padding: 6rem 0; border-top: 1px solid var(--border); }

.silent-monitor .section-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.monitor-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.monitor-status {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-indicator { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-family: var(--font-mono); }
.status-indicator.all-clear { color: var(--green); }

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(61, 220, 151, 0.5);
}

.status-time { font-size: 0.72rem; color: var(--text-muted); font-family: var(--font-mono); }

.monitor-feed { padding: 0.5rem 0; }

.feed-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(30, 38, 51, 0.5);
}

.feed-item:last-child { border-bottom: none; }

.feed-time { color: var(--text-muted); font-family: var(--font-mono); flex-shrink: 0; width: 70px; font-size: 0.72rem; }
.feed-text { color: var(--text); font-family: var(--font-mono); flex: 1; }

.feed-tag {
  font-size: 0.62rem;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 3px;
  flex-shrink: 0;
}

.feed-tag.resolved { background: rgba(61, 220, 151, 0.1); color: var(--green); }
.feed-tag.neutral { background: rgba(138, 155, 176, 0.1); color: var(--text-muted); }
.feed-tag.clean { background: rgba(61, 220, 151, 0.1); color: var(--green); }

.monitor-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); }
.monitor-subtext { font-size: 0.75rem; color: var(--text-muted); font-style: italic; line-height: 1.5; }

/* === CLOSING === */
.closing {
  padding: 8rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.closing-inner { max-width: 700px; margin: 0 auto; padding: 0 2rem; }

.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

.closing-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.closing-sub {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  display: block;
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: block;
  margin-top: 0.2rem;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding: 4rem 1.5rem 3rem; min-height: auto; gap: 2rem; }
  .hero-right { order: -1; }
  .radar-visual { width: 220px; height: 220px; }
  .hero-terminal { max-width: 100%; }
  .hero-sub { max-width: 100%; }
  
  .radar-section .section-inner,
  .pr-explainer .section-inner,
  .the-problem .section-inner,
  .silent-monitor .section-inner { grid-template-columns: 1fr; gap: 2rem; }
  .radar-section .section-inner.reverse { direction: ltr; }
  
  .workflow-grid { flex-direction: column; }
  .workflow-divider { display: none; }
  .workflow-card { border-radius: 0; border-left: none; border-right: none; }
  
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}