/* ==========================================================================
   EzraAI — design tokens
   Palette pulled straight from the bot's own mark: void navy background,
   the cyan visor glow as the single accent, steel-blue for secondary trim.
   ========================================================================== */
:root {
  --void:        #07090f;
  --panel:       #0d1622;
  --panel-2:     #121f30;
  --border:      #1d2e42;
  --border-soft: #172538;

  --cyan:        #6dfcff;
  --cyan-dim:    #3fb9bf;
  --steel:       #7fb9c9;

  --text:        #e8f2f5;
  --text-muted:  #93a6b5;
  --text-faint:  #5f7284;

  --font-head: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;

  --wrap: 1160px;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; color: #fff; }
p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- static background field (cheap, no animation) ---- */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(680px 480px at 82% -6%, rgba(109, 252, 255, 0.10), transparent 60%),
    radial-gradient(520px 420px at 8% 18%, rgba(127, 185, 201, 0.07), transparent 65%),
    var(--void);
  background-size: 140% 140%, 140% 140%, 100% 100%;
  animation: bgDrift 22s ease-in-out infinite;
}
@keyframes bgDrift {
  0%, 100% { background-position: 82% -6%, 8% 18%, 0 0; }
  50% { background-position: 74% 4%, 16% 26%, 0 0; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-s);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--cyan);
  color: #04151a;
}
.btn-primary:hover { background: #8dfdff; }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--cyan-dim); color: var(--cyan); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: 14px 26px; font-size: 1.02rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 15, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  color: #fff;
  margin-right: auto;
}
.brand-mark {
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--border-soft);
}
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-size: 0.93rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--cyan); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-toggle span {
  width: 16px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 90px 24px 70px;
}
.kicker {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 15ch;
}
.hero-sub {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 1.06rem;
  max-width: 54ch;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orb-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109,252,255,0.22), rgba(109,252,255,0) 70%);
  filter: blur(2px);
  animation: glowPulse 4s ease-in-out infinite;
}
.hero-orb {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--border-soft), 0 30px 60px -20px rgba(0,0,0,0.6);
  animation: floatY 5s ease-in-out infinite;
  will-change: transform;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px 2px rgba(109,252,255,0.7);
  opacity: 0.8;
  pointer-events: none;
}
.particle--1 { width: 8px; height: 8px; top: 12%; left: 8%; animation: floatDrift 6s ease-in-out infinite; }
.particle--2 { width: 5px; height: 5px; top: 72%; left: 12%; animation: floatDrift 7.5s ease-in-out infinite 0.6s; }
.particle--3 { width: 6px; height: 6px; top: 20%; right: 6%; animation: floatDrift 5.5s ease-in-out infinite 1.2s; }
.particle--4 { width: 4px; height: 4px; top: 80%; right: 14%; animation: floatDrift 8s ease-in-out infinite 0.3s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes floatDrift {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(10px, -18px); }
  66% { transform: translate(-8px, -8px); }
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-m);
  overflow: hidden;
  margin-bottom: 110px;
}
.stat {
  background: var(--panel);
  padding: 28px 20px;
  text-align: center;
}
.stat-num, .stat-suffix {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--cyan);
}
.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section head
   ========================================================================== */
.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-head p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ==========================================================================
   Features
   ========================================================================== */
.features { padding-bottom: 110px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-m);
  padding: 30px;
}
.feature-card--wide { grid-column: span 2; }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-s);
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}
.feature-card code {
  color: var(--cyan);
  background: rgba(109, 252, 255, 0.08);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.88em;
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}
.feature-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--cyan-dim);
  transition: color 0.15s ease;
}
.feature-more:hover { color: var(--cyan); }

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing { padding-bottom: 110px; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.price-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-m);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.price-card--featured {
  border-color: var(--cyan-dim);
  background: linear-gradient(180deg, rgba(109,252,255,0.06), var(--panel) 60%);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--cyan);
  color: #04151a;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
}
.price-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
}
.price-tag {
  margin-top: 4px;
  color: var(--cyan);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
}
.price-desc {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.94rem;
}
.price-card ul {
  margin: 20px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-card li {
  padding-left: 20px;
  position: relative;
  font-size: 0.93rem;
  color: var(--text);
}
.price-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}
.price-card .btn { margin-top: auto; }

