/* =========================
   RESET
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: #000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    system-ui, sans-serif;
  color: #f9fafb;

  --accent: #c9ff72;
  --accent-soft: rgba(201, 255, 114, 0.6);
  --accent-dim: rgba(201, 255, 114, 0.25);

  --cursor-x: 50vw;
  --cursor-y: 50vh;
  --mouse-x: 0;
  --mouse-y: 0;
  --scroll-y: 0;
}

/* =========================
   STARFIELD BACKGROUND
   ========================= */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    radial-gradient(circle at 50% 50%, #ffffff10 0%, transparent 70%),
    url("https://www.transparenttextures.com/patterns/stardust.png");
  opacity: 0.22;
  background-size: 900px;
}

body::after {
  background:
    radial-gradient(circle at 20% 20%, rgba(201, 255, 114, 0.16), transparent 65%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.04), transparent 65%);
  animation: nebula-move 45s ease-in-out infinite alternate;
}

@keyframes nebula-move {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-40px, -30px, 0); }
}

/* =========================
   CURSOR LIGHT
   ========================= */
.cursor-light {
  position: fixed;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.38), transparent 72%);
  filter: blur(26px);
  transform: translate(-50%, -50%);
  top: var(--cursor-y);
  left: var(--cursor-x);
  transition: top 0.06s linear, left 0.06s linear;
  z-index: 9999;
}

body { cursor: default; }

/* =========================
   GLOBAL HEADER
   ========================= */
.global-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 16px 40px 24px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent);
  pointer-events: none;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.header-left,
.header-center,
.header-right {
  pointer-events: auto;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(249, 250, 251, 0.8);
}

.header-center {
  text-align: center;
  flex: 1;
  padding-top: 4px;
}

/* .header-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(249, 250, 251, 0.6);
  margin-bottom: 4px;
}

.header-eyebrow span {
  color: var(--accent);
} */

#section-title {
  font-size: 2.6rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-top: 0;      /* חדש */
}

#section-subtitle {
  margin-top: 4px;
  font-size: 0.95rem;
  color: rgba(249, 250, 251, 0.72);
  max-width: 560px;
  margin-inline: auto;
}

.header-right {
  font-size: 0.8rem;
  color: rgba(249, 250, 251, 0.6);
}

.header-meta {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
   color: rgba(249, 250, 251, 0.6);
  padding: 6px 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(249, 250, 251, 0.8);
}

/* =========================
   SECTION NAV
   ========================= */
.section-nav {
  position: fixed;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
}

.section-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-nav li {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}

.section-nav li:hover {
  opacity: 0.75;
  transform: translateX(2px);
}

.section-nav li.active {
  opacity: 1;
  transform: translateX(4px);
}

.nav-index {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(249, 250, 251, 0.7);
}

.nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 1px solid rgba(249, 250, 251, 0.6);
}

.section-nav li.active .nav-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 255, 114, 0.18);
}

/* =========================
   PARTICLES
   ========================= */
.particle-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff, rgba(255, 255, 255, 0));
  opacity: 0.7;
  mix-blend-mode: screen;
  animation: particle-drift 14s linear infinite alternate;
}

@keyframes particle-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(8px, -10px, 0); }
}

/* mouse parallax */
.particle {
  transform: translate3d(
    calc(var(--mouse-x) * var(--depth-x)),
    calc(var(--mouse-y) * var(--depth-y)),
    0
  );
}

/* =========================
   MAIN PANELS
   ========================= */
.supernova {
  scroll-snap-type: y mandatory;
  scroll-padding-top: 15vh;
}

.panel {
  height: 140vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  overflow: hidden;
  padding: 90px 16px 60px;
  position: relative;
}

