:root {
  --v2-font-system: system-ui, sans-serif;
  --v2-font-family: var(--v2-font-system);
  
  /* Quick font switching while designing:
  
    --v2-font-brand: "Avenir Next", "Montserrat", sans-serif;
    --v2-font-family: var(--v2-font-brand);
  
    --v2-font-windows: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    --v2-font-family: var(--v2-font-windows);
  
    --v2-font-geometric: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
    --v2-font-family: var(--v2-font-geometric);

    --v2-font-system: system-ui, sans-serif;  
    --v2-font-family: var(--v2-font-system);
  
    */

  --v2-bg: #eef2f6;
  --v2-bg-soft: #f8fafc;
  --v2-surface: rgba(255, 255, 255, 0.88);
  --v2-surface-strong: #ffffff;
  --v2-border: rgba(54, 72, 96, 0.12);
  --v2-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  --v2-text: #1f2937;
  --v2-muted: #667085;
  --v2-brand: #24466b;
  --v2-brand-soft: #edf4fb;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--v2-font-family);
  color: var(--v2-text);
  background:
    radial-gradient(circle at top left, rgba(83, 117, 170, 0.12), transparent 22%),
    linear-gradient(180deg, var(--v2-bg-soft) 0%, var(--v2-bg) 100%);
}

.v2-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

.v2-hero,
.v2-card,
.v2-status {
  border: 1px solid var(--v2-border);
  border-radius: 24px;
  background: var(--v2-surface);
  box-shadow: var(--v2-shadow);
  backdrop-filter: blur(16px);
}

.v2-hero {
  padding: 28px;
}

.v2-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.v2-brand img {
  width: 120px;
  height: auto;
  display: block;
}

.v2-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--v2-brand-soft);
  color: var(--v2-brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.v2-hero h1 {
  margin: 20px 0 10px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.98;
}

.v2-hero p {
  max-width: 52rem;
  margin: 0;
  color: var(--v2-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.v2-db-banner {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(36, 70, 107, 0.18);
  border-radius: 16px;
  background: rgba(36, 70, 107, 0.07);
}

.v2-db-banner--collapsible {
  padding: 8px 10px;
}

.v2-db-banner--demo {
  border-color: rgba(28, 110, 73, 0.2);
  background: rgba(39, 130, 85, 0.08);
}

.v2-db-banner--legacy {
  border-color: rgba(176, 95, 22, 0.24);
  background: rgba(191, 107, 24, 0.08);
}

.v2-db-banner__title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--v2-text);
}

.v2-db-banner__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.v2-db-banner__toggle::-webkit-details-marker {
  display: none;
}

.v2-db-banner__toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(176, 95, 22, 0.14);
  color: #9a5210;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.v2-db-banner__toggle-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--v2-text);
}

.v2-db-banner__content {
  margin-top: 10px;
}

.v2-db-banner__meta {
  margin-top: 4px;
  color: var(--v2-muted);
  font-size: 0.92rem;
}

.v2-db-banner__warning {
  margin-top: 8px;
  color: #8e2d2d;
  font-size: 0.92rem;
  font-weight: 700;
}

.v2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.v2-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid var(--v2-border);
  border-radius: 999px;
  background: var(--v2-surface-strong);
  color: var(--v2-brand);
  text-decoration: none;
  font-weight: 700;
  font: inherit;
  cursor: pointer;
}

.v2-button--primary {
  background: var(--v2-brand);
  border-color: var(--v2-brand);
  color: #fff;
}

.v2-message {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(154, 42, 42, 0.18);
  border-radius: 14px;
  background: rgba(176, 53, 53, 0.08);
  color: #8e2d2d;
  font-size: 0.95rem;
}

.v2-message--info {
  border-color: rgba(36, 70, 107, 0.18);
  background: rgba(36, 70, 107, 0.08);
  color: var(--v2-brand);
}

.v2-login-form {
  margin-top: 20px;
}

.v2-login-form--demo {
  padding: 18px;
  border: 1px solid var(--v2-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.v2-login-form--demo .v2-actions {
  margin-top: 14px;
}

.v2-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.v2-field-row--demo {
  grid-template-columns: minmax(0, 1fr);
}

.v2-field-row--stack {
  grid-template-columns: minmax(0, 1fr);
}

.v2-signup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.v2-signup-card {
  padding: 22px;
  border: 1px solid var(--v2-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
}

.v2-signup-card.is-active {
  border-color: rgba(36, 70, 107, 0.3);
  box-shadow: inset 0 0 0 1px rgba(36, 70, 107, 0.12);
}

.v2-signup-card__eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v2-brand);
}

.v2-signup-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.v2-signup-card p {
  max-width: 36rem;
}

.v2-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--v2-muted);
}

.v2-field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--v2-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--v2-text);
  font: inherit;
}

.v2-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--v2-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--v2-text);
  font: inherit;
}

.v2-field input:focus {
  outline: 2px solid rgba(36, 70, 107, 0.18);
  outline-offset: 2px;
  border-color: rgba(36, 70, 107, 0.28);
}

.v2-field select:focus {
  outline: 2px solid rgba(36, 70, 107, 0.18);
  outline-offset: 2px;
  border-color: rgba(36, 70, 107, 0.28);
}

.v2-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.v2-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.v2-card {
  padding: 20px;
}

.v2-card h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.v2-card p {
  margin: 0;
  color: var(--v2-muted);
  line-height: 1.55;
}

.v2-code-block {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #122033;
  color: #f8fafc;
  overflow-x: auto;
  font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.v2-status {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  overflow: hidden;
}

.v2-status-item {
  padding: 18px 20px;
  border-right: 1px solid var(--v2-border);
}

.v2-status-item:last-child {
  border-right: none;
}

.v2-status-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--v2-muted);
}

.v2-status-item span {
  font-weight: 700;
}

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

  .v2-signup-grid {
    grid-template-columns: 1fr;
  }

  .v2-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 560px) {
  .v2-shell {
    padding: 14px;
  }

  .v2-hero,
  .v2-card,
  .v2-status {
    border-radius: 18px;
  }

  .v2-status {
    grid-template-columns: 1fr;
  }

  .v2-status-item {
    border-right: none;
    border-bottom: 1px solid var(--v2-border);
  }

  .v2-status-item:last-child {
    border-bottom: none;
  }
}
