:root {
  --bg: #f5f7fb;
  --navy: #071326;
  --navy-soft: #10223d;
  --ink: #111827;
  --muted: #667085;
  --line: #e5e8ef;
  --accent: #0f8b8d;
  --accent-dark: #08696f;
  --accent-soft: #e7f6f5;
  --panel: #ffffff;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Outfit", sans-serif;
  background:
    radial-gradient(circle at 18% -12%, rgba(15, 139, 141, 0.16), transparent 30%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(15, 139, 141, 0.25);
  outline-offset: 3px;
}

.landing-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 46px;
}

.hero {
  overflow: hidden;
  border-radius: 34px;
  padding: clamp(20px, 3vw, 34px);
  color: #f8fbff;
  background:
    radial-gradient(circle at 86% 10%, rgba(15, 139, 141, 0.30), transparent 32%),
    linear-gradient(135deg, var(--navy) 0%, #0d1c34 55%, #102f3a 100%);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.topbar strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 4.8vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.topbar a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0 14px;
  color: rgba(248, 251, 255, 0.82);
  text-decoration: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 420px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: #66d5d0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-eyebrow {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(0.98rem, 1.65vw, 1.34rem);
  line-height: 1.24;
  letter-spacing: 0.09em;
}

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

h1 {
  max-width: 850px;
  font-size: clamp(3.1rem, 6.8vw, 5.55rem);
  line-height: 0.94;
}

h2 {
  font-size: 1.45rem;
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(248, 251, 255, 0.76);
  font-size: clamp(0.98rem, 1.45vw, 1.12rem);
  line-height: 1.58;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-points span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0 13px;
  color: rgba(248, 251, 255, 0.84);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 600;
}

.access-stack {
  display: grid;
  gap: 14px;
}

.signup-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  padding: 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.login-card {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.signup-card .eyebrow {
  color: var(--accent);
}

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

.signup-card label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.signup-card label span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 15px;
  color: var(--ink);
  font: inherit;
}

.plan-choice {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.plan-choice label {
  grid-template-columns: auto 1fr;
  align-items: center;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: #fbfcfd;
}

.primary-button {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 14px 28px rgba(15, 139, 141, 0.25);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
  box-shadow: none;
}

.secondary-button {
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
  border: 1px solid rgba(15, 139, 141, 0.22);
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.secondary-button:hover {
  border-color: rgba(15, 139, 141, 0.38);
  background: #dff2f0;
}

.secondary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.reset-button {
  width: 100%;
  margin-top: 10px;
  border: 0;
  color: var(--accent-dark);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.reset-button:hover {
  text-decoration: underline;
}

.reset-button:disabled {
  cursor: wait;
  opacity: 0.62;
  text-decoration: none;
}

.form-message {
  min-height: 22px;
  margin: 12px 0 0;
  font-weight: 700;
}

.form-message.error {
  color: #b42318;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(7, 19, 38, 0.72);
  backdrop-filter: blur(12px);
}

.modal-backdrop[hidden] {
  display: none;
}

.password-modal {
  width: min(460px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.password-modal .eyebrow {
  color: var(--accent);
}

.password-modal p {
  color: var(--muted);
  line-height: 1.55;
}

.password-modal label {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.password-modal label span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.password-modal .primary-button {
  margin-top: 18px;
}

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

.trust-panel article {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
}

.trust-panel span {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
}

.trust-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.live-stats-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
  margin-top: 18px;
  border-radius: 28px;
  padding: clamp(22px, 3vw, 32px);
  color: #f8fbff;
  background:
    radial-gradient(circle at 86% 0%, rgba(15, 139, 141, 0.34), transparent 34%),
    linear-gradient(135deg, var(--navy) 0%, #0d1c34 55%, #102f3a 100%);
  box-shadow: var(--shadow);
}

.live-stats-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.live-stats-card p {
  color: rgba(248, 251, 255, 0.72);
  line-height: 1.55;
}

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

.live-stats-grid article {
  min-height: 156px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 20px 22px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.live-stats-grid span {
  display: block;
  color: #66d5d0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.live-stats-grid strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.35rem, 4.6vw, 3.7rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.live-stats-grid p {
  max-width: 25ch;
  margin: 14px 0 0;
  color: rgba(248, 251, 255, 0.76);
  font-size: 0.96rem;
  line-height: 1.45;
  white-space: pre-line;
}

.cookie-consent {
  position: fixed;
  right: max(18px, calc((100vw - 1180px) / 2));
  bottom: 18px;
  z-index: 45;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(760px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 18px;
  color: #f8fbff;
  background:
    radial-gradient(circle at 88% 0%, rgba(15, 139, 141, 0.28), transparent 34%),
    linear-gradient(135deg, var(--navy) 0%, #102f3a 100%);
  box-shadow: 0 22px 70px rgba(7, 19, 38, 0.28);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent h2 {
  font-size: 1.28rem;
}

.cookie-consent p {
  max-width: 58ch;
  margin: 8px 0 0;
  color: rgba(248, 251, 255, 0.78);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cookie-primary,
.cookie-secondary,
.cookie-settings-button {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 15px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.cookie-primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.cookie-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fbff;
  background: rgba(255, 255, 255, 0.08);
}

.cookie-settings-button {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 44;
  border: 1px solid var(--line);
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.cookie-settings-button[hidden] {
  display: none;
}

@media (max-width: 860px) {
  .hero-grid,
  .access-stack,
  .trust-panel,
  .live-stats-card,
  .live-stats-grid {
    grid-template-columns: 1fr;
  }

  .cookie-consent {
    grid-template-columns: 1fr;
    right: 16px;
    left: 16px;
    width: auto;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-primary,
  .cookie-secondary {
    flex: 1 1 180px;
  }
}

@media (max-width: 560px) {
  .landing-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 10px;
  }

  .hero,
  .signup-card,
  .trust-panel article,
  .live-stats-card,
  .live-stats-grid article {
    border-radius: 22px;
  }
}
