/* Zero global tokens */
:root,
[data-theme="light"] {
  --zero-blue: #0088cc;
  --zero-blue-hover: #006ba3;
  --zero-bg: #ffffff;
  --zero-bg-subtle: #f8fafc;
  --zero-text: #1a1a2e;
  --zero-text-muted: #64748b;
  --zero-border: #e2e8f0;
}

[data-theme="dark"] {
  --zero-blue: #29aae1;
  --zero-blue-hover: #1a8fc4;
  --zero-bg: #0f1117;
  --zero-bg-subtle: #1a1d27;
  --zero-text: #e8eaf0;
  --zero-text-muted: #8b95a9;
  --zero-border: #2a2f3d;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--zero-bg);
  color: var(--zero-text);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(0, 136, 204, 0.35);
}

/* Landing hero */
.landing-hero {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 0;
  min-height: calc(100vh - 170px);
}

.landing-split {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 2.5rem;
  align-items: center;
  min-height: 0;
}

.landing-panel-left {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.landing-panel-right {
  display: flex;
  justify-content: center;
}

.landing-title {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--zero-blue);
  line-height: 1.1;
}

.landing-tagline {
  font-size: 17px;
  color: var(--zero-text-muted);
  margin-bottom: 32px;
  line-height: 1.5;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.landing-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.landing-cta .btn {
  display: inline-block;
  padding: 13px 30px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 600;
  line-height: 1.4;
  border-width: 2px !important;
  vertical-align: middle;
}

.landing-btn-primary {
  background-color: var(--zero-blue);
  border-color: var(--zero-blue);
}

.landing-btn-primary:hover,
.landing-btn-primary:focus {
  background-color: var(--zero-blue-hover);
  border-color: var(--zero-blue-hover);
}

.landing-btn-outline {
  background-color: #ffffff !important;
  color: var(--zero-blue) !important;
  border: 2px solid var(--zero-blue) !important;
}

.landing-btn-outline:hover,
.landing-btn-outline:focus {
  background-color: rgba(0, 136, 204, 0.06);
  color: var(--zero-blue-hover);
  border-color: var(--zero-blue-hover);
}

@media (max-width: 576px) {
  .landing-hero {
    padding: 3.5rem 0 3rem;
  }

  .landing-title {
    font-size: 40px;
  }

  .landing-cta {
    flex-direction: column;
    align-items: center;
  }

  .landing-cta .btn {
    width: 100%;
    max-width: 320px;
  }

  .landing-tagline {
    font-size: 1rem;
    margin-bottom: 1.6rem;
  }
}

@media (max-width: 992px) {
  .landing-split {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    min-height: 0;
  }

  .landing-panel-left {
    max-width: 100%;
    text-align: center;
  }

  .landing-cta {
    justify-content: center;
  }

  .landing-tagline {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }

  .landing-panel-right {
    justify-content: center;
  }
}

/* Dark mode outline button */
[data-theme="dark"] .landing-btn-outline {
  background-color: transparent;
  color: var(--zero-blue);
  border-color: var(--zero-blue);
}

/* Theme toggle button */
.btn-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.btn-theme-toggle:hover {
  color: #1a1a2e;
}

[data-theme="dark"] .btn-theme-toggle {
  color: #94a3b8;
}

[data-theme="dark"] .btn-theme-toggle:hover {
  color: #e8eaf0;
}

/* Navbar Create account button */
.btn-zero-nav {
  background-color: var(--zero-blue);
  border-color: var(--zero-blue);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
}

.btn-zero-nav:hover,
.btn-zero-nav:focus {
  background-color: var(--zero-blue-hover);
  border-color: var(--zero-blue-hover);
  color: #fff;
}

/* Header */
.zero-navbar {
  background-color: var(--zero-bg);
  border-bottom: 1px solid var(--zero-border);
}

.zero-navbar .navbar-brand {
  color: var(--zero-blue);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.zero-navbar .navbar-brand:hover {
  color: var(--zero-blue-hover);
}

.zero-navbar .nav-link {
  color: var(--zero-text-muted);
}

.zero-navbar .nav-link:hover,
.zero-navbar .nav-link:focus {
  color: var(--zero-text);
}

.zero-navbar .btn-primary {
  background-color: var(--zero-blue);
  border-color: var(--zero-blue);
}

.zero-navbar .btn-primary:hover,
.zero-navbar .btn-primary:focus {
  background-color: var(--zero-blue-hover);
  border-color: var(--zero-blue-hover);
}

/* Footer */
.zero-footer {
  margin-top: auto;
  padding: 1.25rem 0;
  background: var(--zero-bg-subtle);
  border-top: 1px solid var(--zero-border);
}

.zero-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--zero-text-muted);
}

