:root {
  color-scheme: dark;
  --page: #080c14;
  --page-surface: #0e1422;
  --card-bg: rgba(15, 23, 42, 0.72);
  --card-bg-hover: rgba(22, 33, 62, 0.85);
  --surface: #101728;
  --surface-soft: #17223b;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --quiet: #94a3b8;
  --rule: rgba(255, 255, 255, 0.08);
  --rule-bright: rgba(255, 255, 255, 0.16);
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-ink: #ffffff;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --warm: #f59e0b;
  --warm-soft: rgba(245, 158, 11, 0.12);
  --emerald: #10b981;
  --indigo: #6366f1;
  --purple: #a855f7;
}

[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; overflow-x: clip; }

body[data-frontend-home] {
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  background: var(--page);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: clip;
}

.bg-mesh-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 800px;
  background:
    radial-gradient(circle at 50% 10%, rgba(59, 130, 246, 0.16) 0%, transparent 55%),
    radial-gradient(circle at 80% 25%, rgba(168, 85, 247, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.08) 0%, transparent 45%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

body[data-frontend-home] h1,
body[data-frontend-home] h2,
body[data-frontend-home] h3 {
  font-family: 'Plus Jakarta Sans', Manrope, sans-serif;
  letter-spacing: -0.03em;
}

.skip-link {
  position: fixed; top: -100px; left: 14px; z-index: 50;
  padding: 10px 14px; color: var(--accent-ink); background: var(--accent);
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.home-main { width: min(100%, 1240px); max-width: 100%; box-sizing: border-box; margin: 0 auto; padding: 0 24px; }
.home-section { width: 100%; box-sizing: border-box; padding: 84px 0; border-bottom: 1px solid var(--rule); }

/* Glass Card Foundation */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.glass-card:hover {
  border-color: var(--rule-bright);
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulse-glow 2s infinite;
}
.badge-tag {
  background: rgba(59, 130, 246, 0.25);
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  color: #bfdbfe;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

/* Hero Typography */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.95fr);
  align-items: center; gap: clamp(40px, 6vw, 76px); padding-top: 56px; padding-bottom: 74px;
}
.hero.home-section { border-bottom: 0; }
.hero-copy { padding: 12px 0; }
.hero-title {
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.08;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}
.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a855f7 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-description {
  max-width: 530px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.price-highlight-wrapper { margin: 24px 0 6px; min-height: 64px; }
.price-highlight {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  color: #6ee7b7;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
}
.price-highlight:empty { display: none; }
.price-highlight::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  content: "";
}
.small-note { color: var(--quiet); font-size: 12.5px; line-height: 1.6; margin-top: 6px; }

/* Hero Actions & Buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 26px 0 0; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.button svg { width: 16px; height: 16px; transition: transform .2s ease; }
.button:hover svg { transform: translate(1px, -1px); }
.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.button.primary.glow-btn {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px -2px rgba(37, 99, 235, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.button.primary.glow-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
  box-shadow: 0 6px 25px rgba(37, 99, 235, 0.6);
  transform: translateY(-1px);
}

.button.secondary.glass-btn {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  backdrop-filter: blur(12px);
}
.button.secondary.glass-btn:hover {
  background: rgba(51, 65, 85, 0.8);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.button.ghost-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}
.button.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

/* Hero Quick Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.stat-item { display: flex; flex-direction: column; gap: 3px; }
.stat-value {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 11.5px; color: var(--quiet); font-weight: 500; }
.stat-divider { width: 1px; height: 28px; background: var(--rule); }

/* Agent Roster Card */
.agent-roster {
  padding: 28px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.roster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.roster-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #38bdf8;
}
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 9px;
  border-radius: 999px;
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}
.agent-roster h2 { margin: 0 0 8px; color: #ffffff; font-size: 20px; font-weight: 700; }
.roster-desc { margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.agent-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.agent-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.45);
  transition: all .2s ease;
}
.agent-chip:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}
.agent-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.agent-info { display: flex; flex-direction: column; min-width: 0; }
.agent-name { font-size: 13px; font-weight: 600; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-tag { font-size: 10.5px; color: var(--quiet); }
.roster-note { margin: 18px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* Promotion Banner */
.promotion-banner {
  display: grid;
  grid-template-columns: minmax(180px, 210px) minmax(0, 1fr) auto auto;
  column-gap: 32px;
  row-gap: 20px;
  align-items: center;
  margin: 16px 0 32px;
  padding: 24px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(225, 29, 72, 0.08) 50%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.08);
}
.promotion-discount { display: flex; align-items: baseline; gap: 8px; color: #fbbf24; }
.promotion-discount strong {
  font-size: clamp(48px, 5.5vw, 68px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -0.05em;
  text-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
}
.promotion-discount span { font-size: 13px; font-weight: 800; letter-spacing: .08em; color: #fcd34d; }
.promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #fbbf24;
  margin-bottom: 6px;
}
.promotion-copy h2 { margin: 0; color: #ffffff; font-size: 20px; font-weight: 700; }
.promotion-copy p:last-child { margin: 6px 0 0; color: #d1d5db; font-size: 13px; }
.countdown-label { margin: 0 0 8px; color: #cbd5e1; font-size: 12px; font-weight: 500; }
.countdown { display: flex; align-items: center; gap: 6px; }
.countdown-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  padding: 6px 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 8px;
}
.countdown-tile strong { color: #fef08a; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.countdown-tile span { color: #94a3b8; font-size: 9.5px; text-transform: uppercase; }
.countdown-sep { color: #f59e0b; font-weight: 700; font-size: 16px; }
.glow-btn-warm {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  border: 1px solid rgba(251, 191, 36, 0.3);
  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.4);
}
.glow-btn-warm:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transform: translateY(-1px);
}

/* Section Heading */
.section-heading { max-width: 720px; margin: 0 auto 46px; }
.section-heading.text-center { text-align: center; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--rule);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}
.section-heading h2 { margin: 0; font-size: clamp(28px, 3.5vw, 42px); color: #ffffff; font-weight: 800; }
.section-heading > p { margin: 14px auto 0; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 580px; }

/* Features Bento Grid */
.bento-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature-card {
  padding: 28px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: 16px;
  align-items: center;
  border-radius: 18px;
}
.feature-card.highlight-card {
  border-color: rgba(99, 102, 241, 0.3);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
  box-shadow: 0 15px 35px -10px rgba(99, 102, 241, 0.15);
}
.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  flex-shrink: 0;
}
.blue-gradient { background: rgba(56, 189, 248, 0.12); border: 1px solid rgba(56, 189, 248, 0.25); }
.indigo-gradient { background: rgba(99, 102, 241, 0.12); border: 1px solid rgba(99, 102, 241, 0.25); }
.purple-gradient { background: rgba(168, 85, 247, 0.12); border: 1px solid rgba(168, 85, 247, 0.25); }
.feature-card h3 { margin: 0; color: #ffffff; font-size: 19px; font-weight: 700; line-height: 1.3; }
.feature-card p { grid-column: 1 / -1; align-self: start; margin: 14px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.feature-perks {
  grid-column: 1 / -1;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.feature-perks li { display: flex; align-items: center; gap: 8px; color: #cbd5e1; font-size: 12.5px; font-weight: 500; }

/* Endpoints Section & Code Preview */
.endpoint-grid-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}
.endpoint-list { display: flex; flex-direction: column; gap: 12px; }
.endpoint-card {
  padding: 18px 22px;
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  position: relative;
  width: 100%;
  text-align: left;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.endpoint-card.glass-card { background: var(--card-bg); }
.endpoint-card:focus-visible { outline: 2px solid #38bdf8; outline-offset: 3px; }
.endpoint-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(30, 41, 59, 0.6);
  transform: translateX(3px);
}
.endpoint-card.is-active {
  border-color: rgba(56, 189, 248, 0.65);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(14, 28, 55, 0.95) 100%);
  box-shadow: 0 0 25px -5px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.endpoint-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.http-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
}
.http-badge.post {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}
.endpoint-title { margin: 0; color: #ffffff; font-size: 15.5px; font-weight: 700; }
.endpoint-path {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.endpoint-desc { display: block; margin: 8px 0 0; color: var(--quiet); font-size: 12.5px; line-height: 1.5; }

/* Terminal Code Preview */
.code-preview-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0f19;
  position: sticky;
  top: 96px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6);
}
.code-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--rule);
}
.terminal-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }
.terminal-title { font-size: 12px; font-weight: 600; color: #94a3b8; font-family: 'JetBrains Mono', monospace; }
.code-block {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.65;
  color: #e2e8f0;
  min-height: 240px;
  white-space: pre;
}
.api-example-code {
  font-family: inherit;
  white-space: pre;
  display: block;
}

/* Catalog & Models */
.catalog-status { text-align: center; color: var(--quiet); font-size: 13.5px; margin-bottom: 20px; }
.provider-showcase { display: grid; gap: 16px; border-top: 1px solid var(--rule); padding-top: 24px; }
.provider-card.panel {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding: 22px 26px;
  background: var(--card-bg);
  border: 1px solid var(--rule);
  border-radius: 14px;
}
.provider-heading h3 { margin: 0; color: #ffffff; font-size: 16px; font-weight: 700; }
.provider-models { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.provider-models li {
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(30, 41, 59, 0.5);
  color: #cbd5e1;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  transition: border-color .15s ease, background .15s ease;
}
.provider-models li:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(30, 41, 59, 0.9);
  color: #38bdf8;
}

/* Steps Roadmap */
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step-card {
  padding: 24px 22px;
  border-radius: 16px;
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
}
.step-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 0;
  flex-shrink: 0;
}
.step-card h3 { margin: 0; color: #ffffff; font-size: 16px; font-weight: 700; line-height: 1.3; }
.step-card p { grid-column: 1 / -1; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* Pricing Section */
.landing-price {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 32px 56px;
  padding: 44px 48px;
  border-radius: 22px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 40px -15px rgba(59, 130, 246, 0.15);
}
.price-plan-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}
.price-caption { margin: 0 0 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.daily-price { display: flex; align-items: baseline; gap: 8px; }
.daily-price strong {
  color: #ffffff;
  font-size: clamp(48px, 5.5vw, 68px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -0.05em;
}
.price-currency { color: #94a3b8; font-size: 16px; font-weight: 600; }
.price-subtitle { margin: 10px 0 0; color: #cbd5e1; font-size: 13.5px; }
.landing-price-details > p:not(.small-note) {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 14px;
  color: #e2e8f0;
  font-size: 14.5px;
  line-height: 1.5;
}
.price-disclaimer {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  color: var(--quiet);
  font-size: 12.5px;
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 60px;
  align-items: start;
}
.faq-section .section-heading { position: sticky; top: 100px; margin: 0; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border-radius: 14px;
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  color: #f1f5f9;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg {
  width: 18px;
  height: 18px;
  color: #94a3b8;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary svg { transform: rotate(180deg); color: #38bdf8; }
.faq-content { padding: 0 22px 20px; }
.faq-content p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* Closing CTA Banner */
.closing-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 56px;
  border-radius: 24px;
  margin: 20px 0 60px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(79, 70, 229, 0.15) 50%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
}
.closing-cta-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.closing-cta-copy h2 { margin: 0 0 8px; font-size: clamp(26px, 3.2vw, 36px); color: #ffffff; font-weight: 800; }
.closing-cta-copy p { margin: 0; color: #cbd5e1; font-size: 15px; }
.closing-actions { margin: 0; }

/* Shared Frontend Shell (Header & Footer) for Landing Page */
.frontend-header-bar {
  width: min(100%, 1192px);
  max-width: 1192px;
  padding-left: 0 !important;
  padding-right: 0 !important;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
}
.frontend-brand {
  order: 1;
  flex-shrink: 0;
  white-space: nowrap;
}
.frontend-nav {
  order: 2;
  margin-left: auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.frontend-nav a,
.frontend-nav button {
  white-space: nowrap;
  flex-shrink: 0;
}
.frontend-header-actions {
  order: 3;
  flex-shrink: 0;
}

body[data-frontend-home] > header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0 24px;
  background: rgba(8, 12, 20, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}
body[data-frontend-home] > header > div > a { color: #ffffff !important; font-size: 15px; font-weight: 700; }
body[data-frontend-home] > header nav { gap: 6px; }
body[data-frontend-home] > header nav .home-navigation {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #94a3b8 !important;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .16s ease;
}
body[data-frontend-home] > header nav .home-navigation:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06);
}
body[data-frontend-home] > header nav .home-navigation[aria-current="location"] {
  background: rgba(59, 130, 246, 0.14) !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
  color: #60a5fa !important;
  font-weight: 600;
}
body[data-frontend-home] > header nav .home-auth-link,
body[data-frontend-home] > header nav .frontend-dashboard-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04) !important;
  color: #f1f5f9 !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .16s ease;
}
body[data-frontend-home] > header nav .home-auth-link:hover,
body[data-frontend-home] > header nav .frontend-dashboard-link:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}
body[data-frontend-home] > header nav .home-register-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
  transition: all .16s ease;
}
body[data-frontend-home] > header nav .home-register-link:hover {
  background: linear-gradient(135deg, #1d4ed8, #4338ca) !important;
  transform: translateY(-1px);
}
body[data-frontend-home] > header select {
  color: #cbd5e1 !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  background-color: #0e1422 !important;
  border-radius: 8px;
}

body[data-frontend-home] > footer {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: #060910 !important;
  color: var(--quiet) !important;
  padding: 24px 16px;
}
body[data-frontend-home] > footer a {
  color: #60a5fa !important;
  font-weight: 500;
}
body[data-frontend-home] > footer a:hover {
  color: #93c5fd !important;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; }
  .bento-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .endpoint-grid-layout { grid-template-columns: minmax(0, 1fr); }
  .code-preview-card { position: static; min-width: 0; max-width: 100%; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-price { grid-template-columns: minmax(0, 1fr); padding: 32px 28px; gap: 28px; }
  .faq-section { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq-section .section-heading { position: static; }
  .provider-card.panel { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .promotion-banner { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .closing-cta { padding: 36px 30px; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 108px; }
  .frontend-header-bar {
    flex-wrap: wrap;
    row-gap: 10px;
    padding: 10px 0 !important;
  }
  .frontend-brand {
    order: 1;
  }
  .frontend-header-actions {
    order: 2;
    margin-left: auto;
  }
  .frontend-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .frontend-nav::-webkit-scrollbar {
    display: none;
  }
  .frontend-nav a,
  .frontend-nav button {
    scroll-snap-align: start;
  }
  body[data-frontend-home] > header nav .home-navigation,
  body[data-frontend-home] > header nav .home-auth-link,
  body[data-frontend-home] > header nav .home-register-link,
  body[data-frontend-home] > header nav .frontend-dashboard-link {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12.5px;
    border-radius: 999px;
  }
}

@media (max-width: 640px) {
  body[data-frontend-home] > header { padding: 0 16px; }
  .home-main { padding: 0 16px; }
  .home-section { padding: 48px 0; }
  .hero { padding-top: 28px; padding-bottom: 48px; gap: 28px; }
  .hero-title { font-size: clamp(28px, 8vw, 34px); }
  .agent-roster { padding: 20px 16px; }
  .feature-card { padding: 24px 20px; }
  .endpoint-card { padding: 16px 18px; }
  .provider-card.panel { padding: 18px 16px; }
  .step-card { padding: 22px 18px; }
  .landing-price { padding: 24px 20px; gap: 22px; }
  .steps-grid { grid-template-columns: minmax(0, 1fr); }
  .agent-list { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { flex-wrap: wrap; gap: 14px; }
  .stat-divider { display: none; }
  .countdown { flex-wrap: wrap; }
  .closing-cta { flex-direction: column; align-items: flex-start; padding: 28px 20px; margin: 16px 0 40px; }
  .closing-actions { width: 100%; }
}

/* Shared Public Authentication Pages */
body[data-frontend-auth] {
  min-height: 100vh;
  background: var(--page) !important;
  color: var(--ink) !important;
  font-family: 'Plus Jakarta Sans', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body[data-frontend-auth]::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 50% 15%, rgba(59, 130, 246, 0.15) 0%, transparent 55%),
    radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 15% 40%, rgba(16, 185, 129, 0.08) 0%, transparent 45%);
  filter: blur(40px);
  pointer-events: none;
  content: "";
}

body[data-frontend-auth] h1,
body[data-frontend-auth] h2 {
  color: #ffffff !important;
  font-family: 'Plus Jakarta Sans', Manrope, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

body[data-frontend-auth] > header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(8, 12, 20, 0.82) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body[data-frontend-auth] > header > div > a {
  color: #ffffff !important;
  font-weight: 700;
}

body[data-frontend-auth] > header nav {
  color: var(--muted) !important;
  gap: 6px;
}

body[data-frontend-auth] > header nav a {
  color: #94a3b8 !important;
}

body[data-frontend-auth] > header nav a:hover {
  color: #38bdf8 !important;
}

body[data-frontend-auth] > header select {
  color: #cbd5e1 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  background-color: #0e1422 !important;
  border-radius: 8px;
  padding: 6px 10px;
}

body[data-frontend-auth] > header nav .frontend-nav-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 500;
  font-size: 13.5px;
  transition: all .2s ease;
}

body[data-frontend-auth] > header nav .frontend-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff !important;
}

body[data-frontend-auth] > header nav .frontend-nav-link[aria-current="page"] {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8 !important;
  font-weight: 600;
}

body[data-frontend-auth] > header nav .frontend-signin-link {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

body[data-frontend-auth] > header nav .frontend-register-link {
  border-color: rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

body[data-frontend-auth] > header nav .frontend-register-link:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.45);
}

body[data-frontend-auth] > header nav .frontend-register-link[aria-current="page"] {
  border-color: #38bdf8;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
}

body[data-frontend-auth] > div.flex-1 {
  width: 100%;
}

body[data-frontend-auth] main {
  width: min(100%, 460px);
  padding: 38px 34px;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 35px -10px rgba(56, 189, 248, 0.15) !important;
  color: var(--ink) !important;
  position: relative;
}

body[data-frontend-auth] main h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  color: #ffffff !important;
}

body[data-frontend-auth] main h1 + form {
  margin-top: 24px !important;
}

body[data-frontend-auth] main #registerSuccess {
  margin-top: 24px;
}

body[data-frontend-auth] main p {
  color: #94a3b8;
}

body[data-frontend-auth] main label {
  color: #cbd5e1 !important;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

body[data-frontend-auth] main input:not([type="checkbox"]) {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  background: rgba(8, 12, 20, 0.85) !important;
  color: #f8fafc !important;
  font: 14px 'Plus Jakarta Sans', Roboto, sans-serif;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 10px 14px;
}

body[data-frontend-auth] main input::placeholder {
  color: #64748b;
}

body[data-frontend-auth] main input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
  outline: none !important;
}

body[data-frontend-auth] main input.bg-transparent {
  min-height: 42px;
  border: 0 !important;
  background: transparent !important;
}

body[data-frontend-auth] main form [data-password-toggle] {
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  background: rgba(8, 12, 20, 0.85) !important;
  transition: all .2s ease;
}

body[data-frontend-auth] main form [data-password-toggle]:focus-within {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

body[data-frontend-auth] main form [data-password-toggle] button {
  color: #94a3b8 !important;
  transition: color .15s ease;
}

body[data-frontend-auth] main form [data-password-toggle] button:hover {
  color: #38bdf8 !important;
}

body[data-frontend-auth] main button[type="submit"],
body[data-frontend-auth] main #resetForm > button {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35) !important;
  color: #fff !important;
  font: 600 14px 'Plus Jakarta Sans', Roboto, sans-serif;
  letter-spacing: 0.01em;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

body[data-frontend-auth] main button[type="submit"]:hover,
body[data-frontend-auth] main #resetForm > button:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5) !important;
  transform: translateY(-1px);
}

body[data-frontend-auth] main button[type="submit"]:active,
body[data-frontend-auth] main #resetForm > button:active {
  transform: translateY(0);
}

body[data-frontend-auth] main button:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none !important;
}

body[data-frontend-auth] main #resendForm button {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  background: rgba(30, 41, 59, 0.8) !important;
  color: #cbd5e1 !important;
  font: 500 13px 'Plus Jakarta Sans', sans-serif;
  transition: all .15s ease;
}

body[data-frontend-auth] main #resendForm button:hover {
  background: rgba(51, 65, 85, 0.9) !important;
  color: #ffffff !important;
}

body[data-frontend-auth] main a {
  color: #38bdf8 !important;
  transition: color .15s ease;
}

body[data-frontend-auth] main a:hover {
  color: #7dd3fc !important;
}

body[data-frontend-auth] main a.bg-slate-800 {
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.8) !important;
  color: #cbd5e1 !important;
}

body[data-frontend-auth] main a.bg-slate-800:hover {
  background: rgba(51, 65, 85, 0.9) !important;
  color: #ffffff !important;
}

body[data-frontend-auth] main [role="alert"],
body[data-frontend-auth] main [id$="Error"] {
  color: #f87171 !important;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
}

body[data-frontend-auth] main [id$="Error"]:empty {
  display: none !important;
  border: 0;
  padding: 0;
}

body[data-frontend-auth] main [id$="Success"] {
  border-color: rgba(16, 185, 129, 0.3) !important;
  background: rgba(16, 185, 129, 0.12) !important;
  color: #34d399 !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-size: 13.5px !important;
}

body[data-frontend-auth] main [id$="MaintenanceNotice"] {
  border-color: rgba(245, 158, 11, 0.3) !important;
  background: rgba(245, 158, 11, 0.12) !important;
  color: #fbbf24 !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
}

body[data-frontend-auth] > footer {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: #060910 !important;
  color: var(--quiet) !important;
}

body[data-frontend-auth] > footer a {
  color: #38bdf8 !important;
}

body[data-frontend-auth] > footer a:hover {
  color: #7dd3fc !important;
}

body[data-frontend-account] > header {
  position: sticky; top: 0; z-index: 30; border-color: #334155 !important;
  background: rgb(15 23 42 / 94%) !important; backdrop-filter: blur(14px);
}
body[data-frontend-account] > header > div { max-width: 1200px; min-height: 68px; padding: 12px 24px; }
body[data-frontend-account] > header img { width: 26px; height: 26px; }
body[data-frontend-account] > header nav { gap: 5px; color: #cbd5e1; }
body[data-frontend-account] > header nav .frontend-nav-link,
body[data-frontend-account] > header nav button {
  display: inline-flex; min-height: 36px; align-items: center; padding: 0 11px;
  border: 1px solid transparent; border-radius: 8px; color: inherit;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
body[data-frontend-account] > header nav .frontend-nav-link:hover,
body[data-frontend-account] > header nav button:hover { border-color: #475569; background: #1e293b; color: #fff; }
body[data-frontend-account] > header nav .frontend-register-link { border-color: var(--accent); background: var(--accent); color: #fff; }
body[data-frontend-account] > header nav .frontend-register-link:hover { background: var(--accent-hover); }
body[data-frontend-account] > header select { color: var(--ink); border-color: var(--rule); background: var(--surface); }
