/* ============================================================
   ORBIT SYSTEM — Hardware page (standalone)
   Reuses style.css tokens/typography. Cinematic, frameless.
   ============================================================ */

.hw-page {
  overflow-x: hidden;
}

.hw-page main {
  width: 100%;
}

/* ── Hero ── */
.hw-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

/* Big animated word behind the model */
.hw-bg-text {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.16);
  pointer-events: none;
  user-select: none;
  animation: hw-bg-in 2.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hw-bg-in {
  0%   { opacity: 0;    filter: blur(22px); transform: scale(1.06); }
  55%  { opacity: 1;    filter: blur(0px);  transform: scale(1); }
  100% { opacity: 1;    filter: blur(3px);  transform: scale(1); }
}

/* Model + light base */
.hw-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hw-base {
  position: absolute;
  left: 50%;
  bottom: 3%;
  width: min(1040px, 76vw);
  height: 26vh;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(228, 234, 255, 0.30) 0%, rgba(150, 170, 255, 0.12) 42%, rgba(0, 0, 0, 0) 72%);
  filter: blur(16px);
  pointer-events: none;
}

#hardwareModel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Bottom-left control: toggle + 4 feature blocks */
.hw-hero-bottom {
  position: absolute;
  left: clamp(24px, 5vw, 80px);
  bottom: clamp(28px, 7vh, 64px);
  z-index: 4;
  width: min(900px, 74vw);
}

.hw-kicker {
  font-size: clamp(14px, 1.25vw, 19px);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--text);
  margin: 0 0 18px;
}

.hw-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hw-toggle-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 9px 24px;
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
}

.hw-toggle-btn:hover {
  color: var(--text);
}

.hw-toggle-btn.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
}

.hw-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.hw-feature {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  padding: 16px 18px;
  transition: border-color 0.3s;
}

.hw-feature:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.hw-feature h3 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}

/* ── Desktop: hero fills the available viewport height ── */
@media (min-width: 901px) {
  .hw-page {
    height: 100svh;
    overflow: hidden;
  }

  .hw-page main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
  }

  .hw-hero {
    flex: 1 1 auto;
    min-height: 0;
  }
}

/* ── Mobile / tablet: model first, text blocks below it ── */
@media (max-width: 900px) {
  .hw-hero {
    min-height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }

  .hw-bg-text {
    inset: 0 0 auto 0;
    height: 58svh;
  }

  .hw-hero-visual {
    position: relative;
    inset: auto;
    width: 100%;
    height: 58svh;
    min-height: 380px;
    order: 1;
  }

  .hw-base {
    bottom: 2%;
    width: 86vw;
    height: 20%;
  }

  .hw-hero-bottom {
    position: static;
    order: 2;
    width: 100%;
    padding: 22px 24px 44px;
  }

  .hw-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hw-features {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hw-bg-text {
    animation: none;
    opacity: 1;
    filter: blur(3px);
  }
}