.panel-inner {
  position: relative;
  width: min(82vw, 1200px);
  aspect-ratio: 16 / 9;
  border-radius: 32px;
  overflow: hidden;
  transform-style: preserve-3d;

  background:
    radial-gradient(circle at 10% 10%, #050607, #020202 55%, #000 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow:
    0 0 50px rgba(0, 0, 0, 0.9),
    0 0 120px rgba(201, 255, 114, 0.18);

  animation: panel-enter 1.1s ease-out both;
}

@keyframes panel-enter {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.panel-inner {
  transform: translateY(calc(var(--scroll-y) * -0.02));
}

/* CTA footer on last section */
.panel-footer {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding-bottom: 40px;
}

/* =========================
   CTA BUTTON
   ========================= */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  border-radius: 60px;
  color: #000;
  font-weight: 620;
  font-size: 1.15rem;
  background: #c9ff72;
  text-decoration: none;
  transition: 0.25s ease-out;
}

.cta-btn svg {
  width: 18px;
  height: 18px;
  stroke: #000;
  stroke-width: 2;
  transition: transform 0.25s ease-out;
}

.cta-btn:hover {
  background: #d4ff88;
  transform: translateY(-2px);
}

.cta-btn:hover svg {
  transform: translateX(4px);
}

/* =========================
   NEURON NET
   ========================= */
.neuron-net {
  position: absolute;
  inset: -20%;
  background-image:
    repeating-linear-gradient(
      120deg,
      rgba(148, 163, 184, 0.09) 0,
      rgba(148, 163, 184, 0.09) 1px,
      transparent 1px,
      transparent 12px
    ),
    repeating-linear-gradient(
      -120deg,
      rgba(55, 65, 81, 0.13) 0,
      rgba(55, 65, 81, 0.13) 1px,
      transparent 1px,
      transparent 12px
    );
  opacity: 0.6;
  mix-blend-mode: screen;
  animation: neuron-flow 30s linear infinite;
  z-index: 1;
}

@keyframes neuron-flow {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50px, -40px, 0); }
}

.neuron-net::before,
.neuron-net::after {
  content: "";
  position: absolute;
  border-radius: 32px;
  inset: 18%;
  background:
    radial-gradient(circle at 20% 30%, var(--accent-dim), transparent 55%),
    radial-gradient(circle at 70% 65%, rgba(255, 255, 255, 0.12), transparent 60%);
  mix-blend-mode: screen;
  animation: neuron-pulse 7s ease-in-out infinite alternate;
}

.neuron-net::after {
  inset: 30%;
  opacity: 0.5;
  filter: blur(6px);
}

@keyframes neuron-pulse {
  from { transform: scale(1); opacity: 0.4; }
  to   { transform: scale(1.06); opacity: 0.9; }
}

/* =========================
   ORBITS
   ========================= */
.orbits {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.orbits::before,
.orbits::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 0 25px rgba(15, 23, 42, 0.9);
  opacity: 0.8;
}

.orbits::before {
  width: 150px;
  height: 150px;
  top: 12%;
  left: 8%;
  animation: orbit-planet-1 26s linear infinite;
}

.orbits::after {
  width: 220px;
  height: 220px;
  bottom: -10%;
  right: -6%;
  animation: orbit-planet-2 34s linear infinite;
}

@keyframes orbit-planet-1 {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(30px, 40px, 0) rotate(360deg); }
}

@keyframes orbit-planet-2 {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-40px, -25px, 0) rotate(-360deg); }
}

/* =========================
   3D IMAGE STACK
   ========================= */
.image-3d {
  position: absolute;
  inset: 10%;
  transform-style: preserve-3d;
  z-index: 3;
}

.image-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-layer img {
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  filter: brightness(1.02) contrast(1.04);
  mask-image: radial-gradient(circle at center, black 80%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 80%, transparent 100%);
}

/* depth sizing */
.layer-back img {
  max-width: 72%;
  max-height: 72%;
}
.layer-mid img {
  max-width: 82%;
  max-height: 82%;
}
.layer-front img {
  max-width: 92%;
  max-height: 92%;
}

/* hologram shine */
.hologram::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background:
    linear-gradient(
      115deg,
      rgba(201, 255, 114, 0) 0%,
      rgba(201, 255, 114, 0.4) 40%,
      rgba(255, 255, 255, 0.35) 60%,
      rgba(201, 255, 114, 0) 100%
    );
  mix-blend-mode: screen;
  opacity: 0.55;
  transform:
    translateX(calc(var(--mouse-x) * 32px))
    translateY(calc(var(--mouse-y) * 32px));
  transition: transform 0.12s ease-out;
}

