:root {
  color-scheme: dark;
  --background: #08090a;
  --surface: #0d0f10;
  --surface-raised: #121415;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f5f4f1;
  --muted: #aaaeb1;
  --muted-soft: #7e8285;
  --accent: #ff353b;
  --accent-hover: #ff5559;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", sans-serif;
  background: var(--background);
  color: var(--text);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.marketing-page {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 14%, rgba(209, 32, 38, 0.075), transparent 38rem),
    radial-gradient(circle at 12% 68%, rgba(255, 255, 255, 0.025), transparent 32rem),
    linear-gradient(180deg, #0b0c0e 0%, #08090a 46%, #0d0f10 100%);
  background-attachment: fixed;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
a { color: #ff6a6f; text-underline-offset: 0.2em; }
a:hover { color: #fff; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: #000;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.wide-shell {
  width: min(1380px, calc(100% - 80px));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
  border-radius: 10px;
}

.brand span { display: grid; line-height: 1.15; }
.brand strong { font-size: 1.12rem; letter-spacing: -0.02em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 0.8rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
}

.site-nav a {
  color: #d6d7d8;
  font-size: 0.92rem;
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(540px, 1.18fr);
  align-items: center;
  min-height: 720px;
  padding-top: 118px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 72px 0 48px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0.16em;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(4rem, 6.15vw, 6.6rem);
  font-weight: 760;
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.hero h1 em {
  display: block;
  color: var(--accent);
  font-style: normal;
}

.hero-lede {
  max-width: 570px;
  margin: 32px 0 0;
  color: #b8bbbe;
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 36px;
}

.store-button {
  display: grid;
  min-width: 188px;
  padding: 12px 24px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: #d92026;
  color: #fff;
  line-height: 1.05;
  cursor: not-allowed;
}

.store-button small { font-size: 0.72rem; opacity: 0.82; }
.store-button strong { margin-top: 4px; font-size: 1.12rem; }

.hero-visual {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero-visual img {
  width: min(420px, 38vw, 62vh);
  max-width: none;
  margin-left: -40px;
}

.story-section {
  border-block: 1px solid var(--line);
  background: rgba(15, 17, 18, 0.86);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.63fr) minmax(560px, 1.37fr);
  align-items: center;
  gap: clamp(50px, 7vw, 112px);
  padding: 64px 0;
}

.story-copy h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(2.6rem, 4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.story-copy > p:not(.eyebrow) {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.benefits { margin: 42px 0 0; }
.benefits div { padding: 22px 0; border-top: 1px solid var(--line); }
.benefits dt { font-size: 1.06rem; font-weight: 720; }
.benefits dd { margin: 5px 0 0; color: var(--muted); }

.library-visual { margin: 0; }
.library-visual img {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
}

.feature-section { padding: 64px 0 128px; }

.section-heading {
  display: grid;
  grid-template-columns: 0.54fr 1.46fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 68px;
}

.section-heading .eyebrow { margin-top: 13px; }
.section-heading h2 { max-width: 760px; }

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.feature-list article {
  min-height: 235px;
  padding: 32px;
  border-right: 1px solid var(--line);
}

.feature-list article:first-child { padding-left: 0; }
.feature-list article:last-child { border-right: 0; padding-right: 0; }
.feature-number { margin: 0 0 34px; color: var(--accent); font-size: 0.78rem; font-weight: 760; letter-spacing: 0.14em; }
.feature-list h3 { margin: 0; font-size: 1.15rem; }
.feature-list article > p:last-child { margin: 10px 0 0; color: var(--muted); }

.marketing-footer {
  border-top: 1px solid var(--line);
  background: #050606;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 150px;
  gap: 48px;
}

.footer-brand strong { font-size: 1rem; }
.footer-brand small { font-size: 0.74rem; }

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 36px;
}

.footer-inner nav a {
  color: #afb1b3;
  font-size: 0.86rem;
  text-decoration: none;
}

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

/* Legal and support pages */
.shell {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 56px;
}

.compact {
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.policy { padding-top: 48px; }
.policy h1, .compact h1 {
  max-width: 13ch;
  margin: 0.2rem 0 0.8rem;
  font-size: clamp(2.7rem, 9vw, 5.3rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.policy h2, .compact h2 { margin: 2.2rem 0 0.35rem; font-size: 1.18rem; }
.policy p, .policy li, .compact p { color: #c9cbd6; }
.lede { max-width: 620px; color: #eef0f8 !important; font-size: 1.15rem; }
.back { display: inline-block; margin-bottom: 2rem; color: #ff6a6f; text-decoration: none; }

.cards { display: grid; gap: 14px; margin-top: 2rem; }
.card, .note {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-raised);
}

.card { display: block; color: #fff; text-decoration: none; transition: transform 0.16s ease, border-color 0.16s ease; }
.card:hover { transform: translateY(-2px); border-color: rgba(255, 83, 87, 0.7); }
.card span { display: block; font-weight: 700; font-size: 1.1rem; }
.card small { display: block; margin-top: 5px; color: #a9acb9; }
.button { align-self: flex-start; margin: 1.2rem 0 2rem; border-radius: 999px; background: #d92026; color: white; padding: 12px 20px; font-weight: 700; text-decoration: none; }
.button:hover { background: var(--accent-hover); }
.note h2 { margin-top: 0; }

body:not(.marketing-page) > footer {
  padding: 24px;
  color: #777b8e;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 1080px) {
  .wide-shell { width: min(100% - 48px, 960px); }
  .hero { grid-template-columns: 1fr; padding-top: 104px; }
  .hero-copy { padding-bottom: 0; }
  .hero-visual { min-height: 520px; }
  .hero-visual img { width: min(360px, 52vw, 54vh); margin: -20px 0 -10px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-copy { max-width: 680px; }
  .section-heading { grid-template-columns: 1fr; gap: 8px; }
  .feature-list { grid-template-columns: repeat(2, 1fr); }
  .feature-list article:nth-child(2) { border-right: 0; }
  .feature-list article:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .feature-list article:first-child, .feature-list article:last-child { padding: 32px; }
}

@media (max-width: 680px) {
  .wide-shell { width: min(100% - 32px, 620px); }
  .header-inner { min-height: 84px; }
  .brand img { width: 44px; height: 44px; }
  .site-nav a:not(:last-child) { display: none; }
  .hero { min-height: auto; padding-top: 84px; overflow: visible; }
  .hero-copy { padding: 70px 0 30px; }
  .hero h1 { font-size: clamp(3.2rem, 15.5vw, 4.7rem); }
  .hero-lede { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-visual {
    width: calc(100% + 32px);
    min-height: 340px;
    margin-left: -16px;
    overflow: hidden;
  }
  .hero-visual img { width: min(280px, 78vw, 44vh); max-width: 78vw; margin: -6px auto 0; }
  .story-grid { gap: 52px; padding-block: 80px; }
  .story-copy h2, .section-heading h2 { font-size: 2.8rem; }
  .library-visual { width: calc(100% + 16px); overflow: hidden; }
  .library-visual img { width: 150%; max-width: none; }
  .feature-section { padding-block: 84px; }
  .section-heading { margin-bottom: 46px; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-list article,
  .feature-list article:first-child,
  .feature-list article:last-child {
    min-height: 0;
    padding: 28px 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .feature-list article:first-child { border-top: 0; }
  .feature-number { margin-bottom: 18px; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 48px; }
  .footer-inner nav { justify-content: flex-start; }
  .shell { width: min(100% - 28px, 760px); padding-top: 42px; }
  .policy h1, .compact h1 { font-size: 3.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
