:root {
  /* Color tokens */
  --blue: #0a84ff;
  --blue-deep: #0060df;
  --ink: #0c1626;            /* near-black navy for headings */
  --ink-soft: #44516b;       /* body text */
  --ink-faint: #6e7a93;
  --bg: #f6f9fd;             /* page base */
  --bg-tint: #eef4fb;        /* tinted sections */
  --card: #ffffff;
  --line: rgba(12, 38, 84, 0.10);
  --grid-line: rgba(12, 60, 140, 0.055);

  /* Dark sections */
  --dark-bg: #0a111f;
  --dark-card: rgba(255, 255, 255, 0.05);
  --dark-line: rgba(255, 255, 255, 0.10);
  --dark-text: #aab6cc;

  /* Effects */
  --shadow-soft: 0 2px 6px rgba(10, 30, 70, 0.05), 0 18px 44px rgba(10, 30, 70, 0.09);
  --shadow-device: 0 8px 18px rgba(8, 20, 50, 0.18), 0 40px 90px rgba(8, 20, 50, 0.28);
  --radius: 20px;
  --radius-lg: 28px;

  /* Type & layout */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --section-pad: clamp(4.5rem, 10vw, 8rem);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  margin: 0 0 0.6em;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }
p  { margin: 0 0 1em; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}
.skip-link:focus { left: 8px; }

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

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 6px 18px rgba(10, 110, 255, 0.35);
}
.btn--primary:hover { box-shadow: 0 10px 26px rgba(10, 110, 255, 0.45); }

.btn--ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: rgba(12, 38, 84, 0.25); }

.btn--small { padding: 0.55rem 1.1rem; font-size: 0.92rem; }

/* Apple-style App Store badge */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1.4rem 0.7rem 1.2rem;
  border-radius: 14px;
  line-height: 1.15;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 8px 22px rgba(8, 20, 50, 0.25);
}
.appstore-badge:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(8, 20, 50, 0.32);
}
.appstore-badge__apple { width: 26px; height: 26px; flex: none; }
.appstore-badge__text { display: flex; flex-direction: column; text-align: left; }
.appstore-badge__text small { font-size: 0.68rem; opacity: 0.85; letter-spacing: 0.01em; }
.appstore-badge__text strong { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }

.appstore-badge--light { background: #fff; color: var(--ink); }

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: rgba(10, 132, 255, 0.09);
  border: 1px solid rgba(10, 132, 255, 0.18);
  padding: 0.38rem 0.9rem;
  border-radius: 999px;
  margin: 0 0 1.2rem;
}
.eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}
.eyebrow--light {
  color: #8ec2ff;
  background: rgba(10, 132, 255, 0.14);
  border-color: rgba(110, 175, 255, 0.3);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(248, 251, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(10, 30, 70, 0.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 68px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav__brand:hover { text-decoration: none; }
.nav__logo { border-radius: 9px; }

.nav__links {
  display: flex;
  gap: 1.9rem;
}
.nav__links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--ink); text-decoration: none; }

.nav__actions { display: flex; align-items: center; gap: 0.8rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease;
}
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(68px + clamp(3rem, 8vw, 6rem)) 0 clamp(3.5rem, 8vw, 6.5rem);
  /* blueprint grid */
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.hero__glow--a {
  width: 640px; height: 640px;
  right: -160px; top: -180px;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.22), transparent 65%);
}
.hero__glow--b {
  width: 520px; height: 520px;
  left: -200px; bottom: -220px;
  background: radial-gradient(circle, rgba(90, 200, 250, 0.18), transparent 65%);
}
.hero__blueprint {
  position: absolute;
  width: clamp(280px, 38vw, 540px);
  right: -60px;
  bottom: -80px;
  color: rgba(12, 60, 140, 0.08);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.hero__title {
  font-size: clamp(2.5rem, 5.6vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.032em;
}
.hero__sub {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  max-width: 34em;
  margin-bottom: 2rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.hero__steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero__step-sep { color: var(--blue); }

/* Hero device + chips */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.device {
  background: #0b0d12;
  border-radius: clamp(38px, 4.5vw, 52px);
  padding: clamp(10px, 1.2vw, 14px);
  box-shadow: var(--shadow-device);
  width: min(340px, 78vw);
}
.device img { border-radius: clamp(28px, 3.5vw, 40px); width: 100%; }

.device--hero {
  width: min(370px, 80vw);
  transform: rotate(2deg);
  animation: float 7s ease-in-out infinite;
}
.device--glow {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 140px rgba(10, 132, 255, 0.22);
}

@keyframes float {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50%      { transform: rotate(2deg) translateY(-12px); }
}

/* glass chips floating around hero phone */
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
}
.chip small {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-faint);
}
.chip__icon {
  width: 30px; height: 30px;
  flex: none;
  padding: 5px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}
.chip--a { top: 7%;  left: -4%;  animation: float-chip 6s ease-in-out infinite; }
.chip--b { top: 43%; right: -7%; animation: float-chip 7s ease-in-out 0.8s infinite; }
.chip--c { bottom: 7%; left: -1%; animation: float-chip 6.5s ease-in-out 1.6s infinite; }

@keyframes float-chip {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; }
.section--tinted { background: var(--bg-tint); }

.section__head {
  max-width: 760px;
  margin-bottom: clamp(2.6rem, 6vw, 4.2rem);
}
.section__sub {
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  color: var(--ink-soft);
  margin-bottom: 0;
}
.section__sub--light { color: var(--dark-text); }

/* Dark sections */
.section--dark {
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(10, 132, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(10, 132, 255, 0.10), transparent 60%),
    var(--dark-bg);
  color: var(--dark-text);
}
.section--dark h2, .section--dark h3 { color: #fff; }

/* ---------- Use case cards ---------- */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.case-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.4rem;
  box-shadow: 0 1px 2px rgba(10, 30, 70, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.case-card h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.case-card p { margin: 0; font-size: 0.97rem; }
.case-card__icon {
  display: inline-flex;
  width: 46px; height: 46px;
  padding: 10px;
  margin-bottom: 1.1rem;
  border-radius: 13px;
  color: var(--blue-deep);
  background: rgba(10, 132, 255, 0.10);
}
.case-card__icon svg { width: 100%; height: 100%; }
.case-card__icon--red {
  color: #e23b30;
  background: rgba(226, 59, 48, 0.10);
}

/* ---------- Workflow steps ---------- */
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2.2rem, 6vw, 5rem);
  padding: clamp(2.4rem, 5vw, 4rem) 0;
}
.step + .step { border-top: 1px dashed rgba(12, 38, 84, 0.14); }
.step--flip .step__media { order: 2; }
.step--flip .step__copy  { order: 1; }

.step__media { display: flex; justify-content: center; }

.step__num {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue);
  background: rgba(10, 132, 255, 0.10);
  border-radius: 10px;
  padding: 0.3rem 0.7rem;
  margin-bottom: 1.1rem;
}
.step__copy h3 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.step__copy p { max-width: 33em; }

