/* AI ROI 2027 - concept 02 "Signal"
   Deep navy night, one lime signal, cool slate for everything secondary. */

:root {
  --ink: #070C18;          /* page */
  --ink-raise: #0D1628;    /* panels */
  --ink-top: #131E36;      /* panel highlight */
  --line: #1E2B48;         /* hairlines */
  --line-bright: #2A3A60;  /* field borders */
  --text: #EEF3FC;
  --slate: #93A4C4;        /* secondary text */
  --signal: #C8FF4D;       /* the one accent */
  --signal-hot: #D9FF7A;
  --depth: #5B84FF;        /* faint second accent */
  --alert: #FF9D8A;

  --sans: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(20px, 4.4vw, 64px);
}

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

[hidden] { display: none !important; }

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p { margin: 0; }

/* ---------- backdrop: drifting dot grid, one cool glow, slow motes ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.backdrop-grid {
  position: absolute;
  inset: 0;
  -webkit-mask-image: radial-gradient(120% 95% at 72% 34%, #000 18%, rgba(0, 0, 0, .28) 78%);
          mask-image: radial-gradient(120% 95% at 72% 34%, #000 18%, rgba(0, 0, 0, .28) 78%);
}

.backdrop-grid::before {
  content: "";
  position: absolute;
  inset: -64px;
  background-image: radial-gradient(circle at 1px 1px, rgba(147, 164, 196, .2) 1px, transparent 1.7px);
  background-size: 32px 32px;
  animation: grid-drift 48s linear infinite;
  will-change: transform;
}

@keyframes grid-drift {
  to { transform: translate3d(64px, 64px, 0); }
}

.backdrop-glow {
  position: absolute;
  top: -18%;
  right: -12%;
  width: 78vw;
  height: 96vh;
  background: radial-gradient(closest-side, rgba(91, 132, 255, .115), rgba(91, 132, 255, .04) 55%, transparent 72%);
}

.mote {
  position: absolute;
  opacity: 0;
  animation: mote-rise var(--dur, 18s) linear var(--delay, 0s) infinite;
  will-change: transform, opacity;
}

.mote-plus {
  width: 11px;
  height: 11px;
  color: var(--signal);
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  filter: drop-shadow(0 0 5px rgba(200, 255, 77, .55));
}

.mote-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 9px 1px rgba(200, 255, 77, .6);
}

.mote.cool { color: #9DB6FF; filter: drop-shadow(0 0 5px rgba(120, 155, 255, .6)); }
.mote-dot.cool { background: #9DB6FF; box-shadow: 0 0 9px 1px rgba(120, 155, 255, .6); filter: none; }

.m1 { left: 4%;  top: 84%; --dur: 19s; --delay: -3s;  --o: .55; }
.m2 { left: 39%; top: 31%; --dur: 23s; --delay: -11s; --o: .7;  }
.m3 { left: 47%; top: 76%; --dur: 17s; --delay: -6s;  --o: .5;  }
.m4 { left: 58%; top: 21%; --dur: 21s; --delay: -15s; --o: .75; }
.m5 { left: 95%; top: 58%; --dur: 20s; --delay: -9s;  --o: .55; }
.m6 { left: 82%; top: 93%; --dur: 24s; --delay: -2s;  --o: .7;  }
.m7 { left: 71%; top: 15%; --dur: 18s; --delay: -13s; --o: .45; }
.m8 { left: 22%; top: 12%; --dur: 22s; --delay: -7s;  --o: .6;  }

@keyframes mote-rise {
  0%   { transform: translate3d(0, 0, 0);       opacity: 0; }
  18%  { opacity: var(--o, .6); }
  78%  { opacity: var(--o, .6); }
  100% { transform: translate3d(14px, -150px, 0); opacity: 0; }
}

/* ---------- page frame ---------- */

.shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.masthead {
  display: flex;
  align-items: center;
  height: clamp(64px, 9.3vh, 84px);
  flex: none;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
}

.logo-mark { display: block; overflow: visible; }

.logo-mark path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-a    { stroke: var(--text);   stroke-width: 4.6; }
.logo-mark .logo-cut { stroke: var(--ink); stroke-width: 9; stroke-linecap: butt; }
.logo-tick { stroke: var(--signal); stroke-width: 4; }
.logo-head { fill: var(--signal); filter: drop-shadow(0 0 4px rgba(200, 255, 77, .75)); }

.logo-word {
  font-weight: 700;
  font-size: 1.24rem;
  letter-spacing: -.035em;
  line-height: 1;
}

/* ---------- hero ---------- */

.hero {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(32px, 4.6vw, 76px);
  padding: 4px 0 clamp(20px, 4.4vh, 40px);
}

.hero-copy { min-width: 0; }

