:root {
  --bg: #050608;
  --bg-elevated: #101119;
  --glass: rgba(10, 10, 15, 0.75);
  --glass-light: rgba(255, 255, 255, 0.06);
  --accent: #ff7a1a;
  --accent-soft: rgba(255, 122, 26, 0.4);
  --accent-strong: rgba(255, 122, 26, 0.7);
  --text: #f7f7ff;
  --text-subtle: #b2b3c5;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --radius-pill: 999px;
  --radius-card: 22px;
  --nav-height: 76px;
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 38px rgba(255, 122, 26, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 157, 45, 0.9) 0, rgba(255, 122, 26, 0.7) 30%, rgba(255, 122, 26, 0.25) 58%, #140806 85%),
    radial-gradient(circle at bottom right, rgba(255, 122, 26, 0.6) 0, transparent 55%),
    linear-gradient(145deg, #1a0700 0, #050608 45%, #020103 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

.hidden {
  opacity: 0;
  pointer-events: none;
}

.app {
  min-height: 100vh;
  padding: 20px clamp(18px, 3vw, 40px) 64px;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: #f7f7ff;
  opacity: 0.85;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.05;
  margin: 0 0 14px;
  color: var(--text);
}

.section-copy {
  margin: 0 0 10px;
  color: #e3e4f2;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.6;
}

.section-copy.subtle {
  opacity: 0.85;
}

/* Loader */

.loader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 999;
}

.loader-beam {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffe3c2, #ff7a1a, transparent);
  box-shadow: 0 0 18px rgba(255, 122, 26, 0.8), 0 0 40px rgba(255, 122, 26, 0.5);
  position: relative;
  z-index: 2;
}

.loader-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52%;
  background: radial-gradient(circle at center, #111118, #000000);
  z-index: 1;
}

.loader-panel-left {
  left: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.loader-panel-right {
  right: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

/* Nav */

.nav-wrapper {
  position: sticky;
  top: 14px;
  z-index: 40;
  margin-bottom: 32px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-wrapper.nav-hidden {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

.nav-glass {
  height: var(--nav-height);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.01))
      border-box,
    linear-gradient(to right, rgba(15, 15, 18, 0.68), rgba(5, 5, 8, 0.7)) border-box;
  background-clip: padding-box, border-box;
  box-shadow: var(--shadow-soft);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(18px) saturate(150%);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-pill {
  background: transparent;
  border-radius: var(--radius-pill);
  padding: 0;
  display: flex;
  align-items: center;
  box-shadow: none;
}

.logo-img {
  height: 40px;
  width: auto;
}

.brand-wordmark {
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--text-subtle);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-size: 13px;
  color: var(--text-subtle);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-media {
  position: relative;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.hero-image-wrap {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  background: #050608;
  height: clamp(260px, 52vh, 520px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.85);
  transform-style: preserve-3d;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  backface-visibility: hidden;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.10), transparent 42%),
    linear-gradient(120deg, transparent 35%, rgba(0, 0, 0, 0.35) 54%, rgba(0, 0, 0, 0.88) 80%),
    linear-gradient(to bottom, transparent 45%, rgba(0, 0, 0, 0.9));
  filter: brightness(1) saturate(1);
}

.hero-content {
  position: relative;
}

.hero-title {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: 0.03em;
  margin: 0 0 14px;
}

.hero-title-line {
  display: block;
  transform-origin: bottom left;
}

.hero-subtitle {
  margin: 0 0 18px;
  color: #fdfdff;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.hero-meta {
  font-size: 12px;
  color: var(--text-subtle);
}

/* Gallery */

.gallery {
  padding-top: 64px;
  min-height: calc(100vh - var(--nav-height) - 40px);
}

.gallery-shell {
  margin: 24px auto 0;
  border-radius: var(--radius-card);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), rgba(8, 8, 14, 0.98));
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 20px;
  display: flex;
  align-items: stretch;
  gap: 12px;
  max-width: 1180px;
  min-height: min(72vh, 640px);
}

.gallery-viewport {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
}

.gallery-track {
  position: relative;
  min-height: 380px;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  pointer-events: none;
}

.gallery-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-media {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #050608;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  min-height: min(56vh, 520px);
}

.gallery-media img,
.gallery-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-media video {
  background: #000;
}

.gallery-caption {
  padding-right: 6px;
}

.gallery-title {
  margin: 0 0 8px;
  font-size: 18px;
}

.gallery-text {
  margin: 0;
  font-size: 13px;
  color: var(--text-subtle);
}

.gallery-nav {
  flex: 0 0 auto;
  align-self: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--text);
  transform: translateY(-1px);
}

.gallery-nav-icon {
  font-size: 18px;
  line-height: 1;
}

.hero-flash-layer {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #ffffff, #ffffff 45%, #ffe1b3 75%, #1a1008 100%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
}

.hero-lens {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(46vw, 420px);
  height: min(46vw, 420px);
  transform: translate(-50%, -50%) scale(0.9);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.28), transparent 62%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.16), transparent 70%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.65), 0 0 34px rgba(255, 122, 26, 0.35);
  mix-blend-mode: screen;
  z-index: 25;
}

