:root {
  --bg: #f7fbff;
  --panel: #ffffff;
  --ink: #151716;
  --muted: #68716f;
  --line: #dde6ef;
  --dark: #080909;
  --accent: #126bff;
  --accent-strong: #074fce;
  --accent-soft: #e8f2ff;
  --mint: #dff8eb;
  --paper: #fffdf8;
  --soft: #f4f8fb;
  --shadow: 0 24px 70px rgba(20, 38, 62, .10);
  --shadow-strong: 0 34px 95px rgba(20, 38, 62, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: 74px;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f7fbff 0%, #ffffff 38%, #f8fbff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.error-body {
  min-height: 100vh;
  padding: clamp(22px, 5vw, 56px);
  display: grid;
  place-items: center;
}

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

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

.site {
  overflow-x: hidden;
  overflow-y: visible;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(221, 230, 239, .86);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(20, 38, 62, .05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 720;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(221, 230, 239, .72);
  border-radius: 16px;
  background: rgba(255, 255, 255, .7);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--dark);
  padding: 0;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 180ms var(--ease), box-shadow 180ms ease, border-color 180ms ease;
}

.menu-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.menu-toggle-icon {
  position: relative;
  width: 20px;
  height: 14px;
  display: block;
}

.menu-toggle-icon span {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transition: transform 190ms var(--ease), top 190ms var(--ease);
}

.menu-toggle-icon span:first-child {
  top: 3px;
}

.menu-toggle-icon span:last-child {
  top: 10px;
}

.menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(20, 38, 62, .10);
}

.nav.menu-open .menu-toggle {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.nav.menu-open .menu-toggle-icon span:first-child {
  top: 7px;
  transform: rotate(45deg);
}

.nav.menu-open .menu-toggle-icon span:last-child {
  top: 7px;
  transform: rotate(-45deg);
}

.nav-links a,
.nav-cta,
.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms var(--ease), box-shadow 180ms ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: #fff;
}

.nav-links a.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 26px rgba(20, 38, 62, .08);
}

.nav-cta,
.btn.primary {
  color: #fff;
  background: var(--dark);
}

.btn.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}

.nav-cta:hover,
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 18, 18, .12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: calc(92vh - 72px);
  position: relative;
  padding: clamp(38px, 6vw, 86px) clamp(20px, 5vw, 72px) clamp(32px, 5vw, 66px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(232, 242, 255, .78), rgba(255, 255, 255, .2) 42%, rgba(223, 248, 235, .34)),
    repeating-linear-gradient(90deg, rgba(18, 107, 255, .035) 0 1px, transparent 1px 96px);
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.legal h1 {
  margin: 0;
  letter-spacing: 0;
  font-weight: 760;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(50px, 6vw, 86px);
  line-height: .94;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: #454c4a;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-note {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.app-frame {
  position: relative;
  border: 1px solid #d9d8d0;
  border-radius: 28px;
  padding: 12px;
  background: #101111;
  box-shadow: 0 32px 90px rgba(8, 9, 9, .22);
  animation: surface-in 480ms var(--ease) both;
}

.app-frame::before {
  content: "";
  display: block;
  height: 18px;
  border-radius: 14px 14px 0 0;
  background:
    radial-gradient(circle at 12px 8px, #ff5f57 0 4px, transparent 5px),
    radial-gradient(circle at 28px 8px, #ffbd2e 0 4px, transparent 5px),
    radial-gradient(circle at 44px 8px, #28c840 0 4px, transparent 5px);
}

.app-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
  border-radius: 18px;
  background: #fff;
}

.product-visual {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: var(--shadow-strong);
  animation: surface-in 480ms var(--ease) both;
}

.visual-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.visual-top img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.visual-top strong,
.visual-top span {
  display: block;
}

.visual-top span {
  margin-top: 3px;
  color: var(--muted);
}

.visual-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.visual-flow span {
  min-height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid #cfe0f6;
  border-radius: 14px;
  color: var(--accent-strong);
  background: linear-gradient(180deg, #f4f9ff, var(--accent-soft));
  font-size: 13px;
  font-weight: 760;
  text-align: center;
}

.visual-report {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.visual-report div {
  min-height: 108px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--soft);
}

.visual-report span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.visual-report strong {
  margin-top: 6px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.05;
}

.section {
  padding: clamp(50px, 7vw, 96px) clamp(20px, 5vw, 72px);
  scroll-margin-top: 92px;
}

.section.alt {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.section-head {
  max-width: 840px;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.02;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: var(--shadow);
  transition: transform 200ms var(--ease), box-shadow 200ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #d6d9d7;
  box-shadow: 0 26px 70px rgba(15, 18, 18, .13);
}

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 13px;
  color: var(--accent);
  background: linear-gradient(180deg, #f4f9ff, var(--accent-soft));
}

.icon svg {
  width: 22px;
  height: 22px;
}

.icon path,
.icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.18;
}

.card p,
.card li {
  color: var(--muted);
  line-height: 1.55;
}

.card p { margin: 10px 0 0; }

.card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: start;
}

.preview-stack {
  display: grid;
  gap: 18px;
}

.shot-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.shot-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
  background: #f7f7f4;
}

.shot-copy {
  padding: 18px;
}

.shot-copy h3 {
  margin: 0;
  font-size: 18px;
}

.shot-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.screen-stack {
  display: grid;
  gap: clamp(58px, 7vw, 96px);
  margin-top: clamp(30px, 5vw, 54px);
}

.screen-row {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  gap: clamp(36px, 6vw, 78px);
  align-items: center;
}

.screen-row.reverse {
  grid-template-columns: minmax(340px, .88fr) minmax(0, 1.12fr);
}

.screen-row.reverse .screen-shot {
  order: 2;
}

.screen-row.reverse .screen-copy {
  order: 1;
}

.screen-shot {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 12px;
  background: #0c0d0d;
  box-shadow: var(--shadow-strong);
  transform: translateZ(0);
}

.screen-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
  border-radius: 16px;
  background: #fff;
}

