:root {
  --black: #000;
  --ink: #1d1d1f;
  --paper: #f5f5f7;
  --muted: #86868b;
  --footer-ink: #6e6e73;
  --blue: #2997ff;
  --blue-fill: #0071e3;
  --blue-fill-hover: #0077ed;
  --nav-h: 48px;
  --max: 980px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  letter-spacing: -0.016em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--blue-fill);
  color: #fff;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 40;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

/* Nav — Apple product bar */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.25s ease;
}

.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.92);
}

.nav-inner {
  max-width: 1024px;
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
  opacity: 0.92;
}

.logo:hover {
  opacity: 1;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: -0.01em;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.lang {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
}

.lang span {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.28);
}

.lang button {
  padding: 0;
  color: rgba(255, 255, 255, 0.48);
}

.lang button:hover,
.lang button[aria-pressed="true"] {
  color: #fff;
}

.lang button[aria-pressed="true"] {
  font-weight: 600;
}

/* Hero */

.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  padding: 72px 22px 0;
  text-align: center;
  overflow: hidden;
}

.kicker {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.hero h1 {
  margin: 0 auto 14px;
  max-width: 10em;
  font-size: clamp(56px, 11vw, 96px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.lede {
  margin: 0 auto 28px;
  max-width: 22em;
  font-size: 21px;
  line-height: 1.381;
  font-weight: 400;
  color: var(--muted);
  text-wrap: pretty;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 980px;
  background: var(--blue-fill);
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--blue-fill-hover);
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 17px;
  letter-spacing: -0.01em;
}

.text-link svg {
  width: 7px;
  height: 12px;
  margin-top: 1px;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Orbital stage */

.stage {
  position: relative;
  height: min(52vh, 460px);
  margin-top: 28px;
  perspective: 900px;
}

.stage-glow {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(72vw, 520px);
  height: 220px;
  transform: translate(-50%, -40%);
  background: radial-gradient(ellipse at center, rgba(80, 160, 255, 0.28), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.orb {
  position: relative;
  width: min(72vw, 520px);
  height: min(42vw, 300px);
  margin: 36px auto 0;
  transform-style: preserve-3d;
  transform: rotateX(66deg);
}

.core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff, #9ec4ff 28%, #1a3d73 62%, #05070c 100%);
  box-shadow:
    0 0 40px rgba(150, 200, 255, 0.35),
    0 0 80px rgba(0, 113, 227, 0.2);
}

.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: orbit 42s linear infinite;
}

.r1 {
  width: 38%;
  height: 38%;
  animation-duration: 28s;
}
.r2 {
  width: 58%;
  height: 58%;
  border-color: rgba(255, 255, 255, 0.2);
  animation-duration: 38s;
  animation-direction: reverse;
}
.r3 {
  width: 78%;
  height: 78%;
  animation-duration: 52s;
}
.r4 {
  width: 100%;
  height: 100%;
  border-color: rgba(255, 255, 255, 0.1);
  animation-duration: 64s;
  animation-direction: reverse;
}

@keyframes orbit {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Specs — Apple fact row */

.specs {
  background: var(--paper);
  color: var(--ink);
  padding: 84px 22px 92px;
}

.spec-row {
  list-style: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.spec-row li {
  margin: 0;
}

.spec-row span {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.spec-row strong {
  display: block;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

/* Business scope */

.scope {
  background: #fff;
  color: var(--ink);
  padding: 48px 22px 96px;
}

.scope-head {
  max-width: var(--max);
  margin: 0 auto 36px;
  text-align: center;
}

.scope-head .eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
}

.scope-head h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.scope-grid {
  list-style: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.scope-grid li {
  margin: 0;
  padding: 28px 26px;
  border-radius: 18px;
  background: var(--paper);
}

.scope-grid li:last-child {
  grid-column: auto;
}

.scope-grid h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.scope-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.47;
}

.scope-legal {
  max-width: var(--max);
  margin: 36px auto 0;
  color: var(--footer-ink);
  font-size: 12px;
  line-height: 1.6;
}

/* Footer */

.footer {
  background: var(--paper);
  color: var(--footer-ink);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 20px 22px 48px;
  font-size: 12px;
  line-height: 1.333;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.crumb {
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ink);
  font-size: 12px;
}

.crumb-sep {
  margin: 0 6px;
  color: var(--footer-ink);
}

.legal,
.copyright {
  margin: 0;
}

.copyright {
  margin-top: 8px;
}

/* Contact */

.page-contact {
  background: var(--paper);
  color: var(--ink);
}

.contact-main {
  min-height: calc(100svh - var(--nav-h) - 140px);
}

.contact-hero {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 22px 28px;
  text-align: center;
}

.contact-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(40px, 8vw, 56px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.07;
}

.contact-hero .lede {
  margin: 0 auto;
  color: var(--muted);
}

.contact-panel {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 22px 96px;
}

.contact-form {
  display: grid;
  gap: 22px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field label,
.field legend {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  letter-spacing: -0.01em;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 148px;
  line-height: 1.47;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--blue-fill);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.16);
}

.field-error {
  min-height: 1.2em;
  margin: 6px 0 0;
  font-size: 12px;
  color: #bf4800;
}

.segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px;
  border-radius: 12px;
  background: #e8e8ed;
}

.choice {
  margin: 0;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.choice input:checked + span {
  background: #fff;
}

.choice input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.16);
}

.contact-form .btn {
  justify-self: center;
  min-width: 168px;
}

.form-status {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: #bf4800;
}

.contact-success {
  padding: 48px 0 24px;
  text-align: center;
}

.contact-success h2 {
  margin: 0 0 12px;
  font-size: clamp(40px, 8vw, 56px);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.contact-success .lede {
  margin-bottom: 28px;
}

.contact-success .text-link {
  justify-content: center;
}

.page-contact .footer {
  background: var(--paper);
}

@media (max-width: 640px) {
  .contact-hero {
    padding-top: 48px;
  }
}

/* Motion */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 {
  animation-delay: 0.08s;
}

.delay-2 {
  animation-delay: 0.16s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .ring {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 56px;
  }

  .kicker {
    font-size: 17px;
  }

  .lede {
    font-size: 19px;
  }

  .hero-cta {
    gap: 16px;
    flex-direction: column;
  }

  .stage {
    height: 280px;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .spec-row strong {
    font-size: 40px;
  }

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

  .scope-grid li:last-child {
    grid-column: auto;
  }
}
