/* ==========================================================================
   Black Wolf Optics — Landing Page Styles
   Jet black, cinematic, restrained. Cool neutrals only — no gold/warm tones.
   ========================================================================== */

:root {
  /* Colour palette — cool neutrals only */
  --color-black: #030304;
  --color-black-alt: #0a0b0c;
  --color-charcoal: #101113;
  --color-graphite: #1a1c1f;
  --color-gunmetal: #2b2e33;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-strong: rgba(255, 255, 255, 0.22);
  --color-white: #f7f8f9;
  --color-silver: #ccd2d8;
  --color-grey: #9aa0a7;
  --color-grey-dim: #62666c;
  --color-cold-blue: #7fa3c4;
  --color-cold-blue-soft: rgba(127, 163, 196, 0.35);

  /* Typography */
  --font-sans: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, Helvetica, Arial, sans-serif;
  --tracking-wide: 0.16em;
  --tracking-wider: 0.3em;

  /* Spacing / sizing */
  --content-max: 1240px;
  --radius-sm: 2px;
  --radius-md: 5px;

  /* Motion */
  --ease-cinematic: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration-glow: 7s;
}

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

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

body {
  margin: 0;
  background: var(--color-black);
  color: var(--color-silver);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
}

/* ---- Accessibility utility ---- */
.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;
}

:focus-visible {
  outline: 2px solid var(--color-cold-blue);
  outline-offset: 3px;
}

/* ==========================================================================
   Atmosphere — page-level vignette + film grain
   ========================================================================== */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.atmosphere__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 130% 100% at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.85) 100%);
}

.atmosphere__grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0, rgba(255, 255, 255, 0.6) 1px, transparent 1.5px);
  background-size: 3px 3px;
}

/* ==========================================================================
   Page shell
   ========================================================================== */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vh, 44px) 0 clamp(24px, 3vh, 40px);
  animation: page-fade-in 1.3s var(--ease-cinematic) both;
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ==========================================================================
   Hero — supplied brand composition + pulsing centre light
   ========================================================================== */

.hero {
  width: 100%;
  display: flex;
  justify-content: center;
  animation: hero-reveal 1.4s 0.1s var(--ease-cinematic) both;
}

@keyframes hero-reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__frame {
  position: relative;
  width: min(1500px, 100%);
  overflow: hidden;
  /* Feather all four edges of the artwork into the page black so no
     rectangular JPEG boundary is visible against the background. */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent),
    linear-gradient(to bottom, transparent, #000 7%, #000 82%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent),
    linear-gradient(to bottom, transparent, #000 7%, #000 82%, transparent);
  mask-composite: intersect;
}

.hero__image {
  width: 100%;
  height: auto;
}

/* Pulsing centre light — sits over the artwork's own haze and breathes.
   screen blend brightens the smoke and the PVS-31 without washing out
   the blacks around it. */
.hero__glow {
  position: absolute;
  left: 50%;
  top: 66%;
  width: 62%;
  aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(
    ellipse 32% 40% at 50% 52%,
    rgba(210, 222, 232, 0.34) 0%,
    rgba(160, 176, 190, 0.18) 34%,
    rgba(105, 118, 132, 0.08) 58%,
    transparent 78%
  );
  animation: glow-breathe var(--duration-glow) var(--ease-cinematic) infinite alternate;
  will-change: opacity, transform;
}

@keyframes glow-breathe {
  from {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

/* ==========================================================================
   Signup section
   ========================================================================== */

.signup {
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: clamp(4px, 1vw, 14px);
  padding: 0 clamp(22px, 5vw, 40px);
}

.signup__headline {
  margin: 0 0 clamp(12px, 1.6vw, 16px);
  font-size: clamp(19px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.3;
}

.signup__support {
  margin: 0 0 clamp(24px, 3vw, 34px);
  font-size: clamp(11px, 1.05vw, 13.5px);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-grey);
}

.signup__form {
  width: 100%;
  max-width: 640px;
}

.signup__field {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: 100%;
}

.signup__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.signup__input {
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(16, 17, 19, 0.85);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 17px 20px;
  font-size: 16px;
  color: var(--color-white);
  transition: border-color 0.2s var(--ease-cinematic), background-color 0.2s var(--ease-cinematic);
}

.signup__input::placeholder {
  color: var(--color-grey-dim);
}

.signup__input:hover {
  border-color: var(--color-border-strong);
}

.signup__input:focus-visible {
  outline: none;
  border-color: var(--color-cold-blue);
  background: var(--color-graphite);
  box-shadow: 0 0 0 3px var(--color-cold-blue-soft);
}

.signup__input:invalid[aria-invalid='true'] {
  border-color: #a6555c;
}

.signup__submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 30px;
  background: linear-gradient(180deg, #33373d, #23262a);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.25s var(--ease-cinematic), box-shadow 0.25s var(--ease-cinematic),
    filter 0.25s var(--ease-cinematic), transform 0.15s var(--ease-cinematic);
}

.signup__submit-arrow {
  transition: transform 0.25s var(--ease-cinematic);
}

.signup__submit:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.4);
  filter: brightness(1.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.signup__submit:hover:not(:disabled) .signup__submit-arrow {
  transform: translateX(3px);
}

.signup__submit:active:not(:disabled) {
  transform: translateY(1px);
}

.signup__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.signup__submit.is-loading .signup__submit-label {
  opacity: 0.6;
}

.signup__status {
  min-height: 18px;
  margin: 14px 0 0;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--color-grey);
}

.signup__status[data-state='success'] {
  color: #a9c4b0;
}

.signup__status[data-state='error'] {
  color: #c68a8f;
}

.signup__privacy {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: clamp(14px, 2vw, 20px) 0 0;
  font-size: 13px;
  color: var(--color-grey);
}

.signup__privacy-icon {
  color: var(--color-grey);
  flex: 0 0 auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  width: 100%;
  margin-top: clamp(28px, 4vh, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-footer__link {
  color: var(--color-grey);
  display: inline-flex;
  transition: color 0.2s var(--ease-cinematic);
}

.site-footer__link:hover {
  color: var(--color-white);
}

.site-footer__copy {
  margin: 0;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-grey-dim);
}

/* ==========================================================================
   Responsive behaviour
   ========================================================================== */

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

  .signup__submit {
    width: 100%;
  }

  .signup__headline {
    letter-spacing: 0.22em;
  }

  .hero__glow {
    width: 88%;
  }

  .hero__frame {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent),
      linear-gradient(to bottom, transparent, #000 5%, #000 86%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent),
      linear-gradient(to bottom, transparent, #000 5%, #000 86%, transparent);
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

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

  .hero__glow {
    animation: none;
    opacity: 0.75;
  }
}
