/* ---- Base ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #050505;
  --color-surface: #0c0c0d;
  --color-text: #ffffff;
  --color-dim: rgba(255, 255, 255, 0.65);
  --color-faint: rgba(255, 255, 255, 0.4);
  --color-line: rgba(255, 255, 255, 0.12);
  --max-width: 1200px;
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

::selection {
  background: #fff;
  color: #000;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ---- Reveal-on-scroll utility ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Shared section header ---- */
.section-head {
  max-width: 620px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-dim);
  margin-bottom: 1.25rem;
}

.section-head__title {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.section-head__lead {
  margin-top: 1.25rem;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 300;
  color: var(--color-dim);
  max-width: 520px;
}

/* ---- Navigation (SpaceX-style) ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  transition: background 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 2.5rem;
  height: var(--nav-height);
}

.navbar__logo {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.navbar__logo-mark {
  flex-shrink: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar__logo:hover .navbar__logo-mark {
  transform: rotate(35deg);
}

.navbar__logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.navbar__logo-accent {
  font-weight: 300;
  opacity: 0.75;
  margin-left: 0.05em;
}

.navbar__menu {
  position: relative;
  display: flex;
  height: 100%;
  list-style: none;
}

/* Light black shade covering the navbar row + the options area below,
   shown whenever any tab in the menu is hovered */
.navbar__menu::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--nav-height) + 2.5in);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.55) 25%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.navbar__menu:has(.navbar__item:hover)::before {
  opacity: 1;
  visibility: visible;
}

.navbar__item {
  position: relative;
  display: flex;
  align-items: center;
}

.navbar__link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 1.1rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.navbar__item:hover .navbar__link {
  color: #9ca3af;
}

/* Options list — anchored directly under its own tab, sitting on top of the shade */
.navbar__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 160px;
  padding-top: 1.5rem;
  display: flex;
  justify-content: center;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.navbar__item:hover .navbar__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.navbar__dropdown ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.navbar__dropdown a {
  display: block;
  padding: 0.4rem 1.5rem;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.navbar__dropdown a:hover {
  color: #fff;
}

/* ---- Mobile navigation ---- */
.navbar__toggle {
  display: none;
  position: relative;
  z-index: 3;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.navbar__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.navbar__toggle.is-open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.navbar__toggle.is-open span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 82vw);
  height: 100vh;
  padding: calc(var(--nav-height) + 2rem) 2rem 2rem;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu__nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-line);
  transition: color 0.2s ease, padding-left 0.25s ease;
}

.mobile-menu__nav a:hover {
  color: #9ca3af;
  padding-left: 0.5rem;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.12);
  }
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

.hero__video.is-active {
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 14vh;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.65) 70%,
    rgba(0, 0, 0, 0.9) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.55) 100%
    ),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  color: #fff;
  padding: 0 1rem;
  margin-top: 4rem;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__eyebrow,
.hero__title,
.hero__subtitle,
.hero__content .btn {
  opacity: 0;
  animation: heroRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__eyebrow {
  animation-delay: 0.1s;
}

.hero__title {
  animation-delay: 0.25s;
}

.hero__subtitle {
  animation-delay: 0.4s;
}

.hero__content .btn {
  animation-delay: 0.55s;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero__title {
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 2rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.hero__title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 1.5rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff, rgba(255, 255, 255, 0));
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 460px;
  margin: 0 auto 2.75rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

/* ---- Showcase (Body video) ---- */
.showcase {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.showcase__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.showcase::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 14vh;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.65) 30%,
    rgba(0, 0, 0, 0.25) 60%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Fade seam into the specs section below */
.showcase::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 14vh;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.65) 70%,
    rgba(5, 5, 5, 1) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.showcase__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.45) 35%,
    rgba(0, 0, 0, 0.1) 65%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 1;
}

.showcase__content {
  position: relative;
  z-index: 2;
  max-width: 480px;
  padding-left: clamp(2rem, 6vw, 6rem);
  color: #fff;
  text-align: left;
}

.showcase__content > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase__content.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.showcase__content.is-visible > *:nth-child(1) {
  transition-delay: 0s;
}
.showcase__content.is-visible > *:nth-child(2) {
  transition-delay: 0.12s;
}
.showcase__content.is-visible > *:nth-child(3) {
  transition-delay: 0.24s;
}
.showcase__content.is-visible > *:nth-child(4) {
  transition-delay: 0.36s;
}
.showcase__content.is-visible > *:nth-child(5) {
  transition-delay: 0.48s;
}
.showcase__content.is-visible > *:nth-child(6) {
  transition-delay: 0.6s;
}

.showcase__title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.showcase__title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin: 1.5rem 0 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
}

