/* =========================================================
   DraftPK — design system
   Palette refined from the user's references: near-black plum,
   electric violet, hot magenta. One light section per page
   gives the strong section separation.
   ========================================================= */
:root {
  --bg: #07050c;
  --bg-2: #0c0915;
  --surface: #120d1e;
  --surface-2: #1a1329;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ink: #f4f0fb;
  --muted: #a69dba;
  --dim: #6f6683;
  --violet: #8a2bff;
  --violet-2: #6a1fe0;
  --magenta: #ff2bd6;
  --pink: #ff6fe3;
  --grad: linear-gradient(120deg, #8a2bff 0%, #c22cf0 50%, #ff2bd6 100%);
  --grad-soft: linear-gradient(120deg, rgba(138, 43, 255, .18), rgba(255, 43, 214, .14));

  --light-bg: #f6f2fc;
  --light-surface: #ffffff;
  --light-ink: #140d22;
  --light-muted: #5d5470;
  --light-line: rgba(20, 13, 34, 0.1);

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--magenta); color: #fff; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; margin: 0; font-variation-settings: "wdth" 100; }
h1 { font-size: clamp(2.7rem, 7vw, 6rem); font-weight: 700; letter-spacing: -0.045em; line-height: .98; }
.mono { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .02em; }
/* "draft" word treatment: outlined, dashed-feel, like an unfinished sketch */
.drafty {
  color: transparent; -webkit-text-stroke: 1.5px rgba(244, 240, 251, .55);
  font-weight: 500; font-style: normal;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pink);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }

.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 60ch; }

/* ---------------- Buttons ---------------- */
.btn {
  --by: 0px; --bs: 1;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; white-space: nowrap;
  transform: translateY(var(--by)) scale(var(--bs));
  transition: transform .2s var(--ease-out), box-shadow .25s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  isolation: isolate;
}
@media (hover: hover) and (pointer: fine) { .btn:hover { --by: -2px; } }
.btn:active { --bs: .97; --by: 0px; transition-duration: .12s; }
.btn .arrow { transition: transform .3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 30px -10px rgba(255, 43, 214, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
  overflow: hidden;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(255, 43, 214, .75), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-2);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .26); }
.light .btn-ghost { color: var(--light-ink); background: #fff; border-color: var(--light-line); }
.light .btn-ghost:hover { border-color: rgba(20,13,34,.25); }

.btn-sm { height: 42px; padding: 0 18px; font-size: .9rem; }

.link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink);
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.link:hover::after { transform: scaleX(1); }

/* ---------------- Nav ---------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 5, 12, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad); box-shadow: 0 6px 20px -6px rgba(255,43,214,.6), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .5s var(--ease-out);
}
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.logo-mark svg { width: 18px; height: 18px; }
.logo span b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links {
  display: flex; gap: 4px; padding: 5px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03);
}
.nav-links a {
  padding: 8px 16px; border-radius: 999px; font-size: .92rem; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.nav-links a[aria-current="page"] { color: var(--ink); background: rgba(255,255,255,.09); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--ink); align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease-out), background-color .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.menu-open .nav-toggle span { background: transparent; }
.menu-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(7,5,12,.97);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 100px var(--gutter) 40px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.mobile-menu a.m-link { font-family: var(--font-head); font-size: 2rem; font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--line); transform: translateY(12px); opacity: 0; transition: transform .5s var(--ease-out), opacity .5s; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open .mobile-menu a.m-link { transform: none; opacity: 1; }
.menu-open .mobile-menu a.m-link:nth-child(2) { transition-delay: .04s; }
.menu-open .mobile-menu a.m-link:nth-child(3) { transition-delay: .08s; }
.menu-open .mobile-menu a.m-link:nth-child(4) { transition-delay: .12s; }
.mobile-menu .btn { margin-top: 24px; width: 100%; }

/* ---------------- Sections & separations ---------------- */
section { position: relative; }
.section { padding-block: clamp(80px, 11vw, 140px); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head.split { max-width: none; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 40px; }

/* ground variants — each section sits on its own clearly different ground */
.ground-deep { background: var(--bg); }
.ground-raised { background: var(--bg-2); border-block: 1px solid var(--line); }
.ground-grid {
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(138, 43, 255, .16), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(255, 43, 214, .10), transparent 60%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.ground-grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  opacity: .6;
}
.ground-grid > * { position: relative; }

.light {
  background: var(--light-bg); color: var(--light-ink);
  border-radius: 40px 40px 0 0;
}
.light + .light-end, .light.rounded-both { border-radius: 40px; }
.light .lead, .light p { color: var(--light-muted); }
.light h2, .light h3 { color: var(--light-ink); }
.light .eyebrow { color: var(--violet-2); }

.curve-top { border-radius: 40px 40px 0 0; margin-top: -40px; z-index: 2; }
.curve-bottom { border-radius: 0 0 40px 40px; }
.curve-both { border-radius: 40px; }

/* glowing divider between dark sections */
.glow-rule { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, rgba(255,43,214,.6), rgba(138,43,255,.6), transparent); box-shadow: 0 0 24px rgba(255,43,214,.5); }

