:root {
  --bg: #07080b;
  --bg-top: #101218;
  --text: #f4f7fb;
  --text-soft: rgba(236, 241, 249, 0.82);
  --text-muted: rgba(214, 222, 235, 0.56);
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.12);
  --panel: rgba(17, 21, 30, 0.58);
  --panel-strong: rgba(20, 24, 33, 0.7);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  --accent-a: #4ae0ac;
  --accent-b: #3b96ff;
  --accent-c: #855bff;
  --accent-d: #39d3c9;
  --font-body: "Manrope", "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
  --font-display: "Sora", "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --font-headline: "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  min-height: 100%;
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.04), transparent 0 24%),
    radial-gradient(circle at 88% 10%, rgba(58, 209, 188, 0.1), transparent 0 20%),
    radial-gradient(circle at 8% 86%, rgba(59, 150, 255, 0.11), transparent 0 24%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 42%, #08090c 100%);
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 85% 12%, rgba(74, 224, 172, 0.15), transparent 0 18%),
    radial-gradient(circle at 14% 82%, rgba(59, 150, 255, 0.12), transparent 0 20%);
  filter: blur(30px);
  opacity: 0.76;
  animation: aura-breathe 18s ease-in-out infinite;
}

body::after {
  background-image:
    linear-gradient(115deg, rgba(255, 255, 255, 0.016) 0%, transparent 34%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.012) 0,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px,
      transparent 7px
    );
  opacity: 0.22;
  mix-blend-mode: soft-light;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  --pointer-x: 84%;
  --pointer-y: 12%;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.15rem, 2.2vw, 2rem) clamp(1rem, 3vw, 3.2rem) clamp(1.1rem, 2.8vw, 1.9rem);
  isolation: isolate;
}

body[data-page="home"] .page-shell {
  height: 100vh;
  height: 100svh;
  overflow: clip;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-shell::before {
  background:
    radial-gradient(circle at 51% 36%, rgba(255, 255, 255, 0.022), transparent 0 31%),
    radial-gradient(circle at 56% 28%, rgba(133, 91, 255, 0.05), transparent 0 17%);
  opacity: 0.95;
}

.page-shell::after {
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(74, 224, 172, 0.05), transparent 0 15%),
    radial-gradient(circle at calc(var(--pointer-x) - 13%) calc(var(--pointer-y) + 11%), rgba(59, 150, 255, 0.045), transparent 0 14%);
  opacity: 0.9;
}

.site-header,
.home-main,
.document-main,
.home-footer,
.document-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.86rem;
  color: rgba(249, 252, 255, 0.98);
  letter-spacing: -0.03em;
}

.brand__mark {
  width: 0.92rem;
  height: 0.92rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.11rem;
  transform: rotate(-6deg);
}

.brand__mark span {
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.58));
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.15);
}

.brand__mark span:nth-child(1) {
  transform: scale(1.05);
}

.brand__mark span:nth-child(2) {
  transform: translateY(0.08rem) scale(0.88);
}

.brand__mark span:nth-child(3) {
  transform: translateY(-0.08rem) scale(0.84);
}

.brand__mark span:nth-child(4) {
  transform: scale(1.08);
}

.brand__label {
  font-family: var(--font-display);
  font-size: 1.01rem;
  font-weight: 700;
}

.site-nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.9rem, 1.9vw, 2.05rem);
  flex-wrap: wrap;
}

.site-nav a,
.document-links a,
.cluster-links a,
.footer-meta a {
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav a {
  position: relative;
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.34rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(74, 224, 172, 0), rgba(74, 224, 172, 0.78), rgba(133, 91, 255, 0));
  transform: scaleX(0.28);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"],
.document-links a:hover,
.document-links a:focus-visible,
.cluster-links a:hover,
.cluster-links a:focus-visible,
.cluster-links a[aria-current="page"],
.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: rgba(247, 250, 255, 0.98);
  transform: translateY(-1px);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  opacity: 1;
}

.apple-logo {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.94rem;
  height: 1.94rem;
  color: rgba(249, 252, 255, 0.94);
  opacity: 0.92;
}

