:root {
  --ink: #e8f2f0;
  --muted: #8aa8a3;
  --bg: #061012;
  --bg-deep: #030809;
  --ctrl-bg: #0c1719;
  --line: rgba(0, 251, 255, 0.16);
  --teal: #00c8d4;
  --teal-bright: #00fbff;
  --teal-deep: #003b46;
  --copper: #7ef0e0;
  --copper-soft: rgba(0, 251, 255, 0.22);
  --font: "Sora", system-ui, sans-serif;
  --display: "Fraunces", "Georgia", serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }

body.site {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-deep);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(61, 205, 192, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 60%, rgba(212, 165, 116, 0.12), transparent 50%),
    radial-gradient(ellipse 45% 35% at 5% 80%, rgba(26, 111, 104, 0.35), transparent 55%),
    linear-gradient(180deg, #041014 0%, var(--bg) 40%, #020607 100%);
}
.aurora {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    linear-gradient(115deg, transparent 20%, rgba(61, 205, 192, 0.14) 45%, transparent 70%),
    linear-gradient(250deg, transparent 30%, rgba(212, 165, 116, 0.08) 55%, transparent 75%);
  filter: blur(40px);
  animation: drift 18s ease-in-out infinite alternate;
}
.ripples {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(92vw, 980px);
  height: min(92vw, 980px);
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, transparent 28%, rgba(61, 205, 192, 0.07) 29%, transparent 31%),
    radial-gradient(circle, transparent 42%, rgba(61, 205, 192, 0.05) 43%, transparent 45%),
    radial-gradient(circle, transparent 56%, rgba(212, 165, 116, 0.04) 57%, transparent 59%);
  animation: pulse-rings 8s ease-out infinite;
}
.wave-canvas {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 42vh;
  opacity: 0.55;
}

@keyframes drift {
  from { transform: translateX(-3%) rotate(-1deg); }
  to { transform: translateX(4%) rotate(1deg); }
}
@keyframes pulse-rings {
  0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.92); }
  70% { opacity: 1; }
  100% { opacity: 0.35; transform: translate(-50%, -50%) scale(1.08); }
}

a { color: var(--teal-bright); text-decoration: none; }
a:hover { color: #b8fff4; }

.site-nav,
.hero,
.band,
.site-foot { position: relative; z-index: 1; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5vw;
  background: rgba(3, 8, 9, 0.55);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}
.logo:hover { text-decoration: none; opacity: 0.95; }
.logo-mark { display: block; border-radius: 10px; }
.logo-mark.logo-full,
img.logo-full {
  width: auto;
  height: 52px;
  max-width: min(220px, 46vw);
  border-radius: 8px;
  object-fit: contain;
}
.studio-top .logo-mark.logo-full,
.studio-top img.logo-full {
  height: 44px;
  max-width: 180px;
}
.logo-word {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo:has(.logo-full) .logo-word { display: none; }
.site-nav nav {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  flex-wrap: wrap;
}
.site-nav nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
}
.site-nav nav a:hover { color: var(--ink); }
.nav-cta {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%) !important;
  color: #021010 !important;
  font-weight: 600 !important;
  padding: 0.55rem 1rem;
  border-radius: 999px;
}
.nav-cta:hover { filter: brightness(1.08); color: #021010 !important; }

.hero-brand-logo {
  display: block;
  width: min(360px, 72vw);
  height: auto;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 12px 40px rgba(0, 251, 255, 0.18));
}
.hero-copy { text-align: center; }
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 6vh 5vw 10vh;
  text-align: center;
}
.hero-copy {
  max-width: 820px;
  animation: rise 1.1s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.brand-hero {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-size: clamp(3.4rem, 11vw, 7.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #f2fffc 10%, var(--teal-bright) 55%, var(--copper) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(61, 205, 192, 0.25);
}
.hero-line {
  margin: 0 auto 1.8rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}
.hero-cta {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-cta.center { margin-top: 1.5rem; }

.btn-solid,
.btn-line,
.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}
.btn-solid {
  background: linear-gradient(135deg, var(--teal-bright), var(--teal));
  color: #031210;
}
.btn-solid:hover { filter: brightness(1.06); text-decoration: none; color: #031210; }
.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: rgba(126, 240, 224, 0.35);
}
.btn-line:hover { border-color: var(--teal-bright); text-decoration: none; color: #fff; }
.btn-google {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-color: var(--line);
}
.btn-google:hover { background: rgba(255, 255, 255, 0.08); }

.band {
  padding: 5.5rem 5vw;
  max-width: 1100px;
  margin: 0 auto;
}
.band h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.band-lede {
  margin: 0 0 2.2rem;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.55;
}
.band-night {
  margin: 0 auto 2rem;
  padding: 3.5rem 5vw;
  text-align: center;
  max-width: 900px;
}
.band-night .band-lede { margin-left: auto; margin-right: auto; }
.tri {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.tri article {
  padding: 0;
  border: none;
  background: transparent;
}
.tri h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  color: var(--teal-bright);
  font-weight: 600;
}
.tri p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.98rem;
}

.site-foot {
  padding: 2.5rem 5vw 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-foot nav { display: flex; gap: 1.1rem; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--ink); }

/* Auth */
.auth-page .atmosphere { opacity: 0.85; }
.auth-card {
  position: relative;
  z-index: 1;
  width: min(420px, 92vw);
  margin: 8vh auto 4rem;
  padding: 0;
}
.auth-card h1 {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 2.2rem;
}
.auth-card form {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.25rem;
}
.auth-card label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.auth-card input,
.auth-card select {
  background: var(--ctrl-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  padding: 0.75rem 0.9rem;
  font: inherit;
}
.auth-card input:focus,
.auth-card select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(61, 205, 192, 0.15);
}
/* Native option lists (esp. Windows Chrome) need opaque bg + color */
select,
select option,
select optgroup {
  background-color: var(--ctrl-bg);
  color: var(--ink);
}
.auth-card .btn-solid { width: 100%; border: none; }
.form-msg { min-height: 1.2em; color: #ffb4a8; font-size: 0.9rem; margin: 0; }
.auth-switch { color: var(--muted); font-size: 0.92rem; margin-top: 1.25rem; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 1rem 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Pricing */
.price-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 760px;
}
.price-row article h2,
.price-row article h3 { color: var(--copper); margin: 0 0 0.5rem; font-family: var(--display); }
.price-row article p { color: var(--muted); margin: 0; line-height: 1.5; }
.price-tag {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--teal-bright) !important;
  margin: 0.35rem 0 1rem !important;
}

.hero-h1 {
  margin: 0 auto 1rem;
  max-width: 38rem;
  font-family: var(--font);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--copper-soft);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-main { padding-top: 3.5rem; }
.page-main h1 {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 1.5rem;
}
.feature-grid article h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  color: var(--teal-bright);
  font-weight: 600;
}
.feature-grid article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.96rem;
}

