:root {
  --ink: #f7f5f1;
  --muted: #b8bbc1;
  --subtle: #9097a2;
  --page: #101214;
  --page-deep: #0b1421;
  --panel: #1d2024;
  --panel-strong: #22262b;
  --line: #373c43;
  --accent: #db4c4e;
  --accent-hover: #ed5c5e;
  --accent-dark: #b9363a;
  --blue: #182f55;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 24px 70px rgb(0 0 0 / 28%);
  --shell: 1110px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 6vw, 5.4rem);
}

h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.8vw, 3.45rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  letter-spacing: -0.018em;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: #111;
  background: white;
  border-radius: 8px;
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  background: rgb(16 18 20 / 90%);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 76px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
}

.brand img {
  border-radius: 13px;
  box-shadow: 0 8px 22px rgb(0 0 0 / 25%);
}

.brand span,
.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: #d6d6d6;
  font-size: 0.92rem;
  font-weight: 650;
}

.site-nav a,
.site-footer a {
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-footer a:hover {
  color: white;
}

.site-nav a:focus-visible,
.site-footer a:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgb(219 76 78 / 55%);
  outline-offset: 5px;
  border-radius: 4px;
}

.header-cta {
  justify-self: end;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: white;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
  border-radius: 99px;
  transition: transform 160ms ease, opacity 160ms ease;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  color: white;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgb(219 76 78 / 55%);
  outline-offset: 3px;
}