.zero-footer-brand {
  font-weight: 600;
  color: var(--zero-blue);
}

.zero-footer-sep {
  color: #cbd5e1;
  user-select: none;
}

.zero-footer-link {
  color: var(--zero-blue);
  text-decoration: none;
}

.zero-footer-link:hover {
  color: var(--zero-blue-hover);
  text-decoration: underline;
}

.zero-footer-copy {
  margin-left: 0.25rem;
}

/* Waitlist section */
.waitlist-section {
  padding: 0 0 5rem;
}

.waitlist-card {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08), 0 4px 14px rgba(15, 23, 42, 0.04);
  padding: 1.8rem 1.75rem 1.65rem;
}

[data-theme="dark"] .waitlist-card {
  background: #161b26;
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 4px 14px rgba(0, 0, 0, 0.2);
}

.waitlist-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 136, 204, 0.08);
  color: var(--zero-blue);
  margin-bottom: 0.85rem;
}

.waitlist-icon svg {
  width: 22px;
  height: 22px;
}

[data-theme="dark"] .waitlist-icon {
  background: rgba(41, 170, 225, 0.1);
}

.waitlist-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zero-blue);
}

.waitlist-heading {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.3rem;
  color: var(--zero-text);
}

.waitlist-desc {
  font-size: 0.88rem;
  color: var(--zero-text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.waitlist-benefits {
  margin: 0 0 0.9rem;
  list-style: none;
  text-align: left;
  background: rgba(0, 136, 204, 0.04);
  border: 1px solid rgba(0, 136, 204, 0.12);
  border-radius: 12px;
  padding: 0.7rem 0.85rem 0.5rem;
}

[data-theme="dark"] .waitlist-benefits {
  background: rgba(41, 170, 225, 0.06);
  border-color: rgba(41, 170, 225, 0.14);
}

.waitlist-benefits li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 0.35rem;
  color: var(--zero-text);
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 500;
}

.waitlist-benefits li:last-child {
  margin-bottom: 0;
}

.waitlist-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.02rem;
  width: 1.15rem;
  height: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--zero-blue);
  font-size: 0.65rem;
  font-weight: 700;
}

.waitlist-form {
  width: 100%;
  margin-top: 0;
}

.waitlist-fields {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.waitlist-input {
  background: var(--zero-bg);
  border: 1px solid var(--zero-border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--zero-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.waitlist-input::placeholder {
  color: var(--zero-text-muted);
  opacity: 0.65;
}

.waitlist-input:focus {
  border-color: var(--zero-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

[data-theme="dark"] .waitlist-input {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--zero-border);
  color: var(--zero-text);
}

[data-theme="dark"] .waitlist-input:focus {
  border-color: var(--zero-blue);
  box-shadow: 0 0 0 3px rgba(41, 170, 225, 0.12);
}

.waitlist-btn {
  display: inline-block;
  padding: 11px 28px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 700;
  line-height: 1.4;
  border: none !important;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 136, 204, 0.22);
  transition: transform 0.14s ease, box-shadow 0.2s, background-color 0.2s, opacity 0.2s;
  width: 100%;
}

.waitlist-btn:hover,
.waitlist-btn:focus,
.waitlist-btn:active {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 136, 204, 0.3);
}

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

.waitlist-counter {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--zero-text-muted);
  letter-spacing: 0.01em;
}

.waitlist-feedback {
  min-height: 1.4em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  margin-top: 0.65rem;
  margin-bottom: 0;
  transition: color 0.2s;
}

.waitlist-feedback-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.waitlist-success {
  color: #16a34a;
}

[data-theme="dark"] .waitlist-success {
  color: #4ade80;
}

.waitlist-error {
  color: #dc2626;
}

[data-theme="dark"] .waitlist-error {
  color: #f87171;
}

@media (max-width: 576px) {
  .waitlist-section {
    padding: 0 0 3rem;
  }

  .landing-hero {
    min-height: 0;
  }

  .waitlist-card {
    max-width: 100%;
    padding: 1.6rem 1.1rem 1.4rem;
    border-radius: 14px;
  }

  .waitlist-heading {
    font-size: 1.3rem;
  }

  .waitlist-benefits {
    padding: 0.6rem 0.7rem 0.45rem;
  }

  .waitlist-benefits li {
    font-size: 0.8rem;
  }
}