:root {
  --ink: #172033;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --soft: #f7f8fc;
  --indigo: #4f46e5;
  --indigo-dark: #312e81;
  --teal: #0f766e;
  --amber: #f59e0b;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(49, 46, 129, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 10px 16px; background: #fff; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); border-bottom: 1px solid rgba(226,232,240,.8); backdrop-filter: blur(18px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 850; letter-spacing: -.03em; }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 11px; border-radius: 10px; color: #475569; text-decoration: none; font-size: .91rem; font-weight: 680; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--indigo); background: #eef2ff; }
.nav-links .nav-cta { margin-left: 8px; color: #fff; background: var(--indigo); }
.nav-links .nav-cta:hover { color: #fff; background: var(--indigo-dark); }
.menu-button { display: none; border: 0; border-radius: 12px; padding: 10px; background: #eef2ff; color: var(--indigo-dark); font: inherit; font-weight: 750; }

.hero { overflow: hidden; position: relative; padding: 86px 0 74px; background: radial-gradient(circle at 78% 18%, rgba(15,118,110,.16), transparent 25%), radial-gradient(circle at 12% 30%, rgba(79,70,229,.15), transparent 27%), linear-gradient(180deg,#fbfbff 0%,#fff 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .38; background-image: linear-gradient(rgba(79,70,229,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(79,70,229,.07) 1px,transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom,#000,transparent 85%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 72px; }
.hero-grid > * { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 7px 12px; color: var(--indigo-dark); background: #eef2ff; border: 1px solid #dbe3ff; border-radius: 999px; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(15,118,110,.12); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.045em; }
h1 { max-width: 760px; margin: 0; font-size: clamp(2.9rem, 6.2vw, 5.4rem); }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { margin: 0; font-size: 1.18rem; }
.gradient-text { color: var(--indigo); }
.hero-copy > p { max-width: 650px; margin: 24px 0 30px; color: var(--muted); font-size: 1.14rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 21px; border: 1px solid transparent; border-radius: 14px; text-decoration: none; font-weight: 800; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--indigo); box-shadow: 0 12px 26px rgba(79,70,229,.27); }
.button-primary:hover { background: var(--indigo-dark); }
.button-secondary { color: var(--indigo-dark); background: #fff; border-color: #cbd5e1; }
.play-mark { width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid currentColor; }
.trust-line { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; color: #475569; font-size: .9rem; font-weight: 650; }
.trust-line span::before { content: "✓"; margin-right: 7px; color: var(--teal); font-weight: 900; }

.phone-stage { position: relative; min-height: 620px; display: grid; place-items: center; }
.phone-stage::before { content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%; background: linear-gradient(145deg,rgba(79,70,229,.24),rgba(15,118,110,.16)); filter: blur(3px); }
.phone { position: relative; width: min(310px, 76vw); padding: 10px; background: #111827; border: 1px solid #334155; border-radius: 38px; box-shadow: 0 38px 90px rgba(30,41,59,.3); transform: rotate(2.5deg); }
.phone::before { content: ""; position: absolute; top: 17px; left: 50%; z-index: 2; width: 80px; height: 20px; background: #111827; border-radius: 0 0 12px 12px; transform: translateX(-50%); }
.phone img { width: 100%; border-radius: 29px; }
.floating-card { position: absolute; z-index: 3; padding: 13px 16px; background: rgba(255,255,255,.94); border: 1px solid #fff; border-radius: 16px; box-shadow: var(--shadow); font-size: .84rem; font-weight: 800; backdrop-filter: blur(10px); }
.floating-card strong { display: block; color: var(--teal); font-size: 1.05rem; }
.floating-card.one { top: 16%; left: 0; }
.floating-card.two { right: 0; bottom: 17%; }

.stats { position: relative; margin-top: -26px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.stat { padding: 8px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat strong { display: block; font-size: 1.05rem; }
.stat span { color: var(--muted); font-size: .84rem; }

.section { padding: 96px 0; }
.section-soft { background: var(--soft); }
.section-dark { color: #fff; background: #111827; }
.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p, .lead { margin: 16px 0 0; color: var(--muted); font-size: 1.06rem; }
.section-dark .section-head p { color: #cbd5e1; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.feature-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(30,41,59,.09); }
.feature-card p { margin: 10px 0 0; color: var(--muted); }
.icon-box { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 22px; color: var(--indigo); background: #eef2ff; border-radius: 14px; font-size: 1.35rem; font-weight: 900; }

.showcase { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 70px; }
.showcase-points { display: grid; gap: 20px; margin-top: 30px; }
.showcase-point { display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.showcase-point b:first-child { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--teal); border-radius: 10px; }
.showcase-point p { margin: 5px 0 0; color: var(--muted); font-size: .94rem; }
.screenshot-pair { position: relative; min-height: 600px; }
.screen-card { position: absolute; width: 280px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.screen-card img { border-radius: 21px; }
.screen-card:first-child { left: 4%; top: 0; transform: rotate(-4deg); }
.screen-card:last-child { right: 2%; bottom: 0; transform: rotate(4deg); }

.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 25%); gap: 20px; overflow-x: auto; padding: 8px 4px 30px; scroll-snap-type: x mandatory; scrollbar-color: var(--indigo) #e2e8f0; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { border: 8px solid #fff; border-radius: 26px; box-shadow: 0 16px 40px rgba(15,23,42,.18); }
.gallery figcaption { margin-top: 14px; color: #cbd5e1; font-size: .91rem; text-align: center; }

.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; counter-reset: steps; }
.step { position: relative; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); counter-increment: steps; }
.step::before { content: "0" counter(steps); display: block; margin-bottom: 34px; color: var(--indigo); font-size: 1.6rem; font-weight: 900; }
.step p { margin-bottom: 0; color: var(--muted); }
.faq { max-width: 850px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { padding: 0 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 780; }
.faq details p { margin: -4px 0 22px; color: var(--muted); }
.cta-panel { padding: 54px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #fff; background: radial-gradient(circle at 80% 20%,rgba(15,118,110,.6),transparent 30%),linear-gradient(135deg,var(--indigo-dark),var(--indigo)); border-radius: 32px; box-shadow: var(--shadow); }
.cta-panel h2 { max-width: 620px; }
.cta-panel p { margin: 12px 0 0; color: #e0e7ff; }
.cta-panel .button { flex: 0 0 auto; color: var(--indigo-dark); background: #fff; }

.page-hero { padding: 78px 0 64px; text-align: center; background: radial-gradient(circle at 50% 0,rgba(79,70,229,.16),transparent 45%),var(--soft); }
.page-hero h1 { margin-inline: auto; font-size: clamp(2.55rem,6vw,4.7rem); }
.page-hero p { max-width: 720px; margin: 20px auto 0; color: var(--muted); font-size: 1.1rem; }
.content-grid { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 100px; padding: 20px; background: var(--soft); border: 1px solid var(--line); border-radius: 18px; }
.toc strong { display: block; margin-bottom: 10px; }
.toc a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: .9rem; }
.toc a:hover { color: var(--indigo); }
.prose { max-width: 800px; }
.prose h2 { margin: 48px 0 12px; font-size: 1.75rem; letter-spacing: -.03em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; }
.prose p, .prose li { color: #475569; }
.prose li + li { margin-top: 7px; }
.notice { padding: 18px 20px; color: #3730a3; background: #eef2ff; border-left: 4px solid var(--indigo); border-radius: 10px; }
.about-grid, .contact-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.value-card, .contact-card { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.value-card p, .contact-card p { color: var(--muted); }
.contact-card a { color: var(--indigo); font-weight: 800; }

.site-footer { padding: 64px 0 30px; color: #cbd5e1; background: #0f172a; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 38px; }
.footer-brand p { max-width: 370px; color: #94a3b8; }
.footer-title { margin-bottom: 14px; color: #fff; font-weight: 800; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #94a3b8; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #263244; color: #64748b; font-size: .88rem; }

[data-reveal] { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .menu-button { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 68px; left: 20px; right: 20px; padding: 12px; flex-direction: column; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links .nav-cta { margin: 4px 0 0; text-align: center; }
  .hero-grid, .showcase { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .button-row, .trust-line { justify-content: center; }
  .phone-stage { min-height: 570px; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .content-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px,1120px); }
  .section { padding: 72px 0; }
  .hero { padding-top: 62px; }
  h1 { font-size: 2.45rem; }
  .hero-copy .button { width: 100%; }
  .floating-card { display: none; }
  .phone-stage { min-height: 490px; }
  .phone { width: 260px; }
  .feature-grid, .steps, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .screenshot-pair { min-height: 530px; }
  .screen-card { width: 220px; }
  .gallery { grid-auto-columns: 72%; }
  .cta-panel { padding: 34px 26px; flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
