/* ==========================================================================
   Hero — horizontal split, content spans the full width instead of centering
   ========================================================================== */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;align-items:flex-start;
  /* move content to top, directly under navbar */
  padding-top: 60px;
  margin-top: 0;
  overflow:hidden;
  background:transparent; /* let #bg-canvas show through */
}

.hero-gradient{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    radial-gradient(ellipse 60% 50% at 10% 15%, rgba(76,224,210,0.16), transparent 60%),
    radial-gradient(ellipse 55% 45% at 92% 75%, rgba(255,133,82,0.14), transparent 60%),
    linear-gradient(180deg, rgba(11,17,32,0.34) 0%, rgba(11,17,32,0.92) 100%);
}

html[data-theme="light"] .hero-gradient{
  background: transparent;
}

.hero .container{position:relative;z-index:2;}

/* ---- Horizontal body: text left, visual right, full width ---- */
.hero-body{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,0.85fr);
  align-items:flex-start;
  gap:40px;
  /* minimal padding — content pushes to top */
  padding:0 0 56px;
  perspective:1600px;
}
@media(max-width:980px){
  .hero-body{grid-template-columns:1fr;gap:64px;}
}

.hero-content{
  max-width:640px;
  transform-style:preserve-3d;
  will-change:transform,opacity;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  margin-top: 0;
  padding-top: 0;
}

.hero-stats{transform-style:preserve-3d;will-change:transform,opacity;}

.hero-title{
  font-size:clamp(36px,5vw,60px);
  margin-bottom:12px;
}
.hero-title .accent{color:var(--teal);}

.hero-subtitle{
  font-size:clamp(16px,1.6vw,18px);
  max-width:540px;
  margin-bottom:18px;
}

.hero-cta{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:0;}

/* ---- Floating visual: right column, full-height, not a small centered blob ---- */
.hero-visual{
  position:relative;
  height:720px;
  width:100%;
  display:flex;align-items:center;justify-content:center;
  transform-style:preserve-3d;
  will-change:transform;
  margin-top: -80px
}
@media(max-width:980px){.hero-visual{height:560px;}}
@media(max-width:560px){.hero-visual{height:400px;}}

.visual-ring{
  position:absolute;border-radius:50%;
  border:1px solid var(--line-strong);
  will-change:transform,opacity;
}
.visual-ring.r1{width:420px;height:420px;animation:spin-slow 40s linear infinite;border-color:rgba(var(--teal-rgb),0.18);}
.visual-ring.r2{width:320px;height:320px;animation:spin-reverse-slow 32s linear infinite;border-color:rgba(var(--amber-rgb),0.16);}
html[data-theme="light"] .visual-ring.r1{border-color:rgba(var(--teal-rgb),0.45);}
html[data-theme="light"] .visual-ring.r2{border-color:rgba(var(--amber-rgb),0.4);}
@media(max-width:560px){
  .visual-ring.r1{width:280px;height:280px;}
  .visual-ring.r2{width:210px;height:210px;}
}

/* ---- Centered DZ badge — replaces the old phone mockup, sits inside the rings ---- */
.visual-badge{
  position:relative;
  width:220px;height:220px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(150deg, var(--teal) 0%, var(--amber) 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08) inset,
    0 30px 60px -20px rgba(76,224,210,0.35),
    var(--shadow-lg);
  animation:float-y 6s ease-in-out infinite;
  will-change:transform,opacity;
}
@media(max-width:560px){.visual-badge{width:160px;height:160px;}}

.visual-badge-glow{
  position:absolute;inset:-30px;border-radius:50%;
  background:radial-gradient(circle, rgba(76,224,210,0.28), transparent 70%);
  filter:blur(6px);
  z-index:-1;
}

.visual-badge-mark{
  font-family:var(--font-display);
  font-weight:800;
  font-size:56px;
  letter-spacing:-0.02em;
  color:var(--ink);
  line-height:1;
}
@media(max-width:560px){.visual-badge-mark{font-size:40px;}}

