:root {
  --bg-1: #0a0f1e;
  --bg-2: #0f1630;
  --bg-3: #070b17;
  --accent: #1e90ff;
  --accent-2: #cfe0ff;
  --text: #ffffff;
  --muted: #cfe0ff;
  --glass: rgba(255, 255, 255, 0.06);
  --shadow: 0 10px 24px rgba(30, 144, 255, 0.25);
  --surface: rgba(255, 255, 255, 0.06);
  --depth: 1200px;
  --sections: 5;
  --vh: 1vh;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
}

body {
  min-height: calc(var(--sections) * 100vh);
  min-height: calc(var(--sections) * var(--vh) * 100);
  overflow-x: hidden;
  background:
    radial-gradient(1200px 900px at 10% -10%, #0b1c3a 0%, #070b17 60%, #000 100%),
    linear-gradient(135deg, #000 0%, #001f4d 100%) fixed;
}

.backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(30, 144, 255, 0.12), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(207, 224, 255, 0.14), transparent 45%),
    linear-gradient(160deg, var(--bg-2), var(--bg-3));
  z-index: -3;
}

.floor {
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 70px
    );
  opacity: 0.2;
  transform: translateZ(-200px) scale(1.2);
  z-index: -2;
  pointer-events: none;
}

.hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 32px 48px;
  gap: 24px;
  z-index: 3;
  pointer-events: none;
}

.hud__title {
  max-width: 420px;
  pointer-events: auto;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hud__logo {
  height: 70px;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(28px, 4vw, 48px);
  margin: 0 0 12px;
  color: var(--accent);
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.question {
  margin-top: 10px;
  color: var(--text);
  font-weight: 500;
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.form-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.form-status {
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent-2);
}

.debug-output {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #020617;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
}

.action-btn {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(30, 144, 255, 0.35), rgba(30, 144, 255, 0.22));
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.action-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(30, 144, 255, 0.6);
}

.action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
}

.field input,
.field textarea,
.field select {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #020617;
  color: var(--text);
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(244, 244, 242, 0.6);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(30, 144, 255, 0.6);
}

.field input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.hint {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(244, 244, 242, 0.6);
}

.hud__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: auto;
}

.hud__menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: auto;
}

.nav-toggle {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  color: var(--text);
  cursor: pointer;
}

.hud__nav.is-collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  overflow: hidden;
}

.nav__btn {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border 0.3s ease, background 0.3s ease;
}

.nav__btn:hover {
  transform: translateX(-4px);
  border-color: rgba(30, 144, 255, 0.6);
}

.nav__btn.is-active {
  background: linear-gradient(180deg, rgba(30, 144, 255, 0.35), rgba(30, 144, 255, 0.22));
  color: #ffffff;
  border-color: transparent;
}

.scene {
  position: fixed;
  inset: 0;
  perspective: 1400px;
  perspective-origin: 50% 45%;
  overflow: hidden;
  z-index: 1;
}

body.is-mobile {
  min-height: auto;
  scroll-snap-type: y proximity;
}

body.is-mobile .scene {
  position: relative;
  perspective: none;
  overflow: visible;
}

body.is-mobile .track {
  position: static;
  transform: none !important;
}

body.is-mobile .panel {
  position: relative;
  top: auto;
  left: auto;
  transform: none !important;
  width: min(92vw, 720px);
  margin: 16px auto;
  opacity: 1 !important;
  pointer-events: auto !important;
  scroll-snap-align: start;
  scroll-margin-top: 90px;
}

body.is-mobile .panel__inner {
  max-height: none;
}

body.is-mobile .panel__inner {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body.is-mobile .panel.is-visible .panel__inner {
  opacity: 1;
  transform: translateY(0);
}

.track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(0px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.2s ease-out;
}

.panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(70vw, 680px);
  transform-style: preserve-3d;
  transform: translate(-50%, -50%);
}

.panel__inner {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
  border-radius: 28px;
  padding: 32px 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.panel__inner::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.panel h2 {
  font-size: clamp(24px, 3.4vw, 36px);
  margin: 0 0 10px;
  color: var(--accent);
}

.panel h3 {
  margin: 12px 0 8px;
  font-size: 16px;
  color: var(--text);
}

.info-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 12px;
}

.info-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.info-list li {
  margin: 6px 0;
}

.info-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.info-images img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.tag {
  display: inline-flex;
  margin-top: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(30, 144, 255, 0.18);
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .hud {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .hud__nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nav__btn {
    font-size: 12px;
    padding: 8px 14px;
  }

  .panel {
    width: min(85vw, 520px);
  }
}

@media (max-width: 900px) {
  .hud {
    padding: 18px 18px 0;
    gap: 12px;
  }

  .hud__title {
    max-width: 100%;
  }

  .hud__logo {
    height: 54px;
  }

  h1 {
    font-size: clamp(22px, 6vw, 32px);
  }

  .hud__menu {
    align-self: stretch;
    align-items: flex-start;
  }

  .nav-toggle {
    padding: 10px 16px;
  }

  .hud__nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nav__btn {
    font-size: 12px;
    padding: 10px 14px;
  }

  .panel {
    width: min(92vw, 560px);
  }

  .panel__inner {
    padding: 22px 22px;
    max-height: calc(var(--vh) * 100 - 140px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .info-images img {
    height: 140px;
  }

  .actions {
    gap: 10px;
  }

  .action-btn {
    padding: 10px 16px;
  }

  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }

  .hud__title {
    opacity: 0;
    pointer-events: none;
    height: 0;
    margin: 0;
  }

  .hud__logo {
    display: none;
  }

  .panel[data-index="8"] {
    display: none;
  }
}

@media (min-width: 1024px) {
  .hud {
    padding: 14px 24px 0;
  }

  .hud__title {
    position: fixed;
    top: 12px;
    left: 24px;
    max-width: 520px;
  }

  .hud__logo {
    height: 50px;
  }

  .eyebrow {
    font-size: 11px;
  }

  h1 {
    font-size: clamp(22px, 2.6vw, 36px);
  }

  .hud__menu {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    align-items: center;
  }

  .hud__nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav__btn {
    font-size: 12px;
    padding: 8px 12px;
  }
}

@media (hover: none) {
  .nav__btn:hover,
  .action-btn:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .track {
    transition: none;
  }
}
.hud__title.is-faded {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}
