/* =======================
   PULSEAGENT — CSS THEME
   ======================= */

:root {
  --bg: #0B0F1A;
  --surface: #111827;
  --surface-2: #1a2332;
  --border: #1E2A3A;
  --fg: #E8F0FE;
  --fg-muted: #7A8FA6;
  --teal: #00E5C4;
  --teal-dim: rgba(0, 229, 196, 0.12);
  --teal-glow: rgba(0, 229, 196, 0.25);
  --accent: #00E5C4;
  --font-display: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- TYPOGRAPHY ---- */
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 0;
}
.teal { color: var(--teal); }
em { font-style: normal; color: var(--teal); }

/* ---- NAV ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 26, 0.8);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal-glow);
  animation: pulse-glow 2s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 6px var(--teal-glow); }
  50% { box-shadow: 0 0 16px var(--teal), 0 0 32px var(--teal-dim); }
}
.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-family: var(--font-display);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 100px 48px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,196,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,196,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,229,196,0.08) 0%, transparent 70%);
  top: -100px;
  right: 10%;
}
.glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,229,196,0.05) 0%, transparent 70%);
  bottom: 0;
  left: 20%;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-left { display: flex; flex-direction: column; gap: 24px; }
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(0,229,196,0.2);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  width: fit-content;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.hero-headline em {
  font-style: normal;
  color: var(--teal);
  background: linear-gradient(135deg, #00E5C4 0%, #00b8a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 440px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 8px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), #00b8a0);
  color: var(--bg);
  box-shadow: 0 0 20px var(--teal-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--teal-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--teal);
}
.btn-ghost:hover {
  background: var(--teal-dim);
  transform: translateY(-2px);
}
.stat-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--teal);
}
.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ---- AGENT CARD (MOCKUP) ---- */
.hero-right { display: flex; justify-content: flex-end; }
.agent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 40px rgba(0,229,196,0.08), 0 24px 48px rgba(0,0,0,0.4);
  position: relative;
}
.agent-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0,229,196,0.2), transparent 50%);
  z-index: -1;
}
.agent-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.agent-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00E5C4, #00b8a0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--bg);
  flex-shrink: 0;
}
.agent-info { flex: 1; }
.agent-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fg);
}
.agent-status {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 2px;
}
.agent-pulse { position: relative; width: 24px; height: 24px; }
.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  animation: pulse-expand 2s ease-out infinite;
}
.pulse-ring-2 { animation-delay: 1s; }
@keyframes pulse-expand {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}
.agent-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}
.insight-bubble {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  position: relative;
}
.insight-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.insight-tag-new { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.insight-tag-info { background: var(--teal-dim); color: var(--teal); }
.insight-text {
  font-size: 0.82rem;
  color: var(--fg);
  line-height: 1.55;
}
.insight-time {
  font-size: 0.7rem;
  color: var(--fg-muted);
  margin-top: 8px;
}
.insight-bubble-2 { opacity: 0.65; }
.agent-footer { margin-top: 4px; }
.signal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: #22c55e;
  margin-bottom: 12px;
}
.signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.signal-ok { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.4); }
.metrics-row {
  display: flex;
  gap: 16px;
}
.metric-mini { display: flex; flex-direction: column; gap: 2px; }
.metric-mini-label { font-size: 0.65rem; color: var(--fg-muted); font-family: var(--font-display); letter-spacing: 0.06em; }
.metric-mini-val { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; }
.up { color: #22c55e; }
.down { color: #ef4444; }

/* ---- HOW ---- */
.how {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, rgba(17,24,39,0.5) 100%);
}
.how-header {
  max-width: 600px;
  margin: 0 auto 64px;
  text-align: center;
}
.how-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
}
.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal-dim);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}
.step-body {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}
.step-arrow {
  flex-shrink: 0;
  opacity: 0.4;
}

/* ---- SAMPLE BRIEF ---- */
.sample {
  padding: 100px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sample-inner {
  max-width: 680px;
  margin: 0 auto;
}
.sample-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  text-align: center;
}
.brief-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 0 30px rgba(0,229,196,0.06);
}
.brief-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brief-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--teal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brief-meta { display: flex; flex-direction: column; gap: 2px; }
.brief-time { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--fg); }
.brief-date { font-size: 0.75rem; color: var(--fg-muted); }
.brief-divider { height: 1px; background: var(--border); margin: 20px 0; }
.brief-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.brief-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.brief-item-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--teal-dim);
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  line-height: 1.2;
}
.brief-item-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fg);
  margin-bottom: 6px;
}
.brief-item-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 10px;
}
.brief-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--teal-dim);
  color: var(--teal);
}

/* ---- FEATURES ---- */
.features {
  padding: 100px 48px;
  background: var(--bg);
}
.features-header {
  max-width: 600px;
  margin: 0 auto 64px;
  text-align: center;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.feature-card:hover { border-color: rgba(0,229,196,0.3); transform: translateY(-2px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}
.feature-body {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

.features-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 48px;
}

/* ---- PHILOSOPHY ---- */
.philosophy {
  padding: 80px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.philosophy-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.philosophy-quote { margin-bottom: 40px; }
.quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--teal);
  opacity: 0.3;
  line-height: 0.5;
  margin-bottom: 24px;
}
blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--fg);
  line-height: 1.6;
  font-style: italic;
}
.philosophy-cta-line {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}
.cta-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0.3;
}

/* ---- CLOSING ---- */
.closing {
  padding: 120px 48px;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,229,196,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.closing-inner { position: relative; z-index: 1; }
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  margin-bottom: 48px;
}
.closing-vision {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.closing-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
}
.vision-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--fg-muted);
  font-family: var(--font-display);
}
.vision-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal-glow);
  flex-shrink: 0;
}

/* ---- FOOTER ---- */
.footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fg);
}
.footer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 6px var(--teal-glow);
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-style: italic;
}

/* ---- PRO BADGE ---- */
.pro-badge {
  background: linear-gradient(135deg, var(--teal), #00b8a0);
  color: var(--bg);
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
.footer-legal {
  font-size: 0.72rem;
  color: var(--fg-muted);
  opacity: 0.6;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { justify-content: flex-start; }
  .feature-grid { grid-template-columns: 1fr; }
  .how-steps { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
}
@media (max-width: 600px) {
  .nav { padding: 16px 24px; }
  .hero { padding: 90px 24px 60px; }
  .how, .sample, .features, .philosophy, .closing { padding: 64px 24px; }
  .footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 16px; }
  .stat-value { font-size: 1.2rem; }
}