.apple-logo svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.apple-logo:hover,
.apple-logo:focus-visible {
  opacity: 1;
}

.home-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding-block: clamp(0.3rem, 2.6vh, 1rem) clamp(1rem, 4.4vh, 2rem);
}

.hero-copy {
  position: relative;
  width: min(100%, 51rem);
  margin: 0 auto;
  transform: translateY(clamp(-2.15rem, -4vh, -1rem));
  padding-inline: clamp(0.25rem, 2vw, 1rem);
  text-align: center;
}

.hero-copy::before,
.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  z-index: -1;
}

.hero-copy::before {
  width: min(62vw, 46rem);
  height: min(32vw, 18rem);
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(60, 144, 255, 0.16), rgba(133, 91, 255, 0.09) 44%, transparent 74%);
  filter: blur(44px);
  opacity: 0.55;
}

.hero-copy::after {
  width: min(48vw, 34rem);
  height: min(24vw, 12rem);
  right: 12%;
  top: 36%;
  background: radial-gradient(circle, rgba(74, 224, 172, 0.18), transparent 68%);
  filter: blur(34px);
  opacity: 0.34;
}

.hero-title {
  display: inline-block;
  margin: 0 auto;
  max-width: none;
  padding: 0.04em 0.025em 0.16em;
  font-family: var(--font-headline);
  font-size: clamp(2.8rem, 5.15vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.052em;
  font-weight: 800;
  white-space: nowrap;
  overflow: visible;
  background:
    linear-gradient(96deg, var(--accent-d) 0%, var(--accent-a) 18%, var(--accent-b) 54%, var(--accent-c) 82%, #7d63ff 100%);
  background-size: 150% 150%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 28px rgba(59, 150, 255, 0.12));
  animation: gradient-shift 18s ease-in-out infinite;
}

.hero-subtitle {
  max-width: 31rem;
  margin: 0.45rem auto 0;
  color: rgba(244, 247, 252, 0.9);
  font-size: clamp(0.98rem, 0.95vw + 0.58rem, 1.16rem);
  line-height: 1.62;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.home-footer,
.document-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.home-footer {
  padding-top: 0.55rem;
}

.document-footer {
  padding-top: 2rem;
}

.trust-cluster {
  max-width: 15.5rem;
}

.cluster-links {
  display: grid;
  gap: 0.46rem;
}

.cluster-links a {
  width: fit-content;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.38;
}

.footer-meta {
  margin-left: auto;
  display: grid;
  gap: 0.34rem;
  text-align: right;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.4;
}

.footer-note {
  color: rgba(221, 228, 239, 0.42);
  font-size: 0.82rem;
}

.document-main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-block: clamp(2.2rem, 6.8vh, 4.35rem) clamp(2.8rem, 8.6vh, 5.4rem);
}

.document-stage {
  width: min(100%, 60rem);
  margin: 0 auto;
}

.document-hero-panel {
  position: relative;
  width: min(100%, 46.5rem);
  margin: 0 auto;
  padding: clamp(1.35rem, 3.2vw, 2.15rem) clamp(1.2rem, 4vw, 2.55rem) clamp(1.55rem, 4vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2.35rem;
  background:
    radial-gradient(circle at 18% 14%, rgba(78, 221, 182, 0.05), transparent 0 28%),
    radial-gradient(circle at 84% 88%, rgba(133, 91, 255, 0.07), transparent 0 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.016)),
    linear-gradient(135deg, rgba(58, 147, 255, 0.04), rgba(74, 224, 172, 0.02), rgba(133, 91, 255, 0.046)),
    var(--panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px);
  text-align: center;
  overflow: hidden;
}

.document-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 224, 172, 0.6), rgba(133, 91, 255, 0.55), transparent);
}

