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

:root {
  --bg: #0d0d0f;
  --bg-2: #141416;
  --bg-3: #1a1a1e;
  --fg: #f0ede8;
  --fg-muted: #8a8a94;
  --accent: #c8f135;
  --accent-dim: rgba(200, 241, 53, 0.12);
  --border: rgba(240, 237, 232, 0.08);
  --terminal-green: #4ade80;
  --terminal-yellow: #fbbf24;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

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

/* === NAV === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
}

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

.logo-mark {
  font-size: 20px;
  color: var(--accent);
}

.logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  font-family: var(--font-body);
}

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

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

/* === HERO === */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 80px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 28px;
  border: 1px solid rgba(200, 241, 53, 0.2);
}

.hero-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-highlight {
  color: var(--accent);
}

.hero-lede {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 480px;
  font-weight: 300;
}

/* === TERMINAL === */
.hero-terminal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 40px rgba(0,0,0,0.5), 0 0 80px rgba(200, 241, 53, 0.03);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.t-red { background: #ff5f57; }
.t-yellow { background: #febc2e; }
.t-green { background: #28c840; }

.terminal-title {
  margin-left: 8px;
  color: var(--fg-muted);
  font-size: 12px;
  font-family: var(--font-body);
}

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

.t-row {
  color: #d4d0c8;
  line-height: 1.5;
}
.t-muted { color: var(--fg-muted); }

.t-label {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-right: 8px;
}
.t-green { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.t-yellow { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }

.t-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  margin-top: 4px;
  animation: blink 1s step-end infinite;
}

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

/* === AGENT SECTION === */
.agent-section {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.agent-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto;
  font-weight: 300;
}

.agent-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.step {
  padding: 28px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.step p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  font-weight: 300;
}

.step-arrow {
  font-size: 24px;
  color: var(--fg-muted);
  padding: 28px 16px;
  display: flex;
  align-items: center;
  opacity: 0.5;
}

/* === FEATURES === */
.features {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.feature-card {
  background: var(--bg);
  padding: 36px 32px;
  transition: background 0.2s;
}

.feature-card:hover {
  background: var(--bg-2);
}

.feature-icon {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* === PULSE SECTION === */
.pulse-section {
  padding: 60px 48px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pulse-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.pulse-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 32px;
}

.pulse-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 24px;
}

.pulse-stat {
  text-align: center;
  padding: 0 48px;
}

.pulse-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 8px;
}

.pulse-desc {
  font-size: 13px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pulse-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}

.pulse-note {
  font-size: 13px;
  color: var(--fg-muted);
  font-style: italic;
}

/* === CLOSING === */
.closing {
  padding: 100px 48px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

.closing-statement {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 600;
  line-height: 1.4;
  max-width: 700px;
  margin: 0 auto 24px;
  letter-spacing: -0.5px;
}

.closing-statement strong {
  color: var(--accent);
}

.closing-tagline {
  font-size: 16px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

/* === FOOTER === */
.footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}

.footer-meta {
  font-size: 13px;
  color: var(--fg-muted);
}

.footer-copy {
  font-size: 12px;
  color: var(--fg-muted);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 24px;
  }
  .hero-terminal { display: none; }

  .agent-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .step-arrow { display: none; }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pulse-stats {
    flex-direction: column;
    gap: 24px;
  }
  .pulse-divider { display: none; }

  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 32px 24px;
  }

  .nav { padding: 20px 24px; }
  .closing { padding: 60px 24px; }
  .features { padding: 48px 24px; }
  .agent-section { padding: 48px 24px; }
  .pulse-section { padding: 48px 24px; }
}
