/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 88px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -260px; right: -220px;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(198, 52, 42, 0.38), rgba(255, 122, 61, 0.16) 45%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 55%, transparent 95%);
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 55%, transparent 95%);
  opacity: .5;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.06;
  margin-bottom: 22px;
}
.hero h1 .accent-text {
  background: linear-gradient(100deg, var(--accent-3), var(--accent) 60%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: 17.5px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-facts {
  display: flex; flex-direction: column; gap: 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  border-left: 2px solid var(--line);
  padding-left: 16px;
}
.hero-facts span { color: var(--teal); }
.hero-facts p { color: #ffffff; }

/* ---- hero 3D panel ---- */
.hero-visual {
  position: relative;
  height: 460px;
  perspective: 1500px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 520px; height: 420px;
  margin: -210px 0 0 -260px;
  background: radial-gradient(circle, rgba(255, 122, 61, 0.22), rgba(57, 216, 190, 0.12) 45%, transparent 72%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

/* Outer group: static isometric anchor (perspective origin, never animated) */
.hero-scene {
  position: absolute;
  top: 50%; left: 50%;
  width: 480px; height: 320px;
  margin: -160px 0 0 -240px;
  transform-style: preserve-3d;
  transform: rotateX(9deg) rotateY(-14deg);
  z-index: 1;
}

/* Inner group: pure responsive scale wrapper (no animation of its own — each
   .hs-layer inside animates independently via JS, see js/site.js) */
.hero-scene-float {
  --hero-scale: 1;
  position: relative;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: scale(var(--hero-scale));
}

.hs-layer {
  position: absolute;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  will-change: transform;
}

/* main layer: website / dashboard panel — the calm, stable focal point of the
   scene; no independent tilt of its own, everything else relates to it. */
.hs-layer--browser {
  top: 0; left: 0; width: 480px; height: 320px;
  transform: translateZ(0px);
  background: linear-gradient(155deg, #1B2138, #10131F 60%);
  overflow: hidden;
}

/* front layer: mobile app screen — clearly in front, gentle own tilt, one
   soft shadow so it lifts off the browser panel without feeling detached */
.hs-layer--mobile {
  bottom: -18px; right: -26px;
  width: 148px; height: 236px;
  padding: 14px 14px 16px;
  transform: translateZ(120px) rotateY(-9deg) rotateX(-3deg);
  background: linear-gradient(165deg, #1B2138, #0D1020 65%);
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 40px 70px -20px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hs-mobile-notch {
  width: 44px; height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
  margin: 0 auto 2px;
}
.hs-mobile-status { display: flex; gap: 4px; }
.hs-mobile-status span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal);
  opacity: .8;
}
.hs-mobile-status span:nth-child(2) { background: var(--accent-3); }
.hs-mobile-status span:nth-child(3) { background: var(--text-dim); }
.hs-mobile-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hs-mobile-icon {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-3), var(--accent) 60%, var(--accent-2));
}
.hs-mobile-lines { display: flex; flex-direction: column; gap: 6px; }
.hs-mobile-cta {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: #1A0D06;
  background: linear-gradient(135deg, var(--accent-3), var(--accent) 55%, var(--accent-2));
  border-radius: 8px;
  padding: 8px 0;
}

.panel-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 18px 12px;
}
.panel-dot { width: 9px; height: 9px; border-radius: 50%; }
.panel-dot:nth-child(1) { background: #FF6B5E; }
.panel-dot:nth-child(2) { background: #FFC857; }
.panel-dot:nth-child(3) { background: #39D8BE; }
.panel-url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 6px;
}
.panel-body { padding: 6px 20px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pb-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
}
.pb-card--wide { grid-column: 1 / -1; }
.pb-line { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); margin-bottom: 7px; }
.pb-line:last-child { margin-bottom: 0; }
.pb-bars { display: flex; align-items: flex-end; gap: 5px; height: 38px; margin-bottom: 8px; }
.pb-bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--accent-3), var(--accent)); opacity: .85; }
.pb-code { font-family: var(--font-mono); font-size: 10.5px; color: var(--teal); line-height: 1.9; }
.pb-code span { color: var(--text-dim); }

.chip {
  position: absolute;
  width: 172px;
  padding: 13px 15px;
  border-radius: 13px;
  background: rgba(19, 23, 40, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
  z-index: 2;
  will-change: transform;
}
.chip-icon {
  position: relative;
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.chip strong { display: block; font-size: 12.5px; font-weight: 600; }
.chip span { display: block; color: var(--text-dim); font-size: 11px; margin-top: 1px; }

/* Four status chips, each anchored to its own corner so they read as one
   balanced set around the browser/phone rather than crowding one side.
   Gentle idle float + mouse parallax for all of them is driven by
   js/site.js (see heroChips). */
.chip--live { top: 4%; left: -6%; }
.chip--live .chip-icon { background: rgba(57, 216, 190, 0.15); color: var(--teal); }
.chip--app { bottom: -9%; right: -7%; }
.chip--app .chip-icon { background: rgba(255, 200, 87, 0.15); color: var(--accent-3); }
.chip--api { top: 20%; right: -9%; width: 158px; }
.chip--api .chip-icon { background: rgba(255, 122, 61, 0.15); color: var(--accent); }
.chip--deploy { bottom: 2%; left: -9%; width: 158px; }
.chip--deploy .chip-icon { background: rgba(57, 216, 190, 0.15); color: var(--teal); }

.chip-pulse {
  position: absolute;
  top: -2px; right: -2px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(57, 216, 190, 0.6);
  animation: chipPulse 2s ease-out infinite;
}
@keyframes chipPulse {
  0% { box-shadow: 0 0 0 0 rgba(57, 216, 190, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(57, 216, 190, 0); }
  100% { box-shadow: 0 0 0 0 rgba(57, 216, 190, 0); }
}

.hero-caption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
  margin-top: 14px;
}
