/* ============================================================
   STEAM FORWARD — Coming Soon
   Premium dark theme · high energy · accessible for 50+
   ============================================================ */

:root {
  --bg-0: #070b14;
  --bg-1: #0a1120;
  --bg-2: #0e1830;

  --ink: #eef3fa;
  --ink-soft: #b9c5d8;
  --ink-mute: #8494ab;

  --gold-1: #f7c977;
  --gold-2: #ec9f3f;
  --gold-3: #d97f1e;
  --teal-1: #5eead4;
  --teal-2: #2dd4bf;

  --card: rgba(15, 23, 42, .62);
  --card-line: rgba(148, 163, 184, .22);
  --input-bg: rgba(7, 11, 20, .65);
  --input-line: rgba(148, 163, 184, .34);

  --err: #ff8f8f;
  --ok: #6ee7b7;

  --radius-lg: 22px;
  --radius-md: 13px;

  --font: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", Inter,
          system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-0);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Ambient background ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 90% at 75% -10%, var(--bg-2) 0%, transparent 55%),
    radial-gradient(100% 80% at -10% 110%, #0c1426 0%, transparent 55%),
    linear-gradient(175deg, var(--bg-1) 0%, var(--bg-0) 70%);
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  will-change: transform;
}

.orb-a {
  width: 46vw; height: 46vw;
  min-width: 420px; min-height: 420px;
  right: -12vw; top: -16vw;
  background: radial-gradient(circle at 35% 35%, rgba(45, 212, 191, .30), rgba(14, 116, 144, .10) 60%, transparent 75%);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.orb-b {
  width: 38vw; height: 38vw;
  min-width: 360px; min-height: 360px;
  left: -14vw; bottom: -12vw;
  background: radial-gradient(circle at 60% 40%, rgba(236, 159, 63, .26), rgba(217, 127, 30, .08) 62%, transparent 78%);
  animation: drift-b 32s ease-in-out infinite alternate;
}

.orb-c {
  width: 22vw; height: 22vw;
  min-width: 260px; min-height: 260px;
  left: 38vw; top: 30vh;
  background: radial-gradient(circle, rgba(94, 234, 212, .12), transparent 70%);
  animation: drift-a 40s ease-in-out infinite alternate-reverse;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-5vw, 4vh, 0) scale(1.12); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(5vw, -5vh, 0) scale(1.08); }
}

/* Rising steam wisps */
.steam {
  position: absolute;
  bottom: -18vh;
  width: 30vw; height: 62vh;
  min-width: 300px;
  background: radial-gradient(48% 42% at 50% 62%, rgba(226, 236, 248, .055), transparent 72%);
  filter: blur(26px);
  border-radius: 50%;
  animation: rise 17s linear infinite;
  will-change: transform, opacity;
}

.steam-1 { left: 6vw;  animation-delay: 0s; }
.steam-2 { left: 42vw; animation-delay: -6s;  transform: scaleX(1.35); }
.steam-3 { right: 4vw; animation-delay: -11.5s; }

@keyframes rise {
  0%   { transform: translateY(12vh) scale(.85);  opacity: 0; }
  18%  { opacity: .9; }
  70%  { opacity: .55; }
  100% { transform: translateY(-96vh) scale(1.25) translateX(3vw); opacity: 0; }
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .045) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(75% 60% at 50% 40%, rgba(0,0,0,.85), transparent 100%);
  -webkit-mask-image: radial-gradient(75% 60% at 50% 40%, rgba(0,0,0,.85), transparent 100%);
}

/* ---------- Layout shell ---------- */

.shell {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 44px) clamp(20px, 4.5vw, 48px) 28px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Brand ---------- */

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  user-select: none;
}

.brand-mark {
  width: 46px; height: 46px;
  flex: 0 0 auto;
}

.brand-mark .mark-wisp {
  stroke: var(--teal-1);
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: .85;
}

.brand-mark .mark-arrow {
  stroke: var(--gold-1);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark .mark-ring {
  stroke: rgba(148, 163, 184, .35);
  stroke-width: 1.6;
}

.brand-word {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--ink);
}

.brand-word em {
  font-style: normal;
  font-weight: 400;
  color: var(--gold-1);
}

/* ---------- Hero ---------- */

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding: clamp(40px, 7vh, 88px) 0 clamp(30px, 5vh, 60px);
}

.eyebrow {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--teal-1);
  margin-bottom: 22px;
}

.eyebrow span { color: var(--gold-1); }