.band-compare-teaser .compare-preview {
  display: grid;
  gap: 0.65rem;
  max-width: 32rem;
}
.compare-preview-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
.compare-preview-row strong { color: var(--teal-bright); font-weight: 600; }

.code-sample {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  background: rgba(3, 8, 9, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  max-width: 640px;
}
.band-night .code-sample { margin-left: auto; margin-right: auto; }
.code-sample code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre;
}

.faq-list { display: grid; gap: 0.75rem; max-width: 40rem; }
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}
.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.download-hero .download-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.dl-meta {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.install-steps {
  max-width: 40rem;
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.65;
}
.install-steps li { margin-bottom: 0.85rem; }
.install-steps strong { color: var(--ink); }
.install-steps code,
.req-list code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.86em;
  color: var(--teal-bright);
}
.req-list { max-width: 42rem; margin-top: 1rem; }
.feature-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 800px) {
  .feature-grid.two-col { grid-template-columns: 1fr; }
}

.table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 720px;
}
.compare-table.narrow { min-width: 520px; }
.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.45;
}
.compare-table thead th {
  color: var(--teal-bright);
  font-weight: 600;
  background: rgba(61, 205, 192, 0.06);
}
.compare-table tbody th {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }

.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}
.vs-grid h2 {
  font-size: 1.35rem;
  margin: 0 0 0.85rem;
}
.prose-block { margin: 2.5rem 0; max-width: 42rem; }
.prose-block h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  margin: 0 0 0.85rem;
}
.prose-block p { color: var(--muted); line-height: 1.6; }
.plain-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.65;
}
.plain-list.numbered { list-style: decimal; }
.plain-list li { margin: 0.35rem 0; }
.plain-list strong { color: var(--ink); }

.endpoint { margin: 1.75rem 0; }
.endpoint h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--ink);
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 600;
}
.method {
  display: inline-block;
  margin-right: 0.45rem;
  color: var(--copper);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.account-wide { width: min(560px, 92vw); }
.api-key-panel { margin-top: 2rem; }
.api-key-panel h2 {
  font-family: var(--display);
  font-size: 1.45rem;
  margin: 0 0 0.5rem;
}
.api-key-create {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin: 1rem 0;
}
.api-key-create label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
  flex: 1;
  min-width: 160px;
}
.api-key-create input {
  background: var(--ctrl-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  padding: 0.75rem 0.9rem;
  font: inherit;
}
.api-key-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.api-key-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.api-key-list .muted {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}
.api-key-empty { color: var(--muted); }
.api-key-reveal {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px dashed rgba(212, 165, 116, 0.45);
  border-radius: 12px;
}
.api-key-secret {
  display: block;
  margin: 0.65rem 0;
  word-break: break-all;
  color: var(--teal-bright);
  font-size: 0.85rem;
}
.btn-tiny {
  padding: 0.4rem 0.75rem !important;
  font-size: 0.8rem !important;
}

@media (max-width: 820px) {
  .tri, .price-row, .feature-grid, .vs-grid { grid-template-columns: 1fr; }
  .site-nav nav a:not(.nav-cta) { display: none; }
  .brand-hero { font-size: clamp(2.8rem, 16vw, 4.5rem); }
}
