:root {
  --bg: #05070d;
  --bg-soft: #0c1220;
  --card: #0f1729;
  --border: #1e2b45;
  --text: #e5edff;
  --muted: #9caecc;
  --brand: #1d4ed8;
  --brand-strong: #2563eb;
  --danger: #dc2626;
  --success: #16a34a;
  --warning: #f59e0b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 450px at 85% -10%, rgba(37, 99, 235, 0.2), transparent 55%),
    linear-gradient(180deg, #05070d 0%, #0a1120 100%);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
  color: #bfdbfe;
}

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.narrow {
  width: min(760px, calc(100% - 2rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 7, 13, 0.92);
  border-bottom: 1px solid rgba(37, 99, 235, 0.18);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-mark {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.45rem;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1d4ed8, #1e40af);
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.nav-links > a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links > a.active,
.nav-links > a:hover {
  color: var(--text);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem 0.65rem 0.2rem 0.3rem;
  background: rgba(17, 24, 39, 0.65);
  color: var(--text);
  font-size: 0.85rem;
}

.user-chip img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
}

.hero {
  padding: 4rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.4rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: #93c5fd;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero-copy {
  margin-top: 1rem;
  max-width: 58ch;
}

.hero-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-panel {
  background: linear-gradient(160deg, rgba(16, 24, 39, 0.98), rgba(8, 13, 25, 0.96));
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem;
}

.hero-panel h3 {
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
}

.hero-panel ol {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.hero-panel li {
  margin-bottom: 0.6rem;
}

.features,
.plans-preview,
.page-main {
  padding: 1.75rem 0 3rem;
}

.features h2,
.plans-preview h2,
.section-heading h1 {
  margin-bottom: 1rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

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

.feature-card,
.plan-card,
.card {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(5, 10, 21, 0.95));
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
}

.feature-card h3,
.plan-card h3,
.card h1 {
  margin-bottom: 0.5rem;
}

.page-main {
  padding-top: 2.5rem;
}

.card {
  display: grid;
  gap: 1rem;
}

.form-card label {
  font-size: 0.95rem;
  color: var(--text);
}

.form-card input {
  width: 100%;
  background: #0a1325;
  border: 1px solid #253758;
  color: var(--text);
  border-radius: 0.65rem;
  padding: 0.75rem 0.8rem;
  font-size: 0.96rem;
}

.hint {
  margin: 0;
  font-size: 0.86rem;
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.plan-card.highlight {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.22) inset;
}

.plan-label {
  margin: 0;
  font-size: 0.8rem;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price {
  margin: 0;
  color: #dbeafe;
  font-size: 1.7rem;
  font-family: "Space Grotesk", sans-serif;
}

.plan-features {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  padding: 0.62rem 0.92rem;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  color: #fff;
}

.btn-outline {
  border-color: #2955a5;
  color: #dbeafe;
  background: rgba(18, 31, 57, 0.7);
}

.btn-muted {
  border-color: var(--border);
  color: var(--muted);
  background: rgba(14, 20, 36, 0.8);
}

.status {
  border: 1px solid transparent;
  border-radius: 0.65rem;
  padding: 0.7rem 0.85rem;
  margin: 0;
  font-size: 0.92rem;
}

.status:empty {
  display: none;
}

.status.success {
  color: #86efac;
  border-color: rgba(22, 163, 74, 0.4);
  background: rgba(7, 36, 20, 0.85);
}

.status.error {
  color: #fca5a5;
  border-color: rgba(220, 38, 38, 0.4);
  background: rgba(43, 13, 13, 0.85);
}

.status.warn {
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(45, 30, 10, 0.85);
}

.section-heading p {
  margin-top: 0.35rem;
}

.legal h2 {
  margin-top: 0.3rem;
  font-size: 1.05rem;
}

.site-footer {
  border-top: 1px solid rgba(37, 99, 235, 0.22);
  margin-top: 2rem;
}

.footer-shell {
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 980px) {
  .hero-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .nav-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }
}

.hidden {
  display: none !important;
}

#authSlot {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

#verifyActions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .container,
  .narrow {
    width: calc(100% - 1.25rem);
  }

  .site-header {
    position: static;
  }

  .nav-shell {
    padding: 0.75rem 0;
    gap: 0.75rem;
  }

  .nav-links {
    gap: 0.55rem;
  }

  .nav-links > a {
    font-size: 0.9rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: rgba(15, 23, 42, 0.65);
  }

  #authSlot {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero {
    padding: 2.25rem 0 1.5rem;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.3rem);
  }

  .hero-panel {
    padding: 1rem;
  }

  .features,
  .plans-preview,
  .page-main {
    padding: 1.35rem 0 2.2rem;
  }

  .feature-card,
  .plan-card,
  .card {
    padding: 0.9rem;
  }

  .footer-shell {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  #verifyActions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .btn,
  #verifyActions .btn,
  .buy-btn {
    width: 100%;
  }

  .user-chip {
    max-width: 100%;
  }

  .user-chip span {
    max-width: 9.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .price {
    font-size: 1.45rem;
  }

  .plan-features {
    padding-left: 1.1rem;
  }
}