.headline {
  font-size: clamp(44px, 6.2vw, 74px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.022em;
  margin-bottom: 26px;
  text-wrap: balance;
}

.grad {
  background: linear-gradient(96deg, #f9d999 0%, var(--gold-1) 34%, var(--gold-2) 78%, #d97f1e 105%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(18px, 1.55vw, 20.5px);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 30px;
}

.lede strong { color: var(--ink); font-weight: 600; }

/* Pillar chips */

.pillars {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px;
}

.pillars li {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-soft);
  padding: 9px 16px;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(6px);
  transition: border-color .25s ease, color .25s ease, transform .25s ease;
}

.pillars li:hover {
  border-color: rgba(247, 201, 119, .55);
  color: var(--ink);
  transform: translateY(-2px);
}

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

.form-card {
  position: relative;
  border-radius: var(--radius-lg);
}

.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(247, 201, 119, .55), rgba(148, 163, 184, .16) 30%, rgba(45, 212, 191, .4) 100%);
  z-index: 0;
}

.card-inner {
  position: relative;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(20, 30, 52, .92), rgba(10, 16, 30, .94));
  border-radius: inherit;
  padding: clamp(26px, 3vw, 38px);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .75);
  backdrop-filter: blur(14px);
}

.card-inner h2 {
  font-size: clamp(24px, 2.2vw, 29px);
  font-weight: 750;
  letter-spacing: -.015em;
  margin-bottom: 8px;
}

.card-sub {
  color: var(--ink-mute);
  font-size: 16px;
  margin-bottom: 26px;
}

/* Honeypot — visually removed, still in DOM for bots */
.hp-wrap {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-soft);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  font-size: 17.5px;
  font-family: inherit;
  color: var(--ink);
  background: var(--input-bg);
  border: 1px solid var(--input-line);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.field input::placeholder { color: #5b6a82; }

.field input:focus {
  border-color: var(--gold-1);
  box-shadow: 0 0 0 4px rgba(247, 201, 119, .16);
}

.field.invalid input {
  border-color: var(--err);
  box-shadow: 0 0 0 4px rgba(255, 143, 143, .12);
}

.field-error {
  display: none;
  font-size: 14px;
  color: var(--err);
  margin-top: 6px;
}

.field.invalid .field-error { display: block; }

/* CTA button */

.cta {
  width: 100%;
  height: 58px;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: inherit;
  font-size: 18.5px;
  font-weight: 750;
  letter-spacing: .015em;
  color: #21150a;
  background: linear-gradient(180deg, var(--gold-1), var(--gold-2) 62%, var(--gold-3));
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow:
    0 14px 30px -12px rgba(236, 159, 63, .55),
    inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.cta:hover, .cta:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 20px 38px -12px rgba(236, 159, 63, .65),
    inset 0 1px 0 rgba(255, 255, 255, .35);
}

.cta:focus-visible { outline: 3px solid rgba(247, 201, 119, .6); outline-offset: 3px; }

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

.cta[disabled] {
  opacity: .65;
  cursor: wait;
  transform: none;
}

.cta-arrow {
  width: 22px; height: 22px;
  transition: transform .18s ease;
}

.cta:hover .cta-arrow { transform: translateX(4px); }

.consent {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-mute);
  margin-top: 16px;
}

.form-status {
  display: none;
  margin-top: 14px;
  font-size: 15.5px;
  font-weight: 600;
}

.form-status.error   { display: block; color: var(--err); }
.form-status.pending { display: block; color: var(--ink-soft); }

/* Success view */

.success-view { text-align: center; padding-top: 46px; padding-bottom: 46px; }

.success-icon {
  width: 74px; height: 74px;
  margin: 0 auto 22px;
  display: block;
}

.success-icon circle {
  stroke: var(--ok);
  stroke-width: 3;
  fill: rgba(110, 231, 183, .08);
}

.success-icon path {
  stroke: var(--ok);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 42;
  stroke-dashoffset: 42;
  animation: draw-check .55s .15s ease forwards;
}

@keyframes draw-check { to { stroke-dashoffset: 0; } }

#success-name { color: var(--gold-1); font-weight: 600; }

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

.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, .14);
  color: var(--ink-mute);
  font-size: 14.5px;
}

.foot-tag { color: #6d7d95; }

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 44px;
  }

  .headline { font-size: clamp(40px, 9.5vw, 58px); }

  .form-card { max-width: 560px; }
}

@media (max-width: 480px) {
  body { font-size: 17px; }

  .brand-word { font-size: 18px; letter-spacing: .18em; }

  .pillars li { font-size: 14px; padding: 8px 13px; }

  .foot { justify-content: center; text-align: center; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .orb, .steam { animation: none; }
  .steam { opacity: .35; transform: none; }
  .cta, .pillars li, .cta-arrow { transition: none; }
  html { scroll-behavior: auto; }
}
