:root {
  --bg: #fbfaff; --surface: #ffffff; --surface-2: #f1effd; --text: #1b1640; --muted: #6f6a92; --line: #e7e4f8;
  --accent: #6d5dfc; --grad: linear-gradient(135deg, #6d5dfc 0%, #a35cff 50%, #ff5c8a 100%);
  --shadow: 0 1px 2px rgba(27, 22, 64, .05), 0 18px 50px rgba(27, 22, 64, .1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0f0c1f; --surface: #1a1631; --surface-2: #231e40; --text: #efedff; --muted: #a39fc7; --line: #2c2750; --accent: #8b7dff; --shadow: 0 18px 50px rgba(0, 0, 0, .4); color-scheme: dark; }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 'Manrope', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.025em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ico { width: 20px; height: 20px; flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 10px 26px rgba(109, 93, 252, .32); transition: transform .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 15px; box-shadow: none; }
.btn.big { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn.ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.light { background: #fff; color: #5b49f5; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }

.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; }
.nav-logo img { height: 34px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: 15px; }
.nav-links a:hover { color: var(--text); }

.hero { padding: clamp(36px, 7vw, 90px) 0 40px; position: relative; }
.hero::before { content: ''; position: absolute; inset: -200px -10% auto auto; width: 680px; height: 680px; border-radius: 50%; background: radial-gradient(circle, rgba(163, 92, 255, .18), transparent 65%); z-index: -1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.pill { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--surface-2); color: var(--accent); font-weight: 800; font-size: 13.5px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 68px); font-weight: 800; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 560px; }
.domain-demo { display: inline-flex; align-items: center; max-width: 100%; margin: 6px 0 26px; padding: 12px 18px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); font: 700 clamp(14px, 2.2vw, 18px) ui-monospace, 'SF Mono', Menlo, monospace; overflow: hidden; }
.typed { color: var(--accent); white-space: pre; border-right: 2px solid var(--accent); padding-right: 2px; animation: caret 1s steps(1) infinite; }
.suffix { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes caret { 50% { border-color: transparent; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero-visual { position: relative; height: 560px; }
.phone { position: absolute; width: 270px; height: 540px; border-radius: 42px; background: #0d0b1a; padding: 12px; box-shadow: 0 40px 80px rgba(27, 22, 64, .28), inset 0 0 0 2px #2b2747; right: 40px; top: 0; z-index: 2; }
.phone.back { right: 230px; top: 50px; transform: rotate(-7deg) scale(.88); z-index: 1; opacity: .95; }
.phone-notch { position: absolute; top: 18px; left: 50%; width: 86px; height: 22px; margin-left: -43px; border-radius: 12px; background: #0d0b1a; z-index: 3; }
.phone iframe { width: 390px; height: 750px; border: 0; border-radius: 30px; transform: scale(.631); transform-origin: 0 0; pointer-events: none; background: #fff; }

.audience { padding: 18px 0 8px; }
.audience-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.aud { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 10px 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; font-size: 15px; }
.aud .ico { color: var(--accent); }

.section { padding: clamp(56px, 9vw, 104px) 0; }
.section.alt { background: var(--surface-2); }
.section-h { font-size: clamp(30px, 4.6vw, 46px); text-align: center; margin-bottom: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.step { background: var(--surface); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.step-n { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 16px; }
.step h3 { font-size: 21px; }
.step p { color: var(--muted); margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border-radius: 22px; padding: 26px; }
.f-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(109, 93, 252, .12); color: var(--accent); margin-bottom: 14px; }
.f-ico .ico { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; }
.feature p { color: var(--muted); margin: 0; font-size: 16px; }

.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 28px 0 24px; padding-bottom: 4px; justify-content: safe center; }
.filter { flex: none; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--text); font: 700 15px 'Manrope', sans-serif; cursor: pointer; }
.filter.active { background: var(--text); color: var(--bg); box-shadow: none; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.tpl { display: block; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; transition: transform .2s; }
.tpl[hidden] { display: none; }
.tpl:hover { transform: translateY(-4px); }
.tpl-frame { display: block; position: relative; height: 300px; overflow: hidden; background: var(--surface-2); pointer-events: none; }
.tpl-frame iframe { position: absolute; top: 0; left: 0; width: 390px; height: 900px; border: 0; transform: scale(.66); transform-origin: 0 0; }
.tpl-meta { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px 18px; }
.tpl-meta strong { font-size: 18px; }
.tpl-meta span { color: var(--muted); font-size: 14.5px; }

.faq { background: var(--surface); border-radius: 18px; padding: 0 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 800; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 24px; line-height: 1; }
.faq[open] summary::after { content: '−'; }
.faq p { color: var(--muted); padding-bottom: 20px; margin: 0; }

.final { padding: clamp(48px, 8vw, 90px) 0; }
.final-card { background: var(--grad); border-radius: 32px; padding: clamp(40px, 7vw, 72px) 24px; text-align: center; color: #fff; max-width: 1100px; }
.final-card h2 { font-size: clamp(30px, 5vw, 48px); }
.final-card p { opacity: .9; font-size: 18px; margin-bottom: 26px; }
.footer { border-top: 1px solid var(--line); padding: 26px 0 calc(26px + env(safe-area-inset-bottom)); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-weight: 700; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 470px; max-width: 420px; width: 100%; margin: 0 auto; }
  .phone { right: 8%; transform: scale(.86); transform-origin: top right; }
  .phone.back { right: auto; left: 0; transform: rotate(-7deg) scale(.74); transform-origin: top left; }
  .steps, .features { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .cta-row .btn { width: 100%; }
  .hero-visual { height: 430px; }
  .phone { right: 0; transform: scale(.8); }
  .phone.back { transform: rotate(-7deg) scale(.66); }
  .tpl-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tpl-frame { height: 210px; }
  .tpl-frame iframe { transform: scale(.42); }
  .tpl-meta { padding: 10px 12px 12px; }
  .tpl-meta strong { font-size: 15px; }
  .tpl-meta span { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
