:root {
  color-scheme: dark;
  --bg: #0b1028;
  --bg-deep: #080b20;
  --dawn: #4f527f;
  --surface: #171d3b;
  --surface-raised: #22284b;
  --panel: rgba(24, 30, 62, 0.78);
  --text: #f7f3ee;
  --muted: #c4c8dc;
  --accent: #9edcf4;
  --accent-strong: #6bc5e9;
  --coral: #ff8a79;
  --sand: #f1d7ad;
  --focus: #ffd37d;
  --border: rgba(217, 231, 246, 0.18);
  --page-width: 76rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
}

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

html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(155deg, var(--bg-deep) 0%, var(--bg) 52%, #1a2149 100%);
  color: var(--text);
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.legal-page {
  padding: calc(24px + env(safe-area-inset-top))
           calc(28px + env(safe-area-inset-right))
           calc(36px + env(safe-area-inset-bottom))
           calc(28px + env(safe-area-inset-left));
}

.site-header {
  width: min(100%, var(--page-width));
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.wordmark img {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.32rem;
  border-radius: 0.8rem;
  background: #f0e8df;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.site-header nav a {
  font-size: 0.95rem;
  font-weight: 600;
}

.legal-document {
  width: min(100%, 48rem);
  margin: 0 auto;
  line-height: 1.7;
}

.legal-document h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.7rem, 6vw, 2.35rem);
  line-height: 1.2;
}

.legal-document h2 {
  margin: 2rem 0 0.4rem;
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  line-height: 1.3;
}

.legal-document p,
.legal-document li,
.legal-document code {
  overflow-wrap: anywhere;
}

.legal-document .effective,
.legal-document .muted {
  color: var(--muted);
}

.home-page {
  overflow-x: hidden;
  padding: calc(22px + env(safe-area-inset-top))
           calc(28px + env(safe-area-inset-right))
           calc(32px + env(safe-area-inset-bottom))
           calc(28px + env(safe-area-inset-left));
  background:
    radial-gradient(circle at 79% 13%, rgba(255, 138, 121, 0.2), transparent 24rem),
    radial-gradient(circle at 16% 47%, rgba(107, 197, 233, 0.12), transparent 28rem),
    linear-gradient(160deg, var(--bg-deep) 0%, var(--bg) 42%, var(--dawn) 130%);
}

.home-page .site-header {
  margin-bottom: clamp(3rem, 8vw, 7rem);
}

.home-page .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.home-page main,
.site-footer {
  width: min(100%, var(--page-width));
  margin-inline: auto;
}

.hero {
  display: grid;
  align-items: center;
  gap: clamp(3rem, 8vw, 7rem);
  min-height: min(43rem, 75vh);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.25rem, 9vw, 7.7rem);
  font-weight: 720;
  letter-spacing: -0.06em;
  line-height: 0.88;
}

.hero-copy {
  max-width: 38rem;
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.35rem;
  align-items: center;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
}

.primary-button {
  border: 1px solid var(--coral);
  background: var(--coral);
  color: #21152a;
}

.text-button {
  border: 1px solid var(--border);
  background: var(--surface);
  background: rgba(24, 30, 62, 0.58);
  color: var(--text);
}

.hero-sky {
  position: relative;
  min-height: 29rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--border);
  border-radius: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--surface-raised);
  background:
    linear-gradient(180deg, rgba(147, 142, 182, 0.68) 0%, rgba(255, 168, 139, 0.52) 55%, rgba(19, 24, 53, 0.95) 100%);
  box-shadow: 0 2.5rem 7rem rgba(2, 4, 18, 0.4);
}

.sun {
  position: absolute;
  top: 15%;
  right: 13%;
  width: clamp(5rem, 10vw, 8rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sand);
  box-shadow: 0 0 4rem rgba(241, 215, 173, 0.38);
}

.skyline {
  position: absolute;
  right: -5%;
  bottom: -1rem;
  left: -5%;
  height: 29%;
  background: #171c3c;
  clip-path: polygon(0 53%, 8% 53%, 8% 34%, 12% 34%, 12% 58%, 22% 58%, 22% 41%, 27% 41%, 27% 60%, 37% 60%, 37% 27%, 40% 27%, 41% 7%, 42% 27%, 46% 27%, 46% 63%, 59% 63%, 59% 39%, 64% 39%, 64% 56%, 74% 56%, 74% 29%, 78% 29%, 78% 57%, 89% 57%, 89% 43%, 94% 43%, 94% 58%, 100% 58%, 100% 100%, 0 100%);
}

.skyline-back {
  bottom: 12%;
  opacity: 0.42;
  transform: scaleX(-1);
}

.skyline-front { z-index: 2; }

.paper-plane {
  position: absolute;
  display: block;
  width: 3.9rem;
  height: 2.5rem;
  filter: drop-shadow(0 0.8rem 0.7rem rgba(13, 13, 35, 0.28));
}

.paper-plane::before,
.paper-plane::after,
.paper-plane span {
  position: absolute;
  content: "";
}

.paper-plane::before {
  inset: 0;
  background: #fff7e8;
  clip-path: polygon(0 42%, 100% 0, 62% 100%, 46% 56%);
}

.paper-plane::after {
  inset: 0;
  background: #dce8ee;
  clip-path: polygon(0 42%, 46% 56%, 35% 80%);
}

.paper-plane span {
  top: 43%;
  left: 45%;
  width: 55%;
  height: 1px;
  background: rgba(51, 61, 89, 0.42);
  transform: rotate(-23deg);
  transform-origin: left;
}

.hero-plane {
  z-index: 4;
  top: 34%;
  left: 35%;
  animation: hero-drift 6s ease-in-out infinite;
}