.headline {
  margin: 0 0 0 -.045em;
  font-weight: 800;
  font-size: clamp(4.25rem, min(9.7vw, 15.4vh), 9.75rem);
  line-height: .88;
  letter-spacing: -.05em;
}

.headline span {
  display: block;
  padding-bottom: .04em;
  background: linear-gradient(180deg, #FFFFFF 18%, #B6C6E6 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}

.announce {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(20px, 2.6vh, 30px);
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(1rem, 1.42vw, 1.3rem);
  letter-spacing: -.01em;
  color: var(--signal);
}

.announce svg { flex: none; overflow: visible; }

.announce path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.where {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.45;
  color: #D2DCF0;
}

.where svg {
  flex: none;
  width: 28px;
  margin-top: 2px;
  overflow: visible;
}

.where path,
.where circle {
  fill: none;
  stroke: var(--slate);
  stroke-width: 1.8;
}

.details {
  margin: clamp(18px, 2.4vh, 26px) 0 0;
  font-weight: 700;
  font-size: clamp(1.25rem, 1.7vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--text);
}

.support {
  margin-top: 6px;
  font-size: 1.0625rem;
  color: var(--slate);
}

/* ---------- capture card ---------- */

.capture {
  position: relative;
  max-width: 548px;
  margin-top: clamp(22px, 3.4vh, 34px);
  padding: 22px 22px 20px;
  border: 1px solid transparent;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(19, 30, 54, .94), rgba(11, 18, 34, .94)) padding-box,
    linear-gradient(140deg, rgba(200, 255, 77, .62) 0%, rgba(91, 132, 255, .3) 34%, rgba(42, 58, 96, .75) 68%, rgba(200, 255, 77, .2) 100%) border-box;
  box-shadow:
    0 34px 70px -38px rgba(0, 0, 0, .9),
    0 0 70px -34px rgba(200, 255, 77, .3);
  transition: box-shadow .25s ease;
}

.capture:focus-within {
  box-shadow:
    0 34px 70px -38px rgba(0, 0, 0, .9),
    0 0 80px -30px rgba(200, 255, 77, .42),
    inset 0 0 46px -22px rgba(200, 255, 77, .3);
}

.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.capture-label {
  display: block;
  margin: 0 2px 10px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -.01em;
}

.capture-row {
  display: flex;
  gap: 10px;
}

.capture input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 58px;
  padding: 0 20px;
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  background: rgba(7, 12, 24, .82);
  color: var(--text);
  font: 400 1rem/1.2 var(--sans);
  caret-color: var(--signal);
  transition: border-color .18s ease, box-shadow .18s ease;
  -webkit-appearance: none;
          appearance: none;
}

.capture input[type="email"]::placeholder { color: #6F81A5; opacity: 1; }

.capture input[type="email"]:hover { border-color: #3A4D7C; }

.capture input[type="email"]:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow:
    0 0 0 4px rgba(200, 255, 77, .16),
    inset 0 0 22px -10px rgba(200, 255, 77, .45);
}

.capture input[type="email"][aria-invalid="true"] {
  border-color: var(--alert);
  box-shadow: 0 0 0 4px rgba(255, 157, 138, .14);
}

.capture button[type="submit"] {
  flex: none;
  height: 58px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: var(--signal);
  color: #0A1020;
  font: 700 1rem/1 var(--sans);
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    0 12px 28px -12px rgba(200, 255, 77, .7),
    inset 0 -2px 0 rgba(10, 16, 32, .16);
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.capture button[type="submit"]:hover {
  transform: translateY(-1px);
  background: var(--signal-hot);
  box-shadow:
    0 16px 32px -12px rgba(200, 255, 77, .8),
    inset 0 -2px 0 rgba(10, 16, 32, .16);
}

.capture button[type="submit"]:active { transform: translateY(0); }

.capture button[type="submit"]:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.capture.is-submitting button[type="submit"],
.capture button[type="submit"]:disabled {
  opacity: .62;
  cursor: progress;
  transform: none;
}

/* One line under the field: the consent by default, the invalid-email
   message in its place when needed, so the card never changes height. */
.capture-hint { margin: 13px 2px 0; }

#email-error {
  font-size: .875rem;
  line-height: 1.4;
  color: var(--alert);
}

.consent {
  font-family: var(--mono);
  font-size: .75rem;
  line-height: 1.55;
  color: var(--slate);
}

#email-error:not([hidden]) + .consent { margin-top: 8px; }

@supports selector(:has(*)) {
  .capture-hint { display: grid; align-items: center; }
  .capture-hint > * { grid-area: 1 / 1; }
  .capture-hint:has(#email-error:not([hidden])) .consent { visibility: hidden; margin-top: 0; }
}

/* Success takes over the whole card, same footprint. */
#capture-success {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 26px;
  border-radius: 21px;
  background: linear-gradient(180deg, #1C2C2A, #121F22);
  box-shadow:
    inset 0 0 0 1px rgba(200, 255, 77, .4),
    inset 0 0 64px -26px rgba(200, 255, 77, .5);
  color: #E6FFAE;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  animation: confirm .45s cubic-bezier(.2, .7, .2, 1) both;
}

#capture-success::before {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.6 8.6l2.9 2.9 5.9-6.6' fill='none' stroke='%230A1020' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  box-shadow: 0 0 20px -2px rgba(200, 255, 77, .75);
}

@keyframes confirm {
  from { opacity: 0; transform: scale(.985); }
  to   { opacity: 1; transform: none; }
}

.capture.is-done .capture-label,
.capture.is-done .capture-row,
.capture.is-done .capture-hint { visibility: hidden; }

#capture-error {
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 157, 138, .34);
  border-radius: 12px;
  background: rgba(255, 157, 138, .09);
  color: #FFB8AA;
  font-size: .9375rem;
  font-weight: 600;
}