.document-kicker {
  margin: 0;
  color: rgba(245, 248, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.document-title {
  margin: 0.84rem 0 0;
  font-family: var(--font-headline);
  font-size: clamp(2.7rem, 4.7vw, 4.45rem);
  line-height: 0.97;
  letter-spacing: -0.06em;
  font-weight: 800;
  text-wrap: balance;
}

.document-summary {
  max-width: 38rem;
  margin: 1.05rem auto 0;
  color: rgba(244, 247, 252, 0.84);
  font-size: clamp(1rem, 1.85vw, 1.2rem);
  line-height: 1.62;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.document-links {
  margin-top: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.68rem 0.95rem;
}

.document-links a {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.4;
}

.document-links__divider {
  color: rgba(255, 255, 255, 0.16);
}

.document-meta {
  margin-top: 0.95rem;
  color: rgba(221, 228, 239, 0.42);
  font-size: 0.84rem;
  line-height: 1.4;
}

.document-copy {
  width: min(100%, 50rem);
  margin: 2rem auto 0;
  display: grid;
  gap: 1.35rem;
}

.document-copy section {
  position: relative;
  width: min(100%, 46rem);
  padding: clamp(1.35rem, 3vw, 1.85rem) clamp(1.18rem, 3vw, 1.75rem);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.9rem;
  background:
    radial-gradient(circle at 12% 14%, rgba(74, 224, 172, 0.04), transparent 0 26%),
    radial-gradient(circle at 90% 86%, rgba(133, 91, 255, 0.052), transparent 0 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    var(--panel-strong);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.document-copy section:nth-child(odd) {
  margin-right: auto;
}

.document-copy section:nth-child(even) {
  margin-left: auto;
  width: min(100%, 43.5rem);
}

.document-copy section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 224, 172, 0.4), rgba(133, 91, 255, 0.32), transparent);
}

.document-copy h2 {
  margin: 0 0 0.8rem;
  color: rgba(248, 250, 255, 0.94);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.document-copy p,
.document-copy li {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: -0.01em;
}

.document-copy p + p {
  margin-top: 0.9rem;
}

.document-copy ul,
.document-copy ol {
  margin: 0.8rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.68rem;
}

.document-copy strong {
  color: rgba(248, 250, 255, 0.96);
}

.document-copy a {
  color: rgba(236, 242, 252, 0.96);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(133, 91, 255, 0.34);
}

.contact-lines {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.15rem;
}

.contact-line {
  padding: 1.05rem 1.08rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 10% 15%, rgba(74, 224, 172, 0.03), transparent 0 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.contact-line span {
  display: block;
  margin-bottom: 0.36rem;
  color: rgba(248, 250, 255, 0.93);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes aura-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.68;
  }

  50% {
    transform: scale(1.03);
    opacity: 0.92;
  }
}

@media (max-width: 980px) {
  .document-title {
    font-size: clamp(2.6rem, 7vw, 4.2rem);
  }

  .hero-title {
    font-size: clamp(2.75rem, 5vw, 4.5rem);
  }
}

@media (max-width: 860px) {
  .page-shell {
    padding: 1rem 1rem 1.12rem;
  }

  body[data-page="home"] .page-shell {
    height: auto;
    overflow: visible;
  }

  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.82rem;
  }

  .brand,
  .apple-logo {
    justify-self: center;
  }

  .home-main,
  .document-main {
    padding-block: 2.1rem 2.7rem;
  }

  .hero-copy::before,
  .hero-copy::after {
    opacity: 0.36;
  }

  .home-footer,
  .document-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.45rem;
  }

  .footer-meta {
    margin-left: 0;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .site-nav {
    gap: 0.76rem 1.1rem;
  }

  .site-nav a {
    font-size: 0.91rem;
  }

  .apple-logo {
    width: 1.7rem;
    height: 1.7rem;
  }

  .hero-title {
    white-space: normal;
    font-size: clamp(2.7rem, 13vw, 4rem);
    line-height: 1.02;
  }

  .hero-subtitle {
    max-width: 27rem;
    margin-top: 1rem;
    font-size: 1rem;
  }

  .document-hero-panel {
    border-radius: 1.5rem;
  }

  .document-title {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

  .document-summary,
  .document-copy p,
  .document-copy li,
  .cluster-links a,
  .footer-meta {
    font-size: 0.95rem;
  }

  .document-copy {
    margin-top: 1.35rem;
  }

  .document-copy section {
    border-radius: 1.2rem;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
