/* ==========================================================================
   Pingfold: Telegram bot studio
   1. Tokens & themes   2. Base   3. Buttons & bits   4. Header & nav
   5. Sections & cards  6. Hero   7. Marquee & services   8. Packages
   9. Process  10. Hosting dashboard  11. FAQ  12. Contact form
   13. Footer & toast  14. Motion  15. Responsive
   ========================================================================== */

/* 1. Tokens & themes ------------------------------------------------------ */
@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --font-display: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  /* brand */
  --brand-cyan: #24C6F5;
  --brand-blue: #248BFA;
  --brand-deep: #2457F5;
  --grad: linear-gradient(135deg, var(--brand-cyan), var(--brand-blue) 55%, var(--brand-deep));
  --btn: #248BFA;
  --btn-hover: #2457F5;
  --success: #34D399;
  --error: #F87171;
  --amber: #FBBF24;

  --radius: 20px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --container: 1180px;
  --gutter: clamp(32px, 6vw, 64px);
  --header-h: 72px;

  /* dark (default) */
  color-scheme: dark;
  --bg: #080D18;
  --bg-alt: #0B1220;
  --surface: #101827;
  --surface-2: #1B2638;
  --input-bg: #0B1220;
  --text: #F8FAFC;
  --text-2: #94A3B8;
  --text-3: #7C8BA1;
  --border: #1B2638;
  --border-strong: #2A3851;
  --accent: #20C5F7;
  --ok: #34D399;
  --warn: #FBBF24;
  --grad-text: linear-gradient(90deg, #24C6F5, #248BFA, #2457F5, #248BFA, #24C6F5);
  --glow: rgba(36, 139, 250, .14);
  --glow-border: rgba(32, 197, 247, .7);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -20px rgba(0, 0, 0, .8);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 40px 90px -32px rgba(0, 0, 0, .9);
  --header-bg: rgba(8, 13, 24, .78);
  --grid-line: rgba(148, 163, 184, .06);
  --blob-opacity: .26;
  --chat-bg: #0B1220;
  --msg-in: #1B2638;
  --msg-out: #1E4D8C;
  --msg-out-text: #F8FAFC;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F6F8FB;
  --bg-alt: #EEF2F7;
  --surface: #FFFFFF;
  --surface-2: #EEF2F7;
  --input-bg: #F8FAFC;
  --text: #0B1220;
  --text-2: #475569;
  --text-3: #64748B;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --accent: #0270AD;
  --ok: #059669;
  --warn: #B45309;
  --grad-text: linear-gradient(90deg, #0A8FD0, #1F6FE6, #2457F5, #1F6FE6, #0A8FD0);
  --glow: rgba(36, 139, 250, .1);
  --glow-border: rgba(36, 139, 250, .55);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 14px 34px -16px rgba(15, 23, 42, .16);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, .05), 0 40px 80px -32px rgba(30, 58, 138, .28);
  --header-bg: rgba(246, 248, 251, .8);
  --grid-line: rgba(15, 23, 42, .05);
  --blob-opacity: .32;
  --chat-bg: #EEF3FA;
  --msg-in: #FFFFFF;
  --msg-out: #DCEBFF;
  --msg-out-text: #0B3A75;
}

/* 2. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

code {
  font-family: var(--font-mono);
  font-size: .88em;
  padding: .1em .4em;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

::selection { background: rgba(36, 139, 250, .28); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: min(100% - var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { --container: 820px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: .6rem 1rem; border-radius: 10px;
  background: var(--text); color: var(--bg); font-weight: 600;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

/* Bootstrap Icons: a centred 1em box, sized with font-size */
.bi { display: inline-flex; flex: none; line-height: 1; }
.bi::before { vertical-align: 0; }

/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* colour cross-fade when switching theme without the View Transitions API */
.theme-fade,
.theme-fade *,
.theme-fade *::before,
.theme-fade *::after {
  transition: background-color .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease) !important;
}

.title-dim { color: var(--text-2); }

/* 3. Buttons & bits ------------------------------------------------------- */
.btn {
  --py: .85rem;
  --px: 1.35rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: var(--py) var(--px);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform .45s var(--ease), box-shadow .5s var(--ease), background-color .35s, border-color .35s, color .35s;
}
.btn .bi { font-size: 1.05em; transition: transform .5s var(--ease); }
.btn:hover .bi { transform: translateX(3px); }
.btn:active { transform: scale(.97); }