/* ---------- signal visual + chip ---------- */

.hero-visual {
  position: relative;
  min-width: 0;
  --marker-x: 42%;
}

.scope {
  position: relative;
  width: 100%;
  aspect-ratio: 640 / 476;
}

.scope-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.chip {
  position: relative;
  left: var(--marker-x);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 244px;
  height: 38px;
  margin-left: -122px;
  border: 1px solid rgba(147, 164, 196, .24);
  border-radius: 999px;
  background: rgba(13, 22, 40, .86);
  font-family: var(--mono);
  font-weight: 500;
  font-size: .8125rem;
  color: #D2DCF0;
  white-space: nowrap;
}

.chip-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  animation: chip-pulse 2.4s ease-out infinite;
}

@keyframes chip-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200, 255, 77, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(200, 255, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 255, 77, 0); }
}

.chip-text { transition: opacity .3s ease; }

/* ---------- brought to you by ---------- */

.presented {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 30px;
  padding: 22px 0 26px;
}

.presented::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 255, 77, .5), rgba(147, 164, 196, .26) 16%, rgba(147, 164, 196, .14) 62%, transparent);
}

#presented-label {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--slate);
  white-space: nowrap;
}

.presented-logos {
  display: flex;
  align-items: center;
  gap: 32px;
}

.presented a {
  display: inline-flex;
  border-radius: 10px;
  opacity: .88;
  transition: opacity .2s ease;
}

.presented a:hover,
.presented a:focus-visible { opacity: 1; }

.presented a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 6px;
}

.presented img {
  display: block;
  width: auto;
}

.logo-bridge {
  height: 72px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(147, 164, 196, .2);
}

.logo-mindmodel { height: 44px; }

/* ---------- one page-load moment ---------- */

@keyframes settle {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: none; }
}

.headline, .announce, .where, .details, .support, .capture, .chip {
  animation: settle .8s cubic-bezier(.2, .7, .2, 1) both;
}

.announce { animation-delay: .1s; }
.where    { animation-delay: .13s; }
.details  { animation-delay: .16s; }
.support  { animation-delay: .19s; }
.capture  { animation-delay: .24s; }
.chip     { animation-delay: .9s; }

/* ---------- stacked layout ---------- */

@media (max-width: 900px) {
  .masthead { height: 68px; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 18px 0 44px;
  }

  .headline { font-size: clamp(4.2rem, 21.5vw, 8.5rem); }

  .capture { max-width: none; }

  .scope { aspect-ratio: 16 / 10; }

  .presented { gap: 16px 22px; padding: 20px 0 28px; }
  .logo-bridge { height: 64px; }
  .logo-mindmodel { height: 40px; }
}

@media (max-width: 520px) {
  .capture { padding: 20px 18px 18px; border-radius: 20px; }
  .capture-row { flex-direction: column; }
  .capture input[type="email"],
  .capture button[type="submit"] { width: 100%; flex: none; }
  .chip { width: 232px; margin-left: -116px; }
  .scope { aspect-ratio: 350 / 290; }
}

/* ---------- reduced motion: everything present, nothing looping ---------- */

@media (prefers-reduced-motion: reduce) {
  .backdrop-grid::before,
  .chip-dot,
  #capture-success,
  .headline, .announce, .where, .details, .support, .capture, .chip { animation: none; }

  .mote { animation: none; opacity: .5; }

  .capture button[type="submit"],
  .capture input[type="email"],
  .capture,
  .chip-text,
  .presented a { transition: none; }

  .capture button[type="submit"]:hover { transform: none; }
}
