:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #030817;
  color: #eef6ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, rgba(37, 99, 235, 0.24), transparent 32rem),
    radial-gradient(circle at 86% 16%, rgba(16, 185, 129, 0.16), transparent 28rem),
    linear-gradient(135deg, #030817 0%, #071326 52%, #020617 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.brand img {
  display: block;
  width: 184px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: screen;
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-links a,
.nav-cta,
.primary-button,
.secondary-button {
  color: inherit;
  text-decoration: none;
}

.nav-links a {
  color: #b8c7df;
  font-size: 14px;
}

.nav-cta,
.primary-button {
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.34);
}

.nav-cta {
  padding: 11px 18px;
  font-weight: 700;
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
  padding: 56px 0 48px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 20px;
  max-width: 660px;
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero-copy p {
  max-width: 600px;
  margin-top: 20px;
  color: #b8c7df;
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  font-weight: 800;
}

.secondary-button {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #dbeafe;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 600px;
  margin-top: 28px;
}

.metrics-row div,
.feature-grid article,
.workflow-card,
.api-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.66);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 24px 80px rgba(0,0,0,0.22);
  backdrop-filter: blur(18px);
}

.metrics-row div {
  padding: 16px;
  border-radius: 18px;
}

.metrics-row strong {
  display: block;
  color: #60a5fa;
  font-size: 28px;
}

.metrics-row span {
  display: block;
  margin-top: 4px;
  color: #9fb1ca;
  font-size: 13px;
}

.hero-art img {
  width: 100%;
  border-radius: 34px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  box-shadow: 0 34px 120px rgba(37, 99, 235, 0.26), 0 18px 80px rgba(0, 0, 0, 0.5);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-grid article {
  padding: 26px;
  border-radius: 28px;
}

.feature-grid span {
  color: #60a5fa;
  font-weight: 900;
}

.feature-grid h2,
.workflow-card h2,
.api-card h2 {
  margin-top: 12px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.feature-grid p,
.workflow-card li,
.api-card p {
  margin-top: 12px;
  color: #afbed4;
  line-height: 1.6;
}

.workflow-card,
.api-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 30px;
  margin-top: 18px;
  padding: 32px;
  border-radius: 32px;
}

.workflow-card ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
}

.api-card pre {
  overflow: auto;
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.78);
  color: #bfdbfe;
  font-size: 14px;
  line-height: 1.6;
}

code {
  color: #93c5fd;
}

/* Tablet: stack the hero (and its input) before the copy column gets squeezed. */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 44px 0 40px;
  }

  .hero-art {
    max-width: 620px;
  }

  .domain-form {
    flex-direction: column;
    max-width: 460px;
  }

  .domain-form .primary-button {
    min-height: 54px;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .workflow-card,
  .api-card,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .brand img {
    width: 148px;
  }

  .nav-cta {
    display: none;
  }

  .metrics-row {
    grid-template-columns: 1fr;
  }
}

.domain-form {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  max-width: 600px;
}

.domain-form input {
  flex: 1;
  min-width: 0;
  padding: 0 18px;
  min-height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: rgba(2, 6, 23, 0.7);
  color: #eef6ff;
  font-size: 16px;
}

.domain-form input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.9);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.domain-form .primary-button {
  white-space: nowrap;
  cursor: pointer;
  border: none;
  border-radius: 999px;
}

.domain-hint {
  margin-top: 12px;
  color: #8ea2c0;
  font-size: 13px;
}

.friction-band {
  margin-top: 8px;
  padding: 40px 32px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.22), transparent 24rem),
    rgba(15, 23, 42, 0.66);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 24px 80px rgba(0,0,0,0.22);
  backdrop-filter: blur(18px);
}

.friction-band h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.friction-band p {
  margin: 14px auto 0;
  max-width: 560px;
  color: #afbed4;
  font-size: 16px;
}

