/* =========================================================
   Control Freaks LLC — Coming Soon Landing Page
   ========================================================= */

:root {
  --cyan: #0137f5;
  --cyan-bright: #2a55ff;
  --cyan-dim: #0129b8;
  --red: #ed1c24;
  --red-glow: rgba(237, 28, 36, 0.65);
  --navy: #050a14;
  --navy-deep: #02060e;
  --metal-light: #e8eef6;
  --metal-mid: #9aa8bc;
  --metal-dark: #3a4658;
  --panel-bg: #121820;
  --text: #f2f6fb;
  --text-muted: #b8c4d4;
  --font-display: "Orbitron", "Michroma", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --glow-cyan: 0 0 12px rgba(1, 55, 245, 0.55), 0 0 28px rgba(1, 55, 245, 0.25);
  --glow-red: 0 0 10px rgba(237, 28, 36, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--navy-deep);
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Static background ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(160deg, #02060e 0%, #0a1628 40%, #051018 100%);
}

.bg__still,
.bg__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.bg__image {
  object-fit: cover;
  object-position: center 55%;
  z-index: 1;
  filter: saturate(1.08) contrast(1.04) brightness(0.92);
}


.bg__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 60% 55%, rgba(1, 55, 245, 0.28), transparent 55%),
    radial-gradient(ellipse at 20% 70%, rgba(1, 41, 184, 0.18), transparent 50%),
    linear-gradient(180deg, #02060e 0%, #0a1628 50%, #050a14 100%);
}

.bg__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(
      180deg,
      rgba(2, 6, 14, 0.72) 0%,
      rgba(5, 10, 20, 0.38) 28%,
      rgba(5, 10, 20, 0.28) 55%,
      rgba(2, 6, 14, 0.55) 82%,
      rgba(2, 6, 14, 0.82) 100%
    ),
    linear-gradient(
      0deg,
      rgba(1, 55, 245, 0.28) 0%,
      rgba(1, 55, 245, 0.08) 8%,
      transparent 18%
    );
  pointer-events: none;
}

.bg__vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(ellipse at center, transparent 48%, rgba(0, 0, 0, 0.62) 100%);
  pointer-events: none;
}

/* ---------- Page layout ---------- */
.page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 4vw, 2rem);
  gap: clamp(0.65rem, 1.4vw, 1.1rem);
}

/* ---------- Logo ---------- */
.logo-block {
  margin-bottom: 0.15rem;
}

.logo {
  width: min(420px, 78vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 18px rgba(1, 55, 245, 0.35)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

/* ---------- Typography ---------- */
.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.4vw, 1.55rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--metal-light);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 20px rgba(180, 200, 230, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.7);
  background: linear-gradient(180deg, #ffffff 0%, #c8d4e4 45%, #8a9aac 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 920px;
  line-height: 1.3;
}

@supports not (-webkit-background-clip: text) {
  .headline {
    color: var(--metal-light);
    -webkit-text-fill-color: unset;
  }
}


.tagline {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.9vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 2px 10px rgba(0, 0, 0, 0.65);
  max-width: 820px;
  margin: 0.15rem 0 0.2rem;
  line-height: 1.45;
}

.subhead {
  font-size: clamp(0.72rem, 1.35vw, 0.95rem);
  font-weight: 500;
  color: var(--text);
  max-width: 720px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  opacity: 0.95;
}

.status-line {
  font-family: var(--font-display);
  font-size: clamp(0.62rem, 1.15vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.25), 0 2px 6px rgba(0, 0, 0, 0.7);
  max-width: 820px;
  margin-top: 0.15rem;
}

/* ---------- Countdown panel ---------- */
.timer-wrap {
  width: 100%;
  max-width: 640px;
  margin: 0.4rem 0 0.15rem;
}

.timer-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(0.4rem, 1.5vw, 1rem);
  padding: clamp(0.65rem, 1.5vw, 1rem) clamp(0.75rem, 2vw, 1.25rem);
  border-radius: 14px;
  background:
    linear-gradient(145deg, #d4dce8 0%, #8a96a8 18%, #b8c2d0 35%, #6a7688 55%, #c0cad8 78%, #4a5568 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 0 0 2px rgba(20, 30, 40, 0.5),
    0 8px 28px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(1, 55, 245, 0.18),
    0 0 24px rgba(237, 28, 36, 0.1);
  position: relative;
}

.timer-panel::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1a222e 0%, #0c1018 100%);
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(1, 55, 245, 0.15);
  z-index: 0;
  pointer-events: none;
}

