/* Izon America — landing page styles */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/assets/fonts/archivo-variable.woff2") format("woff2-variations"),
       url("/assets/fonts/archivo-variable.woff2") format("woff2");
}

:root {
  --night: #060a14;
  --navy: #1b2b44;
  --ink: #1d2532;
  --slate: #566173;
  --steel: #3a6596;
  --mist: #f2f4f7;
  --line: #dbe0e7;
  --white: #ffffff;
  --led: #fff3da;
  --error: #b42318;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--steel);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--white);
  color: var(--navy);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: #26395a; }
.btn--outline { color: var(--navy); border-color: #b9c2cf; background: var(--white); }
.btn--outline:hover { border-color: var(--navy); }
.btn[disabled] { opacity: 0.65; cursor: progress; }

.ext {
  width: 0.8em;
  height: 0.8em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Hero: an animated LED sign (drawn by hero.js) ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  min-height: 540px;
  max-height: 1200px;
  background: #060a14;
  overflow: hidden;
  touch-action: pan-y;
}

/* Slowly drifting aurora light behind the pixels */
.hero__aurora {
  position: absolute;
  inset: -25%;
  z-index: -2;
  background:
    radial-gradient(32% 28% at 34% 40%, rgba(111, 92, 255, 0.42), transparent 70%),
    radial-gradient(30% 26% at 68% 58%, rgba(0, 190, 255, 0.3), transparent 70%),
    radial-gradient(26% 22% at 56% 34%, rgba(255, 80, 170, 0.22), transparent 70%),
    radial-gradient(40% 30% at 50% 100%, rgba(40, 70, 160, 0.35), transparent 70%);
  will-change: transform;
  animation: aurora 26s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(-4%, -2%, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(3%, 2%, 0) rotate(7deg) scale(1.08); }
  100% { transform: translate3d(-1%, 3%, 0) rotate(-5deg) scale(1.03); }
}

/* Fine film grain and an edge vignette */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(3, 5, 12, 0.85) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__grid,
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__title { position: relative; z-index: 2; }

/* Shown only without JavaScript or if the canvas can't run */
.hero__fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
  color: #fff3da;
  font-size: clamp(4rem, 15vw, 13rem);
  line-height: 0.9;
}
.hero.is-static .hero__fallback { display: flex; }
.hero.is-static .hero__grid,
.hero.is-static .hero__canvas { display: none; }
.hero__fb-izon {
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.01em;
  text-shadow: 0 0 40px rgba(195, 92, 255, 0.45);
}
.hero__fb-am {
  font-size: 0.28em;
  font-weight: 600;
  font-stretch: 125%;
  letter-spacing: 0.6em;
  margin-right: -0.6em;
  color: rgba(255, 255, 255, 0.85);
}

/* Scroll cue */
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  z-index: 2;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 13px;
  opacity: 0;
  transition: opacity 0.8s var(--ease), border-color 0.2s var(--ease);
}
.hero.is-booted .hero__cue,
.hero.is-static .hero__cue { opacity: 1; }
.hero__cue:hover { border-color: rgba(255, 255, 255, 0.7); }
.hero__cue:focus-visible { outline-color: #fff; }
.hero__cue-dot {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0%   { transform: translateY(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ---------- Contact ---------- */

.contact { padding-block: clamp(64px, 9vw, 112px); }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.h2 {
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
  font-weight: 700;
  font-stretch: 104%;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.lead {
  margin-top: 14px;
  max-width: 28rem;
  font-size: 1.1875rem;
  color: var(--slate);
}

.led-note {
  margin-top: clamp(32px, 4vw, 48px);
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.led-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #59d8ff, #6f7bff 40%, #c35cff 70%, #ff5fa2);
}
.led-note__title { font-size: 1.25rem; font-weight: 680; line-height: 1.3; color: var(--navy); }
.led-note__text { margin-top: 2px; color: var(--slate); }
.led-note .btn { margin-top: 18px; }

.panel {
  padding: clamp(22px, 3vw, 36px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- Form ---------- */

.form { display: grid; gap: 22px; }

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

.field { display: grid; gap: 8px; min-width: 0; align-content: start; }

.label {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.opt { font-weight: 400; color: var(--slate); }

.input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  background: var(--white);
  border: 1.5px solid #b9c2cf;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  line-height: 1.4;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.input::placeholder { color: #7b8494; }
.input:hover { border-color: #8b96a7; }
.input:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(58, 101, 150, 0.22);
}
.input[aria-invalid="true"] { border-color: var(--error); }
.input--area { min-height: 160px; resize: vertical; }

.field__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9375rem;
  color: var(--slate);
}
.field__count { flex: none; font-variant-numeric: tabular-nums; }
.field__count.is-met { color: #1f7a4a; font-weight: 600; }

.field__error { font-size: 0.9375rem; font-weight: 500; color: var(--error); }
.field__error:empty { display: none; }

/* Honeypot: off-screen, out of the tab order */
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.captcha { min-height: 65px; }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.btn--submit { min-width: 200px; }
.form__note { font-size: 0.9375rem; color: var(--slate); }

.form__status { font-size: 1rem; font-weight: 500; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--error); }

.sent { display: grid; justify-items: start; gap: 10px; padding-block: 16px; }
.sent:focus { outline: none; }
.sent__icon { width: 48px; height: 48px; margin-bottom: 6px; fill: none; stroke: #1f7a4a; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sent__title { font-size: 1.625rem; font-weight: 700; color: var(--navy); }
.sent__text { color: var(--slate); max-width: 32rem; margin-bottom: 12px; }

/* ---------- Footer ---------- */

.footer {
  padding-block: 28px max(28px, env(safe-area-inset-bottom));
  background: var(--night);
  color: #c3ccd9;
  font-size: 0.875rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .lead { max-width: 36rem; }
}

@media (max-width: 560px) {
  .hero { height: 78vh; height: 78svh; min-height: 460px; }
  .row { grid-template-columns: 1fr; }
  .led-note .btn,
  .btn--submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__aurora,
  .hero__cue-dot { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
