:root {
  --bg: #0c0d10;
  --bg-panel: rgba(14, 16, 19, 0.92);
  --red: #c8232f;
  --red-dark: #7a1620;
  --cyan: #3fd3d6;
  --cyan-dim: #2a8f94;
  --steel: #6e7680;
  --steel-light: #9aa3ac;
  --text: #e8edf0;
  --text-dim: #a9b2ba;
  --danger: #ff6b6b;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  min-height: 100%;
  /* Colors any sliver of viewport below short content (e.g. a very tall
     phone screen where the proportional hero + compact bar/footer don't
     reach the bottom) so it reads as intentional dark space rather than a
     jarring default-white gap -- nothing is stretched or forced to fill
     it, the page is exactly as tall as its content and scrolls normally
     either way. */
  background: var(--bg);
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

.hero {
  width: 100%;
  aspect-ratio: 1376 / 768;
  background-image:
    linear-gradient(180deg, rgba(8,9,11,0) 0%, rgba(8,9,11,0) 88%, rgba(6,7,8,0.55) 100%),
    url("../img/hero.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Desktop gets different rules from mobile on purpose, not one layout for
   both: the CTA + footer form a fixed-size block pinned to the bottom of
   the page (like the original design), and the hero fills/crops (via
   `cover`) whatever space is left between the top of the page and the top
   of that block, instead of staying locked to its own image proportions.
   Below this breakpoint the mobile-first rules above apply instead: the
   hero keeps its true proportions (never cropped), everything just stacks
   and the page scrolls to fit -- see the block comment on `html` above. */
@media (min-width: 769px) {
  html, body {
    height: 100%;
  }

  body {
    display: flex;
    flex-direction: column;
  }

  .hero {
    flex: 1 1 auto;
    min-height: 360px;
    aspect-ratio: unset;
  }

  .notify-bar,
  .site-footer {
    flex-shrink: 0;
  }
}

/* Static part of the body (normal document flow, never fixed/sticky) --
   full-width/edge-to-edge like the reference sign-up panel, not a floating
   card. Sized to its own content only -- no stretching to fill leftover
   viewport space, matching the hero's own proportional (never
   cropped/distorted) sizing above it. */
.notify-bar {
  width: 100%;
  background: var(--bg-panel);
  border-top: 2px solid var(--steel);
  box-shadow: 0 1px 0 rgba(63, 211, 214, 0.3) inset;
}

.notify-bar__inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.25rem 1.5rem;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.notify-bar__inner:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -4px;
}

.notify-bar__inner:hover .btn-notify,
.notify-bar__inner:focus-visible .btn-notify {
  filter: brightness(1.12);
}

.notify-bar__text {
  display: block;
}

.notify-bar__eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.notify-bar__title {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  color: var(--text);
}

.notify-bar__title strong {
  color: var(--cyan);
}

.btn-notify {
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #fff;
  background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  padding: 0.75rem 2.25rem;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.btn-notify:hover,
.btn-notify:focus-visible {
  filter: brightness(1.12);
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.btn-notify:active {
  transform: translateY(1px);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 6, 0.78);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
}

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

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-panel);
  border: 1px solid var(--steel);
  border-radius: 4px;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow:
    0 0 0 1px rgba(63, 211, 214, 0.15) inset,
    0 20px 60px rgba(0, 0, 0, 0.7);
}

.modal-panel::before,
.modal-panel::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--cyan);
  opacity: 0.85;
}
.modal-panel::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}
.modal-panel::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}
.modal-close:hover,
.modal-close:focus-visible {
  color: var(--cyan);
  outline: none;
}

.modal-panel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.modal-panel p {
  margin: 0 0 1.25rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}

.field {
  display: block;
  margin-bottom: 1rem;
  text-align: left;
}

.field span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.field input {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--steel);
  border-radius: 3px;
  padding: 0.65rem 0.75rem;
}

.field input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan);
}

/* honeypot: kept in the tab/DOM flow's blind spot, never shown to sighted users */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  color: var(--danger) !important;
  font-size: 0.85rem !important;
  margin: -0.5rem 0 1rem !important;
}

.btn-submit {
  width: 100%;
}

.modal-thanks {
  text-align: center;
}

.modal-thanks__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1.5rem;
}

.btn-secondary {
  background: none;
  border: 1px solid var(--steel);
  color: var(--text);
  font: inherit;
  padding: 0.6rem 1.5rem;
  border-radius: 3px;
  cursor: pointer;
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--cyan);
  outline: none;
}

.field span em {
  font-style: normal;
  text-transform: none;
  letter-spacing: normal;
  opacity: 0.75;
}

/* Copyright/version strip -- always the very last piece of body content. */
.site-footer {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--bg);
  border-top: 1px solid rgba(110, 118, 128, 0.35);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

.site-footer__version {
  opacity: 0.7;
}

.site-footer__version::before {
  content: "\2022";
  margin: 0 0.5em;
}

@media (max-width: 480px) {
  .notify-bar__inner {
    padding: 1.75rem 1.25rem;
  }
  .notify-bar__title {
    font-size: 1.1rem;
  }
}
