@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --bg-0: #04070f;
  --panel: rgba(8, 16, 30, 0.64);
  --border: rgba(127, 164, 255, 0.2);
  --text: #dfe8ff;
  --muted: #97a7c9;
  --hot: #ff5a66;
  --hot-soft: #ff9ba2;
  --cool: #4be0e2;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Outfit', 'Segoe UI', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 50% -20%, #111f3a 0%, var(--bg-0) 52%), var(--bg-0);
  overflow-x: hidden;
}

.star-layer,
.star-layer::before,
.star-layer::after {
  position: fixed;
  inset: 0;
  content: '';
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 12% 22%, rgba(255, 255, 255, 0.55) 0, transparent 55%),
    radial-gradient(1px 1px at 72% 16%, rgba(75, 224, 226, 0.7) 0, transparent 65%),
    radial-gradient(2px 2px at 82% 52%, rgba(255, 115, 130, 0.65) 0, transparent 50%),
    radial-gradient(1px 1px at 18% 64%, rgba(255, 255, 255, 0.4) 0, transparent 60%),
    radial-gradient(1px 1px at 56% 88%, rgba(75, 224, 226, 0.6) 0, transparent 60%);
  animation: drift 20s linear infinite;
}
.star-layer::before { opacity: .55; transform: scale(1.3); animation-duration: 28s; }
.star-layer::after { opacity: .35; transform: scale(1.55); animation-duration: 36s; }

