/*
 * Colors: Maayan product-designer recommendation (4 Dec 2026).
 * Recommendation for this page — not a final approval from Yonatan.
 */
:root {
  --bg: #070b14;
  --text: #eef3f9;
  --headline: #ffffff;
  --caret: #14c8de;
  --ring-outer: #14c8de;
  --ring-inner: #1d6fe8;
  --hue-blue: #1d6fe8;
  --hue-cyan: #14c8de;
  --muted: color-mix(in srgb, var(--text) 68%, transparent);
  --cta-bg: color-mix(in srgb, var(--hue-cyan) 18%, transparent);
  --cta-border: color-mix(in srgb, var(--hue-cyan) 55%, transparent);
  --stage-pad: clamp(1rem, 4vw, 2.5rem);
  --hud-size: min(58vw, 58vh, 420px);
  --font: "Rubik", "Segoe UI", Tahoma, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  position: relative;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, color-mix(in srgb, var(--hue-blue) 22%, transparent) 0%, transparent 62%),
    radial-gradient(ellipse 90% 70% at 80% 0%, color-mix(in srgb, var(--hue-cyan) 12%, transparent) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 10% 100%, color-mix(in srgb, var(--hue-blue) 14%, transparent) 0%, transparent 55%),
    var(--bg);
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--stage-pad);
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  align-items: center;
  justify-items: center;
  text-align: center;
  gap: clamp(0.65rem, 2vh, 1.15rem);
}

.brand {
  margin: 0;
  font-size: clamp(2.35rem, 9vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--headline);
  text-shadow: 0 0 28px color-mix(in srgb, var(--hue-cyan) 35%, transparent);
  animation: brand-in 0.9s ease-out both;
}

.headline {
  margin: 0;
  max-width: 100%;
  width: 100%;
  min-height: 2.6em;
  font-size: clamp(1.15rem, 4.6vw, 1.85rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--headline);
  overflow-wrap: anywhere;
  word-break: break-word;
  animation: fade-up 0.8s ease-out 0.12s both;
}

.headline-text {
  display: inline;
}

.caret {
  display: inline-block;
  width: 0.08em;
  min-width: 2px;
  height: 1em;
  margin-inline-start: 0.12em;
  vertical-align: -0.12em;
  background: var(--caret);
  box-shadow: 0 0 10px color-mix(in srgb, var(--caret) 70%, transparent);
  animation: caret-blink 1s steps(1) infinite;
}

.subtitle {
  margin: 0;
  max-width: 34rem;
  width: 100%;
  font-size: clamp(0.95rem, 3.4vw, 1.1rem);
  line-height: 1.55;
  color: var(--muted);
  overflow-wrap: anywhere;
  animation: fade-up 0.8s ease-out 0.22s both;
}

.hud-wrap {
  width: var(--hud-size);
  height: var(--hud-size);
  max-width: 100%;
  display: grid;
  place-items: center;
  touch-action: pan-y;
  perspective: 720px;
  animation: hud-in 1.1s ease-out 0.18s both;
}

.hud {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  touch-action: none;
  will-change: transform;
  transform-style: preserve-3d;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--hue-cyan) 28%, transparent));
}

.hud svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.cta {
  margin: 0 0 0.35rem;
  width: 100%;
  animation: fade-up 0.8s ease-out 0.32s both;
}

.cta-link {
  display: inline-block;
  min-width: min(100%, 12rem);
  max-width: 100%;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--cta-border);
  background: var(--cta-bg);
  color: var(--headline);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 24px color-mix(in srgb, var(--hue-cyan) 18%, transparent);
}

.cta-link:hover,
.cta-link:focus-visible {
  border-color: var(--hue-cyan);
  background: color-mix(in srgb, var(--hue-cyan) 28%, transparent);
  box-shadow: 0 0 32px color-mix(in srgb, var(--hue-cyan) 30%, transparent);
  outline: none;
}

@keyframes caret-blink {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@keyframes brand-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(0.65rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hud-in {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 360px) {
  .stage {
    gap: 0.55rem;
  }

  .brand {
    font-size: clamp(2rem, 11vw, 2.5rem);
  }

  .headline {
    min-height: 3.1em;
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .headline,
  .subtitle,
  .hud-wrap,
  .cta,
  .caret {
    animation: none !important;
  }

  .caret {
    opacity: 1;
  }
}
