/* ==========================================================================
   Premium hero — split layout (copy left, 3D architecture cube right),
   aurora/mesh-gradient background instead of particles, single accent color.
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-primary);
  padding-block: calc(var(--header-height) + 2rem) 4rem;
}

/* ---- Aurora / mesh-gradient background ---- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.aurora-1 {
  width: 620px;
  height: 620px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(var(--accent-1-rgb), 0.55), transparent 70%);
  animation: auroraDrift1 22s ease-in-out infinite;
}

.aurora-2 {
  width: 520px;
  height: 520px;
  bottom: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(var(--accent-2-rgb), 0.4), transparent 70%);
  animation: auroraDrift2 26s ease-in-out infinite;
}

.aurora-3 {
  width: 420px;
  height: 420px;
  top: 30%;
  right: 18%;
  background: radial-gradient(circle, rgba(var(--accent-1-rgb), 0.22), transparent 72%);
  animation: auroraDrift3 30s ease-in-out infinite;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

@keyframes auroraDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.08); }
}

@keyframes auroraDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -30px) scale(1.1); }
}

@keyframes auroraDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 50px) scale(0.94); }
}

/* ---- Layout ---- */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

.hero-copy {
  max-width: 620px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--surface-glass-strong);
  border: 1px solid var(--border-glass);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}

.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 54ch;
  margin-bottom: 2rem;
}

.hero-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.tech-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-glass);
  background: var(--surface-glass);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---- 3D architecture cube ---- */
.hero-object {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}

.cube-scene {
  position: relative;
  width: 280px;
  height: 280px;
  transform-style: preserve-3d;
  transition: transform 260ms var(--ease-out);
}

.cube-glow {
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-1-rgb), 0.35), transparent 65%);
  filter: blur(20px);
  z-index: 0;
}

.cube-ring {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-1-rgb), 0.25);
  transform-style: preserve-3d;
}

.cube-ring-1 {
  animation: ringSpin1 14s linear infinite;
  transform: rotateX(72deg);
}

.cube-ring-2 {
  inset: 48px;
  border-color: rgba(var(--accent-2-rgb), 0.22);
  animation: ringSpin2 20s linear infinite;
  transform: rotateX(72deg) rotateZ(45deg);
}

.cube {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 168px;
  height: 168px;
  transform-style: preserve-3d;
  translate: 0 0;
  animation: cubeSpin 16s linear infinite, cubeBob 4.5s ease-in-out infinite;
}

.cube-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  padding: 0.75rem;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(var(--accent-1-rgb), 0.16), rgba(13, 15, 22, 0.92));
  border: 1px solid rgba(var(--accent-1-rgb), 0.35);
  box-shadow: inset 0 0 30px rgba(var(--accent-1-rgb), 0.08);
  backface-visibility: hidden;
}

.cube-icon {
  font-size: 1.5rem;
  color: var(--accent-1);
}

.cube-front  { transform: translateZ(84px); }
.cube-back   { transform: rotateY(180deg) translateZ(84px); }
.cube-right  { transform: rotateY(90deg) translateZ(84px); }
.cube-left   { transform: rotateY(-90deg) translateZ(84px); }
.cube-top    { transform: rotateX(90deg) translateZ(84px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(84px); }

@keyframes cubeSpin {
  from { transform: rotateX(-16deg) rotateY(0deg); }
  to   { transform: rotateX(-16deg) rotateY(360deg); }
}

@keyframes cubeBob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

@keyframes ringSpin1 {
  from { transform: rotateX(72deg) rotateZ(0deg); }
  to   { transform: rotateX(72deg) rotateZ(360deg); }
}

@keyframes ringSpin2 {
  from { transform: rotateX(72deg) rotateZ(45deg); }
  to   { transform: rotateX(72deg) rotateZ(405deg); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora,
  .cube,
  .cube-ring-1,
  .cube-ring-2 {
    animation: none;
  }
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-copy {
    max-width: 100%;
    margin-inline: auto;
  }

  .hero-eyebrow,
  .hero-tech-row,
  .hero-cta {
    justify-content: center;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-object {
    order: -1;
  }

  .cube-scene {
    width: 220px;
    height: 220px;
  }

  .cube {
    width: 132px;
    height: 132px;
  }

  .cube-front, .cube-back, .cube-right, .cube-left, .cube-top, .cube-bottom {
    transform: translateZ(66px);
  }
  .cube-back   { transform: rotateY(180deg) translateZ(66px); }
  .cube-right  { transform: rotateY(90deg) translateZ(66px); }
  .cube-left   { transform: rotateY(-90deg) translateZ(66px); }
  .cube-top    { transform: rotateX(90deg) translateZ(66px); }
  .cube-bottom { transform: rotateX(-90deg) translateZ(66px); }
}

@media (max-width: 600px) {
  .hero {
    padding-block: calc(var(--header-height) + 1.5rem) 3rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }
}
