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

:root {
  --bg: #0f0f0f;
  --bg2: #141414;
  --bg3: #1a1a1a;
  --fg: #e8e8e0;
  --fg-muted: #888;
  --accent: #c8f239;
  --accent-dim: rgba(200, 242, 57, 0.12);
  --critical: #ff4d4d;
  --high: #ff9f43;
  --medium: #4dabf7;
  --border: #2a2a2a;
  --terminal-bg: #0a0a0a;
  --font-head: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === SCAN LINE OVERLAY === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.07) 2px,
    rgba(0,0,0,0.07) 4px
  );
  pointer-events: none;
  z-index: 1000;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(15,15,15,0.85);
  backdrop-filter: blur(12px);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  max-width: 1100px;
  margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.nav-badge {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,242,57,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,242,57,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
}

/* === TERMINAL === */
.hero-terminal {
  background: var(--terminal-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(200,242,57,0.05);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.terminal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.terminal-dot:first-child { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #28c940; }

.terminal-title {
  font-size: 0.7rem;
  color: var(--fg-muted);
  margin-left: auto;
  font-family: 'Courier New', monospace;
}

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

.terminal-line {
  display: grid;
  grid-template-columns: 56px 52px 1fr;
  gap: 12px;
  align-items: baseline;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  line-height: 1.5;
}

.tl-time { color: var(--fg-muted); font-size: 0.65rem; }

.tl-label {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
  padding: 2px 6px;
  text-align: center;
}
.tl-label.triage { background: rgba(200,242,57,0.15); color: var(--accent); }
.tl-label.assign  { background: rgba(77,171,247,0.15); color: var(--medium); }
.tl-label.label-tag { background: rgba(255,159,67,0.15); color: var(--high); }

.tl-text { color: var(--fg); }
.tl-meta { color: var(--fg-muted); font-size: 0.65rem; display: block; margin-top: 2px; }

.terminal-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  color: var(--fg-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === AGENT SECTION === */
.agent-section {
  padding: 100px 40px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.agent-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.agent-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.2;
}
.agent-text p {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.agent-card-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.agent-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  position: relative;
  transition: border-color 0.2s;
}
.agent-card:hover { border-color: var(--accent); }
.card-1 { transform: translateX(0); }
.card-2 { transform: translateX(8px); }
.card-3 { transform: translateX(16px); }

.ac-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.ac-icon {
  color: var(--accent);
  font-size: 0.8rem;
}
.agent-card p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === FEATURES === */
.features {
  padding: 100px 40px;
  border-top: 1px solid var(--border);
}
.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-headline {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
  max-width: 480px;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 48px;
}
.feature-item {
  background: var(--bg2);
  padding: 40px 36px;
}
.fi-metric {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}
.fi-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.integrations { padding-top: 16px; }
.int-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-bottom: 16px;
}
.int-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.int-logo {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg-muted);
  transition: all 0.2s;
}
.int-logo:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* === MANIFESTO === */
.manifesto {
  padding: 80px 40px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
}
.manifesto blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1.35;
  margin-bottom: 32px;
  border-left: 3px solid var(--accent);
  padding-left: 28px;
}
.manifesto-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* === PRICING === */
.pricing {
  padding: 100px 40px;
  border-top: 1px solid var(--border);
}
.pricing-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.pricing .section-label { display: block; }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 820px;
}
.pricing-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  margin-top: 8px;
}
.pricing-card--pro {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(200,242,57,0.08), 0 0 0 1px rgba(200,242,57,0.1);
}
.pc-cta--free {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.pc-cta--free:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}
.pc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.pc-plan {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.pc-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #000;
  background: var(--accent);
  border-radius: 4px;
  padding: 3px 8px;
}
.pc-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}
.pc-amount {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--fg);
  line-height: 1;
}
.pc-period { font-size: 1.1rem; color: var(--fg-muted); }
.pc-desc {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}
.pc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.pc-features li {
  font-size: 0.9rem;
  color: var(--fg);
  padding-left: 20px;
  position: relative;
}
.pc-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
}
.pc-cta {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #000;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
  transition: opacity 0.2s;
}
.pc-cta:hover { opacity: 0.85; }
.pc-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* === CLOSING === */
.closing {
  padding: 120px 40px;
  border-top: 1px solid var(--border);
}
.closing-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.closing h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  margin-bottom: 32px;
}
.closing-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
}
.cs-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

/* === FOOTER === */
.footer {
  padding: 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.footer-tagline {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 100px 24px 60px; }
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-terminal { margin-top: 8px; }
  .agent-inner { grid-template-columns: 1fr; gap: 48px; }
  .card-2, .card-3 { transform: none; }
  .feature-row { grid-template-columns: 1fr; }
  .agent-section, .features, .manifesto, .closing { padding: 64px 24px; }
  .pricing { padding: 80px 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .nav { padding: 0 24px; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .terminal-line { grid-template-columns: 48px 44px 1fr; }
  .hero-headline { font-size: 2rem; }
}
