:root {
  --bg: #050507;
  --bg-elevated: #0c0c10;
  --surface: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --muted: #86868b;
  --accent: #7a6bf0;
  --accent-soft: #a194fa;
  --content: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
}

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

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

button {
  font: inherit;
  border: 0;
  cursor: default;
}

::selection {
  background: rgba(122, 107, 240, 0.35);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 50;
  border-radius: 0.5rem;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.75rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--content));
  margin-inline: auto;
}

@media (min-width: 768px) {
  .wrap {
    width: min(100% - 4rem, var(--content));
  }
}

.nav-glass {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 7, 0.72);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav-glass.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 5, 7, 0.86);
}

.nav-inner {
  display: flex;
  height: 3rem;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .nav-inner {
    height: 3.5rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  object-fit: cover;
}

.brand span {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.9);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}

.nav-links a:hover {
  color: #fff;
}

.nav-hide-sm {
  display: none;
}

.nav-hide-md {
  display: none;
}

@media (min-width: 640px) {
  .nav-hide-sm {
    display: inline;
  }
}

@media (min-width: 768px) {
  .nav-hide-md {
    display: inline;
  }
}

.hero {
  position: relative;
  overflow: hidden;
}

.ambient {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ambient::before,
.ambient::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.ambient::before {
  width: 520px;
  height: 520px;
  top: -180px;
  left: 50%;
  transform: translateX(-72%);
  background: radial-gradient(circle, rgba(42, 40, 64, 0.55) 0%, transparent 70%);
}

.ambient::after {
  width: 420px;
  height: 420px;
  top: 80px;
  right: -80px;
  background: radial-gradient(circle, rgba(122, 107, 240, 0.12) 0%, transparent 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  padding: 4rem 0 5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    padding: 6rem 0 7rem;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    padding: 7rem 0 8rem;
  }
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.hero h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.038em;
  color: #f5f5f7;
}

.lede {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  line-height: 1.7;
  color: var(--muted);
}

.cta-row {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cta-note {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 980px;
  background: #f5f5f7;
  color: #000;
  transition: transform 0.2s ease, background 0.2s ease;
}

.store-btn:hover {
  background: #fff;
  transform: scale(1.02);
}

.store-btn:active {
  transform: scale(0.98);
}

.store-btn .tiny {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
}

.store-btn .big {
  display: block;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .phone-wrap {
    justify-content: flex-end;
  }
}

.phone-glow {
  position: absolute;
  inset: 18% -8% auto;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(122, 107, 240, 0.16), transparent 68%);
  filter: blur(18px);
  z-index: -1;
}

.iphone {
  width: 272px;
  height: 556px;
  padding: 11px;
  border-radius: 46px;
  position: relative;
  background: linear-gradient(160deg, #4a4a4e 0%, #1c1c1e 38%, #0b0b0d 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 50px 80px rgba(0, 0, 0, 0.55);
}

.iphone::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 108px;
  width: 3px;
  height: 86px;
  border-radius: 2px 0 0 2px;
  background: #2c2c2e;
}

.iphone::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 148px;
  width: 3px;
  height: 64px;
  border-radius: 0 2px 2px 0;
  background: #2c2c2e;
}

.iphone-screen {
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  background: #121220;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6) inset;
  color: #fff;
}

.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  border-radius: 20px;
  background: #000;
  z-index: 3;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 10px;
}

.phone-body {
  display: flex;
  height: calc(100% - 34px);
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.25rem 1.25rem;
}

.phone-logo {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
}

.phone-title {
  margin: 0.75rem 0 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

.phone-sub {
  margin: 0.5rem 0 0;
  max-width: 180px;
  text-align: center;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.4);
}

.faceid-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 1.25rem;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.phone-hint {
  margin: 0.75rem 0 0;
  max-width: 190px;
  text-align: center;
  font-size: 10px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.35);
}

.pin-row {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.65rem;
}

.pin-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.pin-dot.filled {
  background: #f5f5f7;
  border-color: #f5f5f7;
}

.keypad {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  gap: 0.65rem 0;
  padding-bottom: 0.25rem;
}

.key {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.key small {
  display: block;
  font-size: 7px;
  letter-spacing: 0.18em;
  font-weight: 600;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.55);
}

.architecture {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .architecture {
    padding: 7rem 0;
  }
}

.architecture h2 {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #f5f5f7;
}

.architecture .section-lede {
  margin: 1rem 0 0;
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted);
}

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

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.glass-card {
  position: relative;
  border-radius: 22px;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.025) 100%);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.icon-well {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: #d2d2d7;
}

.glass-card h3 {
  margin: 1.25rem 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card-kicker {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.card-copy {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

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

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.reveal,
.card-reveal {
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.18s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.42s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.legal-page {
  width: min(100% - 2.5rem, 48rem);
  margin: 0 auto;
  padding: 3.5rem 0 5rem;
}

.legal-page .eyebrow {
  margin-bottom: 0.75rem;
}

.legal-page h1 {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.legal-meta {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

.legal-copy {
  margin-top: 2.5rem;
}

.legal-copy h2 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 2.1rem 0 0.7rem;
  color: #f5f5f7;
}

.legal-copy p,
.legal-copy li {
  color: rgba(245, 245, 247, 0.72);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-copy ul {
  margin: 0.6rem 0 0.4rem 1.1rem;
  padding: 0;
  list-style: disc;
}

.legal-copy li + li {
  margin-top: 0.35rem;
}

.legal-copy strong {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.legal-copy table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.4rem;
  font-size: 0.88rem;
}

.legal-copy th,
.legal-copy td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid var(--line);
  color: rgba(245, 245, 247, 0.72);
}

.legal-copy th {
  color: #f5f5f7;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
}

.legal-copy a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .card-reveal,
  .glass-card {
    animation: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
