@font-face {
  font-family: 'OpalGeist';
  src: url('/aster-site/assets/fonts/geist-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OpalGeist';
  src: url('/aster-site/assets/fonts/geist-medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OpalGeist';
  src: url('/aster-site/assets/fonts/geist-semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-void: #000000;
  --bg-surface: #0e0f12;
  --bg-raised: #17191f;
  --ink-primary: #f5f7fa;
  --ink-secondary: #a1a8b3;
  --ink-muted: #707784;
  --star-ice: #d6e6ed;
  --hairline: rgba(255, 255, 255, 0.1);
  --hairline-strong: rgba(255, 255, 255, 0.18);
  --radius-lg: 28px;
  --radius-pill: 999px;
}

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

html {
  background: var(--bg-void);
  color: var(--ink-primary);
  font-family: 'OpalGeist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-void);
  color: var(--ink-primary);
  overflow-x: hidden;
}

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

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

:focus-visible {
  outline: 2px solid var(--star-ice);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink-primary);
  color: #000;
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand__wordmark {
  height: 20px;
  width: auto;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.04);
}

.lang-switch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  min-width: 38px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.lang-switch__btn[aria-pressed='true'] {
  background: var(--ink-primary);
  color: #000;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
  font-weight: 500;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.11);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 108px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
}

.hero__title {
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.03;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero__lead {
  margin: 24px 0 0;
  max-width: 52ch;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.58;
  color: var(--ink-secondary);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: opacity 150ms ease, background-color 150ms ease;
}

.btn--primary {
  background: var(--ink-primary);
  color: #000;
}

.btn--primary:hover {
  opacity: 0.92;
}

.btn--secondary {
  background: var(--bg-raised);
  color: var(--ink-primary);
  border: 1px solid var(--hairline-strong);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero__meta {
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* Interactive iPhone centerpiece */
.hero__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero__star {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(500px, 115%);
  height: auto;
  transform: translate(-50%, -54%);
  opacity: 0.36;
  filter: blur(1px);
  pointer-events: none;
  z-index: 0;
}

.device {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.device__bezel {
  position: relative;
  width: min(306px, 78vw);
  aspect-ratio: 393 / 852;
  padding: 10px;
  border-radius: 48px;
  background: linear-gradient(180deg, #272b33 0%, #101216 45%, #1e2229 100%);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.85),
    0 0 80px rgba(214, 230, 237, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.device__island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 82px;
  height: 22px;
  border-radius: 999px;
  background: #000;
  z-index: 3;
}

.device__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #000;
}

.device__screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 220ms ease;
}

.device__screen.is-active {
  opacity: 1;
}

.screen-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hairline);
}

.screen-tabs__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.screen-tabs__btn.is-active,
.screen-tabs__btn[aria-selected='true'] {
  background: var(--ink-primary);
  color: #000;
  font-weight: 600;
}

/* Editorial bands */
.editorial {
  padding: clamp(32px, 6vw, 72px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
  padding: clamp(32px, 5vw, 56px) 0;
}

.band + .band {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.band--reverse .band__media {
  order: 2;
}

.band__media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-surface);
  box-shadow: inset 0 0.5px 0 rgba(255, 255, 255, 0.28);
}

.band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.band__media::after {
  content: '';
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.84));
  pointer-events: none;
}

.band__caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.band__caption strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.band__caption span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.band__body h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.band__body p {
  margin: 16px 0 0;
  max-width: 50ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

/* Privacy principles */
.principles {
  padding: clamp(52px, 7vw, 92px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.principles__heading {
  margin: 0 0 36px;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.principles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.principle {
  padding-top: 20px;
  border-top: 1px solid var(--hairline-strong);
}

.principle h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.principle p {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* Closing CTA */
.closing {
  padding: clamp(56px, 8vw, 100px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(ellipse 65% 80% at 50% 0%, rgba(214, 230, 237, 0.08), transparent 70%);
}

.closing__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.closing__mark {
  margin-bottom: 20px;
  opacity: 0.92;
}

.closing h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.closing p {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

.closing__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0 40px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14px;
  color: var(--ink-secondary);
}

.footer__links a:hover {
  color: var(--ink-primary);
}

@media (max-width: 880px) {
  .hero__grid,
  .band,
  .principles__grid {
    grid-template-columns: 1fr;
  }

  .band--reverse .band__media {
    order: 0;
  }

  .hero__copy {
    text-align: left;
  }

  .hero__stage {
    padding-top: 12px;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero__cta,
  .closing__cta {
    width: 100%;
  }

  .hero__cta .btn,
  .closing__cta .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .device__screen,
  .btn {
    transition: none;
  }
}
