:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #07111f;
  --ink-soft: #172033;
  --muted: #617086;
  --muted-strong: #42516a;
  --line: #dfe6ef;
  --line-strong: #cbd6e4;
  --blue: #006cff;
  --cyan: #22c8ff;
  --green: #20c578;
  --amber: #f4a124;
  --lavender: #8f7cff;
  --shadow-sm: 0 10px 30px rgba(10, 23, 46, 0.08);
  --shadow-md: 0 24px 70px rgba(10, 23, 46, 0.14);
  --radius: 8px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

code {
  background: #eef4fb;
  border: 1px solid #dbe6f2;
  border-radius: 6px;
  color: #173a67;
  font-size: 0.92em;
  padding: 0.08rem 0.32rem;
}

::selection {
  background: rgba(34, 200, 255, 0.32);
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(223, 230, 239, 0.86);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 22px;
  height: var(--header-height);
  justify-content: space-between;
  left: 50%;
  padding: 0 14px 0 18px;
  position: fixed;
  top: 16px;
  transform: translateX(-50%);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  width: min(1208px, calc(100% - 48px));
  z-index: 20;
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(203, 214, 228, 0.98);
  box-shadow: 0 18px 46px rgba(10, 23, 46, 0.12);
}

.brand,
.footer-brand {
  align-items: center;
  display: inline-flex;
  font-weight: 500;
  gap: 10px;
  letter-spacing: 0;
}

.brand img,
.footer-brand img {
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(143, 124, 255, 0.22);
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 4px;
}

.site-nav a {
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 13px;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #edf4ff;
  color: var(--blue);
}

.nav-toggle {
  align-items: center;
  background: #f1f5fa;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: none;
  height: 44px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 44px;
}

.nav-toggle span {
  background: currentColor;
  border-radius: 999px;
  height: 2px;
  position: absolute;
  transition: transform 180ms ease;
  width: 18px;
}

.nav-toggle span:first-child {
  transform: translateY(-4px);
}

