/* ==========================================================================
   POLIXNEO ROBOTICS — home page (bright & friendly)
   ========================================================================== */

/* ------------------------------------------------------------------ Hero - */
.hero { padding: 60px 0 70px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin: 20px 0; }
.hero h1 .hl { color: var(--yellow-deep); position: relative; white-space: nowrap; }
.hero h1 .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 14px; background: var(--yellow); opacity: 0.4; border-radius: 8px; z-index: -1; }
.hero p.lead { max-width: 480px; font-size: 1.18rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__stats { display: flex; gap: 34px; margin-top: 40px; }
.hero__stat b { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--ink); }
.hero__stat span { font-weight: 700; font-size: 0.9rem; color: var(--ink-2); }

/* 3D hero — transparent, floating over the page (no box) */
.hero3d-wrap {
  position: relative;
  min-height: clamp(440px, 48vw, 660px);
}
.hero3d-wrap::before { /* soft sunny halo behind the floating robot */
  content: "";
  position: absolute;
  inset: 6% 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, rgba(255, 226, 138, 0.55), rgba(255, 226, 138, 0.22) 45%, transparent 70%);
  filter: blur(14px);
  z-index: 0;
}
.hero3d, .hero-spline { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; }
.hero-spline::part(logo) { display: none; } /* hide watermark where the plan permits */