.pricing-foot {
  margin-top: 28px;
  color: var(--text-faint);
  font-size: 0.88rem;
}
.pricing-foot a { color: var(--cyan-dim); }
.pricing-foot a:hover { color: var(--cyan); }
.pricing-foot code {
  color: var(--cyan);
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { padding-bottom: 110px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-m);
  padding: 4px 24px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 30px 18px 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: #fff;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 1.3rem;
  color: var(--cyan);
  line-height: 1;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p {
  color: var(--text-muted);
  font-size: 0.96rem;
  padding-bottom: 20px;
}
.faq-item code {
  color: var(--cyan);
  background: rgba(109, 252, 255, 0.08);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.88em;
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--panel);
  padding: 70px 0;
  margin-bottom: 0;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.5fr;
  gap: 30px;
  align-items: center;
}
.cta-copy h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  max-width: 16ch;
}
.cta-copy p {
  margin-top: 14px;
  color: var(--text-muted);
  max-width: 48ch;
}
.cta-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.cta-visual {
  display: flex;
  justify-content: center;
}
.cta-orb {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--border-soft), 0 0 60px -10px rgba(109,252,255,0.25);
  animation: floatY 4.5s ease-in-out infinite 0.4s;
  will-change: transform;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 40px;
}
.footer-brand p {
  margin-top: 14px;
  color: var(--text-faint);
  font-size: 0.88rem;
  max-width: 34ch;
}
.footer-col h4 {
  font-size: 0.85rem;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: var(--text-muted);
  font-size: 0.93rem;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 20px 24px 28px;
}
.footer-bottom p {
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* ==========================================================================
   Sub-page chrome: breadcrumb, docs hero, command tables, compare table
   ========================================================================== */
.subnav {
  padding: 22px 0 0;
}
.subnav .breadcrumb {
  font-size: 0.86rem;
  color: var(--text-faint);
}
.subnav .breadcrumb a { color: var(--text-muted); }
.subnav .breadcrumb a:hover { color: var(--cyan); }
.subnav .breadcrumb span { margin: 0 8px; color: var(--border); }

.docs-hero { padding: 26px 0 64px; }
.docs-hero .kicker { margin-bottom: 16px; }
.docs-hero h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 20ch;
  line-height: 1.15;
}
.docs-hero .hero-sub { max-width: 60ch; margin-top: 18px; }
.docs-hero .hero-actions { margin-top: 30px; }

.subpage-section { padding-bottom: 90px; }
.subpage-section h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.subpage-section > .wrap > p.lead,
.prose p.lead {
  color: var(--text-muted);
  font-size: 1.04rem;
  max-width: 68ch;
  margin-bottom: 40px;
}
.prose p { color: var(--text-muted); font-size: 0.98rem; max-width: 70ch; margin-bottom: 16px; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 34px 0 12px; color: #fff; }
.prose code {
  color: var(--cyan);
  background: rgba(109, 252, 255, 0.08);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.88em;
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

.cmd-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-m);
  overflow: hidden;
  margin: 20px 0 40px;
}
.cmd-table th, .cmd-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.92rem;
}
.cmd-table th {
  font-family: var(--font-head);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  background: var(--panel-2);
}
.cmd-table tr:last-child td { border-bottom: none; }
.cmd-table td:first-child {
  font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  color: var(--cyan);
  white-space: nowrap;
}
.cmd-table td { color: var(--text-muted); }

.cmd-group-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin: 46px 0 6px;
}
.cmd-group-title:first-of-type { margin-top: 0; }
.cmd-group-note { color: var(--text-faint); font-size: 0.88rem; margin-bottom: 4px; }

.prose a, .cmd-group-note a, .faq-item p a {
  color: var(--cyan-dim);
  text-decoration: underline;
  text-decoration-color: rgba(109, 252, 255, 0.35);
  text-underline-offset: 2px;
}
.prose a:hover, .cmd-group-note a:hover, .faq-item p a:hover { color: var(--cyan); }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.92rem;
  text-align: left;
}
.compare-table th {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--text-faint);
  font-weight: 600;
}
.compare-table th:not(:first-child), .compare-table td:not(:first-child) { text-align: center; }
.compare-table td:first-child { color: var(--text); font-size: 0.9rem; }
.compare-table td.yes { color: var(--cyan); font-weight: 700; }
.compare-table td.no { color: var(--text-faint); }
.compare-table thead th.featured { color: var(--cyan); }

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.related-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
  padding: 9px 16px;
  border-radius: 999px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.related-links a:hover { color: var(--cyan); border-color: var(--cyan-dim); }

@media (max-width: 720px) {
  .cmd-table, .compare-table { font-size: 0.85rem; }
  .cmd-table th, .cmd-table td, .compare-table th, .compare-table td { padding: 10px 12px; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 46px; }
  .hero-visual { order: -1; }
  .hero-orb { width: 220px; height: 220px; }
  .orb-glow { width: 260px; height: 260px; }
  .hero h1 { max-width: none; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: span 1; }
  .pricing-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; text-align: left; }
  .cta-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--border-soft);
    padding: 18px 24px 22px;
    gap: 16px;
  }

  .footer-inner { grid-template-columns: 1fr; }
}
