/* Power Supply — Design System */
:root {
  --bg: #070b12;
  --surface: #0d1420;
  --surface2: #141c2e;
  --border: #1e2d4a;
  --text: #e2e8f0;
  --muted: #64748b;
  --accent: #00e5ff;
  --accent2: #7c3aed;
  --green: #10b981;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(7,11,18,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.logo { font-size: 1.25rem; font-weight: 700; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.logo-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
nav ul { list-style: none; display: flex; gap: 2rem; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
nav a:hover { color: var(--text); }
.nav-cta { background: var(--accent) !important; color: #000 !important; font-weight: 600; padding: 0.5rem 1.25rem; border-radius: 6px; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124,58,237,0.15) 0%, transparent 60%),
              radial-gradient(ellipse 60% 40% at 80% 50%, rgba(0,229,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 30%, transparent 80%);
}
.hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; text-align: center; }
.hero-badge { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); background: rgba(0,229,255,0.08); border: 1px solid rgba(0,229,255,0.2); padding: 0.35rem 1rem; border-radius: 100px; margin-bottom: 0.75rem; }
.built-for-agents-tag { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.05em; margin-bottom: 2rem; }
.built-for-agents-tag strong { color: var(--accent); }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.hero h1 .gradient { background: linear-gradient(135deg, #00e5ff 0%, #7c3aed 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: clamp(1rem, 2.5vw, 1.25rem); color: var(--muted); max-width: 620px; margin: 0 auto 3rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.75rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: all 0.2s; cursor: pointer; border: none; }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: #33ebff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.hero-segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 750px; margin: 0 auto; }
.segment-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; text-align: left; transition: all 0.2s; }
.segment-card:hover { border-color: rgba(0,229,255,0.3); transform: translateY(-2px); }
.segment-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 0.4rem; }
.segment-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }

/* ── SECTION SHARED ── */
.section { padding: 6rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.section-title { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; letter-spacing: -0.02em; }
.section-sub { font-size: 1.1rem; color: var(--muted); max-width: 600px; line-height: 1.7; }

.section-divider { border: none; border-top: 1px solid var(--border); }

/* ── HOW IT WORKS ── */
.how-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.step { position: relative; padding: 2rem; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; }
.step-num { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 1rem; display: block; }
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; }
.step p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.step-arrow { position: absolute; right: -2rem; top: 50%; transform: translateY(-50%); color: var(--border); font-size: 1.5rem; }

/* ── FOR EACH SEGMENT ── */
.segments-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.segment-block { padding: 2.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.segment-block h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.segment-block .segment-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; display: block; }
.segment-block p { color: var(--muted); margin-bottom: 1.5rem; line-height: 1.7; }
.feature-list { list-style: none; }
.feature-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; display: flex; align-items: center; gap: 0.75rem; color: var(--text); }
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.segment-block .btn { margin-top: 1.5rem; }