/* bloom */
.hologram::before {
  content: "";
  position: absolute;
  inset: -6%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(201, 255, 114, 0.4),
    rgba(15, 23, 42, 0.9),
    transparent 75%
  );
  filter: blur(50px);
  opacity: 0.35;
  z-index: -2;
}

/* halo */
.image-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle,
    rgba(201, 255, 114, 0.36),
    rgba(15, 23, 42, 0.86),
    transparent 70%
  );
  filter: blur(40px);
  opacity: 0.65;
  z-index: -1;
}

/* floating motion */
.layer-mid img { animation: float-mid 18s ease-in-out infinite alternate; }
.layer-front img { animation: float-front 14s ease-in-out infinite alternate; }
.layer-back img { animation: float-back 22s ease-in-out infinite alternate; }

@keyframes float-mid {
  from { transform: translateY(0); }
  to   { transform: translateY(-14px); }
}
@keyframes float-front {
  from { transform: translateY(4px); }
  to   { transform: translateY(-18px); }
}
@keyframes float-back {
  from { transform: translateY(0); }
  to   { transform: translateY(9px); }
}


@media (max-width: 900px) {
  .global-header {
    padding: 12px 16px 18px;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .header-center {
    text-align: left;
  }

  #section-title {
    font-size: 2rem;
  }

  #section-subtitle {
    font-size: 0.9rem;
  }

  .section-nav {
    left: 16px;
  }

  .panel {
    padding-inline: 12px;
  }

  .panel-inner {
    width: min(94vw, 1200px);
    border-radius: 24px;
  }

  .image-3d {
    inset: 12%;
  }
}

@media (max-width: 600px) {
  .section-nav {
    display: none;
  }

  .supernova {
    scroll-padding-top: 20vh;
  }

  .panel {
    height: 130vh;
  }
}
.cta-footer {
  width: 100%;
 padding: 20px 0 40px;
display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

.cta-footer .cta-btn {
  margin-top: 40px;
}
.header-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  transition: 0.25s ease-out;
  background: rgba(255, 255, 255, 0.03);      
  border: 1px solid rgba(255, 255, 255, 0.12); 
  color: rgba(255, 255, 255, 0.82);           
  backdrop-filter: blur(6px);
}

.primary-btn {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
}

.primary-btn:hover,
.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}


@media (max-width: 900px) {

  .section-nav {
    display: none;
    visibility: hidden;
    width: 0;
    opacity: 0;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .header-left,
  .header-right {
    order: 3;
    display: flex;
    gap: 12px;
  }

  .header-left .header-btn,
  .header-right .header-btn {
    display: inline-flex;
    padding: 7px 16px;
    font-size: 0.75rem;
  }

  .header-center {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #section-title {
    font-size: 2.2rem;
    margin-bottom: 6px;
    text-align: center;
  }

  #section-subtitle {
    font-size: 1rem;
    text-align: center;
    max-width: 360px;
  }

  /* Main panel sizing */
  .panel {
    height: 115vh;       /* slightly shorter so content fits */
    padding-top: 140px;  /* balanced space below header */
  }

  .panel-inner {
    width: 96vw;          /* more breathing room horizontally */
    aspect-ratio: 16/11;  /* prevents horizontal image cutoff */
    border-radius: 20px;  /* less clipping on corners */
  }

  /* Image container offset so it doesn't touch edges */
  .image-3d {
    inset: 10%;           /* was too small → caused cropping */
  }

  /* Reduce scaling so images fit fully inside container */
  .image-layer img {
    max-width: 105%;
    max-height: 105%;
  }

  .layer-front img {
    max-width: 115%;
    max-height: 115%;
  }
}
@media (max-width: 430px) {

  #section-title {
    font-size: 1.65rem;
  }

  .header-left .header-btn,
  .header-right .header-btn {
    padding: 6px 14px;
    font-size: 0.72rem;
  }

  #section-subtitle {
    font-size: 0.82rem;
  }

  .panel {
    height: 120vh;
    padding-top: 160px;
  }

  .panel-inner {
    width: 98vw;
    aspect-ratio: 16/12;  /* slightly taller = better fit */
    border-radius: 16px;
  }

  .image-3d {
    inset: 12%;
  }

  .image-layer img {
    max-width: 120%;
    max-height: 120%;
  }

  .layer-front img {
    max-width: 130%;
  }
}