.button-primary {
  background: var(--accent);
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-secondary {
  color: var(--ink);
  background: #171b20;
  border-color: #414852;
}

.button-secondary:hover {
  background: #23282e;
  border-color: #5d6671;
}

.button-disabled {
  color: #c5c7ca;
  background: #2b2e32;
  border-color: #484c51;
  cursor: default;
}

.button-disabled:hover {
  transform: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.eyebrow {
  margin-bottom: 14px;
  color: #d7d8da;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: var(--page-deep);
  border-bottom: 1px solid rgb(255 255 255 / 5%);
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 190px;
  background: linear-gradient(to bottom, transparent, rgb(16 18 20 / 88%));
  content: "";
  pointer-events: none;
}

.hero-art {
  position: absolute;
  top: -320px;
  right: -42px;
  width: 720px;
  max-width: none;
  opacity: 0.2;
  filter: saturate(0.7);
  transform: rotate(3deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 96px;
  padding-bottom: 72px;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 28px;
  color: #d4d7dd;
  font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.feature-strip {
  display: grid;
  max-width: 790px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 38px;
  padding: 20px;
  background: linear-gradient(120deg, rgb(28 35 44 / 93%), rgb(34 39 47 / 80%));
  border: 1px solid #3d4650;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-strip div {
  padding-inline: 18px;
}

.feature-strip div + div {
  border-left: 1px solid #414a55;
}

.feature-strip strong,
.feature-strip span {
  display: block;
}

.feature-strip span {
  color: var(--muted);
}

.fine-print {
  margin: 20px 0 0;
  color: #aeb5c0;
  font-size: 0.82rem;
}

.section {
  padding: 104px 0;
}

.section-muted {
  background: #0e1012;
}

.section-intro,
.section-heading > p:not(.eyebrow),
.preview-copy > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.card {
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.step-grid,
.idea-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 38px;
}

.step-card,
.idea-grid .card,
.use-case-grid .card {
  position: relative;
  min-height: 160px;
  padding: 24px;
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.step-card:hover,
.idea-grid .card:hover,
.use-case-grid .card:hover {
  background: var(--panel-strong);
  border-color: #535a63;
  transform: translateY(-3px);
}

.step-number {
  display: block;
  margin-bottom: 22px;
  color: #737b85;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.use-case-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: 72px;
}

.sticky-copy {
  position: sticky;
  top: 120px;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.section-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.section-row .button {
  flex: 0 0 auto;
  margin-bottom: 2px;
}

.extra-idea[hidden] {
  display: none;
}

.section-preview {
  padding-bottom: 120px;
  background: #0e1012;
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(540px, 1.28fr);
  align-items: start;
  gap: 72px;
}

.preview-copy {
  position: sticky;
  top: 120px;
  padding-top: 120px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 30px 0 0;
  color: #d6d7da;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  position: absolute;
  top: 0.12em;
  left: 0;
  color: var(--accent);
  font-weight: 900;
  content: "✓";
}

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

.phone-card {
  margin: 0;
  overflow: hidden;
  background: #202226;
  border: 1px solid #3b3e43;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgb(0 0 0 / 16%);
}

.phone-card:nth-child(2) {
  margin-top: 56px;
}

.phone-card:nth-child(3) {
  margin-top: -56px;
}

.phone-card figcaption {
  padding: 12px 16px;
  color: #d8d9db;
  font-size: 0.82rem;
  font-weight: 700;
}

.phone-screen {
  height: 610px;
  overflow: hidden;
  background: var(--blue);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.faq-item {
  min-height: 0;
  padding: 0;
}

.faq-item summary {
  position: relative;
  padding: 25px 64px 25px 24px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 21px;
  right: 24px;
  width: 28px;
  height: 28px;
  color: var(--muted);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 25px;
  text-align: center;
  content: "+";
  transition: transform 180ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 24px 24px;
}

.section-download {
  padding-top: 28px;
}

.download-card {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 64px;
  padding: 50px;
  background: linear-gradient(130deg, #202326, #1a1c1f);
  border: 1px solid #3b3f44;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.download-card h2 {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
}

.download-card > div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.download-notes {
  display: grid;
  gap: 14px;
}

.download-notes .card {
  padding: 22px;
  background: #303337;
  border-color: #4a4e53;
}

.download-notes strong,
.download-notes span {
  display: block;
}

.download-notes span {
  margin-top: 8px;
  color: var(--muted);
}

.site-footer {
  padding: 56px 0;
  color: #d2d3d5;
  background: #090a0b;
  border-top: 1px solid #292c30;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 0.8fr 1.25fr;
  gap: 50px;
}

.site-footer h2 {
  margin-bottom: 16px;
  color: #a6abb2;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0;
}

.site-footer a:not(.brand) {
  display: block;
  width: fit-content;
  margin-bottom: 8px;
  color: white;
}

.site-footer p {
  margin: 14px 0 0;
  color: #b4b8be;
}

.site-footer small {
  display: block;
  margin-top: 14px;
  color: #888e96;
}

.footer-brand .brand small {
  color: #d0d2d6;
}

.support-page {
  min-height: calc(100vh - 260px);
  padding: 110px 0;
  background: radial-gradient(circle at 75% 20%, rgb(24 47 85 / 55%), transparent 38%), var(--page-deep);
}

.support-card {
  max-width: 760px;
  padding: 42px;
  background: rgb(29 32 36 / 92%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.support-card p {
  color: var(--muted);
  font-size: 1.08rem;
}

@media (max-width: 920px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 12px 20px 20px;
    background: rgb(16 18 20 / 98%);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgb(0 0 0 / 30%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-14px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid #292d32;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-of-type(4) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .use-case-layout,
  .preview-layout {
    grid-template-columns: 1fr;
  }

  .sticky-copy,
  .preview-copy {
    position: static;
  }

  .preview-copy {
    padding-top: 0;
  }

  .step-grid,
  .idea-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-card {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }

  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 72px;
  }

  body {
    font-size: 15px;
  }

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

  .site-header,
  .header-inner {
    min-height: 68px;
  }

  .site-nav {
    top: 68px;
  }

  .brand img {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  h2 {
    font-size: clamp(1.85rem, 8.7vw, 2.7rem);
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 74px;
    padding-bottom: 64px;
  }

  .hero-art {
    top: -90px;
    right: -210px;
    width: 610px;
    opacity: 0.13;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .button-row .button {
    flex: 1 1 auto;
  }

  .feature-strip {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .feature-strip div {
    padding: 17px 0;
  }

  .feature-strip div + div {
    border-top: 1px solid #414a55;
    border-left: 0;
  }

  .section {
    padding: 76px 0;
  }

  .section-download {
    padding-top: 8px;
  }

  .step-grid,
  .idea-grid,
  .use-case-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .step-card,
  .idea-grid .card,
  .use-case-grid .card {
    min-height: 0;
  }

  .use-case-layout,
  .preview-layout {
    gap: 44px;
  }

  .section-row {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .section-row .button {
    align-self: flex-start;
  }

  .phone-grid {
    display: flex;
    gap: 14px;
    margin-right: calc((100vw - 100%) / -2);
    padding-right: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .phone-grid::-webkit-scrollbar {
    display: none;
  }

  .phone-card,
  .phone-card:nth-child(2),
  .phone-card:nth-child(3) {
    flex: 0 0 min(82vw, 330px);
    margin-top: 0;
    scroll-snap-align: start;
  }

  .phone-screen {
    height: 590px;
  }

  .download-card {
    gap: 38px;
    padding: 30px 24px;
    border-radius: var(--radius);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 38px 26px;
  }

  .footer-brand,
  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }

  .support-page {
    padding: 70px 0;
  }

  .support-card {
    padding: 28px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