.bg-orb {
  position: fixed;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  filter: blur(94px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}
.orb-red { background: var(--hot); top: -180px; left: 8%; }
.orb-cyan { background: #11d5de; top: -180px; right: 8%; }

.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; position: relative; z-index: 1; }
.top-nav {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-nav nav { display: flex; gap: 12px; flex-wrap: wrap; }
.top-nav a { color: #cbd8f6; text-decoration: none; font-size: .92rem; }
.brand { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #fff; }

.hero { text-align: center; padding: 68px 0 28px; }
.badge {
  display: inline-flex;
  border: 1px solid rgba(255, 122, 133, 0.45);
  color: var(--hot-soft);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .75rem;
  letter-spacing: .18em;
}
h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; margin: 0; }
h1 {
  margin-top: 18px;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  line-height: .95;
  letter-spacing: -.02em;
  background: linear-gradient(90deg, #ffd0d4, var(--hot));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.subhead { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--hot-soft); margin-top: 14px; }
.powered-by { margin: 10px 0 0; color: #b9c8eb; font-size: .95rem; }
.trial-callout {
  margin: 10px 0 0;
  color: #d9e5ff;
  font-size: 1.02rem;
}
.benefits-list {
  max-width: 760px;
  margin: 16px auto 0;
  padding-left: 20px;
  color: #d1dbf5;
  text-align: left;
  line-height: 1.6;
}
.hero-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.trust-line {
  margin: 14px auto 0;
  max-width: 760px;
  color: #a8bbdf;
  font-size: .92rem;
}
.hero-cta {
  display: inline-flex;
  text-decoration: none;
  color: #111;
  background: linear-gradient(90deg, #ffd3d7, #ff6f7b);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
}
.hero-cta.ghost {
  color: #d2ddf8;
  background: rgba(8, 15, 28, .85);
  border: 1px solid rgba(148, 178, 255, .2);
}
.pricing-link-btn {
  padding: 10px 14px;
  font-size: .9rem;
}

.page-grid { display: grid; gap: 16px; padding-bottom: 28px; }
.page-grid > * { min-width: 0; }
.panel {
  background: linear-gradient(160deg, rgba(15, 24, 44, .8), var(--panel));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  backdrop-filter: blur(8px);
  min-width: 0;
}
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mode-wrap { display: inline-flex; align-items: center; gap: 10px; }
.data-mode-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
  border: 1px solid transparent;
}
.data-mode-badge.demo {
  color: #89f7d8;
  border-color: rgba(44, 204, 165, .35);
  background: rgba(44, 204, 165, .14);
}
.data-mode-badge.live {
  color: #ffd3d8;
  border-color: rgba(255, 95, 110, .35);
  background: rgba(255, 95, 110, .14);
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--cool); box-shadow: 0 0 12px rgba(75,224,226,.8); }
.hint { color: var(--muted); margin: 0 0 12px; }
.dashboard-status { margin: 0 0 12px; font-size: .9rem; }

.kpi-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 10px;
  align-items: stretch;
}

.pricing-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-card {
  border: 1px solid rgba(130, 164, 244, .22);
  border-radius: 14px;
  padding: 16px;
  background: rgba(6, 13, 24, .65);
}

.pricing-card.featured {
  border-color: rgba(255, 95, 110, .45);
  box-shadow: 0 0 0 1px rgba(255, 95, 110, .25) inset;
}

.pricing-plan {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.pricing-card h3 {
  margin: 6px 0 10px;
  font-size: 1.7rem;
}

.pricing-card h3 span {
  font-size: .9rem;
  color: var(--muted);
  margin-left: 4px;
}

.pricing-card ul {
  margin: 0 0 12px;
  padding-left: 18px;
  color: #d3def6;
  line-height: 1.5;
}

.trial-pill {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .78rem;
  color: #09211b;
  background: linear-gradient(90deg, #7ef7d7, #66d9e0);
  font-weight: 700;
}
.kpi-card {
  border: 1px solid rgba(130, 164, 244, .2);
  border-radius: 14px;
  padding: 14px;
  background: rgba(6, 13, 24, .6);
  min-width: 0;
}
.kpi-card p { margin: 0 0 8px; color: var(--muted); }
.kpi-card h3 { font-size: 1.4rem; }
.kpi-note {
  margin: 0 0 14px;
  color: #b5c5e8;
  font-size: .92rem;
}
.est-badge {
  font-size: .73rem;
  color: #88efd0;
  background: rgba(44, 204, 165, .14);
  border: 1px solid rgba(44, 204, 165, .35);
  border-radius: 999px;
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  border: 1px solid rgba(108, 132, 176, .26);
  border-radius: 12px;
}
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(108, 132, 176, .2);
  font-size: .92rem;
}
th { color: #c8d6f8; }
.table-empty { text-align: center; color: var(--muted); }
.cache-hit { color: #89f7d8; font-weight: 700; }
.cache-miss { color: #ffc7cd; font-weight: 700; }
.model-tier {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .72rem;
  line-height: 1.4;
  border: 1px solid transparent;
  vertical-align: middle;
}
.model-tier.low {
  color: #8df4da;
  border-color: rgba(44, 204, 165, .35);
  background: rgba(44, 204, 165, .14);
}
.model-tier.high {
  color: #ffd3d8;
  border-color: rgba(255, 95, 110, .35);
  background: rgba(255, 95, 110, .14);
}
.model-tier.unknown {
  color: #c7d6f7;
  border-color: rgba(145, 167, 213, .35);
  background: rgba(145, 167, 213, .14);
}

.steps-list {
  margin: 0 0 14px;
  color: #d4def5;
  line-height: 1.5;
  padding-left: 18px;
}

.auth-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-card {
  border: 1px solid rgba(130, 164, 244, .2);
  border-radius: 14px;
  padding: 14px;
  background: rgba(6, 13, 24, .6);
}
.auth-state { margin: 12px 0 0; color: #86f4d5; font-size: .92rem; }
.account-collapsed summary {
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: #dfe8ff;
}
.account-inner { margin-top: 12px; }

.form-grid { display: grid; gap: 12px; margin-bottom: 12px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: block; }
label > span { display: inline-block; margin-bottom: 6px; font-size: .9rem; color: #c1d0ef; }
input, textarea, select, button { font: inherit; }
input, textarea, select {
  width: 100%;
  border: 1px solid rgba(155, 182, 255, .24);
  background: rgba(3, 9, 18, .72);
  color: var(--text);
  border-radius: 12px;
  padding: 12px;
  outline: none;
  min-width: 0;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(75, 224, 226, .8);
  box-shadow: 0 0 0 3px rgba(75,224,226,.15);
}
textarea { resize: vertical; }

.advanced-toggle {
  border: 1px solid rgba(132, 160, 228, .2);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.advanced-toggle summary {
  cursor: pointer;
  color: #d2ddf8;
}
.advanced-grid { margin-top: 10px; }

.action-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.dashboard-cta-row { margin-bottom: 12px; }
button {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 11px 14px;
  font-weight: 600;
}
.btn-primary { color: #100b0c; background: linear-gradient(100deg, #ffd2d6, #ff5f6e); }
.btn-ghost { color: #d2ddf8; background: rgba(8, 15, 28, .85); border: 1px solid rgba(148,178,255,.2); }
.btn-ghost.small { padding: 8px 12px; font-size: .84rem; }

.inline-hint {
  margin: 10px 0 4px;
  color: #8beed6;
  background: rgba(44, 204, 165, .1);
  border: 1px solid rgba(44, 204, 165, .28);
  border-radius: 10px;
  padding: 8px 10px;
}
.hidden { display: none; }

.response-panel summary {
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: #dfe8ff;
}

.site-footer {
  display: flex;
  gap: 14px;
  justify-content: center;
  padding: 0 0 24px;
}

.site-footer a {
  color: #9eb2da;
  text-decoration: none;
  font-size: .88rem;
}

pre {
  margin: 12px 0 0;
  min-height: 140px;
  max-height: 500px;
  overflow: auto;
  padding: 14px;
  border-radius: 12px;
  background: rgba(1, 8, 18, .8);
  border: 1px solid rgba(108, 132, 176, .26);
  color: #b7fef0;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-width: 0;
}

@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-20px); } }

@media (max-width: 960px) {
  .pricing-grid,
  .kpi-grid,
  .auth-grid,
  .form-grid.two { grid-template-columns: 1fr; }
  .benefits-list { text-align: left; }
}