.timer-panel > * {
  position: relative;
  z-index: 1;
}

/* Rivets */
.timer-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background:
    radial-gradient(circle at 12px 12px, #c8d0dc 0 3px, #5a6575 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 12px) 12px, #c8d0dc 0 3px, #5a6575 4px, transparent 5px),
    radial-gradient(circle at 12px calc(100% - 12px), #c8d0dc 0 3px, #5a6575 4px, transparent 5px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), #c8d0dc 0 3px, #5a6575 4px, transparent 5px);
  pointer-events: none;
  z-index: 2;
  opacity: 0.9;
}

.gauge {
  width: clamp(56px, 11vw, 88px);
  height: clamp(56px, 11vw, 88px);
  flex-shrink: 0;
}

.gauge__svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px rgba(1, 55, 245, 0.35));
}

.gauge--left .gauge__svg {
  filter: drop-shadow(0 0 6px rgba(237, 28, 36, 0.3));
}

.timer-display {
  padding: 0.35rem 0.25rem;
  min-width: 0;
}

.timer-display__label {
  font-family: var(--font-display);
  font-size: clamp(0.5rem, 0.9vw, 0.65rem);
  letter-spacing: 0.35em;
  color: rgba(220, 230, 245, 0.75);
  margin-bottom: 0.25rem;
}

.timer-units {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(0.15rem, 0.8vw, 0.45rem);
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(2.4rem, 6vw, 3.6rem);
}

.unit__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.8vw, 2.35rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: #eef6ff;
  text-shadow:
    0 0 8px rgba(1, 55, 245, 0.7),
    0 0 18px rgba(1, 55, 245, 0.35),
    0 2px 0 rgba(0, 0, 0, 0.5);
  font-variant-numeric: tabular-nums;
}

.unit__name {
  font-family: var(--font-display);
  font-size: clamp(0.42rem, 0.75vw, 0.55rem);
  letter-spacing: 0.18em;
  color: rgba(180, 200, 220, 0.7);
  margin-top: 0.3rem;
}

.unit__sep {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 3.2vw, 2rem);
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  line-height: 1;
  padding-top: 0.1rem;
  align-self: flex-start;
}

.timer-live {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  letter-spacing: 0.2em;
  color: var(--cyan-bright);
  text-shadow: var(--glow-cyan);
  padding: 0.5rem 0;
}

.timer-live[hidden] {
  display: none;
}

/* ---------- CTA ---------- */
.cta {
  width: 100%;
  max-width: 720px;
  margin-top: 0.35rem;
}

.cta__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.8vw, 1.15rem);
  letter-spacing: 0.22em;
  color: #fff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.2), 0 2px 8px rgba(0, 0, 0, 0.7);
  margin-bottom: 0.85rem;
}

.cta__form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
}

.cta__ekg {
  flex: 1 1 0;
  max-width: 140px;
  height: 28px;
  opacity: 0.95;
  filter: drop-shadow(0 0 6px var(--red-glow));
}