/* ---------------- Hero ---------------- */
.hero {
  min-height: 100svh;
  padding: 140px 0 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transform: scale(1.08); animation: drift 22s ease-in-out infinite alternate; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 35%, rgba(7,5,12,.2), rgba(7,5,12,.85) 75%), linear-gradient(to bottom, transparent 60%, var(--bg)); }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); z-index: -1; pointer-events: none; mix-blend-mode: screen; }
.orb-1 { width: 520px; height: 520px; background: rgba(138, 43, 255, .45); left: -140px; bottom: 10%; animation: float1 16s ease-in-out infinite; }
.orb-2 { width: 460px; height: 460px; background: rgba(255, 43, 214, .35); right: -120px; top: 4%; animation: float2 19s ease-in-out infinite; }
.spot { position: absolute; width: 600px; height: 600px; border-radius: 50%; z-index: -1; pointer-events: none; background: radial-gradient(circle, rgba(255, 111, 227, .14), transparent 60%); transform: translate(-50%, -50%); left: var(--mx, 50%); top: var(--my, 40%); transition: left .6s var(--ease-out), top .6s var(--ease-out); }

.hero-copy { text-align: center; display: grid; justify-items: center; gap: 24px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 8px; border-radius: 999px;
  background: rgba(138, 43, 255, .14); border: 1px solid rgba(186, 120, 255, .35);
  font-size: .9rem; color: #e6d8ff;
  transition: background-color .25s, border-color .25s, transform .25s var(--ease-out);
}
.pill:hover { background: rgba(138, 43, 255, .22); transform: translateY(-1px); }
.pill .dot { display: inline-grid; place-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--grad); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .04em; }
.hero h1 { max-width: 14ch; }
.hero h1 .line { display: block; }
/* box = exactly one line tall and top-aligned, so the word sits on the same line as the text around it */
.rotator { display: inline-grid; vertical-align: top; overflow: hidden; height: 1.6em; line-height: 1.6em; }
.rotator span { grid-area: 1 / 1; text-align: center; transform: translateY(110%); opacity: 0; transition: transform .7s var(--ease-out), opacity .5s; padding-bottom: .06em; }
.rotator span.on { transform: none; opacity: 1; }
.rotator span.out { transform: translateY(-110%); opacity: 0; }
.hero .lead { margin-inline: auto; text-align: center; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-facts { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: .9rem; }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--pink); }