.btn--primary {
  color: #fff;
  background: var(--btn);
  box-shadow: 0 10px 26px -10px rgba(36, 139, 250, .75), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%);
  transform: translateX(-110%);
  transition: transform .8s var(--ease);
}
.btn--primary:hover { background: var(--btn-hover); box-shadow: 0 16px 36px -12px rgba(36, 139, 250, .95), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn--primary:hover::after { transform: translateX(110%); }

.btn--ghost { color: var(--text); background: var(--surface); border-color: var(--border-strong); }
.btn--ghost:hover { color: var(--accent); border-color: var(--accent); }

.btn--sm { --py: .6rem; --px: 1.05rem; font-size: .875rem; }
.btn--lg { --py: 1rem; --px: 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }

.magnetic { will-change: translate; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem .95rem .4rem .75rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 400;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.live-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: ping 1.8s var(--ease) infinite;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }

/* 4. Header & nav --------------------------------------------------------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); }
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.header.is-scrolled::before { opacity: 1; }
.header__inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }

.logo {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.03em;
}
.logo__mark { flex: none; width: 34px; height: 34px; filter: drop-shadow(0 6px 14px rgba(36, 139, 250, .35)); transition: transform .6s var(--ease-spring); }
.logo:hover .logo__mark { transform: rotate(-6deg) scale(1.05); }
.logo__word b {
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav { display: flex; align-items: center; margin-left: auto; }
.nav__list { display: flex; gap: .25rem; }
.nav__link {
  position: relative;
  display: block;
  padding: .5rem .85rem;
  border-radius: 999px;
  font-size: .925rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color .25s, background-color .25s;
}
.nav__link:hover { color: var(--text); background: var(--surface-2); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--grad);
  transform: translateX(-50%);
}
.nav__cta { display: none; }

.header__actions { position: relative; z-index: 2; display: flex; align-items: center; gap: .6rem; }

.theme-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  transition: transform .4s var(--ease), border-color .3s;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(15deg); }
.theme-toggle .bi { grid-area: 1 / 1; font-size: 18px; transition: transform .7s var(--ease-spring), opacity .45s; }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: translateY(130%) rotate(-90deg); }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 0; transform: translateY(-130%) rotate(90deg); }

.burger {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
}
.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.nav-open .burger span:first-child { top: 19px; transform: rotate(45deg); }
.nav-open .burger span:last-child { top: 19px; transform: rotate(-45deg); }

.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

/* 5. Sections & cards ----------------------------------------------------- */
.section { position: relative; padding-block: clamp(4.5rem, 10vw, 7.5rem); }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-head {
  display: grid;
  justify-items: center;
  gap: .9rem;
  max-width: 740px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.75rem);
  text-align: center;
}
.section-head--left { justify-items: start; margin-inline: 0; text-align: left; }
.section-title { font-size: clamp(2rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; }
.section-lead { max-width: 60ch; font-size: clamp(1.0625rem, 1.5vw, 1.125rem); color: var(--text-2); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* cursor-following glow, positioned by JS through --x / --y */
.spotlight { isolation: isolate; }
.spotlight::before,
.spotlight::after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.spotlight::before {
  inset: -1px;
  z-index: 1;
  padding: 1px;
  background: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%), var(--glow-border), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.spotlight::after {
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 50%), var(--glow), transparent 60%);
}
.spotlight:hover::before,
.spotlight:hover::after { opacity: 1; }