.float-card{
  position:absolute;
  display:flex;align-items:center;
  padding:9px 18px;border-radius:100px;
  background:var(--glass-alt);
  border:1px solid var(--glass-border);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  font-family:var(--font-display);font-weight:600;font-size:14px;color:var(--text);
  box-shadow:var(--shadow-lg);
  animation:float-y 5s ease-in-out infinite;
  will-change:transform,opacity;
}
.float-card.fc1{top:26%;left:0%;animation-delay:.2s;}
.float-card.fc2{bottom:18%;left:20%;animation-delay:1.8s;}
.float-card.fc3{top:46%;right:-14%;animation-delay:1s;}
@media(max-width:980px){
  .float-card.fc1{left:2%;}
  .float-card.fc2{left:4%;}
  .float-card.fc3{display:none;}
}
@media(max-width:560px){
  .float-card{padding:7px 14px;font-size:12.5px;}
  .float-card.fc1{top:2%;}
  .float-card.fc2{bottom:6%;}
}

/* ---- Orbit attributes: hidden at rest, revealed + revolved around the
   nucleus during the hero scroll cinematic (see heroScroll.js). Placement
   is pure CSS (rotate -> translate -> counter-rotate) driven by --angle
   (fixed per item) and --spin (animated on the wrapper, inherited down),
   so JS only ever has to touch one custom property per frame. ---- */
.orbit-attrs{
  position:absolute;inset:0;
  opacity:0;
  pointer-events:none;
  --spin:0deg;
}
.orbit-attr{
  position:absolute;top:50%;left:50%;
  display:flex;align-items:center;
  gap:8px;
  padding:8px 16px;border-radius:100px;
  background:var(--glass-alt);
  border:1px solid var(--glass-border);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  font-family:var(--font-display);font-weight:600;font-size:13px;color:var(--text);
  box-shadow:var(--shadow-lg);
  white-space:nowrap;
  transform:
    translate3d(-50%,-50%,0)
    rotate(calc(var(--angle) + var(--spin)))
    translateX(var(--orbit-radius,170px))
    rotate(calc(-1 * (var(--angle) + var(--spin))));
}
.orbit-attr:nth-child(1),
.orbit-attr:nth-child(2) {
  transform:
    translate3d(-50%,-60px,0)
    rotate(calc(var(--angle) + var(--spin)))
    translateX(var(--orbit-radius,170px))
    rotate(calc(-1 * (var(--angle) + var(--spin))));
}
.orbit-attr .oa-num{
  font-family:var(--font-mono);
  color:var(--amber);
  font-size:11.5px;
  letter-spacing:.02em;
}
@media(max-width:1100px){
  .orbit-attr{--orbit-radius:142px;font-size:11.5px;padding:6px 12px;}
}

.process-cinematic{
  position:relative;
  max-width:420px;
  opacity:0;
  transform:translateY(8px);
  pointer-events:none;
  z-index:3;
  margin:0 0 8px;
}
.process-cinematic .eyebrow{margin-bottom:10px;}
.process-cinematic h2{
  margin:0;
  font-size:clamp(20px,2.2vw,30px);
  line-height:1.15;
  max-width: 100%;
}
@media(max-width:980px){
  .process-cinematic{opacity:1;transform:none;}
}

/* Improve crispness when orbit items are transformed/moved to center */
.orbit-attr,
.visual-badge,
.visual-badge-mark{
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  will-change: transform, opacity;
}

/* ---- Stats bar spans full horizontal width beneath the split ---- */
.hero-stats{
  display:flex;gap:0;
  border-top:1px solid var(--line);
  padding-top:16px;
}
.hero-stats .stat{flex:1;padding-right:24px;}
.hero-stats .stat:not(:last-child){border-right:1px solid var(--line);}
.stat .num{font-family:var(--font-display);font-size:34px;font-weight:700;color:var(--text);display:flex;align-items:baseline;}
.stat .num .suffix{color:var(--teal);font-size:22px;margin-left:2px;}
.stat .label{font-size:12.5px;color:var(--muted);margin-top:6px;font-family:var(--font-mono);letter-spacing:.02em;}
@media(max-width:700px){
  .hero-stats{flex-wrap:wrap;gap:24px 0;}
  .hero-stats .stat{flex:1 1 45%;border-right:none !important;padding-right:0;}
}