.cta__ekg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cta__ekg--left {
  mask-image: linear-gradient(90deg, transparent, #000 40%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
}

.cta__ekg--right {
  mask-image: linear-gradient(90deg, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent);
}

.cta__pill {
  display: flex;
  align-items: stretch;
  flex: 0 1 auto;
  width: min(480px, 92%);
  background: linear-gradient(180deg, #2a3340 0%, #151b24 100%);
  border-radius: 999px;
  padding: 4px 4px 4px 4px;
  border: 1px solid rgba(140, 160, 185, 0.35);
  box-shadow:
    inset 0 2px 6px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 4px 18px rgba(0, 0, 0, 0.45);
  gap: 0;
  overflow: hidden;
}

.cta__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(0.72rem, 1.2vw, 0.9rem);
  font-weight: 500;
  padding: 0.7rem 1.1rem;
  outline: none;
  border-radius: 999px 0 0 999px;
}

.cta__input::placeholder {
  color: rgba(220, 230, 245, 0.75);
  opacity: 1;
}

.cta__input:focus {
  box-shadow: inset 0 0 0 2px rgba(1, 55, 245, 0.55);
}

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

.cta__btn {
  position: relative;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.65rem, 1.1vw, 0.8rem);
  letter-spacing: 0.12em;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  background: linear-gradient(180deg, #0a4a7a 0%, #062038 45%, #031018 100%);
  box-shadow:
    0 0 0 1px rgba(1, 55, 245, 0.55),
    0 0 16px rgba(1, 55, 245, 0.55),
    0 0 32px rgba(1, 55, 245, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 0 rgba(237, 28, 36, 0.55),
    inset 0 2px 0 rgba(1, 55, 245, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
  z-index: 1;
}

.cta__btn::before,
.cta__btn::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  height: 2px;
  border-radius: 1px;
  pointer-events: none;
}

.cta__btn::before {
  top: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  box-shadow: 0 0 6px var(--red-glow);
}

.cta__btn::after {
  bottom: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  box-shadow: 0 0 6px var(--red-glow);
}

.cta__btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(1, 55, 245, 0.8),
    0 0 22px rgba(1, 55, 245, 0.7),
    0 0 40px rgba(1, 55, 245, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -2px 0 rgba(237, 28, 36, 0.65),
    inset 0 2px 0 rgba(1, 55, 245, 0.45);
  filter: brightness(1.08);
}

.cta__btn:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 3px;
}

.cta__btn:active {
  transform: translateY(0);
}

.form-message {
  min-height: 1.4em;
  margin-top: 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.form-message.is-success {
  color: var(--cyan-bright);
  text-shadow: var(--glow-cyan);
}

.form-message.is-error {
  color: #ff6b6b;
  text-shadow: var(--glow-red);
}

/* ---------- Footer ---------- */
.footer {
  margin-top: clamp(0.75rem, 2vw, 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.footer__tagline {
  font-size: clamp(0.7rem, 1.2vw, 0.88rem);
  font-weight: 500;
  color: var(--text);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
  max-width: 560px;
}

.footer__logo {
  width: min(160px, 38vw);
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 0 10px rgba(1, 55, 245, 0.25));
}

.footer__copy {
  font-size: clamp(0.62rem, 1vw, 0.75rem);
  color: rgba(200, 210, 225, 0.75);
  letter-spacing: 0.02em;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .page {
    justify-content: flex-start;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    gap: 0.7rem;
  }

  .logo {
    width: min(300px, 85vw);
  }

  .headline {
    letter-spacing: 0.06em;
  }

  .timer-panel {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.5rem;
    padding: 1rem 0.85rem 0.85rem;
  }

  .gauge {
    display: none;
  }

  .cta__form {
    flex-direction: column;
    gap: 0.35rem;
  }

  .cta__ekg {
    width: 70%;
    max-width: none;
    height: 20px;
  }

  .cta__pill {
    width: 100%;
    flex-direction: column;
    border-radius: 18px;
    padding: 6px;
    gap: 6px;
  }

  .cta__input {
    border-radius: 12px;
    text-align: center;
    padding: 0.85rem 1rem;
  }

  .cta__btn {
    width: 100%;
    border-radius: 12px;
    padding: 0.9rem 1rem;
  }

  .unit__name {
    letter-spacing: 0.1em;
  }
}

@media (max-width: 380px) {
  .unit__sep {
    display: none;
  }

  .timer-units {
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .cta__btn {
    transition: none;
  }
}