.fine-print {
  margin-top: 16px;
  color: #8ea2c0;
  font-size: 13px;
}

.signal-ladder {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-ladder li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  color: #cdd9ec;
  font-size: 15px;
}

.signal-ladder strong {
  color: #eef6ff;
}

.signal-ladder .dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  box-shadow: 0 0 12px currentColor;
}

.dot.page1 { background: #34d399; color: #34d399; }
.dot.striking { background: #60a5fa; color: #60a5fa; }
.dot.spotted { background: #fbbf24; color: #fbbf24; }
.dot.none { background: #64748b; color: #64748b; box-shadow: none; }

@media (max-width: 620px) {
  .domain-form {
    flex-direction: column;
  }
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
}

.login-form input {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(2, 6, 23, 0.6);
  color: #eef6ff;
  font-size: 15px;
}

.login-form input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.8);
}

.login-form .primary-button {
  text-align: center;
  cursor: pointer;
  border: none;
  font-size: 15px;
}

.login-status {
  margin: 4px 0 0;
  font-size: 13px;
  min-height: 18px;
  color: #9fb4d4;
}

.login-status.success {
  color: #34d399;
}

.login-status.error {
  color: #f87171;
}

/* ── Preview / onboarding page ─────────────────────────────────── */
.preview-head {
  padding: 56px 0 8px;
}

.preview-head h1 {
  font-size: clamp(34px, 5vw, 60px);
}

.preview-sub {
  max-width: 620px;
  margin-top: 18px;
  color: #b8c7df;
  font-size: 18px;
  line-height: 1.6;
}

.preview-status {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  color: #9fb1ca;
  font-size: 15px;
}

.preview-error {
  color: #f87171;
  margin: 0;
}

.spinner {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 3px solid rgba(96, 165, 250, 0.25);
  border-top-color: #60a5fa;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.preview-results {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.preview-page {
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.6);
}

.preview-url {
  display: inline-block;
  color: #93c5fd;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  word-break: break-all;
}

.preview-url:hover {
  text-decoration: underline;
}

.kw-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.kw-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(37, 99, 235, 0.12);
  color: #dbeafe;
  font-size: 13px;
}

.kw-empty,
.preview-empty {
  color: #8ea2c0;
  font-size: 14px;
}

.preview-unlock {
  margin-top: 32px;
}

/* ── Pricing ───────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.66);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 24px 80px rgba(0,0,0,0.22);
  backdrop-filter: blur(18px);
}

.pricing-card.featured {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 24px 90px rgba(37, 99, 235, 0.28);
}

.pricing-tag {
  display: inline-flex;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-tag.muted {
  background: rgba(100, 116, 139, 0.14);
  border-color: rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
}

.pricing-card h2 {
  margin-top: 16px;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.pricing-price {
  margin-top: 8px;
  color: #9fb1ca;
}

.pricing-price strong {
  color: #60a5fa;
  font-size: 42px;
  letter-spacing: -0.04em;
}

.pricing-price span {
  margin-left: 8px;
  font-size: 15px;
}

.pricing-features {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.pricing-features li {
  position: relative;
  padding-left: 26px;
  color: #cdd9ec;
  font-size: 15px;
  line-height: 1.45;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #34d399;
  font-weight: 900;
}

.pricing-cta {
  margin-top: 24px;
  text-align: center;
}

.pricing-note {
  margin-top: 12px;
  color: #8ea2c0;
  font-size: 13px;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Login ─────────────────────────────────────────────────────── */
.login-shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 84px 0 40px;
  text-align: center;
}

.login-shell .eyebrow {
  margin: 0 auto;
}

.login-shell h1 {
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(36px, 5vw, 60px);
}

.login-shell .preview-sub {
  margin-left: auto;
  margin-right: auto;
}

.login-shell .domain-hint {
  text-align: center;
}

.login-form-wide {
  margin: 30px auto 0;
  max-width: 420px;
}
