@font-face {
  font-family: "Orbitron";
  src: url("../assets/fonts/Orbitron.ttf") format("truetype");
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --bg: #000000;
  --bg-elevated: #161617;
  --bg-band: #0a0a0a;
  --text: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary: #6e6e73;
  --link: #2997ff;
  --link-hover: #7dc1ff;
  --border: rgba(255, 255, 255, 0.08);
  --aviation: #64d2ff;
  --land: #30d158;
  --maritime: #5de6d0;
  --max: 980px;
  --max-wide: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --brand: "Orbitron", var(--font);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ——— Nav (Apple-style glass bar) ——— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 48px;
}

.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left));
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.nav__brand:hover {
  text-decoration: none;
  opacity: 0.85;
}

.nav__brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 12px;
  letter-spacing: -0.01em;
}

.nav__links a {
  color: var(--text);
  opacity: 0.88;
  text-decoration: none;
  transition: opacity 0.2s var(--ease);
}

.nav__links a:hover {
  opacity: 1;
  text-decoration: none;
  color: var(--text);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 734px) {
  .nav__toggle {
    display: block;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1rem;
    background: rgba(22, 22, 23, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a {
    padding: 0.85rem 22px;
    font-size: 17px;
    border-bottom: 1px solid var(--border);
  }

  .nav__bar {
    position: relative;
  }
}

/* ——— Hero ——— */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 7rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(41, 151, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(232, 93, 4, 0.08), transparent 50%),
    var(--bg);
}

.hero__content {
  max-width: 52rem;
}

.hero__kicker {
  margin: 0 0 0.75rem;
  font-size: 19px;
  line-height: 1.23536;
  font-weight: 600;
  letter-spacing: 0.012em;
  color: var(--aviation);
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.hero__title-accent {
  background: linear-gradient(90deg, #f5f5f7 0%, #a1a1a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 0 auto 2rem;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.004em;
  color: var(--text-secondary);
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.store-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.store-badge:hover {
  transform: scale(1.04);
  opacity: 0.92;
  text-decoration: none;
}

.store-badge img {
  display: block;
  width: 156px;
  height: 44px;
}

.link-more {
  font-size: 17px;
  font-weight: 400;
  color: var(--link);
  text-decoration: none;
}

.link-more span {
  font-size: 1.2em;
  vertical-align: -1px;
}

.link-more:hover {
  text-decoration: underline;
}

.hero__device {
  margin-top: 3rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero__device .device-pro--hero {
  width: min(268px, 72vw);
  animation: deviceFloat 7s ease-in-out infinite;
}

@keyframes deviceFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__device .device-pro--hero {
    animation: none;
  }
}

/* ——— Premium device mockup ——— */
.device-pro {
  position: relative;
  width: min(252px, 64vw);
  margin: 0 auto;
}

.device-pro--hero {
  width: min(268px, 72vw);
}

.device-pro--showcase {
  width: min(248px, 62vw);
}

.device-pro__glow {
  position: absolute;
  left: 50%;
  bottom: -18%;
  transform: translateX(-50%);
  width: 88%;
  height: 42%;
  background: radial-gradient(
    ellipse at center,
    rgba(41, 151, 255, 0.22) 0%,
    rgba(41, 151, 255, 0.06) 45%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
  filter: blur(8px);
}

.device-pro__bezel {
  position: relative;
  z-index: 1;
  border-radius: 2.75rem;
  padding: 0.55rem;
  background: linear-gradient(
    155deg,
    #5a5a5e 0%,
    #2c2c2e 18%,
    #1c1c1e 50%,
    #3a3a3c 82%,
    #636366 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 28px 56px rgba(0, 0, 0, 0.55),
    0 8px 20px rgba(0, 0, 0, 0.35);
}

.device-pro__island {
  position: absolute;
  top: 1.05rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26%;
  min-width: 4.5rem;
  height: 1.15rem;
  background: #000;
  border-radius: 999px;
  z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.device-pro__screen {
  position: relative;
  border-radius: 2.2rem;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9 / 19.5;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.65);
}

.device-pro__screen > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.device-pro__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.device-pro__slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.04);
  filter: blur(6px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, filter;
}

.device-pro__slides img.is-active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  z-index: 2;
}

.device-pro__slides img.is-leaving {
  opacity: 0;
  transform: scale(0.98);
  filter: blur(3px);
  z-index: 1;
}

.device-pro__reflection {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -0.35rem;
  height: 2.5rem;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center top,
    rgba(255, 255, 255, 0.07) 0%,
    transparent 70%
  );
  z-index: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .device-pro__slides img {
    transition: opacity 0.35s ease;
    transform: none;
    filter: none;
  }
}

/* ——— Bands ——— */
.band {
  padding: 6rem 1.5rem;
  border-top: 1px solid var(--border);
}

.band--domains {
  background: var(--bg-band);
}

.band--modules {
  background: var(--bg-elevated);
}

.band--privacy {
  background: var(--bg);
}

.band__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
}

.band__headline {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-align: center;
}

.band__copy {
  margin: 0 auto 3rem;
  max-width: 32rem;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
}

.band__copy--center {
  margin-bottom: 3.5rem;
}

/* ——— Domains ——— */
.domain-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.domain-pill {
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.domain-pill:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
}

.domain-pill__label {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.domain-pill p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.domain-pill--aviation .domain-pill__label { color: var(--aviation); }
.domain-pill--land .domain-pill__label { color: var(--land); }
.domain-pill--maritime .domain-pill__label { color: var(--maritime); }

@media (max-width: 900px) {
  .domain-row {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin: 0 auto;
  }
}

/* ——— Showcase (scroll-driven gallery) ——— */
.showcase {
  position: relative;
  min-height: 220vh;
  background:
    radial-gradient(ellipse 70% 45% at 50% 30%, rgba(41, 151, 255, 0.06), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--border);
}

.showcase__sticky {
  position: sticky;
  top: 48px;
  min-height: calc(100vh - 48px);
  min-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.75rem;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

.showcase__copy {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  padding: 0 1rem;
}

.showcase__copy.is-updating .showcase__kicker,
.showcase__copy.is-updating .showcase__headline,
.showcase__copy.is-updating .showcase__text {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(4px);
}

.showcase__kicker {
  margin: 0 0 0.5rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aviation);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase__headline {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.04s,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.04s,
    filter 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.04s;
}

.showcase__text {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text-secondary);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
    filter 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
}

.showcase__gallery {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  touch-action: pan-y;
}

.showcase__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2.25rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.showcase__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  transition:
    width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease,
    opacity 0.35s ease;
}

.showcase__dot.is-active {
  width: 1.65rem;
  background: var(--text);
}

.showcase__dot:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
  .showcase {
    min-height: auto;
  }

  .showcase__sticky {
    position: relative;
    top: auto;
    min-height: auto;
    padding: 4rem 1.25rem;
    gap: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase__kicker,
  .showcase__headline,
  .showcase__text {
    transition: opacity 0.3s ease;
    transform: none;
    filter: none;
  }
}

/* ——— Module grid (bento) ——— */
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 56rem;
  margin: 0 auto;
}

.module-tile {
  padding: 1.75rem 1.5rem;
  border-radius: 1.125rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.module-tile span {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.module-tile p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.module-tile--wide {
  grid-column: 1 / -1;
  text-align: center;
}

@media (max-width: 734px) {
  .module-grid {
    grid-template-columns: 1fr 1fr;
  }

  .module-tile--wide {
    grid-column: 1 / -1;
  }
}

/* ——— Privacy row ——— */
.privacy-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.privacy-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.privacy-item p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

@media (max-width: 734px) {
  .privacy-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ——— CTA band ——— */
.cta-band {
  padding: 6rem 1.5rem 7rem;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(41, 151, 255, 0.12), transparent 60%),
    var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.cta-band__inner {
  max-width: 32rem;
  margin: 0 auto;
}

.cta-band__title {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.cta-band__copy {
  margin: 0 0 1.75rem;
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.cta-band__contact {
  margin: 2rem 0 0;
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

/* ——— Footer ——— */
.site-footer {
  padding: 1.25rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.site-footer__inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__legal {
  margin: 0;
  font-size: 12px;
  color: var(--text-tertiary);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 12px;
}

.site-footer__nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ——— Scroll reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

.reveal--delay {
  transition-delay: 0.15s;
}

/* ——— Legal pages ——— */
body.page-legal {
  background: var(--bg);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.legal-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
}

.legal-header .nav__brand {
  font-family: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-header .nav__links {
  display: flex;
  gap: 1.5rem;
  font-size: 12px;
}

.legal-header .nav__links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.legal-header .nav__links a:hover,
.legal-header .nav__links a.is-active {
  color: var(--text);
}

.legal-main {
  padding: 4rem 1.5rem 5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.legal-main h1 {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.legal-main .meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 2.5rem;
}

.legal-main h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.75rem;
}

.legal-main p,
.legal-main li {
  color: var(--text-secondary);
  line-height: 1.55;
}

.legal-main ul {
  padding-left: 1.25rem;
}

.legal-main strong {
  color: var(--text);
}

/* Legacy class aliases for subpages */

.main.legal {
  padding: 4rem 1.5rem 5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.main.legal h1 {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.main.legal .meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 2.5rem;
}

.main.legal h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
}

.main.legal p,
.main.legal li {
  color: var(--text-secondary);
}

.main.legal strong {
  color: var(--text);
}

.footer {
  padding: 1.25rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 12px;
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer nav {
  display: flex;
  gap: 1.5rem;
}

.footer nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer nav a:hover {
  color: var(--text);
}

.header .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.header .brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
}

.header .nav {
  display: flex;
  gap: 1.5rem;
  font-size: 12px;
  position: static;
  height: auto;
  background: none;
  border: none;
}

.header .nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

.header .nav a:hover,
.header .nav a.is-active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 734px) {
  .nav-toggle {
    display: block;
  }

  .header .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(22, 22, 23, 0.98);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
  }

  .header .nav.is-open {
    display: flex;
  }

  .header__inner {
    position: relative;
  }
}

.main:not(.legal) {
  padding-top: 48px;
}

.contact-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
}
