/* ============================================================
   ClipNewsroom — Coming Soon
   Palette: charcoal / navy / broadcast red
   ============================================================ */

:root {
  --ink: #07080b;
  --charcoal: #0d1016;
  --navy: #0a1730;
  --navy-2: #0d2145;
  --red: #e10d19;
  --red-hot: #ff3b3b;
  --paper: #eef1f7;
  --muted: #9aa6bd;
  --line: rgba(255, 255, 255, 0.09);
  --radius: 14px;
  --max: 1672px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

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

/* ---------- ambient background: charcoal base, navy wash, red bloom ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(
      900px 520px at 78% -8%,
      rgba(225, 13, 25, 0.22),
      transparent 62%
    ),
    radial-gradient(
      1100px 700px at 12% 4%,
      rgba(13, 33, 69, 0.85),
      transparent 68%
    ),
    radial-gradient(
      1400px 900px at 50% 118%,
      rgba(10, 23, 48, 0.9),
      transparent 70%
    ),
    linear-gradient(180deg, #0a0d13 0%, var(--ink) 45%, #05060a 100%);
}

.bg::after {
  /* fine broadcast scanline texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.028) 0px,
    rgba(255, 255, 255, 0.028) 1px,
    transparent 1px,
    transparent 4px
  );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 62%);
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.85),
    transparent 62%
  );
}

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 40px);
}

.topbar__mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
}

.topbar__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red-hot);
  box-shadow: 0 0 0 4px rgba(225, 13, 25, 0.22);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(225, 13, 25, 0.28);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(225, 13, 25, 0.06);
  }
}

.topbar__badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, var(--red-hot), var(--red));
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- hero artwork (never cropped) ---------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(0px, 2vw, 24px);
}

.hero__frame {
  position: relative;
  border-radius: clamp(0px, 1.2vw, 18px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #04050a;
  box-shadow:
    0 40px 90px -40px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.hero__frame::after {
  /* soft cinematic falloff, purely decorative */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(4, 5, 10, 0.35) 0%,
    transparent 16%,
    transparent 78%,
    rgba(4, 5, 10, 0.55) 100%
  );
}

.hero__img {
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
  object-position: center;
}

.hero__copy {
  max-width: 780px;
  margin: clamp(28px, 4vw, 46px) auto 0;
  padding: 0 clamp(16px, 4vw, 40px);
  text-align: center;
}

.tagline {
  margin: 0 0 14px;
  font-size: clamp(26px, 5vw, 46px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 30%, #b9c6e2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 17.5px);
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- signup ---------- */

.signup {
  max-width: var(--max);
  margin: clamp(34px, 5vw, 56px) auto 0;
  padding: 0 clamp(16px, 4vw, 40px);
}

.signup__card {
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 38px);
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    rgba(16, 24, 44, 0.86),
    rgba(9, 12, 20, 0.9)
  );
  border: 1px solid var(--line);
  box-shadow:
    0 30px 70px -40px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(6px);
}

.signup__title {
  margin: 0 0 6px;
  font-size: clamp(21px, 3vw, 27px);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.signup__sub {
  margin: 0 0 22px;
  font-size: 14.5px;
  color: var(--muted);
}

.form__row {
  display: flex;
  gap: 10px;
}

.form__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 15px 16px;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom on focus */
  color: #fff;
  background: rgba(4, 6, 12, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form__input::placeholder {
  color: #6d7a94;
}

.form__input:focus {
  border-color: rgba(255, 59, 59, 0.7);
  box-shadow: 0 0 0 4px rgba(225, 13, 25, 0.16);
}

.form__btn {
  flex: 0 0 auto;
  padding: 15px 24px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(180deg, var(--red-hot), var(--red));
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, filter 0.15s ease;
}

.form__btn:hover {
  filter: brightness(1.08);
}

.form__btn:active {
  transform: translateY(1px);
}

.form__btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
}

.form__consent input {
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--red);
}

.form__consent a {
  color: #dbe3f5;
  text-underline-offset: 2px;
}

.form__msg {
  min-height: 20px;
  margin: 14px 0 0;
  font-size: 13.5px;
  font-weight: 500;
}

.form__msg.is-error {
  color: #ff8a8a;
}

.form__msg.is-ok {
  color: #7ee2a8;
}

/* honeypot — off-screen, not visible to humans */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- confirmation ---------- */

.success {
  text-align: center;
  padding: 8px 0 4px;
}

.success__check {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #22c55e, #15803d);
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.12);
}

.success__title {
  margin: 0 0 8px;
  font-size: clamp(20px, 3vw, 25px);
  font-weight: 800;
}

.success__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.success__text strong {
  color: #fff;
  word-break: break-all;
}

/* ---------- footer ---------- */

.footer {
  max-width: 820px;
  margin: clamp(40px, 6vw, 72px) auto 0;
  padding: 26px clamp(16px, 4vw, 40px) 46px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer__legal {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #77839b;
}

.footer__meta {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #77839b;
}

.footer__meta a {
  color: #98a5be;
  text-decoration: none;
}

.footer__meta a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__sep {
  opacity: 0.5;
}

/* ---------- responsive ---------- */

@media (max-width: 720px) {
  .form__row {
    flex-direction: column;
  }

  .form__btn {
    width: 100%;
  }

  .hero__frame {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .hero {
    padding: 0;
  }

  .topbar {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

@media (max-width: 400px) {
  .topbar__mark {
    font-size: 13px;
    letter-spacing: 0.1em;
  }

  .topbar__badge {
    font-size: 10px;
    padding: 6px 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
