:root {
  --bg: #FBF9FF;
  --bg-2: #F4F0FF;
  --surface: #FFFFFF;
  --ink: #17132A;
  --ink-2: #4A4560;
  --muted: #7A7590;
  --line: rgba(23, 19, 42, 0.08);
  --pink: #FF3D7F;
  --orange: #FF8A3D;
  --violet: #7B5CFF;
  --green: #0E9F6E;
  --grad: linear-gradient(100deg, #FF3D7F 0%, #FF8A3D 52%, #7B5CFF 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 61, 127, 0.10), rgba(123, 92, 255, 0.10));
  --shadow: 0 18px 50px rgba(73, 45, 160, 0.12);
  --shadow-sm: 0 6px 18px rgba(73, 45, 160, 0.08);
  --radius: 22px;
  --top-h: 68px;
  --tour-h: 0px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 92% -10%, rgba(255, 61, 127, 0.10), transparent 60%),
    radial-gradient(800px 600px at -10% 110%, rgba(123, 92, 255, 0.10), transparent 60%),
    var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid rgba(123, 92, 255, 0.55); outline-offset: 2px; border-radius: 10px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.noscript { padding: 40px; text-align: center; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 24px;
  background: rgba(251, 249, 255, 0.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 19px; box-shadow: var(--shadow-sm); flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.wordmark { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.by { font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.langs { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; box-shadow: var(--shadow-sm); }
.langs button { border: 0; background: transparent; padding: 6px 11px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.langs button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.btn { border: 0; border-radius: 999px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--grad); color: #fff; padding: 11px 18px; font-size: 14px; box-shadow: 0 10px 24px rgba(255, 61, 127, 0.28); transition: transform .15s ease, box-shadow .15s ease; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(255, 61, 127, 0.34); }
.btn-ghost { background: var(--surface); color: var(--ink); padding: 10px 16px; font-size: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-sm { padding: 9px 14px; }
.btn .ico { font-size: 12px; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 260px 1fr; gap: 0; max-width: 1440px; margin: 0 auto; }
.rail {
  position: sticky; top: var(--top-h); align-self: start;
  height: calc(100vh - var(--top-h)); overflow-y: auto;
  padding: 22px 14px 120px 22px;
  scrollbar-width: thin;
}
.rail h3 { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 10px 8px; font-weight: 800; }
.rail h3:first-child { margin-top: 0; }
.rail-item {
  width: 100%; text-align: left; border: 0; background: transparent; border-radius: 12px;
  padding: 8px 10px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.rail-item .num { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--bg-2); color: var(--violet); flex-shrink: 0; }
.rail-item:hover { background: rgba(123, 92, 255, 0.06); }
.rail-item[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.rail-item[aria-current="true"] .num { background: var(--grad); color: #fff; }
.rail-item .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.stage { padding: 28px 32px calc(40px + var(--tour-h)); min-width: 0; outline: none; }

/* ---------- slide ---------- */
.slide {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center;
  min-height: calc(100vh - var(--top-h) - 150px - var(--tour-h));
  animation: enter .45s cubic-bezier(.2, .7, .2, 1);
}
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); background: rgba(123, 92, 255, 0.08); padding: 6px 12px; border-radius: 999px; }
.slide h1 { font-size: clamp(28px, 3.3vw, 46px); line-height: 1.08; letter-spacing: -0.03em; margin: 16px 0 12px; font-weight: 800; }
.slide h1 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subtitle { font-size: clamp(16px, 1.35vw, 19px); color: var(--ink-2); line-height: 1.5; margin: 0 0 18px; }
.bullets { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.bullets li { position: relative; padding: 12px 14px 12px 44px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-sm); font-size: 15px; line-height: 1.45; color: var(--ink); border: 1px solid transparent; transition: border-color .2s, transform .2s; }
.bullets li::before { content: '✓'; position: absolute; left: 14px; top: 12px; width: 20px; height: 20px; border-radius: 7px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.bullets li.on { border-color: rgba(255, 61, 127, 0.35); transform: translateX(3px); }
.benefit { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: var(--grad-soft); border: 1px solid rgba(255, 61, 127, 0.18); font-weight: 600; line-height: 1.45; }
.benefit .b-ico { width: 30px; height: 30px; border-radius: 10px; background: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.slide-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- phone ---------- */
.visual { display: flex; justify-content: center; align-items: center; position: relative; min-width: 0; }
.visual::before { content: ''; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 61, 127, 0.18), rgba(123, 92, 255, 0.10) 50%, transparent 70%); filter: blur(10px); }
.phone {
  scroll-margin-top: calc(var(--top-h) + 70px);
  position: relative; width: 340px; max-width: 100%; aspect-ratio: 390 / 844;
  border-radius: 48px; padding: 11px; background: #15122A;
  box-shadow: 0 40px 90px rgba(35, 20, 90, 0.35), inset 0 0 0 2px #2A2546;
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #fff; }
.phone-scroll { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: none; scroll-behavior: smooth; }
.phone-scroll::-webkit-scrollbar { display: none; }
.phone-canvas { position: relative; }
.phone-canvas img { width: 100%; height: auto; }
.focus {
  position: absolute; border-radius: 14px; pointer-events: none;
  border: 2.5px solid var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 61, 127, 0.18), 0 0 26px rgba(255, 61, 127, 0.45);
  opacity: 0; transform: scale(1.04); transition: opacity .35s ease, transform .35s ease;
}
.focus.on { opacity: 1; transform: none; animation: pulse 1.8s ease-in-out infinite; }
.focus .tag { position: absolute; left: -2px; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(255, 61, 127, 0.10), 0 0 34px rgba(255, 61, 127, 0.55); } }
.phone-hint { position: absolute; bottom: -34px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- non-screen visuals ---------- */
.hero-card { position: relative; width: min(420px, 100%); aspect-ratio: 4 / 5; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid #fff; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.float-chip { position: absolute; background: rgba(255, 255, 255, 0.94); border-radius: 999px; padding: 9px 14px; font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow-sm); display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.float-chip b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fc-1 { left: -18px; top: 14%; } .fc-2 { right: -14px; top: 46%; } .fc-3 { left: 6%; bottom: 7%; }

.illus { position: relative; width: min(460px, 100%); background: var(--surface); border-radius: 30px; box-shadow: var(--shadow); padding: 26px; }
.illus h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tool { border-radius: 16px; padding: 14px 10px; text-align: center; font-weight: 700; font-size: 13px; background: var(--bg-2); position: relative; }
.tool .e { font-size: 24px; display: block; margin-bottom: 6px; }
.tool.x::after { content: ''; position: absolute; inset: 0; border-radius: 16px; background: linear-gradient(135deg, transparent 47%, rgba(255, 61, 127, 0.55) 48%, rgba(255, 61, 127, 0.55) 52%, transparent 53%); }
.illus .total { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 16px; background: #FFF1F5; font-weight: 700; }
.illus .total b { color: var(--pink); font-size: 20px; }
.orbit { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.orbit .core { width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: clamp(15px, 1.6vw, 20px); box-shadow: 0 20px 50px rgba(255, 61, 127, 0.35); text-align: center; z-index: 1; }
.orbit .ring { position: absolute; inset: 9%; border-radius: 50%; border: 2px dashed rgba(123, 92, 255, 0.25); }
.orbit .sat { position: absolute; transform: translate(-50%, -50%); background: #fff; border-radius: 999px; padding: 8px 12px; font-weight: 700; font-size: 12.5px; box-shadow: var(--shadow-sm); white-space: nowrap; }
.steps { display: grid; gap: 10px; counter-reset: s; }
.step { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--bg-2); font-weight: 600; font-size: 14.5px; }
.step::before { counter-increment: s; content: counter(s); width: 30px; height: 30px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.waves { display: grid; gap: 14px; }
.wave { padding: 14px 16px; border-radius: 18px; background: var(--bg-2); }
.wave .w-h { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; }
.wave .flags { display: flex; flex-wrap: wrap; gap: 8px; }
.wave .flags span { background: #fff; border-radius: 999px; padding: 6px 11px; font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow-sm); }
.wave.w1 { background: linear-gradient(135deg, #FFF0F5, #F3EEFF); border: 1px solid rgba(255, 61, 127, 0.2); }
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.badge { padding: 16px 14px; border-radius: 18px; background: var(--bg-2); font-weight: 700; font-size: 13.5px; line-height: 1.35; }
.badge .e { font-size: 22px; display: block; margin-bottom: 6px; }
.big-icon { font-size: 64px; text-align: center; margin: 6px 0 14px; }
.cta-box { text-align: center; }
.cta-box .mail { display: inline-block; margin: 6px 0 16px; font-weight: 800; font-size: 18px; color: var(--violet); text-decoration: none; }

/* ---------- pager ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; margin-right: 190px; }
.pager-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 18px; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.pager-btn:disabled { opacity: .35; cursor: default; }
.pager-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.dots { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.dots i { width: 7px; height: 7px; border-radius: 99px; background: rgba(123, 92, 255, 0.2); transition: width .2s; }
.dots i.on { width: 22px; background: var(--grad); }
.counter { font-size: 12.5px; font-weight: 700; color: var(--muted); }

/* ---------- tour bar ---------- */
.tourbar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 40;
  width: min(940px, calc(100% - 32px));
  background: rgba(23, 19, 42, 0.94); color: #fff; border-radius: 24px;
  box-shadow: 0 24px 60px rgba(23, 19, 42, 0.35); overflow: hidden;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tour-progress { height: 4px; background: rgba(255, 255, 255, 0.12); }
.tour-fill { height: 100%; width: 0; background: var(--grad); transition: width .25s linear; }
.tour-inner { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px; }
.tour-avatar { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.85); flex-shrink: 0; object-fit: cover; }
.caption { margin: 0; flex: 1; font-size: 15px; line-height: 1.45; min-height: 2.9em; max-height: 4.4em; overflow-y: auto; display: block; color: rgba(255, 255, 255, 0.95); scrollbar-width: none; }
.caption::-webkit-scrollbar { display: none; }
.tour-controls { display: flex; gap: 4px; flex-shrink: 0; }
.tc { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.10); color: #fff; font-size: 14px; display: grid; place-items: center; }
.tc:hover { background: rgba(255, 255, 255, 0.2); }
.tc-main { background: var(--grad); width: 44px; height: 44px; }
.tc-text { font-size: 12.5px; font-weight: 800; }
.tour-note { margin: 0; padding: 0 18px 10px 72px; font-size: 12px; color: rgba(255, 255, 255, 0.65); }

/* ---------- Q&A ---------- */
.ask-fab {
  position: fixed; right: 22px; bottom: calc(22px + var(--tour-h)); z-index: 35;
  display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px; border: 0;
  background: var(--surface); box-shadow: var(--shadow); font-weight: 800; font-size: 14px; transition: bottom .25s ease;
}
.ask-fab img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid transparent; background: var(--grad) border-box; }
.ask-fab::after { content: ''; position: absolute; left: 38px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: #22C55E; border: 2px solid #fff; }
.ask-panel {
  position: fixed; right: 22px; bottom: calc(86px + var(--tour-h)); z-index: 45;
  width: min(400px, calc(100% - 32px)); height: min(600px, calc(100vh - var(--top-h) - 120px - var(--tour-h)));
  background: var(--surface); border-radius: 24px; box-shadow: 0 30px 80px rgba(35, 20, 90, 0.28);
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
}
.ask-panel[hidden] { display: none; }
.ask-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--grad); color: #fff; }
.ask-head img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, 0.9); }
.ask-head h2 { margin: 0; font-size: 16px; }
.ask-head p { margin: 2px 0 0; font-size: 12px; opacity: .9; }
.ask-x { margin-left: auto; border: 0; background: rgba(255, 255, 255, 0.2); color: #fff; width: 32px; height: 32px; border-radius: 50%; }
.ask-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg.user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: #fff; box-shadow: var(--shadow-sm); border-bottom-left-radius: 6px; }
.msg .meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 11px; color: var(--muted); }
.msg .say { border: 0; background: var(--bg-2); border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 700; color: var(--violet); }
.msg .rel { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; } }
.ask-suggest { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px 2px; scrollbar-width: none; }
.ask-suggest::-webkit-scrollbar { display: none; }
.chip-q { flex-shrink: 0; border: 1px solid rgba(123, 92, 255, 0.25); background: #fff; color: var(--violet); border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-weight: 700; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-q:hover { background: rgba(123, 92, 255, 0.06); }
.ask-form { display: flex; gap: 8px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.ask-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 11px 14px; font: inherit; font-size: 14px; background: var(--bg); }
.ask-form input:focus { outline: none; border-color: rgba(123, 92, 255, 0.5); box-shadow: 0 0 0 3px rgba(123, 92, 255, 0.12); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .rail {
    position: sticky; top: var(--top-h); z-index: 20; height: auto; overflow-x: auto; overflow-y: hidden;
    display: flex; gap: 6px; padding: 10px 16px; background: rgba(251, 249, 255, 0.9);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail h3 { display: none; }
  .rail-item { width: auto; flex-shrink: 0; background: var(--surface); box-shadow: var(--shadow-sm); padding: 7px 12px 7px 8px; border-radius: 999px; font-size: 13px; }
  .rail-item .lbl { max-width: 180px; }
  .stage { padding: 20px 16px calc(30px + var(--tour-h)); }
}
@media (max-width: 860px) {
  .slide { grid-template-columns: 1fr; gap: 28px; min-height: 0; }
  .visual { order: 2; }
  .phone { width: 300px; }
  .by { display: none; }
  .top { padding: 0 16px; }
  #tourBtnLabel { display: none; }
  .btn-primary { padding: 11px 14px; }
  .float-chip { font-size: 12.5px; }
  .fc-1 { left: 4px; } .fc-2 { right: 4px; }
}
@media (max-width: 560px) {
  :root { --top-h: 60px; }
  .brand-mark { width: 34px; height: 34px; }
  .wordmark { font-size: 18px; }
  .langs button { padding: 6px 8px; font-size: 12px; }
  .tour-inner { flex-wrap: wrap; gap: 10px; padding: 10px 12px; }
  .tour-avatar { width: 34px; height: 34px; }
  .caption { font-size: 14px; flex-basis: calc(100% - 50px); max-height: 7.3em; }
  .pager { margin-right: 64px; }
  .tour-controls { width: 100%; justify-content: space-between; }
  .tour-note { padding: 0 14px 10px; }
  .tourbar { bottom: 10px; border-radius: 20px; }
  .ask-fab span { display: none; }
  .ask-fab { padding: 5px; right: 14px; }
  .ask-panel { right: 8px; left: 8px; width: auto; bottom: calc(76px + var(--tour-h)); height: min(560px, calc(100vh - 150px - var(--tour-h))); }
  .badges { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .orbit .sat { font-size: 11px; padding: 6px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
