:root {
  color-scheme: dark;
  --ink: #071b2c;
  --ink-deep: #061826;
  --navy: #0a2540;
  --cobalt: #1267d8;
  --cyan: #12bcd2;
  --mint: #25cdbb;
  --amber: #f0a51a;
  --mist: #eef6f6;
  --paper: #ffffff;
  --soft: #f8fbfa;
  --slate: #5c6f78;
  --muted: #789098;
  --line: #d4e3e5;
  --radius-lg: 24px;
  --radius-xl: 34px;
  --shadow: 0 28px 90px rgba(10, 37, 64, 0.12);
  --shadow-soft: 0 18px 50px rgba(10, 37, 64, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 74% 12%, rgba(37, 205, 187, 0.22), transparent 22rem),
    radial-gradient(circle at 14% 78%, rgba(18, 103, 216, 0.36), transparent 24rem),
    radial-gradient(circle at 92% 92%, rgba(18, 188, 210, 0.12), transparent 20rem),
    linear-gradient(135deg, #031321 0%, #071b2c 48%, #0d4252 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--navy);
  border-radius: 999px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 0 30px;
}

.site-header,
.brand,
.scan-header,
.result-strip,
.site-footer {
  display: flex;
  align-items: center;
}

.site-header {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.brand {
  gap: 12px;
  color: var(--paper);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  box-shadow: 0 12px 26px rgba(6, 24, 38, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 22px;
  align-items: stretch;
}

.hero-copy,
.hero-visual,
.value-grid article {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(235, 246, 250, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.2);
}

.hero-copy {
  padding: clamp(28px, 5vw, 54px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cobalt);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(46px, calc(7vw - 2px), 78px);
  line-height: 0.91;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 660px;
  margin-bottom: 28px;
  color: #435b66;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.waitlist-form {
  max-width: 700px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 34px rgba(10, 37, 64, 0.06);
}

.waitlist-form label {
  display: block;
  margin-bottom: 10px;
  color: #061a2c;
  font-size: 15px;
  font-weight: 900;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.waitlist-form input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 17px;
}

.waitlist-form input:focus,
.button:focus-visible {
  outline: 3px solid rgba(18, 188, 210, 0.55);
  outline-offset: 3px;
}

.button {
  min-height: 58px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.button-primary {
  color: var(--paper);
  background: var(--navy);
  box-shadow: 0 12px 26px rgba(10, 37, 64, 0.18);
}

.button-primary:hover {
  background: var(--ink-deep);
}

.form-note {
  min-height: 23px;
  margin: 10px 0 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.5;
}

.form-note.is-success {
  color: #087e72;
  font-weight: 850;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 650px;
  padding: 34px;
  overflow: visible;
  border: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(37, 205, 187, 0.1), transparent 18rem),
    radial-gradient(circle at 10% 80%, rgba(18, 103, 216, 0.14), transparent 20rem),
    #071b2c;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.logo-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 460px);
  min-height: 0;
  margin: 0 auto 18px;
  place-items: center;
  padding: 0;
  overflow: visible;
}

.logo-stage img {
  width: min(119%, 483px);
  max-width: none;
  height: auto;
  border-radius: 0;
}

.scan-card {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  max-width: 460px;
  margin: 0 auto;
  padding: 20px;
  color: var(--ink);
  background: #ffffff;
  border: 0;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.scan-header,
.result-strip {
  justify-content: space-between;
  gap: 14px;
}

.scan-title {
  display: grid;
  gap: 4px;
}

.scan-title span:first-child {
  color: var(--slate);
  font-size: 13px;
  font-weight: 850;
}

.scan-title span:last-child {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.scan-header strong {
  color: #25cdbb;
  font-size: 24px;
}

.invoice {
  position: relative;
  display: grid;
  gap: 13px;
  min-height: 350px;
  margin: 18px 0;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(18, 188, 210, 0.1), rgba(18, 188, 210, 0)),
    var(--soft);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.invoice span {
  display: block;
  height: 12px;
  background: #dce9ea;
  border-radius: 999px;
}

.invoice span:nth-child(1) {
  width: 70%;
  background: var(--navy);
}

.invoice span:nth-child(2) {
  width: 88%;
}

.invoice span:nth-child(3) {
  width: 58%;
}

.invoice span:nth-child(4) {
  width: 76%;
  margin-top: 38px;
}

.scan-line {
  position: absolute;
  right: 18px;
  left: 18px;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--mint), transparent);
  border-radius: 999px;
  animation: scanMove 6.6s cubic-bezier(0.2, 0, 0, 1) infinite;
}

.scan-complete {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  color: #061a2c;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(37, 205, 187, 0.35);
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(6, 26, 44, 0.16);
  font-size: 14px;
  font-weight: 950;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  animation: scanCompletePop 6.6s ease-in-out infinite;
}

.result-strip {
  position: relative;
  justify-content: center;
  min-height: 56px;
  padding: 14px;
  overflow: hidden;
  background: #25cdbb;
  border: 1px solid rgba(37, 205, 187, 0.78);
  border-radius: 18px;
  transform-origin: center;
  animation: resultSlam 6.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.result-strip strong {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: 16px;
  text-align: center;
}

.result-strip::before,
.result-strip::after {
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--amber);
  border-radius: 2px;
  opacity: 0;
  animation: confettiPop 6.6s ease-in-out infinite;
}

.result-strip::before {
  left: 18%;
  box-shadow:
    18px -12px 0 var(--paper),
    44px 8px 0 rgba(18, 103, 216, 0.78),
    78px -16px 0 rgba(255, 255, 255, 0.72);
}

.result-strip::after {
  right: 18%;
  animation-delay: 0.12s;
  box-shadow:
    -18px 12px 0 var(--paper),
    -44px -8px 0 rgba(18, 103, 216, 0.78),
    -78px 16px 0 rgba(255, 255, 255, 0.72);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.value-grid article {
  background: #061a2c;
  border: 0;
  padding: 24px;
}

.value-grid h2 {
  color: #f3fafa;
}

.value-grid p {
  margin-bottom: 0;
  color: rgba(243, 250, 250, 0.74);
  font-size: 16px;
  line-height: 1.6;
}

.card-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 20px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-icon-cyan {
  color: #7beeff;
  background: rgba(18, 188, 210, 0.18);
}

.card-icon-mint {
  color: #8cf5ea;
  background: rgba(37, 205, 187, 0.18);
}

.card-icon-amber {
  color: #ffd58a;
  background: rgba(240, 165, 26, 0.18);
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 8px 4px 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.site-footer a {
  color: var(--paper);
  font-weight: 850;
}

@keyframes scanMove {
  0% {
    top: 22px;
    opacity: 0;
  }

  8% {
    top: 22px;
    opacity: 1;
  }

  42% {
    top: calc(100% - 28px);
    opacity: 1;
  }

  62% {
    top: 48%;
    opacity: 1;
  }

  68%,
  100% {
    top: 48%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .scan-line {
    top: 50%;
    opacity: 1;
  }

  .scan-complete {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  .scan-complete,
  .result-strip,
  .result-strip::before,
  .result-strip::after {
    animation: none;
  }
}

@keyframes scanCompletePop {
  0%,
  56%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.84);
  }

  62% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }

  68%,
  78% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  84% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.98);
  }
}

@keyframes resultSlam {
  0%,
  74%,
  100% {
    box-shadow: 0 0 0 rgba(37, 205, 187, 0);
    transform: scale(1);
  }

  79% {
    box-shadow: 0 0 0 14px rgba(37, 205, 187, 0.18);
    transform: scale(1.08);
  }

  83% {
    transform: scale(0.97);
  }

  89% {
    box-shadow: 0 0 0 4px rgba(37, 205, 187, 0.1);
    transform: scale(1.015);
  }
}

@keyframes confettiPop {
  0%,
  74%,
  100% {
    opacity: 0;
    transform: translateY(8px) scale(0.8) rotate(0deg);
  }

  80%,
  90% {
    opacity: 0.95;
    transform: translateY(-16px) scale(1) rotate(28deg);
  }

  96% {
    opacity: 0;
    transform: translateY(-22px) scale(0.8) rotate(48deg);
  }
}

@media (max-width: 980px) {
  .hero,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 540px;
  }

}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 22px, 1180px);
    padding-top: 16px;
  }

  .site-header {
    align-items: flex-start;
  }

  .hero-copy {
    padding: 24px 18px;
    border-radius: 28px;
  }

  h1 {
    font-size: 47px;
    line-height: 0.96;
  }

  .lead {
    font-size: 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .button,
  .waitlist-form input {
    border-radius: 18px;
  }

  .hero-visual {
    min-height: auto;
    padding: 16px;
    border-radius: 28px;
  }

  .logo-stage {
    min-height: 180px;
    padding: 16px 0;
  }

  .scan-card {
    margin-top: 8px;
  }

  .value-grid article {
    padding: 20px;
    border-radius: 26px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