.flight-curve {
  position: absolute;
  border: 1px dashed rgba(247, 243, 238, 0.62);
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
}

.curve-one {
  top: 14%;
  right: 23%;
  width: 57%;
  height: 40%;
  transform: rotate(-12deg);
}

.curve-two {
  top: 43%;
  left: -17%;
  width: 69%;
  height: 38%;
  transform: rotate(16deg);
  opacity: 0.45;
}

.sky-note {
  position: absolute;
  z-index: 3;
  right: 1.5rem;
  bottom: 1rem;
  margin: 0;
  color: rgba(247, 243, 238, 0.62);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.flight-path {
  margin-top: clamp(6rem, 13vw, 11rem);
  padding: clamp(2rem, 6vw, 4.5rem);
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: var(--surface);
  background: var(--panel);
}

@supports (backdrop-filter: blur(14px)) {
  .flight-path,
  .feature-card,
  .privacy-band,
  .permission-card,
  .not-requested {
    backdrop-filter: blur(14px);
  }
}

.section-heading {
  max-width: 43rem;
}

.section-heading h2,
.privacy-band h2 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.5rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.section-heading > p:last-child {
  max-width: 37rem;
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.path-line {
  position: relative;
  height: clamp(8rem, 18vw, 13rem);
  margin-top: 1.5rem;
  overflow: hidden;
}

.path-line::before {
  position: absolute;
  top: 29%;
  right: 4%;
  bottom: -17%;
  left: 3%;
  border: 2px dashed rgba(158, 220, 244, 0.45);
  border-bottom-color: transparent;
  border-radius: 50%;
  content: "";
  animation: path-shimmer 4s ease-in-out infinite;
}

.path-dot {
  position: absolute;
  z-index: 2;
  width: 0.72rem;
  aspect-ratio: 1;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--coral);
}

.path-start { bottom: 8%; left: 3%; }
.path-end { right: 4%; bottom: 8%; }
.path-plane { z-index: 3; top: 20%; left: 56%; transform: rotate(5deg); }

.feature-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.feature-card {
  min-height: 18rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: 1.6rem;
  background: var(--surface-raised);
  background: rgba(34, 40, 75, 0.7);
}

.feature-card:nth-child(2),
.feature-card:nth-child(3) {
  background: rgba(46, 48, 82, 0.76);
}

.feature-number {
  display: block;
  color: var(--coral);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.feature-card h2 {
  margin: 3.5rem 0 0.8rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.1;
}

.feature-card p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
}

.privacy-band {
  display: grid;
  gap: 2rem;
  margin-top: clamp(5rem, 10vw, 9rem);
  padding: clamp(2rem, 6vw, 4.5rem);
  border: 1px solid rgba(255, 138, 121, 0.32);
  border-radius: 2rem;
  background: #282748;
  background: linear-gradient(130deg, rgba(68, 57, 87, 0.84), rgba(25, 31, 64, 0.8));
}

.privacy-copy {
  max-width: 36rem;
  align-self: end;
}

.privacy-copy > p:first-child {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 650;
}

.contact-line {
  margin: 1.4rem 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-top: 2rem;
  padding: 2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p { margin: 0; }

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.3rem;
}

.permission-document {
  width: min(100%, 56rem);
}

.permission-document > h1 {
  max-width: 15ch;
  margin-bottom: 2.5rem;
  font-size: clamp(2.3rem, 7vw, 4.8rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.permission-card,
.not-requested {
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--border);
  border-radius: 1.6rem;
  background: var(--surface-raised);
  background: rgba(34, 40, 75, 0.72);
}

.permission-card {
  border-top: 3px solid var(--coral);
}

.permission-card + .permission-card { margin-top: 1rem; }

.permission-card p:first-child { margin-top: 0; }
.permission-card p:last-child { margin-bottom: 0; }

.permission-card code {
  color: var(--sand);
  font-size: 0.9em;
}

.not-requested {
  margin-top: 1rem;
  background: rgba(18, 39, 60, 0.76);
}

.not-requested h2 { margin-top: 0; }

.not-requested ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 2rem;
  padding: 0;
  list-style: none;
}

.not-requested li {
  position: relative;
  padding-left: 1.45rem;
}

.not-requested li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 0.55rem;
  height: 2px;
  background: var(--accent);
  content: "";
}

.permission-contact { margin-top: 3rem; }

@keyframes hero-drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-3deg); }
  50% { transform: translate3d(0.7rem, -0.8rem, 0) rotate(1deg); }
}

@keyframes path-shimmer {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.85; }
}

@media (min-width: 761px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-band { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}

@media (min-width: 901px) {
  .hero { grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr); }
  .hero-sky { min-height: 38rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .legal-site-header {
    display: none;
  }
}

@media (max-width: 760px) {
  .legal-site-header {
    display: none;
  }

  .legal-page {
    padding: calc(24px + env(safe-area-inset-top))
             calc(20px + env(safe-area-inset-right))
             calc(36px + env(safe-area-inset-bottom))
             calc(20px + env(safe-area-inset-left));
  }

  .legal-document {
    margin: 0 auto;
  }

  .home-page {
    padding: calc(18px + env(safe-area-inset-top))
             calc(18px + env(safe-area-inset-right))
             calc(28px + env(safe-area-inset-bottom))
             calc(18px + env(safe-area-inset-left));
  }

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

  .home-header nav { justify-content: flex-start; }
  .hero { min-height: auto; }
  .hero h1 { font-size: clamp(3.35rem, 18vw, 5.7rem); }
  .hero-sky { min-height: 24rem; }
  .flight-path { padding: 1.5rem; }
  .path-plane { left: 48%; }
  .not-requested ul { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}