/* Buttons */

.btn {
  border-radius: 999px;
  padding: 10px 20px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ff9d2d, #ff7a1a);
  color: #120702;
  box-shadow: 0 12px 30px rgba(255, 122, 26, 0.5);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(255, 122, 26, 0.6);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Glare button with progress fill */

.btn-glare {
  position: relative;
  overflow: hidden;
  background: #050608;
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
  box-shadow: 0 0 0 rgba(255, 122, 26, 0);
}

.btn-glare-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(135deg, #ff9d2d, #ff7a1a);
  transition: width 0.25s ease-out;
  z-index: 0;
}

.btn-glare-label {
  position: relative;
  z-index: 1;
}

/* Problem */

.problem {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.problem-visual {
  display: flex;
  justify-content: flex-end;
}

.safety-card {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-card);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), rgba(10, 10, 16, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.safety-card-tag {
  font-size: 11px;
  padding: 8px 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-soft);
}

.safety-card-media-wrap {
  position: relative;
  padding: 10px 16px 0;
}

.safety-card-image {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
}

.safety-card-body {
  padding: 12px 18px 16px;
}

.safety-card-title {
  margin: 0 0 6px;
  font-size: 16px;
}

.safety-card-text {
  margin: 0;
  font-size: 13px;
  color: var(--text-subtle);
}

/* Value Grid */

.section-header {
  margin-bottom: 24px;
}

.value .section-title {
  font-size: clamp(34px, 3.8vw, 52px);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.value-card {
  border-radius: 20px;
  background: transparent;
  position: relative;
  perspective: 1200px;
  cursor: pointer;
}

.value-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 122, 26, 0.7)) border-box;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.45;
  pointer-events: none;
}

.value-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  padding: 20px 20px 22px;
  min-height: 110px;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), rgba(10, 10, 15, 0.98));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
}

.value-face {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
}

.value-face-front {
  padding: 0 18px;
}

.value-face-back {
  transform: rotateY(180deg);
  padding: 0 18px;
}

.value-card.is-flipped .value-card-inner {
  transform: rotateY(180deg) scale(1.04);
}

.value-title {
  margin: 0 0 6px;
  font-size: 18px;
}

.value-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-subtle);
}

/* Team */

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.team-card {
  perspective: 1200px;
}

.team-card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.team-card-face {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 14px;
  text-align: center;
}

.team-card-back {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), rgba(10, 10, 16, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-soft);
}

.team-card-front {
  background: radial-gradient(circle at bottom right, rgba(255, 122, 26, 0.3), rgba(5, 5, 10, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.22);
  transform: rotateY(180deg);
}

.team-card.is-flipped .team-card-inner {
  transform: rotateY(180deg);
}

.team-logo-pill {
  border-radius: 20px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.team-logo-pill img {
  height: 96px;
  width: auto;
}

.team-orbit {
  position: absolute;
  inset: 10px 14px;
  pointer-events: none;
}

.team-orbit path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.36);
  stroke-width: 2;
  stroke-linecap: round;
}

.team-role {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.team-image-wrap {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
  margin-bottom: 10px;
}

.team-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-quote {
  margin: 0;
  font-size: 12px;
  text-align: center;
  color: #f7f7ff;
}

/* Pilot */

.pilot {
  padding-bottom: 32px;
}

.pilot-inner {
  border-radius: 26px;
  background: radial-gradient(circle at top left, rgba(255, 122, 26, 0.16), rgba(10, 10, 15, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
  padding: 26px 24px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
}

.pilot-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

label {
  font-size: 12px;
  color: var(--text-subtle);
}

input {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(5, 5, 8, 0.92);
  color: var(--text);
  padding: 9px 14px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
  background: rgba(9, 9, 13, 0.98);
}

.btn-pilot {
  margin-top: 4px;
}

.form-footnote {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--text-subtle);
}

.form-status {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--accent-soft);
  min-height: 1em;
}

/* Responsive */

@media (max-width: 960px) {
  .hero,
  .problem,
  .pilot-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    order: -1;
  }

  .nav-glass {
    padding-inline: 16px;
  }

  .gallery {
    padding-top: 48px;
    min-height: auto;
  }

  .gallery-shell {
    flex-direction: column;
    min-height: auto;
    padding: 14px 14px 18px;
  }

  .gallery-viewport {
    order: -1;
  }

  .gallery-track {
    min-height: 320px;
  }

  .gallery-slide {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
  }

  .gallery-media {
    min-height: 220px;
  }

  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .section {
    padding: 52px 0;
  }

  .nav-wrapper {
    top: 10px;
  }

  .nav-glass {
    height: auto;
    padding-block: 10px;
    gap: 10px;
    flex-direction: column;
    align-items: center;
  }

  .nav-links {
    gap: 6px 8px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .nav-link {
    font-size: 12px;
    padding: 6px 10px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .value-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 360px;
    margin: 26px auto 0;
    justify-items: center;
  }

  .team-card {
    width: 100%;
  }

  .team-card-inner {
    min-height: 260px;
  }
}