/* ── BOTTLENECK ── */
.bottleneck-section { text-align: center; }
.bottleneck-section .section-sub { margin: 0 auto 3rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 3rem 0; }
.stat { padding: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.stat-val { font-size: 2.5rem; font-weight: 800; background: linear-gradient(135deg, #00e5ff, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.9rem; color: var(--muted); }
.why-now { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; text-align: left; }
.why-card { padding: 1.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.why-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--accent); }
.why-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ── CTA BANNER ── */
.cta-banner { background: linear-gradient(135deg, #0d1420 0%, #141c2e 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; padding: 5rem 2rem; }
.cta-banner h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.02em; }
.cta-banner p { color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-banner .hero-actions { justify-content: center; }

/* ── FOOTER ── */
footer { padding: 4rem 2rem 2rem; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: 0.875rem; line-height: 1.7; max-width: 300px; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { max-width: 1100px; margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--muted); }
.newsletter-form { margin-top: 1rem; display: flex; gap: 0.5rem; }
.newsletter-form input { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 0.6rem 1rem; color: var(--text); font-size: 0.875rem; width: 200px; }
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form button { background: var(--accent); color: #000; border: none; border-radius: 6px; padding: 0.6rem 1rem; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.newsletter-form button:hover { background: #33ebff; }

/* ── IMAGE HERO ── */
.hero-image { width: 100%; max-width: 860px; border-radius: 16px; border: 1px solid var(--border); margin: 0 auto; display: block; }

/* ── API DOCS SECTION ── */
.api-docs-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.api-docs-intro { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.api-badge { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #000; background: var(--accent); padding: 0.3rem 0.8rem; border-radius: 100px; }
.api-table-wrap { overflow-x: auto; margin: 2rem 0; }
.api-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.api-table th { text-align: left; padding: 0.75rem 1rem; background: var(--surface2); border: 1px solid var(--border); color: var(--muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.api-table td { padding: 0.85rem 1rem; border: 1px solid var(--border); color: var(--text); vertical-align: top; }
.api-table td code { font-family: 'Fira Code', 'Cascadia Code', monospace; font-size: 0.8rem; color: var(--accent); background: rgba(0,229,255,0.06); padding: 0.15rem 0.4rem; border-radius: 4px; }
.api-table .method { font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 4px; font-size: 0.75rem; display: inline-block; }
.method-get { background: rgba(16,185,129,0.15); color: var(--green); }
.method-post { background: rgba(0,229,255,0.15); color: var(--accent); }
.method-put { background: rgba(251,191,36,0.15); color: #fbbf24; }
.method-delete { background: rgba(239,68,68,0.15); color: #ef4444; }
.api-table .desc { color: var(--muted); line-height: 1.5; }
.api-table .path { font-family: monospace; font-size: 0.8rem; color: #fbbf24; }
.api-base-url { font-family: monospace; font-size: 0.85rem; background: var(--surface2); border: 1px solid var(--border); padding: 0.75rem 1rem; border-radius: 8px; color: var(--muted); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.api-base-url span { color: var(--accent); }

/* ── WEBHOOK SECTION ── */
.webhook-section { padding: 6rem 2rem; max-width: 1100px; margin: 0 auto; }
.webhook-events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2rem 0; }
.webhook-event { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.webhook-event h4 { font-family: monospace; font-size: 0.8rem; color: var(--accent); margin-bottom: 0.5rem; }
.webhook-event p { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.webhook-event code { display: block; font-family: 'Fira Code', monospace; font-size: 0.75rem; background: var(--bg); padding: 0.75rem; border-radius: 6px; overflow-x: auto; color: #a5f3fc; white-space: pre; }

/* ── PRICING TABLE ── */
.pricing-table-wrap { margin: 2rem 0; }
.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table th { text-align: left; padding: 0.85rem 1.25rem; background: var(--surface2); border: 1px solid var(--border); color: var(--muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.pricing-table td { padding: 0.85rem 1.25rem; border: 1px solid var(--border); font-size: 0.9rem; }
.pricing-table td:first-child { color: var(--text); font-weight: 600; }
.pricing-table td:nth-child(2) { font-family: monospace; color: var(--accent); }
.pricing-table td:nth-child(3) { color: var(--muted); }

/* ── AGENT DASHBOARD PREVIEW ── */
.dashboard-preview { margin: 3rem 0; }
.dash-mockup { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; max-width: 860px; }
.dash-header { padding: 1rem 1.5rem; background: var(--surface2); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.dash-header-title { font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; }
.dash-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; }
.dash-status { font-size: 0.75rem; color: var(--green); font-weight: 600; background: rgba(16,185,129,0.1); padding: 0.25rem 0.75rem; border-radius: 100px; }
.dash-body { display: grid; grid-template-columns: 280px 1fr; min-height: 320px; }
.dash-sidebar { background: var(--bg); border-right: 1px solid var(--border); padding: 1.5rem; }
.dash-sidebar-item { padding: 0.75rem 1rem; border-radius: 8px; color: var(--muted); font-size: 0.85rem; margin-bottom: 0.25rem; cursor: pointer; }
.dash-sidebar-item.active { background: rgba(0,229,255,0.08); color: var(--accent); font-weight: 600; }
.dash-sidebar-item:hover { color: var(--text); }
.dash-main { padding: 1.5rem; }
.dash-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.dash-metric { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; }
.dash-metric-val { font-size: 1.75rem; font-weight: 800; color: var(--text); }
.dash-metric-val.green { color: var(--green); }
.dash-metric-label { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }
.dash-chart-placeholder { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; height: 120px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.85rem; }
.dash-chart-label { font-family: monospace; font-size: 0.75rem; color: var(--accent); }

/* ── AGENT CTA BANNER ── */
.agent-cta-banner { background: linear-gradient(135deg, rgba(0,229,255,0.08) 0%, rgba(124,58,237,0.12) 100%); border: 1px solid rgba(0,229,255,0.2); border-radius: 16px; padding: 3rem; margin: 3rem 0; max-width: 1100px; margin-left: auto; margin-right: auto; }
.agent-cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.agent-cta-copy h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.agent-cta-copy p { color: var(--muted); font-size: 0.95rem; }
.agent-cta-copy .built-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); background: rgba(0,229,255,0.1); padding: 0.25rem 0.75rem; border-radius: 100px; display: inline-block; margin-bottom: 0.75rem; border: 1px solid rgba(0,229,255,0.2); }

/* ── SDK SNIPPET ── */
.sdk-section { margin-top: 2rem; }
.sdk-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.sdk-tab { padding: 0.5rem 1rem; background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; color: var(--muted); font-size: 0.8rem; cursor: pointer; }
.sdk-tab.active { border-color: var(--accent); color: var(--accent); }
.code-block { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.code-block-header { padding: 0.75rem 1rem; background: var(--surface2); border-bottom: 1px solid var(--border); font-family: monospace; font-size: 0.75rem; color: var(--muted); }
.code-block pre { padding: 1.25rem; margin: 0; font-family: 'Fira Code', 'Cascadia Code', monospace; font-size: 0.8rem; line-height: 1.7; overflow-x: auto; color: #e2e8f0; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav ul { display: none; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .api-table-wrap { font-size: 0.8rem; }
  .webhook-events { grid-template-columns: 1fr; }
  .agent-cta-grid { grid-template-columns: 1fr; }
  .agent-cta-banner { padding: 2rem 1.5rem; }
  .hero { padding: 7rem 1.5rem 3rem; }
  .hero-segments { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .segments-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .why-now { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}