/* --------------------------------------------------------------- Marquee - */
.marquee { background: var(--ink); padding: 16px 0; overflow: hidden; }
.marquee__row { display: flex; gap: 18px; align-items: center; white-space: nowrap; width: max-content; animation: slide 24s linear infinite; }
.marquee span { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: #fff; display: inline-flex; align-items: center; gap: 18px; }
.marquee .ic { width: 18px; height: 18px; color: var(--yellow); }

/* ------------------------------------------------------- What you can do - */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--sh-1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feat:hover { transform: translateY(-6px); box-shadow: var(--sh-2); }
.feat__icon { width: 64px; height: 64px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 20px; color: #fff; transition: transform 0.3s var(--ease); }
.feat:hover .feat__icon { transform: rotate(-8deg) scale(1.08); }
.feat__icon .ic { width: 32px; height: 32px; }
.feat:nth-child(1) .feat__icon { background: var(--yellow); color: var(--ink); }
.feat:nth-child(2) .feat__icon { background: var(--teal); }
.feat:nth-child(3) .feat__icon { background: var(--coral); }
.feat:nth-child(4) .feat__icon { background: var(--ink); }
.feat h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feat p { color: var(--ink-2); font-size: 0.96rem; }

/* --------------------------------------------------------------- Kits ---- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.kit {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-1);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.kit:hover { transform: translateY(-6px); box-shadow: var(--sh-3); }

.kit__view {
  position: relative;
  aspect-ratio: 16 / 11;
  background: radial-gradient(75% 80% at 50% 38%, #ffffff, #fff2cf);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.kit__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 0.6s var(--ease); }
.kit__canvas.is-ready { opacity: 1; }
.kit__loading { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--yellow-soft); border-top-color: var(--yellow-deep); animation: spin 0.9s linear infinite; }
.kit__placeholder { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; color: var(--yellow-deep); opacity: 0.55; }
.kit__placeholder .ic { width: 72px; height: 72px; }
.kit__level { position: absolute; top: 14px; left: 14px; z-index: 2; box-shadow: var(--sh-1); }
.kit__cat { position: absolute; top: 12px; right: 14px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.kit__cat .ic { width: 20px; height: 20px; }
.kit__spin-tip { position: absolute; bottom: 12px; left: 14px; z-index: 2; font-family: var(--font-display); font-weight: 700; font-size: 0.74rem; color: var(--ink-2); background: rgba(255,255,255,0.85); border-radius: var(--pill); padding: 4px 10px; display: inline-flex; align-items: center; gap: 5px; }
.kit__spin-tip .ic { width: 13px; height: 13px; }

.kit__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.kit__body h3 { font-size: 1.4rem; }
.kit__tagline { color: var(--ink-2); font-size: 0.98rem; margin: 6px 0 16px; }
.kit__specs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.kit__actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.kit__actions .btn { width: 100%; }
.kit__soon { width: 100%; justify-content: center; background: var(--surface-2); color: var(--ink-3); border-color: var(--line); cursor: default; box-shadow: none; }
.kit__soon:hover { transform: none; }
.kit--soon .kit__view { filter: saturate(0.55); }
.kit__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; z-index: 1; }

/* ----------------------------------------------------- In action (reels) - */
.reels { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.reel { position: relative; width: min(300px, 80vw); aspect-ratio: 9 / 16; border-radius: var(--r-xl); overflow: hidden; background: #0e131c; border: 6px solid #fff; box-shadow: var(--sh-3); cursor: pointer; transition: transform 0.3s var(--ease); }
.reel:hover { transform: translateY(-6px); }
.reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, rgba(14,19,28,0.15), rgba(14,19,28,0.5)); transition: opacity 0.3s; }
.reel__play > span { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--ink); box-shadow: var(--sh-2); }
.reel__play .ic { width: 26px; height: 26px; margin-left: 3px; }
.reel.playing .reel__play { opacity: 0; pointer-events: none; }
.reel__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 28px 16px 14px; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: #fff; background: linear-gradient(transparent, rgba(7,10,15,0.78)); pointer-events: none; }

/* ----------------------------------------------------------- Process ----- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px; box-shadow: var(--sh-1); text-align: center; transition: transform 0.3s var(--ease); }
.step:hover { transform: translateY(-5px); }
.step__num { width: 56px; height: 56px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--ink); background: var(--grad); box-shadow: var(--sh-pop); }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--ink-2); }
.step__icon { color: var(--teal); margin-bottom: 10px; }
.step__icon .ic { width: 30px; height: 30px; }

/* ------------------------------------------------------------- CTA band -- */
.cta { position: relative; text-align: center; padding: 64px 32px; border-radius: var(--r-xl); background: var(--grad); box-shadow: var(--sh-3); overflow: hidden; }
.cta::before { content: ""; position: absolute; top: -40px; right: -30px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.cta::after { content: ""; position: absolute; bottom: -50px; left: -20px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); position: relative; }
.cta p { color: rgba(30, 34, 51, 0.75); max-width: 460px; margin: 14px auto 28px; font-weight: 600; position: relative; }
.cta .btn { position: relative; }

/* ------------------------------------------------------ Humanoid page ---- */
.humanoid-photo { position: relative; max-width: 460px; margin-inline: auto; padding: 22px; border-radius: var(--r-xl); background: radial-gradient(78% 78% at 50% 32%, #ffffff, #fff3d4); box-shadow: var(--sh-3); }
.humanoid-photo::before { content: ""; position: absolute; inset: 8% 12%; border-radius: 50%; background: radial-gradient(circle at 50% 45%, rgba(20,194,178,0.20), transparent 70%); filter: blur(16px); z-index: 0; }
.humanoid-photo img { position: relative; z-index: 1; width: 100%; height: auto; border-radius: var(--r-lg); }
.cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; margin-top: 6px; }

/* On-page 3D stage (Poli page) */
.poli-stage { position: relative; height: clamp(440px, 62vh, 660px); border-radius: var(--r-xl); overflow: hidden; background: radial-gradient(62% 62% at 50% 42%, #1b2231, #0e131c 55%, #070a0f); box-shadow: var(--sh-3); }
.poli-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: pan-y; cursor: grab; }
.poli-stage canvas:active { cursor: grabbing; }
.poli-stage__loader { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: #eef1f8; font-family: var(--font-display); font-weight: 800; }
.poli-stage__hint { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; color: #e7eaf2; background: rgba(12,16,24,0.6); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--pill); padding: 8px 16px; backdrop-filter: blur(6px); }
.poli-stage__hint .ic { width: 16px; height: 16px; color: var(--yellow); }
.poli-stage__chat { position: absolute; top: 16px; right: 16px; background: #fff; color: var(--ink); box-shadow: var(--sh-2); }

/* Meet-Poli promo band (home) */
.promo { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; box-shadow: var(--sh-2); }
.promo__media { border-radius: var(--r-lg); background: radial-gradient(75% 75% at 50% 35%, #ffffff, #fff3d4); padding: 14px; display: grid; place-items: center; }
.promo__media img { width: 100%; max-width: 300px; height: auto; }
.promo__body h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 14px 0 10px; }
.promo__body p { color: var(--ink-2); margin-bottom: 22px; max-width: 460px; }

/* ------------------------------------------------------------ Responsive - */
@media (max-width: 760px) {
  .promo { grid-template-columns: 1fr; text-align: center; }
  .promo__body p { margin-inline: auto; }
  .promo__media img { max-width: 240px; }
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero__cta, .hero__stats { justify-content: center; }
  .hero__art { order: -1; }
  .hero3d-wrap { max-width: 380px; margin-inline: auto; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .feats { grid-template-columns: 1fr; }
  .hero__stats { gap: 22px; }
}
