/* Spline landing hero — white light theme (matches production reference) */

.theme-spline-hero {
  --spline-neon: oklch(0.9 0.21 128);
  --spline-neon-foreground: oklch(0.2 0.03 150);
  --spline-hero-foreground: oklch(0.17 0.012 260);
  --tech-flare-blue: oklch(0.67 0.2 253);
  --tech-flare-cyan: oklch(0.82 0.13 230);
  --font-display: "Space Grotesk", "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  color: var(--spline-hero-foreground);
}

/*
  Tall pin track: the extra scroll height on desktop is what drives the
  scroll-linked typing reveal in the panel (matches void-deck's h-[260vh]).
*/
.spline-hero-pin {
  height: 100svh;
}

@media (min-width: 768px) {
  .spline-hero-pin {
    height: 260vh;
  }
}

.spline-hero {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100svh;
  max-height: 100svh;
  overflow: hidden;
  background: #fff;
}

/* Abstract background scene (scene_1) — sits behind the copy and the glows */
.spline-hero__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--background);
  pointer-events: none;
}

.spline-scene-framing {
  position: absolute;
  transform-origin: center center;
}

/* Keep the scene across the full mobile hero while pushing its blue form below the copy. */
@media (max-width: 767px) {
  .spline-scene-framing {
    inset: -30svh -20vw;
    transform: translateY(27svh);
  }
}

@media (min-width: 768px) {
  .spline-scene-framing {
    inset: -20%;
    transform: translate(10vw, 3svh);
  }
}

.spline-scene-framing canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Soft blue horizontal lines on the left — like the reference */
.spline-hero__cyber-lines {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: repeating-linear-gradient(
    to bottom,
    color-mix(in oklab, #4aa8ff 18%, transparent) 0 1px,
    transparent 1px 34px
  );
  mask-image: radial-gradient(65% 90% at 0% 45%, black, transparent 70%);
  pointer-events: none;
}

.spline-hero__glow-blue {
  position: absolute;
  left: -10%;
  top: 33%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: oklch(0.55 0.19 258 / 0.08);
  filter: blur(140px);
  pointer-events: none;
}

.spline-hero__glow-neon {
  position: absolute;
  right: 6%;
  top: 2.5rem;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--spline-neon) 8%, transparent);
  filter: blur(150px);
  pointer-events: none;
}

.spline-hero__content {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: 7rem 1.25rem 4rem;
  overflow: hidden;
  text-align: center;
  pointer-events: none;
}

.spline-hero__content .btn-neon,
.spline-hero__content a {
  pointer-events: auto;
}

@media (min-width: 640px) {
  .spline-hero__content {
    padding-inline: 2rem;
    text-align: left;
  }
}

@media (min-width: 768px) {
  .spline-hero__content {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .spline-hero__content {
    padding-inline: 3rem;
    gap: 3rem;
  }
}

.spline-hero__copy {
  position: relative;
  z-index: 20;
  max-width: 560px;
}

@media (min-width: 768px) {
  .spline-hero__copy {
    padding-right: 1rem;
  }
}

.spline-hero__panel-col {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
}

.spline-hero__title {
  max-width: 560px;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: oklch(0.17 0.012 260);
}

@media (min-width: 640px) {
  .spline-hero__title {
    margin-inline: 0;
  }
}

.spline-hero__cta-wrap {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

@media (min-width: 640px) {
  .spline-hero__cta-wrap {
    justify-content: flex-start;
  }
}

@media (min-width: 1024px) {
  .spline-hero__cta-wrap {
    margin-top: 2.5rem;
  }
}

/* ── Typed copy panel ── */
.tech-flare-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  padding: 2px;
  border-radius: 1rem;
  background: color-mix(in oklab, var(--tech-flare-blue) 14%, white);
  box-shadow: 0 12px 42px color-mix(in oklab, var(--tech-flare-blue) 12%, transparent);
}

.tech-flare-signal {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 190%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: conic-gradient(
    from 90deg,
    transparent 0deg 276deg,
    color-mix(in oklab, var(--tech-flare-blue) 25%, transparent) 292deg,
    var(--tech-flare-blue) 318deg,
    var(--tech-flare-cyan) 338deg,
    transparent 360deg
  );
  filter: drop-shadow(0 0 8px var(--tech-flare-blue));
  animation: tech-flare-circuit 4.8s linear infinite;
}

.tech-flare-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: calc(1rem - 2px);
  border: 1px solid oklch(1 0 0 / 0.6);
  /* Near-opaque so the rotating flare only shows in the 2px frame gap. */
  background: color-mix(in oklab, var(--background) 96%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem;
}

@media (min-width: 640px) {
  .tech-flare-panel {
    padding: 1.75rem;
  }
}

@media (min-width: 768px) {
  .tech-flare-panel {
    display: flex;
    align-items: flex-start;
    aspect-ratio: 1.45 / 1;
    min-height: 360px;
    padding: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .tech-flare-panel {
    min-height: 400px;
    padding: 1.75rem;
  }
}

.typing-copy {
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-ligatures: none;
  letter-spacing: 0;
  color: var(--spline-hero-foreground);
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: left;
}

.typing-copy--mobile p + p {
  margin-top: 1em;
}

.typing-copy--desktop {
  display: none;
  min-height: 10rem;
  /* Preserves the \n\n paragraph break in the scroll-typed string. */
  white-space: pre-wrap;
}

@media (min-width: 768px) {
  .typing-copy--mobile {
    display: none;
  }

  .typing-copy--desktop {
    display: block;
    font-size: 1.0625rem;
    line-height: 1.48;
  }
}

@media (min-width: 1024px) {
  .typing-copy--desktop {
    font-size: 1.25rem;
  }
}

@media (min-width: 1280px) {
  .typing-copy--desktop {
    font-size: 1.3125rem;
  }
}

.typing-caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: currentColor;
  animation: typing-caret-blink 1s steps(1) infinite;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

@keyframes tech-flare-circuit {
  to {
    transform: rotate(1turn);
  }
}

.btn-neon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2.25rem;
  border-radius: 9999px;
  background: var(--spline-neon);
  color: var(--spline-neon-foreground);
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: filter 0.3s ease;
}

.btn-neon:hover {
  filter: brightness(1.05);
}

/* No dark mobile veil on white hero */
.spline-hero__mobile-overlay {
  display: none;
}
