@font-face {
  font-family: "Outfit";
  src: url("./assets/fonts/Outfit-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("./assets/fonts/Outfit-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --void: #02030a;
  --void-soft: #060914;
  --panel: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.06);
  --text-primary: #ece7ef;
  --text-secondary: rgba(236, 231, 239, 0.62);
  --text-tertiary: rgba(236, 231, 239, 0.32);
  --amber: #e8b74f;
  --amber-strong: #f5c46d;
  --amber-shadow: rgba(232, 183, 79, 0.22);
  --cool: #8ca8ff;
  --max-width: 1120px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(140, 168, 255, 0.07), transparent 42%),
    radial-gradient(ellipse at 50% 100%, rgba(232, 183, 79, 0.04), transparent 42%),
    linear-gradient(180deg, #050711 0%, #02030a 50%, #04050d 100%);
  color: var(--text-primary);
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-page {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

.page-shell {
  width: min(100%, calc(var(--max-width) + 48px));
  margin: 0 auto;
  padding: 24px;
}

/* ---------- splash (home) ---------- */

.site-home {
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 40px;
}

.splash-stage {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-rows: minmax(120px, 1fr) auto minmax(140px, 1fr);
  justify-items: center;
  align-items: center;
  padding: 8vh 0 4vh;
}

.splash-copy {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
}

.splash-copy--top {
  align-self: end;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--text-tertiary);
  font-family: "Outfit", sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.splash-copy--top h1 {
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.splash-copy--bottom {
  align-self: start;
  max-width: 28ch;
  color: var(--text-secondary);
  font-family: "Outfit", sans-serif;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.splash-center {
  position: relative;
  width: min(100%, 480px);
  height: clamp(180px, 26vw, 260px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- ship ---------- */

.ship {
  position: relative;
  width: clamp(64px, 7vw, 92px);
  aspect-ratio: 28 / 44;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ship-float 6s ease-in-out infinite;
}

.ship-silhouette {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
  filter:
    drop-shadow(0 0 6px rgba(180, 196, 230, 0.22))
    drop-shadow(0 0 14px rgba(140, 168, 255, 0.14));
}

.ship-thrust {
  position: absolute;
  left: 50%;
  bottom: -14%;
  width: 40%;
  height: 54%;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 20%,
      rgba(255, 232, 180, 0.55) 0%,
      rgba(232, 183, 79, 0.35) 22%,
      rgba(232, 120, 60, 0.16) 50%,
      transparent 75%);
  filter: blur(4px);
  z-index: 0;
  animation: ship-thrust-flicker 0.9s ease-in-out infinite;
}

@keyframes ship-float {
  0%, 100% {
    transform: translateY(0) rotate(-0.4deg);
  }
  50% {
    transform: translateY(-6px) rotate(0.4deg);
  }
}

@keyframes ship-thrust-flicker {
  0%, 100% {
    opacity: 0.78;
    transform: translateX(-50%) scaleY(1) scaleX(1);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scaleY(1.08) scaleX(0.94);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ship,
  .ship-thrust {
    animation: none;
  }
}

/* ---------- stars ---------- */

.starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.star {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
  animation: star-drift linear infinite, star-twinkle ease-in-out infinite;
}

@keyframes star-drift {
  from { transform: translate3d(0, -12vh, 0); }
  to   { transform: translate3d(0, 112vh, 0); }
}

@keyframes star-twinkle {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .star {
    animation: none;
  }
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "Outfit", sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    background 200ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--amber);
  color: #120f14;
  box-shadow:
    0 14px 36px var(--amber-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--amber-strong);
  box-shadow:
    0 18px 44px var(--amber-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

/* ---------- cta row + footer links ---------- */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.cta-row .button {
  min-width: 180px;
}

.button--instagram {
  background: linear-gradient(
    135deg,
    #f09433 0%,
    #e6683c 22%,
    #dc2743 48%,
    #cc2366 72%,
    #bc1888 100%
  );
  color: #fff;
  box-shadow:
    0 14px 36px rgba(204, 35, 102, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.button--instagram:hover,
.button--instagram:focus-visible {
  box-shadow:
    0 18px 44px rgba(204, 35, 102, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.button-icon {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  flex-shrink: 0;
}

.button--disabled,
.button--disabled:hover,
.button--disabled:focus-visible {
  background: rgba(236, 231, 239, 0.06);
  color: rgba(236, 231, 239, 0.38);
  box-shadow: none;
  cursor: default;
  transform: none;
  pointer-events: none;
}

.site-footer--home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 0 12px;
  position: relative;
  z-index: 1;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 12px;
  color: var(--text-tertiary);
  font-family: "Outfit", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--text-tertiary);
  text-decoration: none;
  padding: 4px 2px;
  transition: color 160ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text-primary);
}

.footer-links a[aria-current="page"] {
  color: var(--text-secondary);
}

.footer-links__dot {
  color: var(--text-tertiary);
  opacity: 0.6;
  user-select: none;
}

.site-footer--policy {
  max-width: 1080px;
  margin: 28px auto 0;
  padding: 24px 24px 32px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
  position: relative;
  z-index: 1;
}

.site-footer--policy .footer-links {
  justify-content: center;
}

/* ---------- privacy page ---------- */

.site-policy {
  padding-bottom: 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Outfit", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 14px 32px rgba(0, 0, 0, 0.4);
}

.topnav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topnav a,
.topnav-disabled {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.015);
  color: var(--text-secondary);
  font-family: "Outfit", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  border-color: rgba(232, 183, 79, 0.3);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.topnav-disabled {
  color: var(--text-tertiary);
  cursor: default;
}

.policy-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 0 24px 40px;
  position: relative;
  z-index: 1;
}

.policy-hero {
  padding-bottom: 36px;
}

.policy-hero h1 {
  margin: 0;
  max-width: 18ch;
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.policy-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.policy-summary-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.025);
}

.policy-summary-card strong {
  display: block;
  margin: 0 0 8px;
  font-family: "Outfit", sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.policy-summary-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.policy-notice {
  margin: 28px 0 32px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(232, 183, 79, 0.26);
  background: rgba(232, 183, 79, 0.04);
  color: var(--amber-strong);
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 32px;
}

.policy-toc {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 0;
  border: 0;
  background: transparent;
}

.policy-toc h2 {
  margin: 0 0 14px;
  color: var(--text-tertiary);
  font-family: "Outfit", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.policy-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.policy-toc li {
  counter-increment: toc;
}

.policy-toc li + li {
  margin-top: 8px;
}

.policy-toc a {
  display: block;
  padding: 4px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.policy-toc a::before {
  content: counter(toc, decimal-leading-zero);
  display: inline-block;
  width: 2.4em;
  color: var(--text-tertiary);
  font-family: "Outfit", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.policy-toc a:hover,
.policy-toc a:focus-visible {
  color: var(--text-primary);
}

.policy-content {
  display: grid;
  gap: 14px;
}

.policy-section {
  padding: 26px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
}

.policy-section h2 {
  margin: 0 0 14px;
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.policy-section h3 {
  margin: 18px 0 8px;
  font-family: "Outfit", sans-serif;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-primary);
}

.policy-section p,
.policy-section li {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.policy-section p + p,
.policy-section ul + p,
.policy-section p + ul {
  margin-top: 12px;
}

.policy-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.policy-section li + li {
  margin-top: 8px;
}

.placeholder-chip {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(232, 183, 79, 0.22);
  background: rgba(232, 183, 79, 0.06);
  color: var(--amber-strong);
  font-family: "Outfit", sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .policy-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .policy-toc {
    position: static;
  }

  .policy-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell,
  .policy-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .topbar {
    margin-bottom: 36px;
  }

  .site-home {
    padding: 24px 20px 32px;
  }

  .splash-stage {
    grid-template-rows: minmax(96px, 1fr) auto minmax(110px, 1fr);
    padding: 4vh 0 2vh;
  }

  .splash-copy--top h1 {
    max-width: 9ch;
    margin: 0 auto;
  }

  .policy-summary-grid {
    grid-template-columns: 1fr;
  }

  .policy-section {
    padding: 22px 22px;
  }
}