.screen-copy {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(26px, 4vw, 42px);
  background:
    linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  box-shadow: var(--shadow);
}

.screen-copy h3 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.04;
}

.screen-copy p:not(.kicker),
.screen-copy li {
  color: var(--muted);
  line-height: 1.58;
}

.screen-copy ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.workflow {
  counter-reset: step;
}

.step {
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--dark);
  font-size: 13px;
  font-weight: 760;
}

.disclaimer-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border: 1px solid #c8d8ff;
  border-radius: 22px;
  padding: 22px;
  background:
    linear-gradient(135deg, var(--accent-soft), #ffffff 62%, var(--mint));
}

.disclaimer-band p {
  margin: 0;
  color: #334255;
  line-height: 1.55;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #fff;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.legal-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 74px) clamp(20px, 5vw, 32px);
}

.legal {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 44px);
  background: #fff;
  box-shadow: var(--shadow);
}

.legal h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
}

.legal h2 {
  margin: 34px 0 10px;
  font-size: 22px;
}

.legal p,
.legal li {
  color: #424a48;
  line-height: 1.65;
}

.error-code {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: clamp(96px, 18vw, 220px);
  font-weight: 900;
  line-height: .86;
  letter-spacing: 0;
}

.standalone-error {
  width: min(680px, 100%);
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid rgba(221, 230, 239, .9);
  border-radius: 28px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow-strong);
  text-align: center;
}

.error-logo {
  width: 54px;
  height: 54px;
  margin: 0 auto 26px;
  border-radius: 10px;
}

.standalone-error h1 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.standalone-error p:not(.kicker):not(.error-code) {
  max-width: 500px;
  margin: 0 auto 26px;
  color: var(--muted);
  line-height: 1.65;
}

.standalone-error .legal-actions {
  justify-content: center;
}

.legal ul {
  padding-left: 20px;
}

.legal .updated {
  margin-top: 14px;
  color: var(--muted);
}

@keyframes surface-in {
  from { opacity: 0; transform: translateY(14px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1100px) {
  .hero,
  .preview-grid,
  .screen-row,
  .screen-row.reverse {
    grid-template-columns: 1fr;
  }

  .screen-row.reverse .screen-shot,
  .screen-row.reverse .screen-copy {
    order: initial;
  }

  .hero {
    min-height: auto;
  }

  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: 86px;
    left: 14px;
    right: 14px;
    z-index: 19;
    width: auto;
    display: grid;
    gap: 6px;
    max-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(.98);
    transform-origin: top right;
    transition: max-height 260ms var(--ease), opacity 180ms ease, transform 220ms var(--ease), padding 180ms ease;
  }

  .nav.menu-open .nav-links {
    max-height: 360px;
    padding: 10px;
    border: 1px solid rgba(210, 224, 239, .96);
    border-radius: 20px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 26px 70px rgba(20, 38, 62, .18);
    backdrop-filter: blur(18px);
  }

  .nav-links a {
    min-height: 48px;
    justify-content: flex-start;
    width: 100%;
    border-radius: 14px;
    padding: 0 14px;
    font-size: 14px;
    color: #334255;
  }

  .nav-links a.active {
    color: #fff;
    background: var(--dark);
    box-shadow: none;
  }

  .hero {
    padding-top: 34px;
  }

  .visual-flow,
  .visual-report {
    grid-template-columns: 1fr;
  }

  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .disclaimer-band,
  .footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}