/* 6. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(4rem, 8vw, 6.5rem);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 70%) var(--my, 35%), var(--glow), transparent 60%);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.blob { position: absolute; border-radius: 50%; opacity: var(--blob-opacity); will-change: transform; }
.blob--a {
  width: 560px; height: 560px; top: -200px; left: -160px;
  background: radial-gradient(circle, var(--brand-cyan), transparent 68%);
  animation: drift-a 18s ease-in-out infinite alternate;
}
.blob--b {
  width: 640px; height: 640px; top: -120px; right: -240px;
  background: radial-gradient(circle, var(--brand-blue), transparent 68%);
  animation: drift-b 22s ease-in-out infinite alternate;
}
.blob--c {
  width: 460px; height: 460px; bottom: -260px; left: 32%;
  background: radial-gradient(circle, var(--brand-deep), transparent 68%);
  opacity: calc(var(--blob-opacity) * .55);
  animation: drift-c 20s ease-in-out infinite alternate;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}

/* paper planes gliding along curved paths */
.plane {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  color: var(--brand-cyan);
  fill: currentColor;
  opacity: 0;
  offset-rotate: auto 45deg;
  animation: fly 16s linear infinite;
}
.plane--1 { offset-path: path("M -60 540 C 220 400, 420 620, 700 380 S 1150 160, 1760 280"); }
.plane--2 {
  width: 16px; height: 16px; color: var(--brand-blue);
  offset-path: path("M -60 230 C 300 130, 520 330, 860 210 S 1300 50, 1760 130");
  animation-duration: 22s; animation-delay: -8s;
}
.plane--3 {
  width: 14px; height: 14px; color: var(--brand-deep);
  offset-path: path("M -60 780 C 340 660, 640 840, 980 620 S 1400 440, 1760 500");
  animation-duration: 27s; animation-delay: -15s;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.hero__copy { display: grid; justify-items: start; gap: 1.5rem; }
.hero__title { font-size: clamp(2.5rem, 5.2vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; }
.typer { display: block; white-space: nowrap; }
.typer__text {
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
.typer::after {
  content: "";
  display: inline-block;
  width: .07em;
  height: .85em;
  margin-left: .06em;
  vertical-align: -.06em;
  border-radius: 2px;
  background: var(--accent);
  animation: caret 1s steps(1) infinite;
}
.hero__lead { max-width: 54ch; font-size: clamp(1.0625rem, 1.6vw, 1.125rem); color: var(--text-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .25rem; }
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem clamp(1.5rem, 4vw, 2.75rem);
  margin-top: .75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.hero__stats div { display: flex; flex-direction: column-reverse; gap: .1rem; }
.hero__stats dd {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.hero__stats dt { font-size: .85rem; color: var(--text-3); }

.hero__visual { position: relative; justify-self: center; width: min(100%, 410px); }
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 10% -4%;
  z-index: -1;
  border-radius: 40%;
  background: var(--grad);
  filter: blur(60px);
  opacity: .22;
}

.chat {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  will-change: transform;
}
.chat__head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
}
.chat__avatar {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--grad);
}
.chat__avatar .bi { font-size: 20px; }
.chat__who { display: grid; line-height: 1.3; }
.chat__who strong { font-size: .95rem; }
.chat__who span { font-family: var(--font-mono); font-size: .75rem; color: var(--text-3); transition: color .3s; }
.chat__who span.is-typing { color: var(--accent); }

.chat__body {
  height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: .5rem;
  padding: 1rem;
  overflow: hidden;
  background-color: var(--chat-bg);
  background-image: radial-gradient(var(--grid-line) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
}
.msg {
  flex: none;
  max-width: 84%;
  padding: .55rem .85rem;
  border-radius: 16px;
  font-size: .9rem;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .06);
  animation: msg-in .45s var(--ease-spring) backwards;
}
.msg--in { align-self: flex-start; background: var(--msg-in); border-bottom-left-radius: 6px; }
.msg--out { align-self: flex-end; background: var(--msg-out); color: var(--msg-out-text); border-bottom-right-radius: 6px; }
.msg--typing { display: inline-flex; gap: 4px; padding: .75rem .9rem; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: typing 1.2s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
.msg__keys { display: grid; grid-template-columns: repeat(2, 1fr); gap: .35rem; margin-top: .55rem; }
.msg__key {
  padding: .45rem .5rem;
  border-radius: 10px;
  font-size: .78rem;
  font-weight: 600;
  text-align: center;
  color: var(--accent);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: transform .2s var(--ease), background-color .2s;
}
.msg__key.is-pressed { transform: scale(.93); background: var(--glow); }
.msg__product {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: .5rem;
  padding: .5rem;
  border-radius: 12px;
  background: var(--surface-2);
}
.msg__thumb { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; font-size: 1.3rem; color: #fff; background: var(--grad); }
.msg__product b { display: block; font-size: .85rem; }
.msg__product span { font-size: .78rem; color: var(--text-3); }
.msg .bi { vertical-align: -.125em; }
.msg .bi-star-fill { color: var(--amber); }
.msg .bi-check-circle-fill { color: var(--success); }

.chat__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem .75rem .75rem 1.15rem;
  border-top: 1px solid var(--border);
  font-size: .9rem;
  color: var(--text-3);
}
.chat__send { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--grad); }
.chat__send .bi { font-size: 15px; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem 1rem .7rem .7rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: .78rem;
  line-height: 1.35;
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .875rem; }
.float-card div span { display: block; font-family: var(--font-mono); font-size: .75rem; color: var(--text-3); }
.float-card--a { top: -26px; right: -44px; }
.float-card--b { bottom: -24px; left: -44px; animation-delay: -3s; }
.float-card__icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--grad); }
.float-card__icon--ok { background: var(--success); }
.float-card__icon .bi { font-size: 17px; }

/* 7. Marquee & services --------------------------------------------------- */
.marquee {
  overflow: hidden;
  padding-block: 1.4rem;
  background: var(--surface);
  border-block: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; flex: none; }