.nav-toggle span:last-child {
  transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

.hero {
  align-items: center;
  background: linear-gradient(180deg, #fbfcff 0%, #f7f9fc 64%, #eef4f9 100%);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 0.94fr) minmax(440px, 1.06fr);
  min-height: 92svh;
  overflow: hidden;
  padding: 138px max(24px, calc((100vw - 1160px) / 2)) 72px;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  color: #195ea8;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  color: var(--ink);
  font-size: 4.75rem;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 24px;
}

h2 {
  color: var(--ink);
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 16px;
}

h3 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-lede {
  color: var(--muted-strong);
  font-size: 20px;
  line-height: 1.55;
  margin-bottom: 0;
  max-width: 620px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.store-badge {
  display: inline-flex;
  line-height: 0;
  transition: transform 160ms ease, filter 160ms ease;
}

.store-badge:hover,
.store-badge:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.store-badge img {
  height: 52px;
  width: auto;
}

.hero-facts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 38px 0 0;
}

.hero-facts div {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.hero-facts .fact-title {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: flex;
  gap: 8px;
  margin-bottom: 5px;
  padding: 0;
}

.hero-facts svg {
  color: #007aff;
  fill: currentColor;
  flex: 0 0 auto;
  height: 19px;
  width: 19px;
}

.hero-facts strong {
  color: var(--ink);
  display: inline;
  font-size: 15px;
  font-weight: 500;
}

.hero-facts span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.hero-visual {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 540px;
  position: relative;
}

.device-frame {
  background: #111622;
  border: 1px solid rgba(23, 32, 51, 0.3);
  border-radius: 34px;
  box-shadow: 0 34px 90px rgba(7, 17, 31, 0.24);
  padding: 10px;
  transform: translate(-12px, -34px);
  width: min(670px, 100%);
}

.hero-device-image {
  border-radius: 26px;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.json-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(203, 214, 228, 0.92);
  border-radius: var(--radius);
  bottom: 34px;
  box-shadow: var(--shadow-md);
  max-width: 330px;
  padding: 16px;
  position: absolute;
  right: 0;
  width: 54%;
  z-index: 3;
}

.card-title {
  align-items: center;
  color: var(--ink);
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.card-title strong {
  font-weight: 500;
}

.card-title span {
  background: var(--green);
  border-radius: 50%;
  height: 10px;
  width: 10px;
}

pre {
  background: #07111f;
  border-radius: var(--radius);
  color: #dcecff;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  overflow-x: auto;
  padding: 14px;
}

pre code {
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
}

.trust-strip {
  align-items: center;
  background: var(--ink);
  color: #ffffff;
  display: flex;
  gap: 18px;
  justify-content: center;
  padding: 18px 24px;
  text-align: center;
}

.trust-strip p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.section,
.examples-section,
.limits-band {
  padding: 88px max(24px, calc((100vw - 1160px) / 2));
}

.section-heading {
  margin-bottom: 34px;
  max-width: 760px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted-strong);
  font-size: 18px;
  margin-bottom: 0;
}

.section-heading.compact {
  margin-bottom: 28px;
}

.setup-flow {
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px;
  position: relative;
}

.setup-step,
.template-card,
.example-card,
.plan-card,
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(10, 23, 46, 0.06);
}

.setup-step {
  border-color: var(--line-strong);
  min-height: 190px;
  overflow: visible;
  padding: 24px;
  position: relative;
}

.setup-step:not(:last-child)::after {
  align-items: center;
  color: var(--blue);
  content: ">";
  display: flex;
  font-size: 18px;
  font-weight: 400;
  height: 24px;
  justify-content: center;
  line-height: 1;
  opacity: 0.72;
  position: absolute;
  right: -29px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  z-index: 2;
}

.step-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.step-heading h3 {
  margin: 0;
}

.step-number {
  align-items: center;
  background: rgba(0, 122, 255, 0.08);
  border: 1px solid rgba(0, 122, 255, 0.14);
  border-radius: 999px;
  color: #007aff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  height: 28px;
  justify-content: center;
  width: 38px;
}

.setup-step p,
.example-card p,
.template-card p,
.plan-card p,
.faq-item p {
  color: var(--muted-strong);
  margin-bottom: 0;
}

.template-grid,
.examples-grid {
  display: grid;
  gap: 16px;
}

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

.template-card {
  overflow: hidden;
  padding: 18px;
}

.template-preview {
  background: #07111f;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  height: 154px;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 16px;
  position: relative;
}

.template-preview strong,
.template-preview small,
.template-preview span {
  position: relative;
  z-index: 1;
}

.template-preview strong {
  font-weight: 500;
}

.template-preview small {
  color: rgba(255, 255, 255, 0.7);
}

.widget-small {
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-end;
}

.widget-small .widget-icon {
  color: #ffffff;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 20px;
}

.widget-small::before {
  background: var(--cyan);
  border-radius: 50%;
  content: "";
  height: 28px;
  left: 18px;
  position: absolute;
  top: 18px;
  width: 28px;
}

.widget-medium {
  align-items: flex-end;
  background: #102033;
  justify-content: space-between;
}

.widget-medium span {
  color: var(--cyan);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
}

.widget-large {
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-end;
}

.widget-large .bar {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  height: 10px;
  left: 16px;
  position: absolute;
  right: 16px;
  top: 18px;
}

.widget-large .bar::after {
  background: linear-gradient(90deg, var(--green), var(--cyan));
  border-radius: inherit;
  content: "";
  display: block;
  height: 100%;
  width: 78%;
}

.widget-large span {
  color: var(--green);
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 10px;
}

.widget-lock {
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.widget-lock span {
  align-items: center;
  border: 8px solid rgba(34, 200, 255, 0.4);
  border-right-color: var(--cyan);
  border-radius: 50%;
  display: inline-flex;
  font-size: 1.55rem;
  font-weight: 700;
  height: 86px;
  justify-content: center;
  width: 86px;
}

.examples-section {
  background: #eef4f9;
}

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

.example-card {
  padding: 24px;
}

.example-card h3 {
  align-items: center;
  display: flex;
  gap: 9px;
}

.example-card h3::before {
  background: var(--amber);
  border-radius: 50%;
  content: "";
  flex: 0 0 auto;
  height: 10px;
  width: 10px;
}

.limits-band {
  background: #ffffff;
  border-block: 1px solid var(--line);
}

.plans {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.plan-card {
  padding: 28px;
  position: relative;
}

.plan-card.pro {
  border-color: rgba(0, 108, 255, 0.36);
  box-shadow: 0 22px 64px rgba(0, 108, 255, 0.12);
}

.plan-badge {
  background: #edf4ff;
  border: 1px solid rgba(0, 108, 255, 0.18);
  border-radius: 999px;
  color: var(--blue);
  display: inline-flex;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 14px;
  padding: 5px 10px;
}

.plan-card ul {
  color: var(--muted-strong);
  margin: 24px 0 0;
  padding-left: 20px;
}

.plan-card li + li {
  margin-top: 9px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.faq-item {
  padding: 0 20px;
}

.faq-item summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  list-style: none;
  padding: 19px 0;
}

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

.faq-item summary::after {
  color: var(--blue);
  content: "+";
  float: right;
  font-size: 22px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  border-top: 1px solid var(--line);
  padding: 16px 0 20px;
}

.site-footer {
  background: var(--ink);
  color: #ffffff;
  padding: 34px max(24px, calc((100vw - 1160px) / 2));
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: space-between;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a {
  color: #ffffff;
  font-weight: 500;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 780px;
  }

  .hero-visual {
    min-height: auto;
  }

  .device-frame {
    transform: none;
  }

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

  h1 {
    font-size: 3.9rem;
  }

  h2 {
    font-size: 2.55rem;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 66px;
  }

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

  .site-nav {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    display: none;
    flex-direction: column;
    left: 14px;
    padding: 12px;
    position: fixed;
    right: 14px;
    top: 92px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: var(--radius);
    width: 100%;
  }

  .hero {
    gap: 36px;
    min-height: auto;
    padding-top: 116px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .json-card {
    bottom: -10px;
    right: 12px;
    width: min(330px, 72%);
  }

  .trust-strip,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
  }

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

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .site-header {
    width: calc(100% - 36px);
  }

  .brand img {
    height: 34px;
    width: 34px;
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .hero,
  .section,
  .examples-section,
  .limits-band {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    padding-bottom: 58px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .store-badge img {
    height: 48px;
  }

  .examples-grid,
  .template-grid,
  .setup-flow {
    grid-template-columns: 1fr;
  }

  .setup-flow {
    gap: 28px;
  }

  .setup-step:not(:last-child)::after {
    bottom: -30px;
    content: "v";
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
  }

  .device-frame {
    border-radius: 24px;
    padding: 7px;
  }

  .hero-device-image {
    border-radius: 18px;
  }

  .json-card {
    margin-top: 12px;
    max-width: none;
    position: static;
    width: 100%;
  }

  pre {
    font-size: 12px;
  }

  .section,
  .examples-section,
  .limits-band {
    padding-top: 66px;
    padding-bottom: 66px;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 1.95rem;
  }
}

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

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