:root {
  --background: #0b0d0c;
  --card: #111716;
  --raised: #18231f;
  --accent: #1e332e;
  --gold: #e6c15a;
  --gold-soft: #d8b85a;
  --text: #f7f0df;
  --muted: #b9b4a8;
  --border: rgba(247, 240, 223, 0.12);
  --line: rgba(230, 193, 90, 0.22);
  --shadow: rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(230, 193, 90, 0.16), transparent 24rem),
    radial-gradient(circle at 12% 20%, rgba(30, 51, 46, 0.9), transparent 30rem),
    linear-gradient(180deg, #080a09 0%, var(--background) 48%, #070908 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(247, 240, 223, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 240, 223, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, black 18%, black 72%, transparent);
}

a {
  color: inherit;
}

.site-story,
.page-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.page-shell.narrow {
  width: min(860px, calc(100% - 32px));
}

.top-nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0 34px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
}

.brand-mark img {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  box-shadow: 0 12px 32px var(--shadow);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-links a:hover {
  color: var(--gold);
}

.store-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.beta-pill,
.nav-links a.beta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(230, 193, 90, 0.42);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--gold);
  background: rgba(230, 193, 90, 0.08);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.beta-pill:hover,
.nav-links a.beta-pill:hover {
  border-color: rgba(230, 193, 90, 0.72);
  color: #151a18;
  background: var(--gold);
}

.button {
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: #151a18;
}

.button.secondary {
  border: 1px solid var(--border);
  color: var(--text);
}

h1,
h2,
p {
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cinematic-hero {
  position: relative;
  display: grid;
  min-height: 78vh;
  align-items: center;
  padding: 24px 0 88px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(790px, 100%);
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(4rem, 11vw, 9.8rem);
  line-height: 0.86;
  letter-spacing: -0.06em;
}

.lede,
.document-hero p,
.quiet-panel p {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.7;
}

.hero-orbit {
  position: absolute;
  right: max(-80px, -5vw);
  bottom: 10%;
  width: min(460px, 54vw);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  opacity: 0.78;
}

.hero-orbit span {
  position: absolute;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.hero-orbit span:nth-child(1) {
  inset: 12%;
}

.hero-orbit span:nth-child(2) {
  inset: 28%;
  background: rgba(30, 51, 46, 0.34);
}

.hero-orbit span:nth-child(3) {
  width: 8px;
  height: 8px;
  right: 18%;
  top: 29%;
  border: 0;
  background: var(--gold);
  box-shadow: 0 0 34px rgba(230, 193, 90, 0.85);
}

.scroll-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(34px, 8vw, 100px);
  align-items: start;
  min-height: 112vh;
  padding: 12vh 0;
}

.story-copy {
  position: sticky;
  top: 112px;
  padding-top: 24px;
}

.story-copy h2,
.quiet-panel h2,
.document-hero h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 7vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.story-copy p,
.large-line p {
  color: var(--muted);
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  line-height: 1.65;
}

.phone-stage {
  position: sticky;
  top: 96px;
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.phone-card {
  position: relative;
  width: min(340px, 100%);
  border: 1px solid var(--border);
  border-radius: 38px;
  padding: 18px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.08), transparent),
    var(--card);
  box-shadow: 0 34px 80px var(--shadow);
}

.phone-card::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 52px;
  background:
    linear-gradient(140deg, rgba(230, 193, 90, 0.16), transparent 42%),
    rgba(30, 51, 46, 0.74);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.phone-top img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.phone-top p {
  margin-bottom: 1px;
  color: var(--gold);
  font-size: 0.98rem;
  font-weight: 900;
}

.phone-top span,
.glance-card p,
.glance-grid span {
  color: var(--muted);
}

.phone-top span {
  font-size: 0.9rem;
}

.glance-card,
.glance-grid > div {
  border: 1px solid var(--border);
  background: var(--raised);
}

.glance-card {
  border-radius: 24px;
  padding: 16px 18px;
  margin-bottom: 10px;
}

.mini-label {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.glance-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.18;
}

.glance-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.glance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.glance-grid > div {
  min-height: auto;
  border-radius: 22px;
  padding: 14px;
}

.detail-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
}

.mini-detail-list {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.mini-detail-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.24;
}

.idea-card {
  margin-bottom: 0;
}