/* hero showcase: glow ring + browser */
.showcase { position: relative; margin-top: clamp(48px, 7vw, 80px); flex: 1; display: flex; justify-content: center; }
.ring {
  position: absolute; left: 50%; top: -10px; width: min(560px, 80vw); aspect-ratio: 2 / 1; transform: translateX(-50%);
  border-radius: 560px 560px 0 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.ring::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 100%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, #8a2bff, #ff2bd6, #ffb3f2, #8a2bff, #ff2bd6, #8a2bff);
  -webkit-mask: radial-gradient(circle closest-side, transparent 72%, #000 78%, #000 86%, transparent 96%);
  mask: radial-gradient(circle closest-side, transparent 72%, #000 78%, #000 86%, transparent 96%);
  filter: blur(4px);
  animation: spin 10s linear infinite;
}
.ring::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 100%, rgba(255, 90, 230, .55), transparent 60%); filter: blur(20px); }
.horizon { position: absolute; left: 0; right: 0; top: calc(min(560px, 80vw) / 2 - 12px); height: 2px; z-index: 1; background: linear-gradient(90deg, transparent, rgba(255,140,240,.9) 30%, #fff 50%, rgba(255,140,240,.9) 70%, transparent); box-shadow: 0 0 30px 6px rgba(255, 43, 214, .55); pointer-events: none; }

.browser {
  position: relative; z-index: 2;
  width: min(1080px, 100%); margin-top: calc(min(560px, 80vw) / 2 - 12px);
  border-radius: 18px 18px 0 0; overflow: hidden;
  background: rgba(18, 13, 30, .82); border: 1px solid var(--line-2); border-bottom: 0;
  box-shadow: 0 -20px 80px -20px rgba(255, 43, 214, .35), 0 40px 100px rgba(0,0,0,.6);
  backdrop-filter: blur(20px);
}
.browser-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.dots { display: flex; gap: 7px; } .dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.14); }
.dots i:nth-child(1) { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.url { flex: 1; max-width: 420px; margin-inline: auto; height: 28px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.url svg { width: 12px; height: 12px; color: #28c840; }

.demo { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 420px; }
.demo-copy { padding: clamp(24px, 4vw, 48px); display: grid; align-content: center; gap: 16px; }
.demo-nav { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--muted); margin-bottom: 18px; }
.demo-nav b { font-family: var(--font-head); color: var(--ink); font-size: 1rem; }
.demo-nav span { display: flex; gap: 16px; }
.demo-copy h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.05; }
.demo-copy p { color: var(--muted); font-size: .95rem; }
.demo-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-tags span { font-size: .75rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.demo-btns { display: flex; gap: 10px; }
.demo-btns i { font-style: normal; font-size: .8rem; font-weight: 600; padding: 10px 16px; border-radius: 999px; background: #ff7a1a; color: #1a0d03; }
.demo-btns i + i { background: transparent; border: 1px solid var(--line-2); color: var(--ink); }
.demo-img { position: relative; overflow: hidden; }
.demo-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.browser:hover .demo-img img { transform: scale(1.03); }
.demo-card {
  position: absolute; left: 20px; bottom: 20px; display: flex; gap: 12px; align-items: center;
  padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.94); color: #1b1328; box-shadow: 0 20px 40px rgba(0,0,0,.35);
  animation: bob 4s ease-in-out infinite;
}
.demo-card .g { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.demo-card b { display: block; font-size: .85rem; }
.demo-card small { color: #5d5470; font-size: .75rem; }
.stars { color: #fbbc04; letter-spacing: 1px; }

/* ---------------- Logo marquee ---------------- */
.logos { padding-block: 44px; }
.logos-title { text-align: center; color: var(--dim); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.6; margin-bottom: 28px; }
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 72px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: rgba(244, 240, 251, .55); font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; white-space: nowrap; transition: color .3s, transform .3s var(--ease-out); }
.brand:hover { color: #fff; transform: translateY(-2px); }
.brand svg { width: 28px; height: 28px; flex: none; }
.brand.serif { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; font-size: 1.4rem; }
.brand.mono { font-family: ui-monospace, Consolas, monospace; font-size: 1.1rem; letter-spacing: .02em; }
.brand.caps { text-transform: uppercase; letter-spacing: .18em; font-size: 1rem; font-weight: 700; }

/* ---------------- Cards ---------------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  --gx: 50%; --gy: 0%;
  position: relative; padding: 30px; border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .35s var(--ease-out), border-color .3s, box-shadow .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(255, 43, 214, .13), transparent 45%);
}
.card:hover { transform: translateY(-3px); border-color: rgba(255, 140, 240, .28); box-shadow: 0 24px 60px -30px rgba(255, 43, 214, .45); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

.icon-tile {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--grad-soft); border: 1px solid rgba(255, 140, 240, .25);
  color: #ffb8f2; transition: transform .45s var(--ease-out);
}
.card:hover .icon-tile { transform: scale(1.08) rotate(-4deg); }
.icon-tile svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; }
.card ul.ticks { margin: 18px 0 0; }

.service-card.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.mini-visual { border-radius: var(--radius); border: 1px solid var(--line); background: rgba(7,5,12,.6); padding: 18px; }

/* Google search mini visual */
.serp { display: grid; gap: 10px; font-size: .78rem; }
.serp-q { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-radius: 999px; background: #fff; color: #202124; }
.serp-q svg { width: 14px; height: 14px; color: #5f6368; }
.serp-q .caret { width: 1px; height: 14px; background: #202124; animation: blink 1s steps(1) infinite; }
.serp-r { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.serp-r b { color: #8ab4f8; font-weight: 500; font-size: .9rem; display: block; }
.serp-r small { color: var(--dim); }
.serp-r.top { border-color: rgba(255,140,240,.45); background: rgba(255,43,214,.07); animation: rise 4s var(--ease-out) infinite; }
.serp-r .badge { float: right; font-size: .65rem; padding: 2px 8px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 700; }

/* ticks list */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.ticks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--grad) center / 100%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='black'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0a12 12 0 100 24 12 12 0 000-24zm5.2 9.7l-6.3 6.3a1.2 1.2 0 01-1.7 0l-3.2-3.2a1.2 1.2 0 011.7-1.7l2.35 2.35 5.45-5.45a1.2 1.2 0 011.7 1.7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.light .ticks li { color: var(--light-muted); }

/* ---------------- Process (light) ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 28px; right: 28px; top: 28px; height: 2px; background: repeating-linear-gradient(90deg, rgba(106,31,224,.35) 0 8px, transparent 8px 16px); }
.step { position: relative; }
.step .num {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px;
  background: #fff; border: 1px solid var(--light-line); font-family: var(--font-head); font-weight: 700; color: var(--violet-2);
  box-shadow: 0 10px 30px -12px rgba(106, 31, 224, .4);
  transition: transform .4s var(--ease-out), background-color .3s, color .3s;
}
.step:hover .num { transform: scale(1.08); background: var(--violet-2); color: #fff; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: .96rem; }

/* ---------------- Work ---------------- */
.work-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.work-card {
  position: relative; display: block; border-radius: var(--radius-l); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .4s var(--ease-out), border-color .3s, box-shadow .4s;
}
.work-card:first-child { grid-row: span 2; }
.work-card:hover { transform: translateY(-3px); border-color: rgba(255,140,240,.3); box-shadow: 0 30px 70px -30px rgba(255,43,214,.45); }
.work-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.work-card:first-child .work-media { aspect-ratio: auto; height: calc(100% - 128px); min-height: 320px; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.work-card:hover .work-media img { transform: scale(1.04); }
.work-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,5,12,.55), transparent 50%); }
.work-info { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; min-height: 128px; }
.work-info h3 { margin-bottom: 6px; }
.work-info p { color: var(--muted); font-size: .92rem; }
.work-tags { position: absolute; top: 16px; left: 16px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.work-tags span { font-size: .72rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(7,5,12,.6); backdrop-filter: blur(10px); border: 1px solid var(--line-2); }
.go {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); transition: background .3s, transform .4s var(--ease-out), border-color .3s;
}
.go svg { width: 18px; height: 18px; transition: transform .4s var(--ease-out); }
.work-card:hover .go { background: var(--grad); border-color: transparent; }
.work-card:hover .go svg { transform: rotate(-45deg); }

/* ---------------- Pricing ---------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 22px; padding: 34px 30px; }
.plan .tag { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); }
.plan h3 { font-size: 1.5rem; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; letter-spacing: -0.04em; }
.price small { color: var(--muted); font-size: .95rem; }
.plan .btn { width: 100%; margin-top: auto; }
.plan .ticks { flex: 1; }
.plan.featured { background: linear-gradient(180deg, rgba(138,43,255,.18), rgba(255,43,214,.06)); border-color: rgba(255,140,240,.35); box-shadow: 0 30px 80px -40px rgba(255,43,214,.7); }
.plan.featured::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, #ff2bd6 80%, #8a2bff 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: border-spin 6s linear infinite;
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.light .card { background: #fff; border-color: var(--light-line); box-shadow: 0 1px 2px rgba(20,13,34,.04); }
.light .card p { color: var(--light-muted); }
.light .card:hover { border-color: rgba(106,31,224,.3); box-shadow: 0 24px 60px -30px rgba(106,31,224,.35); }
.light .card::before { background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(138, 43, 255, .08), transparent 45%); }
.light .icon-tile { background: #f1e8ff; border-color: rgba(106,31,224,.18); color: var(--violet-2); }

/* comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius-l); border: 1px solid var(--light-line); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.compare th, .compare td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--light-line); }
.compare thead th { font-family: var(--font-head); font-size: 1rem; color: var(--light-ink); background: #faf7fe; }
.compare td { color: var(--light-muted); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare tbody tr { transition: background-color .2s; }
.compare tbody tr:hover { background: #faf7fe; }
.compare .yes { color: var(--violet-2); font-weight: 700; }
.compare tr:last-child td { border-bottom: 0; }

/* add-ons */
.addon { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 26px; }
.addon h3 { font-size: 1.1rem; margin-bottom: 4px; }
.addon .amt { font-family: var(--font-head); font-weight: 700; white-space: nowrap; }

/* ---------------- FAQ ---------------- */
.faq-layout { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: start; }
.faq-side { position: sticky; top: 110px; display: grid; gap: 6px; }
.faq-side a { padding: 10px 14px; border-radius: 10px; color: var(--muted); transition: color .2s, background-color .2s; }
.faq-side a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--pink); margin-bottom: 14px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #ffc7f5; }
.plus { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: background .3s, border-color .3s, transform .4s var(--ease-out); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); transition: transform .4s var(--ease-out); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .plus { background: var(--grad); border-color: transparent; transform: rotate(180deg); }
details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .answer { overflow: hidden; }
.faq .answer p { padding: 0 60px 24px 4px; color: var(--muted); }
.faq.light-faq { border-color: var(--light-line); }
.light .faq details, .light .faq { border-color: var(--light-line); }
.light .faq summary:hover { color: var(--violet-2); }
.light .plus { border-color: var(--light-line); }

/* ---------------- Company ---------------- */
.page-hero { padding: 170px 0 90px; overflow: hidden; isolation: isolate; }
.page-hero .orb-1 { bottom: -30%; }
.page-hero .orb-2 { top: -30%; }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 16ch; }
.page-hero .lead { margin-top: 22px; }
.page-hero .hero-actions { justify-content: flex-start; margin-top: 32px; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 26px; }
.stat b { display: block; font-family: var(--font-head); font-size: 2.2rem; letter-spacing: -0.04em; }
.stat span { color: var(--muted); font-size: .92rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.photo-frame { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.photo-frame:hover img { transform: scale(1.03); }

.details-list { display: grid; gap: 0; border-top: 1px solid var(--light-line); }
.details-list div { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--light-line); }
.details-list dt { font-weight: 600; color: var(--light-ink); }
.details-list dd { margin: 0; color: var(--light-muted); }

/* contact form */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; font: inherit; color: var(--ink);
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field select option { background: var(--surface); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pink); background: rgba(255,255,255,.06); box-shadow: 0 0 0 4px rgba(255,43,214,.15); }
.form-note { font-size: .85rem; color: var(--dim); }

.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; }
.contact-card .icon-tile { margin: 0; width: 46px; height: 46px; }
.contact-card b { display: block; color: var(--ink); }
.contact-card span span { display: block; color: var(--muted); font-size: .92rem; }

/* ---------------- CTA band ---------------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 32px; padding: clamp(48px, 7vw, 90px) clamp(24px, 6vw, 80px);
  background: radial-gradient(800px 400px at 0% 100%, #8a2bff, transparent 60%), radial-gradient(700px 400px at 100% 0%, #ff2bd6, transparent 60%), #1a0b2b;
  display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); opacity: .5; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.cta-band p { color: rgba(255,255,255,.8); margin-top: 14px; max-width: 52ch; }
.cta-band .btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
.cta-band .hero-actions { justify-content: flex-end; }
.btn-white { background: #fff; color: #1a0b2b; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); }
.btn-white:hover { box-shadow: 0 18px 40px -12px rgba(0,0,0,.5); }

/* ---------------- Footer ---------------- */
.footer { padding: 80px 0 36px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.footer p { color: var(--muted); font-size: .95rem; margin-top: 16px; max-width: 34ch; }
.footer h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); transition: color .2s; }
.footer ul a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; color: var(--dim); font-size: .85rem; }
.footer-word { font-family: var(--font-head); font-weight: 700; font-size: clamp(4rem, 17vw, 15rem); letter-spacing: -0.06em; line-height: .8; text-align: center; margin-top: 50px; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }

/* WhatsApp float */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .3s var(--ease-out);
}
.wa:hover { transform: translateY(-3px) scale(1.05); }
.wa svg { width: 28px; height: 28px; }

/* ---------------- Motion: reveals ---------------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .hero [data-hero] { opacity: 0; transform: translateY(20px); filter: blur(6px); animation: heroIn 1s var(--ease-out) forwards; animation-delay: var(--d, 0s); }

@keyframes heroIn { to { opacity: 1; transform: none; filter: none; } }
@keyframes drift { from { transform: scale(1.08) translate(0, 0); } to { transform: scale(1.16) translate(-2%, 2%); } }
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(80px,-60px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-70px,50px); } }
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes rise { 0%, 15% { transform: translateY(54px); opacity: .4; } 35%, 100% { transform: none; opacity: 1; } }
@keyframes border-spin { to { --ang: 360deg; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .hero [data-hero] { opacity: 1; transform: none; filter: none; }
  /* no auto-scroll: one row the visitor can swipe, logos shown once (main.js skips the clones) */
  .marquee { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .marquee::-webkit-scrollbar { display: none; }
  .marquee-track { animation: none; padding-inline: 12%; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .grid-4, .stat-row { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .faq-layout { grid-template-columns: 1fr; gap: 30px; }
  .faq-side { position: static; display: flex; flex-wrap: wrap; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost, .nav-cta .login { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .service-card.wide { grid-column: auto; grid-template-columns: 1fr; }
  .section-head.split { grid-template-columns: 1fr; gap: 18px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card:first-child { grid-row: auto; }
  .work-card:first-child .work-media { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .demo { grid-template-columns: 1fr; }
  .demo-img { height: 220px; order: -1; }
  .split { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .hero-actions { justify-content: flex-start; }
  .details-list div { grid-template-columns: 1fr; gap: 4px; }
  .light, .curve-top { border-radius: 28px 28px 0 0; }
  .curve-both, .light.rounded-both { border-radius: 28px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 116px; }
  .hero-actions .btn, .page-hero .hero-actions .btn { width: 100%; }
  .grid-4, .stat-row, .steps { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .faq .answer p { padding-right: 4px; }
  .addon { flex-direction: column; align-items: flex-start; }
  .demo-nav span { display: none; }
  .nav-cta > .btn-primary { display: none; }
}
