: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: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 800;
  letter-spacing: -0.02em;
}

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.85rem;
  height: 1.85rem;
  object-fit: cover;
  background: #121220;
  border-radius: 8px;
}

.brand span {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.92);
}

.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: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.hero h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(2.15rem, 5.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: #f5f5f7;
}

.lede {
  margin: 1.5rem 0 0;
  max-width: 36rem;
  font-size: clamp(0.95rem, 1.7vw, 1.05rem);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: -0.01em;
  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: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
}

.store-btn .big {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.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: min(280px, 78vw);
  position: relative;
  padding: 10px;
  border-radius: 42px;
  background: linear-gradient(160deg, #3a3a3e 0%, #141416 42%, #050506 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 40px 70px rgba(0, 0, 0, 0.55);
}

.iphone-screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
  overflow: hidden;
  background: #121025;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55) inset;
}

.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(1.85rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #f5f5f7;
}

.architecture .section-lede {
  margin: 1rem 0 0;
  max-width: 42rem;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.75;
  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: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

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

.card-copy {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.65;
  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: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.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-banner {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.legal-banner p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.82);
}

.legal-copy h3 {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 1.4rem 0 0.55rem;
  color: #f5f5f7;
}

.legal-copy h2 {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 2.1rem 0 0.7rem;
  color: #f5f5f7;
}

.legal-copy p,
.legal-copy li {
  color: rgba(245, 245, 247, 0.72);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.75;
}

.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;
  }
}
