/* ---------- Fonts (self-hosted: no requests to Google, GDPR-friendly) ---------- */
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap; src: url(/assets/fonts/unbounded-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap; src: url(/assets/fonts/unbounded-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-weight: 200 900; font-display: swap; src: url(/assets/fonts/unbounded-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/onest-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/onest-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Onest"; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/onest-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

/* ---------- Tokens ---------- */
:root {
  --paper: #F4F5FA; --paper-2: #ECEEF6; --card: #FFFFFF; --ink: #15162E; --muted: #5B5F7E; --line: #DCDFEB;
  --violet: #6B52F5; --violet-2: #8F7BFF; --violet-soft: #ECE8FF; --mint: #12A176; --mint-soft: #DDF5EC; --amber: #E8962A;
  --night: #0F1026; --night-2: #181A38; --night-line: #2A2D52;
  --display: "Unbounded", "Onest", system-ui, sans-serif; --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2,.75,.2,1); --r: 18px;
  --header: rgb(244 245 250 / .82); --glass: rgb(255 255 255 / .7); --grid: rgb(21 22 46 / .045); --soft-text: rgb(21 22 46 / .55);
  --warn-soft: #FFF2DE; --warn-text: #A8620B; --err-soft: #FFF7F7; --stamp-blend: multiply;
  color-scheme: light;
}
/* dark theme: chosen explicitly, or following the system when nothing was chosen */
:root[data-theme="dark"] {
  --paper: #0E0F22; --paper-2: #1A1C3A; --card: #15172F; --ink: #EDEEFB; --muted: #A3A6C9; --line: #2A2D52;
  --violet-soft: #272063; --mint-soft: #0F3A2D; --night: #090A1A; --night-2: #15172F; --night-line: #2A2D52;
  --header: rgb(14 15 34 / .8); --glass: rgb(21 23 47 / .7); --grid: rgb(237 238 251 / .05); --soft-text: rgb(237 238 251 / .5);
  --warn-soft: #3A2A10; --warn-text: #F5C26B; --err-soft: #2A1418; --stamp-blend: normal;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E0F22; --paper-2: #1A1C3A; --card: #15172F; --ink: #EDEEFB; --muted: #A3A6C9; --line: #2A2D52;
    --violet-soft: #272063; --mint-soft: #0F3A2D; --night: #090A1A; --night-2: #15172F; --night-line: #2A2D52;
    --header: rgb(14 15 34 / .8); --glass: rgb(21 23 47 / .7); --grid: rgb(237 238 251 / .05); --soft-text: rgb(237 238 251 / .5);
    --warn-soft: #3A2A10; --warn-text: #F5C26B; --err-soft: #2A1418; --stamp-blend: normal;
    color-scheme: dark;
  }
}
body { transition: background-color .4s ease, color .4s ease; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgb(107 82 245 / .22); }
:focus-visible { outline: 2.5px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.wrap-narrow { width: min(780px, 100% - 48px); }
.center { text-align: center; margin-inline: auto; }
.ic { width: 22px; height: 22px; flex: none; }
.ic-s { width: 17px; height: 17px; }
.num { font-variant-numeric: tabular-nums; }
.h2 { font: 600 clamp(30px, 4.2vw, 50px)/1.08 var(--display); letter-spacing: -0.03em; max-width: 19ch; text-wrap: balance; }
.h2.center { max-width: 22ch; }
.h3 { font: 600 clamp(24px, 3vw, 34px)/1.15 var(--display); letter-spacing: -0.025em; max-width: 24ch; }
.lead { margin-top: 18px; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn { --bg: var(--card); display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 20px; border-radius: 13px;
  font: 600 15px/1 var(--body); text-decoration: none; border: 1px solid transparent; white-space: nowrap; cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s; }
.btn-s { height: 38px; padding: 0 15px; font-size: 14px; border-radius: 11px; }
.btn-l { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 15px; }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 10px 30px -8px rgb(107 82 245 / .6), inset 0 1px 0 rgb(255 255 255 / .2); }
.btn-primary:hover { background: #5D43EC; box-shadow: 0 16px 40px -10px rgb(107 82 245 / .7), inset 0 1px 0 rgb(255 255 255 / .2); }
.btn-primary::after { content: ""; position: absolute; inset: 0; width: 45%; z-index: -1; transform: translateX(-130%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .38), transparent); }
.btn-primary:hover::after { animation: sheen .9s var(--ease); }
.btn-ghost { background: var(--glass); color: var(--ink); border-color: var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--violet-2); background: var(--card); }
.btn-ghost-d { background: transparent; color: #fff; border-color: var(--night-line); }
.btn-ghost-d:hover { border-color: var(--violet-2); background: rgb(255 255 255 / .04); }
.btn:active { transform: scale(.97); }
.link-quiet { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: none; }
.link-quiet:hover { color: var(--ink); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; transition: background-color .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.is-scrolled { background: var(--header); backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 70px; }
.top-logo { text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 20px/1 var(--display); letter-spacing: -0.03em; }
.top-nav { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.top-nav a { color: var(--muted); text-decoration: none; position: relative; }
.top-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--violet); transform: scaleX(0); transition: transform .3s var(--ease); }
.top-nav a:hover { color: var(--ink); }
.top-nav a:hover::after { transform: scaleX(1); }
.top-act { display: flex; align-items: center; gap: 16px; }
.langs { position: relative; }
.langs summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 6px; border-radius: 9px; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover { color: var(--ink); }
.langs-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px; min-width: 150px;
  box-shadow: 0 20px 50px -18px rgb(0 0 0 / .4); animation: pop .22s var(--ease); white-space: nowrap; min-width: 170px; }
.langs-menu a, .langs-menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 12px; border-radius: 9px; font: 500 14px/1.3 var(--body); color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
.langs-menu a:hover, .langs-menu button:hover { background: var(--paper); }
.langs-menu button[aria-pressed="true"] { color: var(--violet-2); font-weight: 600; }
.th-ic { display: inline-flex; }
.th-dark { display: none; }
:root[data-theme="dark"] .th-light { display: none; } :root[data-theme="dark"] .th-dark { display: inline-flex; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .th-light { display: none; } :root:not([data-theme="light"]) .th-dark { display: inline-flex; } }
.langs-menu a[aria-current] { color: var(--violet); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(60px, 8vw, 110px); }
.hero-bg { position: absolute; inset: -70px 0 0; overflow: hidden; pointer-events: none; z-index: -1; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .8; }
.orb-a { width: 620px; height: 620px; right: -120px; top: -60px; background: radial-gradient(closest-side, rgb(143 123 255 / .5), transparent); animation: drift 18s ease-in-out infinite; }
.orb-b { width: 460px; height: 460px; left: -160px; top: 260px; background: radial-gradient(closest-side, rgb(18 161 118 / .22), transparent); animation: drift 22s ease-in-out infinite reverse; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 20%, transparent 75%); }
.hero-in { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title { font: 620 clamp(36px, 4.9vw, 66px)/1.04 var(--display); letter-spacing: -0.045em; text-wrap: balance; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .w > span { display: inline-block; animation: word-up .95s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 80ms); }
.hero-title .w:last-child > span { background: linear-gradient(100deg, var(--violet) 10%, #9C6BFF 55%, var(--mint) 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 7px 14px 7px 12px; border-radius: 99px; font-size: 14px; font-weight: 600;
  color: var(--ink); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--mint); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--mint); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.hero-sub { margin-top: 26px; font-size: clamp(17px, 1.7vw, 20px); color: var(--muted); max-width: 54ch; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust .ic { color: var(--mint); }
.rise { animation: rise .9s var(--ease) both; animation-delay: var(--d, 0ms); }

/* ---------- Living invoice (signature) ---------- */
.inv-stage { position: relative; perspective: 1400px; animation: rise 1.1s var(--ease) .35s both; }
.inv-blob { position: absolute; inset: 8% -6% -8% 10%; z-index: -1; border-radius: 40px; background: linear-gradient(140deg, var(--violet), #9C6BFF 50%, var(--mint)); filter: blur(46px); opacity: .32; animation: breathe 7s ease-in-out infinite; }
.inv { position: relative; background: var(--card); border-radius: 24px; padding: 28px 28px 24px; border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgb(255 255 255 / .06) inset, 0 40px 80px -30px rgb(21 22 46 / .35), 0 12px 24px -12px rgb(21 22 46 / .15);
  transform: rotateY(-9deg) rotateX(5deg) rotate(1deg); transform-style: preserve-3d; transition: transform .8s var(--ease); animation: float 8s ease-in-out infinite; }
.inv-stage:hover .inv { transform: rotateY(-3deg) rotateX(2deg); }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.inv-no { font: 600 16px/1.2 var(--display); letter-spacing: -0.02em; }
.inv-client { margin-top: 5px; font-size: 14px; color: var(--muted); }
.inv-status { position: relative; height: 28px; min-width: 128px; text-align: right; }
.inv-status span { position: absolute; right: 0; top: 0; white-space: nowrap; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 99px; background: var(--paper-2); color: var(--muted);
  opacity: 0; transform: translateY(6px) scale(.95); transition: opacity .35s, transform .45s var(--ease); }
.inv-status [data-s="sent"] { background: var(--violet-soft); color: var(--violet); }
.inv-status [data-s="viewed"] { background: var(--warn-soft); color: var(--warn-text); }
.inv-status [data-s="paid"] { background: var(--mint-soft); color: var(--mint); }
.inv[data-state="draft"] [data-s="draft"], .inv[data-state="sent"] [data-s="sent"], .inv[data-state="viewed"] [data-s="viewed"], .inv[data-state="paid"] [data-s="paid"] { opacity: 1; transform: none; }
.inv-lines { padding: 14px 0 6px; }
.inv-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--paper-2); }
.inv-desc small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.inv-sum { padding-top: 12px; font-size: 14.5px; color: var(--muted); }
.inv-sum > div { display: flex; justify-content: space-between; padding: 4px 0; }
.inv-total { margin-top: 8px; padding-top: 12px !important; border-top: 1px solid var(--line); color: var(--ink); font: 600 20px/1.2 var(--display); letter-spacing: -0.02em; }
.inv-due { margin-top: 14px; font-size: 13px; color: var(--muted); }
.inv-stamp { position: absolute; right: 34px; top: 128px; font: 700 26px/1 var(--display); letter-spacing: .02em; color: var(--mint); border: 3px solid currentColor; border-radius: 12px; padding: 10px 16px;
  transform: rotate(-12deg) scale(2.4); opacity: 0; pointer-events: none; mix-blend-mode: var(--stamp-blend); }
.inv[data-state="paid"] .inv-stamp { animation: stamp .55s cubic-bezier(.3,1.6,.5,1) both; }
.js .inv.is-anim .inv-line { opacity: 0; transform: translateX(-14px); }
.js .inv.is-anim.show-lines .inv-line { animation: line-in .55s var(--ease) both; animation-delay: calc(var(--n) * 160ms); }
.inv-toast { position: absolute; left: -26px; bottom: -22px; display: flex; align-items: center; gap: 10px; padding: 12px 16px 12px 12px; border-radius: 16px; background: #15162E; color: #fff; border: 1px solid rgb(255 255 255 / .1);
  font-size: 14px; box-shadow: 0 24px 50px -16px rgb(21 22 46 / .55); opacity: 0; transform: translateY(16px) scale(.94); transition: opacity .4s, transform .6s cubic-bezier(.3,1.4,.5,1); }
.inv-toast b { color: #6EE7BE; font-weight: 600; }
.dot-ok { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: #fff; }
.inv-stage.toast-on .inv-toast { opacity: 1; transform: none; }

/* ---------- Industries marquee ---------- */
.built { padding: 10px 0 40px; }
.built-t { font-size: 15px; color: var(--muted); text-align: center; }
.marquee { margin-top: 20px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee ul { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover ul { animation-play-state: paused; }
.marquee li { display: flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; font: 500 clamp(18px, 2vw, 24px)/1.3 var(--display); letter-spacing: -0.02em; color: var(--soft-text); }
.marquee li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--violet-2); opacity: .6; }

/* ---------- Showcase ---------- */
.show { padding: clamp(70px, 9vw, 130px) 0; }
.row { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(30px, 5vw, 70px); align-items: center; margin-top: clamp(70px, 9vw, 120px); }
.row-flip .row-text { order: 2; }
.row h3 { font: 600 clamp(24px, 2.6vw, 32px)/1.15 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
.row p { margin-top: 14px; color: var(--muted); }
.ticks { margin-top: 22px; display: grid; gap: 12px; align-content: start; }
.ticks li { display: flex; gap: 11px; font-size: 16px; line-height: 1.45; }
.ticks .ic { color: var(--violet); margin-top: 2px; }
.shot { margin: 0; padding: 8px; border-radius: 20px; background: linear-gradient(160deg, #1C1E3E, #0F1026); box-shadow: 0 50px 90px -40px rgb(0 0 0 / .55), 0 0 0 1px var(--line);
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1)); transform-origin: 50% 60%; will-change: transform; }
.shot img { border-radius: 13px; }

/* AI chat */
.chat { background: var(--night); border: 1px solid var(--night-line); border-radius: 22px; padding: 22px; color: #EDEEFB; min-height: 330px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 50px 90px -40px rgb(21 22 46 / .6); position: relative; overflow: hidden; }
.chat::before { content: ""; position: absolute; width: 300px; height: 300px; right: -100px; top: -120px; background: radial-gradient(closest-side, rgb(143 123 255 / .4), transparent); }
.chat-top { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--violet-2); padding-bottom: 12px; border-bottom: 1px solid var(--night-line); position: relative; }
.msg { max-width: 88%; padding: 12px 15px; border-radius: 16px; font-size: 15.5px; line-height: 1.5; position: relative; min-height: 46px; }
.msg-me { align-self: flex-end; background: var(--violet); color: #fff; border-bottom-right-radius: 5px; }
.msg-ai { align-self: flex-start; background: var(--night-2); border: 1px solid var(--night-line); border-bottom-left-radius: 5px; }
.msg:empty, .msg-me:empty { visibility: hidden; }
.typing { display: none; gap: 4px; padding: 6px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--violet-2); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.chat.is-thinking .typing { display: inline-flex; }
.msg-ai .msg-text:empty { display: none; }
.chat:not(.is-started) .msg-ai { visibility: hidden; }
.caret::after { content: ""; display: inline-block; width: 2px; height: 1em; background: currentColor; margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.chat-chip { align-self: flex-start; font: 600 14px/1 var(--body); color: var(--night); background: #fff; border: 0; border-radius: 99px; padding: 10px 16px; margin-top: auto;
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease); }
.chat.is-done .chat-chip { opacity: 1; transform: none; }

/* ---------- Features grid ---------- */
.more { padding: clamp(70px, 9vw, 120px) 0; background: var(--card); border-block: 1px solid var(--line); }
.feats { margin-top: 50px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 28px; border-radius: var(--r); background: var(--paper); border: 1px solid transparent; transition: transform .4s var(--ease), border-color .3s, background-color .3s, box-shadow .4s; }
.feat:hover { transform: translateY(-5px); border-color: rgb(107 82 245 / .3); background: var(--card); box-shadow: 0 24px 50px -28px rgb(107 82 245 / .45); }
.feat-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--violet-soft); color: var(--violet); transition: transform .5s var(--ease); }
.feat:hover .feat-ic { transform: rotate(-8deg) scale(1.08); }
.feat h3 { margin-top: 18px; font: 600 18px/1.3 var(--display); letter-spacing: -0.02em; }
.feat p { margin-top: 8px; font-size: 15.5px; color: var(--muted); }

/* ---------- Steps ---------- */
.how { padding: clamp(70px, 9vw, 130px) 0; }
.steps { position: relative; margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps-line { position: absolute; left: 28px; right: calc((100% - 48px) / 3 - 28px); top: 28px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps-line > span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--violet), var(--mint)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.step { position: relative; }
.step-n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--card); border: 2px solid var(--line); font: 600 20px/1 var(--display);
  color: var(--violet); transition: background-color .5s, color .5s, border-color .5s, transform .5s var(--ease); position: relative; }
.step.is-lit .step-n { background: var(--violet); border-color: var(--violet); color: #fff; transform: scale(1.06); box-shadow: 0 0 0 8px rgb(107 82 245 / .12); }
.step h3 { margin-top: 22px; font: 600 20px/1.25 var(--display); letter-spacing: -0.02em; }
.step p { margin-top: 8px; color: var(--muted); font-size: 16px; max-width: 34ch; }

/* ---------- Security ---------- */
.secure { padding: 0 0 clamp(70px, 9vw, 120px); }
.secs { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.sec { display: flex; gap: 14px; }
.sec > .ic { color: var(--mint); width: 26px; height: 26px; margin-top: 2px; }
.sec h3 { font-size: 17px; font-weight: 650; }
.sec p { margin-top: 5px; font-size: 15.5px; color: var(--muted); }

/* ---------- Pricing (dark) ---------- */
.dark { background: var(--night); color: #EDEEFB; position: relative; overflow: hidden; }
.dark .lead { color: #A3A6C9; }
.pricing { padding: clamp(80px, 10vw, 140px) 0; }
.pricing::before { content: ""; position: absolute; width: 900px; height: 600px; left: 50%; top: -340px; transform: translateX(-50%); background: radial-gradient(closest-side, rgb(107 82 245 / .35), transparent); pointer-events: none; }
.toggle { position: relative; display: flex; width: max-content; margin: 38px auto 0; padding: 5px; border-radius: 14px; background: var(--night-2); border: 1px solid var(--night-line); }
.toggle button { position: relative; z-index: 1; font: 600 14.5px/1 var(--body); color: #A3A6C9; background: none; border: 0; padding: 11px 18px; border-radius: 10px; cursor: pointer; transition: color .3s; }
.toggle button[aria-checked="true"] { color: #fff; background: var(--violet); }
.toggle em { font-style: normal; font-size: 12.5px; color: #6EE7BE; margin-left: 6px; }
.toggle button[aria-checked="true"] em { color: #D9D2FF; }
.plans { margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: 22px; background: var(--night-2); border: 1px solid var(--night-line); transition: transform .4s var(--ease), border-color .3s; }
.plan:hover { transform: translateY(-6px); border-color: #4A4E85; }
.plan-hot { background: linear-gradient(170deg, #2A2266, var(--night-2) 60%); border-color: var(--violet); box-shadow: 0 30px 70px -30px rgb(107 82 245 / .8); }
.plan-badge { position: absolute; top: -12px; left: 22px; font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 99px; background: var(--violet); color: #fff; }
.plan h3 { font: 600 18px/1.2 var(--display); letter-spacing: -0.02em; }
.plan-price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 6px; min-height: 52px; }
.price { font: 650 42px/1 var(--display); letter-spacing: -0.04em; display: inline-block; }
.price.flip { animation: flip .45s var(--ease); }
.per { font-size: 14px; color: #A3A6C9; }
.price-custom { font: 600 22px/1.9 var(--display); overflow-wrap: anywhere; letter-spacing: -0.03em; }
.plan .ticks { flex: 1; margin: 18px 0 26px; gap: 10px; }
.plan .ticks li { font-size: 15px; color: #D5D7F0; }
.plan .ticks .ic { color: var(--violet-2); }

/* ---------- FAQ ---------- */
.faq { padding: clamp(70px, 9vw, 120px) 0; }
.qas { margin-top: 36px; border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 2px; font-size: 18px; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .ic { transition: transform .35s var(--ease); color: var(--muted); }
.qa[open] summary .ic { transform: rotate(180deg); }
.qa p { padding: 0 2px 22px; color: var(--muted); max-width: 64ch; animation: rise .45s var(--ease); }

/* ---------- Final CTA ---------- */
.final { padding: 0 0 clamp(70px, 9vw, 110px); }
.final-in { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(46px, 7vw, 90px) clamp(26px, 6vw, 80px); color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #7B62FF 0%, #4B33D6 45%, #1C1660 100%); }
.final-in::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .07) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(120deg, transparent 30%, #000); pointer-events: none; }
.final-in .h2 { max-width: 18ch; position: relative; z-index: 1; }
.final-in .hero-cta { position: relative; z-index: 1; }
.final-in .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 16px 40px -14px rgb(0 0 0 / .5); }
.final-in .btn-primary::after { background: linear-gradient(90deg, transparent, rgb(107 82 245 / .18), transparent); }
.final-in .btn-ghost { background: rgb(255 255 255 / .08); color: #fff; border-color: rgb(255 255 255 / .25); }
.final-in .btn-ghost:hover { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .5); }

/* ---------- Contact ---------- */
.contact { padding: 0 0 clamp(70px, 9vw, 120px); }
.contact-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.contact-mail { margin-top: 22px; font-weight: 600; }
.contact-mail a { color: var(--violet); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 32px); border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgb(21 22 46 / .3); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet); background: var(--card); box-shadow: 0 0 0 4px rgb(107 82 245 / .14); }
.field.has-err input, .field.has-err textarea { border-color: #D64545; background: var(--err-soft); }
.ferr { color: #E04848; font-size: 13.5px; min-height: 0; }
.ferr:empty { display: none; }
.form .btn { justify-self: start; }
.form-msg { font-size: 15px; }
.form-msg.ok { color: var(--mint); font-weight: 600; }
.form-msg.err { color: #C23434; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 46px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px 40px; align-items: start; }
.foot-brand p { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 52ch; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 24px; font-size: 14.5px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-copy { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; place-items: center; }
.nf-in { display: grid; justify-items: center; gap: 18px; text-align: center; padding: 24px; }
.nf-in .lead { margin: 0; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(30px); }
.js [data-reveal].is-in { transition: opacity .9s ease, transform 1s var(--ease); transition-delay: var(--d, 0ms); }

/* ---------- Keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes word-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 40px) scale(1.1); } }
@keyframes breathe { 0%, 100% { opacity: .28; transform: scale(1); } 50% { opacity: .42; transform: scale(1.04); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes line-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-12deg) scale(2.4); } 60% { opacity: 1; transform: rotate(-12deg) scale(.92); } 100% { opacity: .92; transform: rotate(-12deg) scale(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes sheen { to { transform: translateX(260%) skewX(-20deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes flip { 0% { opacity: 0; transform: translateY(-40%); } 100% { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .top-nav { display: none; }
  .hero-in { grid-template-columns: 1fr; }
  .inv-stage { max-width: 520px; margin: 10px auto 0; width: 100%; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: min(1180px, 100% - 32px); }
  .hide-s { display: none; }
  .top-act { gap: 4px; }
  .lang-code { display: none; }
  .row, .contact-in, .foot-in { grid-template-columns: 1fr; }
  .row-flip .row-text { order: 0; }
  .feats, .secs, .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 30px; padding-left: 74px; }
  .steps-line { left: 27px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .steps-line > span { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
  .step-n { position: absolute; left: -74px; top: -6px; }
  .step h3 { margin-top: 6px; }
  .f2 { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
  .inv { padding: 22px 20px 20px; transform: none; }
  .inv-toast { left: 10px; bottom: -26px; }
  .hero-cta .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee ul { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee li[aria-hidden] { display: none; }
  .shot { transform: none !important; }
}