.showcase__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  margin-bottom: 2.25rem;
}

.showcase__stats {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin-bottom: 2.25rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.showcase__stats li {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.showcase__stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.showcase__stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
  max-width: 90px;
}

.showcase__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 0.4rem;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
  transition: border-color 0.3s ease, gap 0.3s ease;
}

.showcase__link:hover {
  border-color: #fff;
  gap: 0.85rem;
}

.showcase__link .btn__arrow {
  transition: transform 0.3s ease;
}

.showcase__link:hover .btn__arrow {
  transform: translateX(4px);
}

/* ---- Specs ---- */
/* ---- Scroll Story (specs) ---- */
.story {
  position: relative;
  height: calc(var(--story-frames, 3) * 100vh);
  background: #000;
}

.story__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.story__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.story__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.25) 35%,
    rgba(0, 0, 0, 0.35) 65%,
    rgba(5, 5, 5, 0.9) 100%
  );
  pointer-events: none;
}

.story__frames {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.story__frame {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: min(600px, 86vw);
  padding: 0 clamp(1.5rem, 6vw, 4rem);
  opacity: 0;
  isolation: isolate;
  will-change: opacity, transform;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

/* Lightweight, DOM-free legibility insurance: a soft blurred radial
   vignette behind each text block, layered on top of the page-level video
   scrim. isolation: isolate on .story__frame keeps this z-index:-1 pinned
   behind that frame's own text without escaping into the video/overlay
   stack underneath. */
.story__frame::before {
  content: "";
  position: absolute;
  inset: -2.5rem;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.28) 45%,
    rgba(0, 0, 0, 0) 75%
  );
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

/* Bottom-left placement (frames 1 & 3) */
.story__frame--bl {
  left: 0;
  bottom: clamp(3rem, 11vh, 7rem);
  align-items: flex-start;
  text-align: left;
  transform: translateY(36px);
}

/* Top-right placement (frame 2) */
.story__frame--tr {
  right: 0;
  top: clamp(4.5rem, 14vh, 8.5rem);
  align-items: flex-end;
  text-align: right;
  transform: translateY(-36px);
}

.story__frame.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.story__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65), 0 6px 18px rgba(0, 0, 0, 0.45);
}

.story__eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}

.story__frame--tr .story__eyebrow {
  flex-direction: row-reverse;
}

.story__frame--tr .story__eyebrow::before {
  background: linear-gradient(to left, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
}

.story__title {
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.02;
  color: #fff;
  text-wrap: balance;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 10px 30px rgba(0, 0, 0, 0.5),
    0 28px 60px rgba(0, 0, 0, 0.35);
}

.story__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 3.5rem);
  list-style: none;
  padding-top: 1.5rem;
  border-top: 1px solid transparent;
  border-image: linear-gradient(to right, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.06)) 1;
}

.story__frame--tr .story__stats {
  justify-content: flex-end;
  border-image: linear-gradient(to left, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.06)) 1;
}

.story__frame--tr .story__stats li {
  text-align: right;
}

.story__stat-value {
  display: block;
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
  margin-bottom: 0.55rem;
  color: #fff;
  font-variant-numeric: tabular-nums lining-nums;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 6px 22px rgba(0, 0, 0, 0.5);
}

.story__stat-value small {
  font-size: 0.44em;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.72);
  margin-left: 0.18em;
  vertical-align: 0.08em;
}

.story__stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.story__progress {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: clamp(1.5rem, 4vh, 2.5rem);
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 0.85rem;
}

.story__progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.3s ease, transform 0.3s ease;
}

.story__progress-dot.is-active {
  background: #fff;
  transform: scale(1.7);
}

@media (max-width: 640px) {
  .story__frame--bl,
  .story__frame--tr {
    left: 0;
    right: 0;
    top: auto;
    bottom: clamp(2.5rem, 9vh, 5rem);
    align-items: flex-start;
    text-align: left;
    max-width: 90vw;
  }

  .story__frame--tr .story__eyebrow {
    flex-direction: row;
  }

  .story__frame--tr .story__eyebrow::before {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  }

  .story__frame--tr .story__stats {
    justify-content: flex-start;
  }

  .story__frame--tr .story__stats li {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story__frame {
    transition: opacity 0.4s ease;
    transform: none;
  }
}

/* ---- Technology ---- */
.tech {
  padding: clamp(4rem, 9vw, 8rem) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.tech__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.tech-card {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease, background 0.35s ease;
}

.tech-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.tech-card__icon {
  display: block;
  margin-bottom: 1.5rem;
}

.tech-card__name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.tech-card__desc {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--color-dim);
  margin-bottom: 1.5rem;
}

.tech-card__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-faint);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}