.large-line {
  min-height: 78vh;
  display: grid;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.large-line p {
  max-width: 980px;
  margin: 0 auto;
  color: var(--text);
  font-size: clamp(2.5rem, 7vw, 6.8rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-align: center;
}

.gesture-flow {
  padding: 18vh 0 10vh;
}

.gesture-step {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(18px, 5vw, 60px);
  align-items: baseline;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.gesture-step:first-child {
  border-top: 1px solid var(--line);
}

.gesture-step span {
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.gesture-step p {
  margin: 0;
  max-width: 820px;
  color: var(--text);
  font-size: clamp(2rem, 5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.home-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 0 0 6vh;
}

.document-hero {
  padding: 54px 0 24px;
}

.privacy-page {
  width: min(980px, calc(100% - 32px));
}

.privacy-hero {
  min-height: 54vh;
  display: grid;
  align-content: center;
}

.privacy-bubble-story {
  display: grid;
  gap: clamp(120px, 18vh, 220px);
  padding: 6vh 0 12vh;
}

.privacy-bubble {
  position: sticky;
  top: 96px;
  z-index: 1;
  width: min(640px, 100%);
  aspect-ratio: 1;
  min-height: min(640px, calc(100vw - 32px));
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 8vw, 92px);
  background:
    radial-gradient(circle at 70% 18%, rgba(230, 193, 90, 0.14), transparent 34%),
    rgba(17, 23, 22, 0.96);
  box-shadow: 0 0 0 24px var(--background), 0 34px 90px var(--shadow);
}

.privacy-bubble::after {
  content: "";
  position: absolute;
  inset: -16px;
  z-index: -1;
  border-radius: inherit;
  background: var(--background);
  opacity: 0.96;
  transform: scale(1.12);
}

.privacy-bubble:nth-child(2) {
  z-index: 2;
}

.privacy-bubble:nth-child(3) {
  z-index: 3;
}

.privacy-bubble:nth-child(4) {
  z-index: 4;
}

.privacy-bubble:nth-child(even) {
  margin-left: 0;
}

.privacy-bubble:nth-child(odd) {
  margin-right: 0;
}

.privacy-bubble span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.privacy-bubble h2 {
  max-width: 430px;
  margin: 12px 0 14px;
  color: var(--text);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.privacy-bubble p {
  max-width: 440px;
  color: var(--muted);
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  line-height: 1.62;
}

.privacy-bubble p:last-child {
  margin-bottom: 0;
}

.permission-stack {
  display: grid;
  gap: 10px;
}

.permission-stack p {
  margin-bottom: 0;
}

.permission-stack strong {
  display: block;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.privacy-bubble a {
  color: var(--gold);
  font-weight: 900;
}

.disclosure-bubble {
  background:
    radial-gradient(circle at 62% 22%, rgba(230, 193, 90, 0.2), transparent 36%),
    rgba(30, 51, 46, 0.96);
}

.document-card,
.support-card {
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 30px;
  background: rgba(17, 23, 22, 0.78);
}

.document-card h2 {
  margin-top: 28px;
  color: var(--gold);
}

.document-card h2:first-child {
  margin-top: 0;
}

.document-card h3 {
  margin: 22px 0 8px;
  color: var(--text);
  font-size: 1rem;
}

.document-card p,
.support-card p {
  color: var(--muted);
  line-height: 1.65;
}

.document-card a,
.support-card a {
  color: var(--gold);
  font-weight: 900;
}

.disclosure-note {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  color: var(--muted);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

@media (max-width: 900px) {
  .top-nav {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 28px;
  }

  .cinematic-hero {
    min-height: 70vh;
  }

  .scroll-story {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 8vh 0;
  }

  .story-copy,
  .phone-stage {
    position: relative;
    top: auto;
  }

  .phone-stage {
    justify-content: flex-start;
  }

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

  .privacy-bubble,
  .privacy-bubble:nth-child(even),
  .privacy-bubble:nth-child(odd) {
    position: sticky;
    top: 74px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .site-story,
  .page-shell {
    width: min(100% - 28px, 1160px);
  }

  .nav-links {
    gap: 14px;
  }

  .hero-orbit {
    opacity: 0.42;
    right: -42%;
  }

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

  .gesture-step {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .privacy-bubble {
    width: min(calc(100vw - 28px), 430px);
    height: min(calc(100vw - 28px), 430px);
    min-height: unset;
    aspect-ratio: 1;
    border-radius: 999px;
    padding: clamp(28px, 7vw, 42px);
    overflow: hidden;
  }

  .privacy-bubble::after {
    inset: -28px;
    opacity: 1;
  }

  .privacy-bubble {
    box-shadow: 0 0 0 34px var(--background), 0 28px 72px var(--shadow);
  }

  .privacy-bubble h2 {
    font-size: clamp(1.72rem, 7vw, 2.7rem);
    margin-bottom: 10px;
  }

  .privacy-bubble p {
    font-size: clamp(0.76rem, 3.45vw, 0.92rem);
    line-height: 1.34;
  }

  .permission-stack {
    gap: 6px;
  }

  .permission-stack strong {
    font-size: clamp(0.62rem, 2.9vw, 0.72rem);
  }
}
