:root {
  color-scheme: dark;
  --navy: #0b1b31;
  --navy-deep: #071321;
  --navy-soft: #102945;
  --ink: #f6f9ff;
  --muted: #aab8cc;
  --line: rgba(213, 229, 255, 0.16);
  --blue: #2d9cff;
  --cyan: #4cc8ff;
  font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

html {
  background: var(--navy);
}

body {
  min-width: 320px;
  min-height: 100svh;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 53%, rgba(29, 64, 101, 0.46) 0, rgba(11, 27, 49, 0.2) 34%, transparent 62%),
    linear-gradient(145deg, var(--navy-deep) 0%, var(--navy) 48%, #0a2038 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 22%, rgba(0, 0, 0, 0.08));
}

#particle-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 94px 1fr 62px;
  width: 100%;
  min-height: 100svh;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 7.25vw, 144px);
}

.brand,
.brand-crop {
  display: block;
}

.brand {
  border-radius: 8px;
  outline-offset: 7px;
}

.brand-crop {
  position: relative;
  width: 156px;
  height: 31px;
  overflow: hidden;
}

.brand-crop img {
  position: absolute;
  top: -35px;
  left: -19px;
  width: 193px;
  height: 101px;
  display: block;
}

.secure-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(227, 237, 251, 0.72);
  font-size: 14px;
  letter-spacing: 0.01em;
}

.secure-label svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.hero {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 20px 24px 42px;
}

.hero-content {
  width: min(100%, 1500px);
  margin-top: -8px;
  text-align: center;
}

.hero-brand {
  display: flex;
  justify-content: center;
  height: 38px;
  margin-bottom: 38px;
  opacity: 0;
  transform: translateY(9px);
  animation: reveal-brand 700ms 180ms cubic-bezier(.2,.8,.2,1) forwards;
}

.brand-crop--hero {
  transform: scale(1.08);
  transform-origin: center;
}

h1 {
  min-height: 2.05em;
  max-width: 1440px;
  margin: 0 auto;
  color: #f8fbff;
  font-size: clamp(58px, 5vw, 96px);
  font-weight: 300;
  line-height: 0.99;
  letter-spacing: -0.058em;
  text-wrap: balance;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.14);
}

.headline-line {
  display: block;
  min-height: 0.99em;
}

.type-cursor {
  display: inline-block;
  width: 4px;
  height: 0.82em;
  margin-left: 8px;
  vertical-align: -0.03em;
  border-radius: 4px;
  background: linear-gradient(180deg, #65d2ff, #477dff 48%, #b16eff);
  box-shadow: 0 0 20px rgba(76, 200, 255, 0.44);
  animation: cursor-pulse 780ms steps(1, end) infinite;
}

.type-cursor.is-complete {
  animation: cursor-fade 480ms 280ms ease forwards;
}

.type-cursor[hidden] {
  display: none;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 50px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.8,.2,1);
}

.hero-actions.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(87, 190, 255, 0.92);
}

.button--primary {
  gap: 11px;
  min-width: 242px;
  color: #061321;
  background: linear-gradient(105deg, #69d6ff 0%, #3c9fff 50%, #5a8aff 100%);
  box-shadow: 0 16px 42px rgba(26, 130, 224, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.button--primary:hover {
  box-shadow: 0 20px 48px rgba(26, 130, 224, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.button--primary svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button--secondary {
  min-width: 178px;
  border-color: rgba(214, 231, 255, 0.24);
  color: rgba(246, 249, 255, 0.9);
  background: rgba(240, 247, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.button--secondary:hover {
  border-color: rgba(214, 231, 255, 0.38);
  background: rgba(240, 247, 255, 0.12);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: rgba(178, 194, 216, 0.56);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #62c9ff;
  box-shadow: 0 0 12px rgba(98, 201, 255, 0.7);
}

.demo-toast {
  position: fixed;
  z-index: 5;
  right: 24px;
  bottom: 24px;
  max-width: calc(100vw - 48px);
  padding: 13px 17px;
  border: 1px solid rgba(216, 232, 255, 0.2);
  border-radius: 12px;
  color: rgba(244, 248, 255, 0.88);
  background: rgba(5, 16, 29, 0.9);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.32);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease;
  backdrop-filter: blur(16px);
}

.demo-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes reveal-brand {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cursor-pulse {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0.2; }
}

@keyframes cursor-fade {
  to { opacity: 0; }
}

@media (max-width: 800px) {
  .page-shell {
    grid-template-rows: 78px 1fr 48px;
  }

  .site-header {
    padding: 0 20px;
  }

  .brand-crop {
    width: 156px;
    transform-origin: left center;
    transform: scale(0.86);
  }

  .brand-crop--hero {
    transform: scale(0.92);
    transform-origin: center;
  }

  .secure-label span {
    display: none;
  }

  .secure-label svg {
    width: 19px;
  }

  .hero {
    padding: 12px 20px 24px;
  }

  .hero-content {
    margin-top: -20px;
  }

  .hero-brand {
    margin-bottom: 28px;
  }

  h1 {
    min-height: 3em;
    font-size: clamp(45px, 12.4vw, 58px);
    line-height: 0.99;
    letter-spacing: -0.062em;
  }

  .headline-line:first-child {
    max-width: 10em;
    margin-inline: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 310px);
    margin: 38px auto 0;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    font-size: 10px;
  }
}

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