/* ---- Applications ---- */
.apps {
  padding: clamp(4rem, 9vw, 8rem) 0;
  background: var(--color-bg);
}

.apps__list {
  list-style: none;
  border-top: 1px solid var(--color-line);
}

.app-row {
  display: grid;
  grid-template-columns: 60px 240px 1fr 40px;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 2.5vw, 2.25rem) 0.5rem;
  border-bottom: 1px solid var(--color-line);
  transition: background 0.3s ease, padding-left 0.35s ease;
  cursor: pointer;
}

.app-row:hover {
  background: rgba(255, 255, 255, 0.03);
  padding-left: 1.25rem;
}

.app-row__index {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-faint);
}

.app-row__name {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.app-row__desc {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--color-dim);
}

.app-row__arrow {
  font-size: 1.25rem;
  color: var(--color-faint);
  transition: transform 0.3s ease, color 0.3s ease;
}

.app-row:hover .app-row__arrow {
  transform: translateX(6px);
  color: #fff;
}

/* ---- About ---- */
.about {
  padding: clamp(4rem, 9vw, 8rem) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.about__inner {
  max-width: 780px;
}

.about__body {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 300;
  color: var(--color-dim);
  line-height: 1.75;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.about__numbers {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 4.5rem);
  list-style: none;
  border-top: 1px solid var(--color-line);
  padding-top: clamp(2rem, 4vw, 3rem);
}

.about__numbers li {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.about__number {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.about__number-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-faint);
}

/* ---- CTA Band ---- */
.cta-band {
  padding: clamp(5rem, 11vw, 9rem) 0;
  background: radial-gradient(
      ellipse 70% 90% at 50% 110%,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0) 60%
    ),
    var(--color-bg);
  text-align: center;
}

.cta-band__inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-band__title {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.cta-band__sub {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 300;
  color: var(--color-dim);
  margin-bottom: 2.5rem;
}

/* ---- Contact ---- */
.contact {
  padding: clamp(4rem, 9vw, 8rem) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-line);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}

.contact__info .section-head {
  margin-bottom: 2.5rem;
}

.contact__details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__details li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact__detail-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-faint);
}

.contact__details a,
.contact__details span:not(.contact__detail-label) {
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
}

.contact__details a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---- Form ---- */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form__field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-dim);
}

.form__field label em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--color-faint);
}

.form__field input,
.form__field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: border-color 0.25s ease, background 0.25s ease;
  resize: vertical;
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

.contact__form .btn {
  align-self: flex-start;
}

.form__success {
  font-size: 0.9rem;
  color: #a7f3d0;
}

/* ---- Button ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  padding: 1rem 2.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: color 0.35s ease, border-color 0.35s ease,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

.btn:hover {
  color: #111;
  border-color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 40px rgba(255, 255, 255, 0.25);
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn:active {
  transform: translateY(-1px);
}

.btn__arrow {
  display: inline-block;
  transition: transform 0.35s ease;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ---- Footer ---- */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-line);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: clamp(2.5rem, 6vw, 6rem);
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.footer__brand {
  max-width: 260px;
}

.footer__tagline {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-faint);
}

.footer__columns {
  display: flex;
  gap: clamp(2rem, 5vw, 4.5rem);
  flex-wrap: wrap;
}

.footer__col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-faint);
  margin-bottom: 1.1rem;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__col a {
  color: var(--color-dim);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--color-line);
  padding-top: 1.75rem;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--color-faint);
}

.footer__social {
  display: flex;
  gap: 1.1rem;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  color: var(--color-dim);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.footer__social a:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .app-row {
    grid-template-columns: 48px 180px 1fr 32px;
  }
}

@media (max-width: 920px) {
  .navbar__menu {
    display: none;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar {
    padding: 0 1.5rem;
  }

  .story__stats {
    gap: 1.75rem;
  }

  .tech__grid {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .story__stats {
    flex-direction: column;
    gap: 1rem;
  }

  .story__progress {
    display: none;
  }

  .app-row {
    grid-template-columns: 40px 1fr 32px;
    grid-template-areas:
      "index name arrow"
      "index desc arrow";
    row-gap: 0.4rem;
  }

  .app-row__index {
    grid-area: index;
  }

  .app-row__name {
    grid-area: name;
  }

  .app-row__desc {
    grid-area: desc;
  }

  .app-row__arrow {
    grid-area: arrow;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .showcase__stats {
    flex-wrap: wrap;
  }

  .footer__top {
    flex-direction: column;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__video {
    animation: none;
  }

  .reveal,
  .showcase__content > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__eyebrow,
  .hero__title,
  .hero__subtitle,
  .hero__content .btn {
    animation: none;
    opacity: 1;
  }
}