.marquee__list li {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding-right: 2.25rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
.marquee__list li::after { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--grad); transform: rotate(45deg); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service { padding: 1.75rem; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  border-radius: 15px;
  color: var(--accent);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: transform .5s var(--ease-spring), color .3s, background-color .3s;
}
.service__icon .bi { font-size: 24px; }
.service:hover .service__icon { transform: rotate(-8deg) scale(1.08); color: #fff; background: var(--brand-blue); }
.service h3 { margin-bottom: .5rem; font-size: 1.25rem; font-weight: 600; }
.service p { font-size: 1rem; color: var(--text-2); }

.usecases { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1rem; margin-top: 2.75rem; }
.usecases__label { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.usecases__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.usecases__list li {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .35s var(--ease-spring), border-color .3s;
}
.usecases__list li:hover { transform: translateY(-3px) rotate(-2deg); border-color: var(--accent); }
.usecases__list .bi { color: var(--accent); }

/* 8. Packages ------------------------------------------------------------- */
.pk-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem; margin-bottom: 2.75rem; }
.tabs {
  position: relative;
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.tab {
  position: relative;
  z-index: 1;
  padding: .65rem 1.25rem;
  border-radius: 999px;
  font-size: .925rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color .3s;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: #fff; }
html:not(.js) .tab.is-active { background: var(--btn); }
.tabs__ink {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: var(--w, 0);
  border-radius: 999px;
  background: var(--btn);
  box-shadow: 0 8px 20px -8px rgba(36, 139, 250, .8);
  transform: translateX(var(--x, 0));
  transition: transform .6s var(--ease), width .6s var(--ease);
}

.panel[hidden] { display: none; }
.pricing { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 1.25rem; }
.pricing--4 { --cols: 4; }
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.panel.is-active .price-card { animation: card-in .7s var(--ease) backwards; }
.panel.is-active .price-card:nth-child(2) { animation-delay: .08s; }
.panel.is-active .price-card:nth-child(3) { animation-delay: .16s; }
.panel.is-active .price-card:nth-child(4) { animation-delay: .24s; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.price-card--featured {
  border-color: transparent;
  background: radial-gradient(120% 55% at 50% 0%, var(--glow), transparent 70%), var(--surface);
  box-shadow: var(--shadow-lg);
}
.price-card--featured::before {
  padding: 1.5px;
  opacity: 1;
  background: conic-gradient(from var(--angle), var(--brand-cyan), var(--brand-blue), var(--brand-deep), var(--brand-cyan));
  animation: spin-angle 5s linear infinite;
}
.price-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  z-index: 2;
  padding: .3rem .8rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  color: #fff;
  background: var(--btn);
  box-shadow: 0 8px 18px -8px rgba(36, 139, 250, .9);
  transform: translateX(-50%);
}
.price-card__name { font-size: 1.375rem; font-weight: 600; }
.price-card__desc { min-height: 2.9em; margin-top: .35rem; font-size: .925rem; color: var(--text-2); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .45rem; margin-top: 1.25rem; font-family: var(--font-display); }
.price__from { margin-right: .35rem; font-family: var(--font-body); font-size: .85rem; color: var(--text-3); }
.price__num small { margin-left: .14em; font-size: .5em; font-weight: 600; vertical-align: baseline; color: var(--text-2); }
.price__num { font-size: clamp(2.4rem, 4.2vw, 2.9rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.price__per { font-family: var(--font-body); font-size: .875rem; color: var(--text-3); }

.checklist {
  flex: 1;
  display: grid;
  align-content: start;
  gap: .7rem;
  margin: 1.1rem 0 1.5rem;
  font-size: .9rem;
}
.checklist li { position: relative; padding-left: 1.85rem; color: var(--text-2); }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(52, 211, 153, .16);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: .36rem;
  top: .5em;
  width: .5rem;
  height: .28rem;
  border-left: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(-45deg);
}

.callout {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(120deg, rgba(36, 198, 245, .1), rgba(36, 139, 250, .13)), var(--surface);
}
.callout__icon {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: var(--grad);
  animation: bob 5s ease-in-out infinite;
}
.callout__icon .bi { font-size: 24px; }
.callout__text { flex: 1; }
.callout__text h3 { margin-bottom: .25rem; font-size: 1.25rem; font-weight: 600; }
.callout__text p { font-size: .95rem; color: var(--text-2); }
.callout__text strong { color: var(--text); }
.pk-note { margin-top: 1.25rem; text-align: center; font-size: .875rem; color: var(--text-3); }

.price-card__tag {
  margin-bottom: .3rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.price-block { margin-top: 1rem; padding-bottom: 1.2rem; border-bottom: 1px dashed var(--border-strong); }
.price-block .price { margin-top: 0; }
.pricing--4 .price { flex-direction: column; align-items: flex-start; gap: .3rem; }
.price-sub {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .75rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.price-sub .bi { color: var(--accent); }
.price-card__for { margin-top: 1.1rem; font-size: .875rem; color: var(--text-2); }
.price-card__for strong { font-weight: 600; color: var(--text); }
.checklist__title { margin-top: 1.25rem; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.price-card__note {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.25rem;
  padding: .7rem .8rem;
  border-radius: var(--radius-sm);
  font-size: .8rem;
  line-height: 1.5;
  color: var(--text-3);
  background: var(--surface-2);
}
.price-card__note .bi { margin-top: .2em; }

.panel__intro { display: flex; align-items: center; justify-content: center; gap: .6rem; max-width: 62ch; margin: 0 auto 2rem; text-align: center; color: var(--text-2); }
.panel__intro .bi { font-size: 1.15rem; color: var(--accent); }
.panel__note { max-width: 72ch; margin: 1.75rem auto 0; text-align: center; font-size: .85rem; color: var(--text-3); }

.addons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.addon {
  position: relative;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.panel.is-active .addon { animation: card-in .7s var(--ease) calc(var(--i, 0) * 45ms) backwards; }
.addon:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.addon__icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1.1rem;
  color: var(--accent);
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: transform .6s var(--ease-spring), color .3s, background-color .3s, border-color .3s;
}
.addon:hover .addon__icon { transform: rotate(-8deg) scale(1.06); color: #fff; background: var(--brand-blue); border-color: transparent; }
.addon__name { flex: 1; font-size: .9rem; font-weight: 500; line-height: 1.4; }
.addon__price { flex: none; text-align: right; white-space: nowrap; font-family: var(--font-display); font-size: .95rem; font-weight: 700; }
.addon__price small { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 500; color: var(--text-3); }

/* 9. Process -------------------------------------------------------------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 28px;
  right: 0;
  height: 2px;
  border-radius: 2px;
}
.steps::before { background: var(--border-strong); }
.steps::after {
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.8s var(--ease) .2s;
}
.steps.is-visible::after { transform: scaleX(1); }
.step { position: relative; display: grid; align-content: start; gap: .55rem; }
.step__num {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: .6rem;
  border-radius: 18px;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease-spring), color .3s, background-color .3s, border-color .3s;
}
.step:hover .step__num { transform: translateY(-4px) rotate(-6deg); color: #fff; background: var(--brand-blue); border-color: transparent; }
.step h3 { font-size: 1.25rem; font-weight: 600; }
.step p { font-size: .9375rem; color: var(--text-2); }

/* 10. Hosting dashboard --------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(2.5rem, 6vw, 5rem); }
.features { display: grid; gap: 1.3rem; }
.feature { display: flex; align-items: flex-start; gap: 1rem; }
.feature__icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.feature__icon .bi { font-size: 20px; }
.feature h3 { margin-bottom: .2rem; font-size: 1.125rem; font-weight: 600; }
.feature p { font-size: 1rem; color: var(--text-2); }

.dash { display: grid; gap: 1.1rem; padding: 1.25rem; font-size: .875rem; }
.dash__top { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.dash__dots { display: flex; gap: 6px; }
.dash__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.dash__dots i:first-child { background: #F87171; }
.dash__dots i:nth-child(2) { background: #FBBF24; }
.dash__dots i:last-child { background: #34D399; }
.dash__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: .78rem; color: var(--text-3); }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-left: auto;
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ok);
  background: rgba(52, 211, 153, .12);
}
.dash__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.metric { min-width: 0; padding: .85rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.metric span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: .75rem; color: var(--text-3); }
.metric strong { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric strong span { display: inline; font-size: inherit; color: inherit; }
.dash__chart {
  position: relative;
  height: 110px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.spark { width: 100%; height: 100%; }
.spark__line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.dash__label { position: absolute; top: .6rem; left: .8rem; font-family: var(--font-mono); font-size: .75rem; color: var(--text-3); }

.uptime { display: grid; grid-template-columns: repeat(45, 1fr); gap: 3px; height: 34px; }
.uptime i {
  border-radius: 3px;
  background: var(--success);
  opacity: .85;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .5s var(--ease-spring), opacity .2s;
  transition-delay: calc(var(--i, 0) * 14ms), 0s;
}
.uptime i.is-warn { background: var(--amber); }
.uptime i:hover { opacity: 1; }
.dash.is-visible .uptime i { transform: scaleY(1); }
.uptime__legend { display: flex; justify-content: space-between; margin-top: -.6rem; font-family: var(--font-mono); font-size: .75rem; color: var(--text-3); }

.log {
  display: grid;
  align-content: end;
  gap: .3rem;
  height: 132px;
  overflow: hidden;
  padding: .75rem .9rem;
  border-radius: var(--radius-sm);
  background: #060A13;
  border: 1px solid rgba(255, 255, 255, .06);
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.5;
  color: #CBD5E1;
}
.log li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; animation: log-in .4s var(--ease) backwards; }
.log time { margin-right: .6rem; color: #64748B; }
.log .ok { color: #34D399; }
.log .info { color: #20C5F7; }
.log .warn { color: #FBBF24; }
.dash__caption { margin-top: -.35rem; text-align: center; font-size: .75rem; color: var(--text-3); }

/* 11. FAQ ----------------------------------------------------------------- */
.faq { display: grid; gap: .75rem; }
.faq__item {
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .3s, box-shadow .3s;
}
.faq__item:hover { border-color: var(--border-strong); }
.faq__item.is-open { border-color: var(--border-strong); box-shadow: var(--shadow); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.faq__icon {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: transform .45s var(--ease), background-color .3s, border-color .3s;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-2);
  transform: translate(-50%, -50%);
  transition: transform .45s var(--ease), background-color .3s;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__icon { transform: rotate(180deg); background: var(--brand-blue); border-color: transparent; }
.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after { background: #fff; }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq__a > div { overflow: hidden; visibility: hidden; transition: visibility 0s .6s; }
.faq__item.is-open .faq__a,
html:not(.js) .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a > div,
html:not(.js) .faq__a > div { visibility: visible; transition-delay: 0s; }
.faq__a p { max-width: 68ch; padding: 0 1.35rem 1.25rem; color: var(--text-2); }

/* 12. Contact form -------------------------------------------------------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: clamp(2.5rem, 6vw, 5rem); }
.contact__list { display: grid; gap: 1.1rem; }
.contact__list li { display: flex; align-items: center; gap: 1rem; }
.contact__icon {
  flex: none;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--accent);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
}
.contact__icon .bi { font-size: 21px; }
.contact__list div span { display: block; font-size: .8rem; color: var(--text-3); }
.contact__list a,
.contact__list strong { font-weight: 600; }
.contact__list a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .35s var(--ease), color .3s;
}
.contact__list a:hover { color: var(--accent); background-size: 100% 1.5px; }

.form { padding: clamp(1.5rem, 4vw, 2.25rem); }
.form__fields { display: grid; gap: 1.1rem; transition: opacity .4s, transform .4s var(--ease), visibility 0s; }
.form.is-sent .form__fields { opacity: 0; visibility: hidden; transform: scale(.97); transition: opacity .4s, transform .4s var(--ease), visibility 0s .4s; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.field { position: relative; }
.field__input {
  width: 100%;
  padding: 1.45rem 1rem .55rem;
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  border: 1px solid var(--border);
  font-size: .975rem;
  line-height: 1.4;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
textarea.field__input { display: block; min-height: 140px; padding-top: 1.75rem; resize: vertical; }
.field__input:hover { border-color: var(--border-strong); }
.field__input:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--glow); }
.field__label {
  position: absolute;
  top: 1.05rem;
  left: 1rem;
  font-size: .975rem;
  line-height: 1.4;
  color: var(--text-3);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .25s var(--ease), color .25s;
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label,
.field--select .field__label { transform: translateY(-.62rem) scale(.78); }
.field__input:focus + .field__label { color: var(--accent); }
.field--select .field__input { padding-right: 2.5rem; cursor: pointer; }
.field--select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.15rem;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}
.field__count { display: block; margin-top: .35rem; text-align: right; font-size: .75rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.field__error { display: block; margin-top: .35rem; font-size: .8rem; font-weight: 500; color: var(--error); }
.field__error:empty { display: none; }
.field.is-invalid .field__input { border-color: var(--error); box-shadow: 0 0 0 4px rgba(248, 113, 113, .14); }
.field.is-invalid .field__label { color: var(--error); }
.field.shake { animation: shake .45s var(--ease); }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips legend { float: left; width: 100%; margin-bottom: .1rem; padding: 0; font-size: .85rem; font-weight: 500; color: var(--text-3); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: .55rem 1rem;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transition: color .25s, background-color .25s, border-color .25s, box-shadow .25s, transform .3s var(--ease-spring);
}
.chip:hover span { border-color: var(--border-strong); }
.chip input:checked + span {
  color: #fff;
  background: var(--btn);
  border-color: transparent;
  box-shadow: 0 8px 18px -10px rgba(36, 139, 250, .9);
  transform: translateY(-2px);
}
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.check { display: flex; align-items: flex-start; gap: .7rem; font-size: .9rem; color: var(--text-2); cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  transition: background-color .25s, border-color .25s, transform .3s var(--ease-spring);
}
.check__box .bi { font-size: 16px; transform: scale(0); transition: transform .45s var(--ease-spring); }
.check input:checked + .check__box { background: var(--brand-blue); border-color: transparent; transform: scale(1.06); }
.check input:checked + .check__box .bi { transform: scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.field--check.is-invalid .check__box { border-color: var(--error); }

.btn--send { margin-top: .25rem; }
.btn__spinner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  opacity: 0;
  animation: spin .8s linear infinite;
}
.btn__label,
.btn__plane { transition: opacity .3s; }
.btn--send .btn__plane { font-size: 16px; transition: transform .6s var(--ease), opacity .3s; }
.btn--send:hover .btn__plane { transform: translate(3px, -3px); }
.btn--send.is-loading .btn__label,
.btn--send.is-loading .btn__plane { opacity: 0; }
.btn--send.is-loading .btn__spinner { opacity: 1; }
.btn--send.is-flying .btn__plane { animation: plane-away .9s var(--ease) forwards; }

.form__success {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .75rem;
  padding: 2rem;
  text-align: center;
  outline: none;
}
.form__success[hidden] { display: none; }
.form__success h3 { font-size: 1.5rem; animation: rise .6s var(--ease) .3s backwards; }
.form__success p { max-width: 42ch; color: var(--text-2); animation: rise .6s var(--ease) .4s backwards; }
.form__success .btn { margin-top: .75rem; animation: rise .6s var(--ease) .5s backwards; }
.success-check { width: 76px; height: 76px; margin-bottom: .25rem; }
.success-check circle,
.success-check path { fill: none; stroke: var(--success); stroke-linecap: round; stroke-linejoin: round; }
.success-check circle { stroke-width: 2.5; stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw .8s var(--ease) forwards; }
.success-check path { stroke-width: 3.5; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s var(--ease) .6s forwards; }

/* 13. Footer & toast ------------------------------------------------------ */
.footer { padding-top: clamp(3.5rem, 7vw, 5rem); }
.footer__top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 3rem; padding-bottom: 3rem; }
.footer__brand p { max-width: 36ch; margin-top: 1rem; font-size: .925rem; color: var(--text-2); }
.footer__nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer__nav h3 {
  margin-bottom: .9rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.footer__nav ul { display: grid; gap: .55rem; }
.footer__nav a { font-size: .925rem; color: var(--text-2); transition: color .25s; }
.footer__nav a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  font-size: .85rem;
  color: var(--text-3);
}
.to-top { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; color: var(--text-2); transition: color .25s; }
.to-top .bi { font-size: 15px; transform: rotate(-90deg); transition: transform .5s var(--ease); }
.to-top:hover { color: var(--accent); }
.to-top:hover .bi { transform: rotate(-90deg) translateX(3px); }

.toast {
  display: flex;
  align-items: center;
  gap: .55rem;
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: .8rem 1.15rem;
  border-radius: 14px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--text);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 40px));
  transition: transform .5s var(--ease-spring), opacity .3s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast .bi { font-size: 1.05rem; color: var(--success); }

/* 14. Motion -------------------------------------------------------------- */
.js .reveal { opacity: 0; }
.js .reveal.is-visible { opacity: 1; animation: reveal 1.1s var(--ease) var(--d, 0s) backwards; }

@keyframes reveal { from { opacity: 0; translate: 0 32px; } }
@keyframes shimmer { to { background-position: 200% center; } }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes drift-a { to { transform: translate(120px, 80px) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-100px, 120px) scale(.92); } }
@keyframes drift-c { to { transform: translate(-140px, -60px) scale(1.15); } }
@keyframes fly {
  0% { offset-distance: 0%; opacity: 0; }
  8%, 88% { opacity: .85; }
  100% { offset-distance: 100%; opacity: 0; }
}
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes msg-in { from { opacity: 0; transform: translateY(12px) scale(.92); } }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .45; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes card-in { from { opacity: 0; translate: 0 18px; scale: .98; } }
@keyframes spin-angle { to { --angle: 360deg; } }
@keyframes log-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes plane-away {
  30% { transform: translate(-6px, 4px) rotate(-8deg); }
  100% { transform: translate(180px, -100px) rotate(8deg) scale(.6); opacity: 0; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* circular reveal when switching theme (View Transitions API) */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* 15. Responsive ---------------------------------------------------------- */
@media (max-width: 1200px) {
  .pricing--4 { --cols: 2; max-width: 860px; margin-inline: auto; }
}

@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .float-card--a { right: -20px; }
  .float-card--b { left: -20px; }
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { justify-items: center; text-align: center; }
  .hero__actions,
  .hero__stats { justify-content: center; }
  .hero__title { font-size: min(7vw, 3.5rem); }
  .hero__visual { margin-top: 2.5rem; }
  .pricing--3 { --cols: 1; max-width: 480px; margin-inline: auto; gap: 1.75rem; }
  .addons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split,
  .contact { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: calc(var(--header-h) + 1rem) clamp(24px, 8vw, 64px) 3rem;
    background: var(--bg);
    visibility: hidden;
    clip-path: circle(0 at calc(100% - 40px) 36px);
    transition: clip-path .6s var(--ease), visibility 0s .6s;
  }
  .nav-open .nav {
    visibility: visible;
    clip-path: circle(150% at calc(100% - 40px) 36px);
    transition: clip-path .7s var(--ease), visibility 0s;
  }
  .nav__list { flex-direction: column; gap: .25rem; }
  .nav__link {
    padding: .3rem 0;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -.03em;
    color: var(--text);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .4s, transform .5s var(--ease), color .25s;
  }
  .nav__link:hover { color: var(--accent); background: none; }
  .nav-open .nav__link { opacity: 1; transform: none; }
  .nav-open li:nth-child(1) .nav__link { transition-delay: .1s; }
  .nav-open li:nth-child(2) .nav__link { transition-delay: .15s; }
  .nav-open li:nth-child(3) .nav__link { transition-delay: .2s; }
  .nav-open li:nth-child(4) .nav__link { transition-delay: .25s; }
  .nav-open li:nth-child(5) .nav__link { transition-delay: .3s; }
  .nav__link.is-active::after { top: 50%; right: -18px; bottom: auto; left: auto; width: 8px; height: 8px; transform: translateY(-50%); }
  .nav__cta { display: inline-flex; opacity: 0; transform: translateY(18px); transition: opacity .4s, transform .5s var(--ease); }
  .nav-open .nav__cta { opacity: 1; transform: none; transition-delay: .35s; }
  body.nav-open { overflow: hidden; }

  .steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .steps::before,
  .steps::after { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .steps::after { transform: scaleY(0); transform-origin: top; }
  .steps.is-visible::after { transform: scaleY(1); }
  .step { grid-template-columns: 56px 1fr; column-gap: 1.25rem; row-gap: .3rem; }
  .step__num { grid-row: span 2; margin: 0; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .header__cta { display: none; }
  .services { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .pricing--4 { --cols: 1; max-width: 480px; gap: 1.75rem; }
  .addons { grid-template-columns: 1fr; }
  .tab { padding: .6rem .85rem; font-size: .85rem; }
  .chat__body { height: 340px; }
  .float-card { padding: .55rem .8rem .55rem .55rem; font-size: .72rem; }
  .float-card strong { font-size: .8rem; }
  .float-card__icon { width: 30px; height: 30px; }
  .hero__title { font-size: clamp(2.25rem, 10.4vw, 2.625rem); }
  .float-card--a { top: -30px; right: -6px; }
  .float-card--b { bottom: -26px; left: -6px; }
  .metric { padding: .7rem; }
  .metric strong { font-size: 1.05rem; }
  .uptime { grid-template-columns: repeat(30, 1fr); }
  .uptime i:nth-child(-n+15) { display: none; }
  .callout { flex-direction: column; align-items: flex-start; }
  .callout .btn { width: 100%; }
  .footer__nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 400px) {
  .tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tab { padding: .55rem .7rem; font-size: .8rem; }
  .hero__actions .btn { width: 100%; }
  .status-pill { display: none; }
}

/* Reduced motion: keep soft fades and colour transitions, drop movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plane { display: none; }
  .blob,
  .marquee__track,
  .float-card,
  .callout__icon,
  .live-dot::after,
  .typer__text,
  .price-card--featured::before,
  .field.shake { animation: none; }
  .js .reveal.is-visible,
  .panel.is-active .price-card,
  .panel.is-active .addon,
  .msg,
  .log li { animation-name: fade-in; }
  .btn:hover .bi,
  .service:hover,
  .service:hover .service__icon,
  .price-card:hover,
  .addon:hover,
  .addon:hover .addon__icon,
  .usecases__list li:hover,
  .step:hover .step__num,
  .theme-toggle:hover,
  .logo:hover .logo__mark,
  .faq__item.is-open .faq__icon { transform: none; }
  .theme-toggle .bi { transform: none !important; transition: opacity .45s var(--ease); }
  .toast { transform: translate(-50%, 0); }
  .uptime i { transform: none; opacity: 0; transition: opacity .6s var(--ease) calc(var(--i, 0) * 14ms); }
  .dash.is-visible .uptime i { opacity: .85; }
  .steps::after { transform: none; opacity: 0; transition: opacity 1.2s var(--ease) .2s; }
  .steps.is-visible::after { opacity: 1; }
  .btn--send.is-flying .btn__plane { animation: fade-out .4s var(--ease) forwards; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 900px) {
  .nav { clip-path: none; opacity: 0; transition: opacity .4s var(--ease), visibility 0s .4s; }
  .nav-open .nav { opacity: 1; clip-path: none; transition: opacity .4s var(--ease), visibility 0s; }
  .nav__link,
  .nav__cta { transform: none; }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