.step__points {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.3rem;
}
.step__points li {
  position: relative;
  padding-left: 1.7rem;
  font-weight: 550;
  color: var(--ink);
  font-size: 0.99rem;
}
.step__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.18em;
  width: 1.05em; height: 1.05em;
  border-radius: 50%;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none"><path d="M6 12.5l4 4 8-9" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>')
    center / 70% no-repeat,
    linear-gradient(135deg, var(--blue), var(--blue-deep));
}

/* screenshot cards (non-device) */
.shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  width: min(380px, 84vw);
  border: 1px solid var(--line);
}
.shot img { width: 100%; }
.shot--dark {
  border-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 10px 26px rgba(8, 20, 50, 0.20), 0 40px 80px rgba(8, 20, 50, 0.25);
}
.shot--photo { width: min(420px, 86vw); }

/* ---------- 3D dark feature ---------- */
.dark-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.dark-feature__media { display: flex; justify-content: center; }

.dark-feature__list {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
}
.dark-feature__list li {
  padding: 1.05rem 1.2rem;
  border-radius: 16px;
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  font-size: 0.97rem;
}
.dark-feature__list strong {
  display: block;
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 0.15rem;
  letter-spacing: -0.01em;
}

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 1.3rem;
}
.bento__card {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.45rem 1.35rem;
  box-shadow: 0 1px 2px rgba(10, 30, 70, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bento__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.bento__card h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.bento__card p { margin: 0; font-size: 0.94rem; }

.bento__card--tall {
  grid-column: span 2;
  grid-row: span 2;
  padding: 0;
  overflow: hidden;
}
.bento__media {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #11151d;
}
.bento__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.bento__media--device { background: #e8edf5; }
.bento__media--device img { object-position: center 20%; }
.bento__body { padding: 1.35rem 1.5rem 1.45rem; }
.bento__body p { margin: 0; font-size: 0.96rem; }

.bento__icon {
  display: inline-flex;
  width: 42px; height: 42px;
  padding: 9px;
  margin-bottom: 0.95rem;
  border-radius: 12px;
  color: var(--blue-deep);
  background: rgba(10, 132, 255, 0.10);
}
.bento__icon svg { width: 100%; height: 100%; }

/* ---------- Export formats ---------- */
.formats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.format {
  background: var(--dark-card);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.format:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 175, 255, 0.4);
}
.format h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.format p { margin: 0; font-size: 0.94rem; }
.format__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8ec2ff;
  background: rgba(10, 132, 255, 0.16);
  border: 1px solid rgba(110, 175, 255, 0.28);
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  margin-bottom: 1rem;
}

/* Units toggle demo */
.units {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.units__copy h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.units__copy p { max-width: 30em; }
.units__shot { justify-self: center; }
.units__shot img { transition: opacity 0.25s ease; }

.units__toggle {
  display: inline-flex;
  margin-top: 1.4rem;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--dark-line);
}
.units__btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--dark-text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.units__btn.is-active {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  box-shadow: 0 4px 14px rgba(10, 110, 255, 0.4);
}

/* ---------- Field work strip ---------- */
.field {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.field__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.55rem 1.5rem 1.35rem;
  box-shadow: 0 1px 2px rgba(10, 30, 70, 0.04);
}
.field__item svg {
  width: 30px; height: 30px;
  color: var(--blue);
  margin-bottom: 0.85rem;
}
.field__item h3 { font-size: 1.07rem; margin-bottom: 0.3rem; }
.field__item p { margin: 0; font-size: 0.94rem; }

/* ---------- Final CTA ---------- */
.section--cta { padding-top: 0; }
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: clamp(24px, 4vw, 40px);
  padding: clamp(3.2rem, 8vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  color: #dce9ff;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(900px 480px at 50% -20%, rgba(10, 132, 255, 0.5), transparent 65%),
    linear-gradient(170deg, #0d1830, #0a111f 70%);
  background-size: 44px 44px, 44px 44px, auto, auto;
  box-shadow: var(--shadow-device);
}
.cta h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); }
.cta > p {
  max-width: 36em;
  margin-inline: auto;
  font-size: 1.08rem;
}
.cta__logo {
  border-radius: 16px;
  margin: 0 auto 1.6rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.cta__actions {
  display: flex;
  justify-content: center;
  margin: 1.8rem 0 1.4rem;
}
.cta__contact { margin: 0; font-size: 0.96rem; color: #93a5c4; }
.cta__contact a { color: #8ec2ff; font-weight: 600; }

/* ---------- Terms & privacy ---------- */
.legal {
  padding-top: 0;
}
.legal__inner {
  max-width: 820px;
  font-size: 0.95rem;
  color: var(--ink-faint);
}
.legal h2 {
  font-size: 1.35rem;
  margin-top: 2.4rem;
  margin-bottom: 0.8rem;
}
.legal h2:first-child { margin-top: 0; }
.legal__list {
  list-style: disc;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.7rem;
}
.legal__list strong { color: var(--ink-soft); }
.legal__list a { overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0;
  background: var(--bg);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.footer__links { display: flex; gap: 1.6rem; }
.footer__links a {
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 500;
}
.footer__links a:hover { color: var(--ink); }
.footer__legal {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
/* gentle stagger inside grids */
.cases .reveal:nth-child(3n + 2), .bento .reveal:nth-child(3n + 2),
.field .reveal:nth-child(3n + 2), .formats .reveal:nth-child(3n + 2) { transition-delay: 0.08s; }
.cases .reveal:nth-child(3n),     .bento .reveal:nth-child(3n),
.field .reveal:nth-child(3n),     .formats .reveal:nth-child(3n) { transition-delay: 0.16s; }

/* no-JS fallback: show everything */
.no-observer .reveal { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--tall { grid-column: span 2; grid-row: auto; }
  .bento__media { max-height: 340px; }
  .formats { grid-template-columns: repeat(2, 1fr); }
  .cases, .field { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__cta, .hero__steps { justify-content: center; }
  .hero__visual { margin-top: 1.5rem; }
  .hero__blueprint { display: none; }
  .chip--a { left: 0; }
  .chip--b { right: 0; }
  .chip--c { left: 4%; }

  .step,
  .dark-feature,
  .units { grid-template-columns: 1fr; }
  .step--flip .step__media { order: 0; }
  .step--flip .step__copy { order: 0; }
  .step__media { order: -1; }
  .dark-feature__media { order: -1; }
  .units__shot { order: -1; }
}

@media (max-width: 768px) {
  /* collapse nav links into a sheet */
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 68px;
    left: 0.75rem;
    right: 0.75rem;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.8rem;
    border-radius: 18px;
    background: rgba(250, 252, 255, 0.92);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__links a {
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    font-size: 1.02rem;
  }
  .nav__links a:hover { background: rgba(10, 132, 255, 0.07); }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .cases, .field, .formats { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento__card--tall { grid-column: span 1; }
  /* compact floating chips on small screens */
  .chip {
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    font-size: 0.8rem;
    border-radius: 13px;
  }
  .chip small { font-size: 0.68rem; }
  .chip__icon { width: 26px; height: 26px; padding: 4.5px; border-radius: 8px; }
  .chip--a { top: 4%; left: 0; }
  .chip--b { top: 45%; right: 0; }
  .chip--c { bottom: 4%; left: 2%; }
  .device--hero { transform: none; }
  .hero__steps { font-size: 0.78rem; gap: 0.45rem; }
  .footer__inner { flex-direction: column; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .device--hero, .chip--a, .chip--b, .chip--c { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .appstore-badge, .case-card, .bento__card, .format { transition: none; }
}
