/* Webnday — shared styles. Tokens from the design's style guide. */
:root {
  --night: #070614;
  --night-2: #0b0920;
  --surface: #110f2b;
  --surface-2: #0f0d26;
  --surface-3: #13112e;
  --line: #221f45;
  --line-soft: #1a1838;
  --line-strong: #34307a;
  --violet: #7c3aed;
  --blue: #2563eb;
  --violet-light: #a78bfa;
  --blue-light: #60a5fa;
  --lilac: #c4b5fd;
  --white: #fff;
  --text: #f4f2ff;
  --text-strong: #e2dffa;
  --text-soft: #c9c6e8;
  --body: #a8a5cc;
  --muted: #8c88b8;
  --grad: linear-gradient(135deg, #7c3aed, #2563eb);
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 20px;
  --container: 1420px;
}
@media (min-width: 768px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (min-width: 1100px) { html { scroll-padding-top: 96px; } }
body {
  margin: 0; background: var(--night); color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  /* safety net against sideways scroll; clip (unlike hidden) keeps the sticky header working */
  overflow-x: hidden; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
/* line icons from the sprite inherit these through <use> */
use { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p, ul { margin: 0; }
a { color: var(--lilac); text-decoration: none; }
a:hover { color: var(--white); }
:focus-visible { outline: 2px solid var(--violet-light); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--white); color: #1a1458; font-weight: 600; }
.skip:focus { top: 16px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; position: relative; }
.glow { position: absolute; border-radius: 50%; pointer-events: none; }

/* ---------- Type ---------- */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-light); }
.h1 { font: 700 42px/1.05 var(--font-head); letter-spacing: -.03em; color: var(--white); }
.h2 { font: 700 34px/1.1 var(--font-head); letter-spacing: -.025em; color: var(--white); }
.h3 { font: 600 22px/1.2 var(--font-head); color: var(--white); }
.lead { font-size: 17px; line-height: 1.6; color: var(--body); }
.grad-text { background: linear-gradient(90deg, #a78bfa, #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (min-width: 1100px) {
  .eyebrow { font-size: 14px; }
  .h1 { font-size: clamp(60px, 4.4vw, 84px); line-height: 1.02; letter-spacing: -.035em; }
  .h2 { font-size: clamp(44px, 3.2vw, 60px); line-height: 1.08; letter-spacing: -.03em; }
  .h3 { font-size: 28px; }
  .lead { font-size: 18px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1.2 var(--font-body); color: var(--white); text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--grad); }
.btn-primary:hover { color: var(--white); transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(124,58,237,.75); }
.btn-ghost { border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--white); background: rgba(255,255,255,.06); border-color: #4b4690; }
.btn-light { background: var(--white); color: #1a1458; font-weight: 700; }
.btn-light:hover { color: #1a1458; background: #e9e5ff; transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(0,0,0,.5); }
.btn-sm { height: 52px; padding: 0 24px; }
.btn-lg { height: 64px; padding: 0 32px; font-size: 18px; }
.btn-block { width: 100%; height: 60px; font-size: 17px; }
@media (max-width: 399px) { .btn-lg { padding: 0 20px; font-size: 16px; gap: 10px; } }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; color: var(--text-strong); background: none; cursor: pointer; transition: background .25s, border-color .25s; }
.icon-btn:hover { color: var(--white); background: rgba(255,255,255,.06); border-color: #4b4690; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--white); font: 700 22px var(--font-head); letter-spacing: -.02em; }
.logo:hover { color: var(--white); }
.wl { width: 34px; height: 34px; flex-shrink: 0; overflow: visible; transition: transform .35s ease; }
.logo:hover .wl { transform: rotate(-8deg) scale(1.06); }
@media (min-width: 1100px) { .logo { font-size: 26px; } .wl { width: 40px; height: 40px; } }
.wl-shine { animation: wlShine 7s ease-in-out infinite; }
.wl-glow { transform-box: fill-box; transform-origin: center; animation: wlGlow 3.5s ease-in-out infinite; }
@keyframes wlShine { 0%, 22% { transform: skewX(-20deg) translateX(0) } 38%, 100% { transform: skewX(-20deg) translateX(90px) } }
@keyframes wlGlow { 0%, 100% { opacity: .15; transform: scale(.9) } 50% { opacity: .45; transform: scale(1.05) } }

/* ---------- Header / nav ---------- */
.topbar { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s, box-shadow .3s; }
.topbar.is-scrolled { background: rgba(7,6,20,.78); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: rgba(52,48,122,.5); box-shadow: 0 12px 32px -20px rgba(0,0,0,.9); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .topbar.is-scrolled { background: rgba(7,6,20,.96); } }
.site-header { position: relative; z-index: 5; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: height .3s ease; }
.main-nav { display: none; gap: 44px; font-size: 16px; font-weight: 500; }
.main-nav a { color: var(--text-soft); transition: color .2s; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--white); }
.header-cta { display: none; }
@media (min-width: 1100px) {
  .site-header { height: 104px; }
  .topbar.is-scrolled .site-header { height: 80px; }
  .main-nav, .header-cta { display: flex; }
  .menu-toggle { display: none; }
}

/* Mobile menu (full-screen overlay) */
.mobile-menu {
  position: fixed; inset: 0; z-index: 50; padding: 0 var(--gutter) 32px; background: var(--night-2);
  display: flex; flex-direction: column; overflow: hidden auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility 0s .25s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s; }
.mobile-menu .glow { width: 480px; height: 480px; right: -240px; bottom: -160px; background: radial-gradient(circle, rgba(124,58,237,.35), rgba(124,58,237,0) 65%); }
.mobile-menu nav { position: relative; margin-top: 40px; display: flex; flex-direction: column; }
.mobile-menu nav a { height: 72px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font: 600 30px var(--font-head); color: var(--white); }
.mobile-menu nav a svg { color: var(--violet-light); }
.mobile-menu .menu-foot { position: relative; margin-top: auto; padding-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.mobile-menu .menu-foot p { color: var(--body); }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
body { position: relative; }
.hero-bg { position: absolute; inset: 0 0 auto; height: 1080px; overflow: hidden; pointer-events: none; }
.hero-bg .g1 { width: 900px; height: 900px; right: -120px; top: -160px; background: radial-gradient(circle, rgba(124,58,237,.35), rgba(124,58,237,0) 65%); }
.hero-bg .g2 { width: 760px; height: 760px; right: 380px; top: 360px; background: radial-gradient(circle, rgba(37,99,235,.25), rgba(37,99,235,0) 65%); }
.hero-bg .grid-bg { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 80px 80px; }
.hero-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 24px 0 64px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.pill { align-self: flex-start; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 16px 6px 8px; border-radius: 999px; border: 1px solid #2e2a5e; background: rgba(19,17,46,.7); font-size: 13px; font-weight: 500; line-height: 1.3; color: var(--text-soft); }
.pill b { flex-shrink: 0; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--grad); color: var(--white); font-size: 12px; font-weight: 600; letter-spacing: .04em; display: flex; align-items: center; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.ticks { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 15px; color: var(--text-soft); }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks svg { color: var(--violet-light); }
ul.plain { list-style: none; padding: 0; }

.hero-art { position: relative; height: 300px; }
.hero-frame { position: absolute; inset: 0; border-radius: 24px; border: 1px solid #2e2a5e; overflow: hidden; background: linear-gradient(160deg, #1a1640 0%, #0e0c26 55%, #0a0a22 100%); box-shadow: 0 40px 90px -30px rgba(124,58,237,.55); }
.hero-frame .ga { left: -80px; top: -60px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(167,139,250,.35), rgba(167,139,250,0) 70%); }
.hero-frame .gb { right: -60px; bottom: -40px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(96,165,250,.3), rgba(96,165,250,0) 70%); }
.hero-frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chip { position: absolute; display: none; align-items: center; gap: 14px; padding: 16px 22px 16px 16px; border-radius: 20px; background: rgba(19,17,46,.85); border: 1px solid var(--line-strong); box-shadow: 0 24px 48px -16px rgba(0,0,0,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.chip-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--grad); display: flex; align-items: center; justify-content: center; color: var(--white); }
.chip strong { display: block; font: 700 20px var(--font-head); color: var(--white); }
.chip small { font-size: 14px; color: var(--body); }
.chip-a { left: -44px; bottom: 96px; }
.chip-b { right: -28px; top: 72px; gap: 12px; padding: 14px 20px 14px 14px; border-radius: 18px; font-size: 15px; font-weight: 600; color: var(--white); }
.chip-b .chip-ico { width: 40px; height: 40px; border-radius: 12px; background: #1e1b4b; color: var(--blue-light); }

@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
  .hero-art { height: 480px; }
}
@media (min-width: 1100px) {
  .hero-body { min-height: 876px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; padding: 40px 0 96px; }
  .hero-copy { gap: 32px; }
  .pill { font-size: 14px; padding-right: 18px; }
  .lead-hero { font-size: 20px; max-width: 600px; }
  .ticks { gap: 32px; margin-top: 8px; }
  .hero-art { height: 680px; }
  .hero-frame { border-radius: 32px; }
  .chip { display: flex; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 64px 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; }
.section-head > div { display: flex; flex-direction: column; gap: 14px; }
.section-head .lead { max-width: 440px; }
.section-head.center { align-items: center; text-align: center; }
.section-head.center .lead { max-width: 620px; }
.section-head .btn { align-self: flex-start; }
.section-alt { background: var(--night-2); border-block: 1px solid var(--line-soft); }
@media (min-width: 1100px) {
  .section { padding: 120px 0; }
  .section-head { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 48px; }
  .section-head > div { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
  .section-head.center { flex-direction: column; gap: 20px; }
  .section-head .btn { align-self: auto; flex-shrink: 0; }
}
#services { padding-bottom: 0; }

/* Card rows: snap carousel on phones, grid on larger screens */
.row { display: flex; gap: 16px; margin-top: 32px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 24px; margin-inline: calc(-1 * var(--gutter)); scroll-padding-left: var(--gutter); scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row > * { flex: 0 0 290px; scroll-snap-align: start; }
@media (min-width: 768px) {
  .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; overflow: visible; padding: 0; margin-inline: 0; }
}
@media (min-width: 1100px) {
  .row { margin-top: 64px; gap: 32px; }
  .row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
}

.card { position: relative; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.card:hover { transform: translateY(-6px); border-color: #5b4fc7; }
.art { position: relative; height: 150px; border-radius: 16px; overflow: hidden; border: 1px solid #1e1b4b; background: radial-gradient(circle at 50% 40%, rgba(124,58,237,.22), rgba(124,58,237,0) 70%), var(--night-2); }
.art svg { width: 100%; height: 100%; }
.art .num { position: absolute; top: 12px; right: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
@media (min-width: 1100px) { .card { border-radius: 28px; } .art { height: 170px; border-radius: 20px; } }

/* Services */
.svc { padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.svc p { color: var(--body); line-height: 1.65; }
.svc > div:last-child { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1100px) { .svc { padding: 40px; gap: 28px; } }

/* Portfolio */
.pf { border-radius: 24px; background: var(--surface-2); padding: 14px; display: flex; flex-direction: column; gap: 18px; color: inherit; }
.pf:hover { color: inherit; box-shadow: 0 30px 60px -30px rgba(91,79,199,.7); }
.pf-media { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; background: #1a1740; }
.pf-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.pf:hover .pf-media img { transform: scale(1.04); }
.pf-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px 8px; }
.pf-foot > div { display: flex; align-items: center; gap: 14px; }
.pf-foot span { font-size: 14px; font-weight: 600; color: var(--muted); }
.pf-foot h3 { font: 600 20px var(--font-head); letter-spacing: -.01em; color: var(--white); }
.pf-arrow { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--white); transition: background .3s, transform .3s; }
.pf:hover .pf-arrow { background: var(--grad); transform: rotate(45deg); }
@media (min-width: 1100px) { .pf-foot h3 { font-size: 24px; } }

/* Pricing */
#pricing .glow { left: 50%; top: 80px; width: min(1100px, 100%); height: 600px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(124,58,237,.18), rgba(124,58,237,0) 70%); }
.plan { padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.plan:hover { transform: none; border-color: var(--line); }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan-desc { color: var(--body); font-size: 15px; line-height: 1.6; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price strong { font: 700 40px var(--font-head); letter-spacing: -.02em; color: var(--white); }
.price span { font-size: 16px; font-weight: 600; color: var(--body); }
.plan hr { width: 100%; height: 1px; margin: 0; border: 0; background: var(--line); }
.plan-inc { margin-bottom: -10px; font-size: 14px; font-weight: 600; color: var(--white); }
.feats { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; font-size: 15px; color: var(--text-strong); }
.feats li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.feats svg { flex-shrink: 0; margin-top: 2px; color: var(--violet-light); }
.feats .no { color: #6e6a9e; text-decoration: line-through; }
.feats .no svg { color: #5b5790; }
.badge { height: 28px; padding: 0 12px; border-radius: 999px; background: var(--grad); font-size: 12px; font-weight: 600; color: var(--white); display: flex; align-items: center; white-space: nowrap; }
.plan-featured { border: 0; padding: 1px; background: linear-gradient(160deg, #8b5cf6, #3b82f6); box-shadow: 0 40px 100px -40px rgba(124,58,237,.8); }
.plan-featured > .plan { height: 100%; border-radius: 23px; background: linear-gradient(180deg, #1c1745 0%, #110f2b 60%); border: 0; }
.plan-featured .plan-desc, .plan-featured .price span { color: #bdb9e0; }
.plan-featured hr { background: var(--line-strong); }
.plan-featured .feats { color: var(--text); }
.plan-featured .feats svg { color: var(--blue-light); }
@media (min-width: 768px) { .row-pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .plan { padding: 44px; gap: 32px; }
  .plan-desc { font-size: 16px; }
  .price strong { font-size: 52px; }
  .price span { font-size: 18px; }
  .plan-inc { font-size: 15px; margin-bottom: -12px; }
  .feats { gap: 16px; font-size: 16px; }
  .plan-featured > .plan { border-radius: 27px; }
  .badge { height: 32px; padding: 0 14px; font-size: 13px; }
}
@media (min-width: 768px) and (max-width: 1099px) { .plan { padding: 24px; } }

/* How it works */
.track { position: relative; height: 40px; margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: center; }
.live-end { display: none; }

/* Phones: the horizontal track can't line up with swiped cards, so the steps
   become a vertical timeline — numbered node beside each card, linked by a rail. */
@media (max-width: 767px) {
  .track { display: none; }
  #process .timeline {
    display: flex; flex-direction: column; gap: 20px; position: relative; counter-reset: step;
    margin: 32px 0 0; padding: 0 0 0 52px; overflow: visible; scroll-snap-type: none;
  }
  #process .timeline > li { flex: none; counter-increment: step; }
  #process .timeline > li::before {
    content: counter(step); position: absolute; left: -52px; top: 20px; width: 40px; height: 40px; border-radius: 50%;
    background: var(--grad); border: 4px solid var(--night); box-sizing: border-box;
    display: flex; align-items: center; justify-content: center; font: 700 16px var(--font-head); color: var(--white);
    animation: hwNode 6s ease-in-out infinite;
  }
  #process .timeline > li:nth-child(2)::before { animation-delay: 2.1s; }
  #process .timeline > li:nth-child(3)::before { animation-delay: 4.2s; }
  /* rail segment from this node down to the next node (or the "Website live" pill) */
  #process .timeline > li::after {
    content: ""; position: absolute; left: -34px; top: 60px; bottom: -40px; width: 4px; border-radius: 2px;
    background: linear-gradient(180deg, #7c3aed, #2563eb) top / 100% 100% no-repeat, var(--line);
    animation: railFill 6s ease-in-out infinite;
  }
  #process .timeline > li:nth-child(2)::after { animation-delay: 2.1s; }
  #process .timeline > li:last-child::after { bottom: -20px; animation-delay: 4.2s; }
  .live-end { display: flex; margin-top: 20px; }
}
@keyframes railFill { 0% { background-size: 100% 0%, auto } 35%, 100% { background-size: 100% 100%, auto } }
.track-bar { position: absolute; left: 20px; right: 20px; top: 18px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.track-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7c3aed, #2563eb); transform-origin: left center; animation: hwFill 6s ease-in-out infinite; }
.track > div { display: flex; justify-content: space-between; align-items: center; }
.node { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); border: 4px solid var(--night); display: flex; align-items: center; justify-content: center; font: 700 16px var(--font-head); color: var(--white); animation: hwNode 6s ease-in-out infinite; }
.node.n2 { animation-delay: 2.1s; } .node.n3 { animation-delay: 4.2s; }
.live { position: relative; height: 32px; padding: 0 14px; border-radius: 999px; background: #052e1e; border: 1px solid #34d399; color: #6ee7b7; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; animation: hwLive 1.4s ease-in-out infinite; }
.step { padding: 16px 16px 28px; display: flex; flex-direction: column; gap: 20px; }
.step .art { height: 170px; }
.step > div:last-child { padding: 0 8px; display: flex; flex-direction: column; gap: 12px; }
.step p { color: var(--body); line-height: 1.65; }
.tag { align-self: flex-start; height: 32px; padding: 0 14px; border-radius: 999px; background: #1e1b4b; color: var(--lilac); font-size: 14px; font-weight: 600; display: flex; align-items: center; }
#process .row { margin-top: 24px; }
@media (min-width: 768px) { #process .row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .track { height: 48px; margin-top: 56px; gap: 32px; }
  .track-bar { left: 24px; right: 24px; top: 22px; }
  .node { width: 48px; height: 48px; font-size: 18px; }
  #process .row { margin-top: 56px; }
  .step { padding: 20px 20px 32px; gap: 24px; }
  .step .art { height: 200px; }
  .step > div:last-child { padding: 0 12px; }
  .step p { font-size: 17px; }
}

/* Floating WhatsApp button (all screen sizes; hidden while the CTA band or footer is on screen) */
.fab {
  position: fixed; z-index: 45; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border-radius: 999px;
  background: var(--grad); color: var(--white); font: 600 16px var(--font-body);
  box-shadow: 0 16px 36px -10px rgba(124,58,237,.75), inset 0 0 0 1px rgba(255,255,255,.12);
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(.96);
  transition: opacity .3s ease, transform .3s ease, visibility 0s .3s;
}
.fab.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s ease; }
.fab:hover { color: var(--white); }
.fab svg { flex-shrink: 0; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: fabPulse 2.6s ease-out infinite; pointer-events: none; }
@keyframes fabPulse { 0% { box-shadow: 0 0 0 0 rgba(139,92,246,.55) } 70%, 100% { box-shadow: 0 0 0 14px rgba(139,92,246,0) } }
body.menu-open .fab { display: none; }
@media (min-width: 1100px) { .fab { right: 32px; bottom: 32px; height: 60px; padding: 0 26px 0 22px; } }

/* CTA band */
.cta { position: relative; overflow: hidden; border-radius: 28px; padding: 40px 24px; background: linear-gradient(135deg, #2a1670 0%, #1a1458 45%, #0f2a6b 100%); border: 1px solid #3b3590; display: flex; flex-direction: column; gap: 28px; }
.cta .gx { right: -120px; top: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(96,165,250,.35), rgba(96,165,250,0) 70%); }
.cta .gy { left: -160px; bottom: -260px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(167,139,250,.35), rgba(167,139,250,0) 70%); }
.cta-copy, .cta-act { position: relative; display: flex; flex-direction: column; gap: 16px; }
.cta p, .cta small { color: #d4d0f5; }
.cta small { font-size: 15px; }
.cta .btn { height: 60px; padding: 0 28px; font-size: 17px; }
@media (max-width: 639px) { .cta .btn { width: 100%; padding: 0 20px; font-size: 16px; } }
@media (min-width: 1100px) {
  .cta { border-radius: 40px; padding: 100px 80px; flex-direction: row; align-items: center; justify-content: space-between; gap: 64px; }
  .cta-copy { max-width: 780px; gap: 20px; }
  .cta h2 { font-size: clamp(48px, 3.4vw, 64px); line-height: 1.05; }
  .cta p { font-size: 20px; }
  .cta-act { align-items: flex-end; flex-shrink: 0; }
  .cta .btn { height: 72px; padding: 0 40px; font-size: 19px; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 40px; display: flex; flex-direction: column; gap: 40px; }
.foot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.foot-brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 20px; }
.foot-brand p { color: var(--body); max-width: 400px; line-height: 1.65; }
.foot-col { display: flex; flex-direction: column; gap: 16px; }
.foot-col h2 { font: 600 14px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.foot-col a { color: var(--text-strong); display: flex; align-items: center; gap: 10px; }
.foot-col a:hover { color: var(--white); }
.foot-col a svg { flex-shrink: 0; color: var(--violet-light); }
.foot-contact { grid-column: 1 / -1; }
.socials { display: flex; gap: 10px; }
.foot-bottom { padding-top: 32px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 16px; font-size: 14px; color: var(--muted); }
.foot-bottom nav { display: flex; gap: 32px; }
.foot-bottom a { color: var(--muted); }
.foot-bottom a:hover, .foot-bottom a[aria-current] { color: var(--white); }
@media (min-width: 768px) {
  .foot-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .foot-brand { grid-column: span 12; }
  .foot-col { grid-column: span 4; }
  .foot-contact { grid-column: span 4; }
  .foot-bottom { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 1100px) {
  .site-footer { padding: 96px 0 48px; gap: 64px; }
  .foot-brand { grid-column: span 5; }
  .foot-col { grid-column: span 2; }
  .foot-contact { grid-column: span 3; }
}
/* compact footer used on legal pages */
.foot-compact { padding: 40px 0 48px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 20px; font-size: 14px; color: var(--muted); }
.legal-links { display: flex; gap: 32px; }
.legal-links a { color: var(--muted); }
.legal-links a:hover, .legal-links a[aria-current] { color: var(--white); }
.foot-compact .logo { font-size: 20px; } .foot-compact .wl { width: 32px; height: 32px; }
@media (min-width: 1100px) { .foot-compact { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Legal pages ---------- */
.legal-hero { position: relative; padding: 48px 0 40px; display: flex; flex-direction: column; gap: 16px; border-bottom: 1px solid var(--line-soft); }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--body); }
.crumbs [aria-current] { color: var(--white); }
.legal-hero .lead { max-width: 760px; }
.updated { align-self: flex-start; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; color: var(--text-soft); display: flex; align-items: center; }
.legal { padding: 40px 0 80px; display: grid; gap: 32px; }
.toc { border-radius: 24px; border: 1px solid var(--line); background: var(--surface-2); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.toc h2 { font: 600 13px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--violet-light); }
.toc nav { display: flex; flex-direction: column; }
.toc a { font-size: 15px; color: var(--body); padding: 8px 0 8px 16px; border-left: 2px solid var(--line); transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.is-active { color: var(--white); border-left-color: #8b5cf6; }
.prose { display: flex; flex-direction: column; gap: 32px; }
.prose section { display: flex; flex-direction: column; gap: 14px; padding-bottom: 32px; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 24px; }
.prose h2 { font: 600 24px var(--font-head); letter-spacing: -.01em; color: var(--white); }
.prose p, .prose ul { font-size: 16px; line-height: 1.75; color: var(--text-soft); }
.prose ul { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.contact-list { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.contact-list a, .contact-list span { color: var(--text-strong); display: flex; align-items: center; gap: 10px; }
.contact-list a:hover { color: var(--white); }
.contact-list svg { flex-shrink: 0; color: var(--violet-light); }
.legal-page .page-glow { width: 900px; height: 900px; right: -200px; top: -420px; background: radial-gradient(circle, rgba(124,58,237,.3), rgba(124,58,237,0) 65%); }
@media (min-width: 1100px) {
  .legal-hero { padding: 100px 0 80px; gap: 20px; }
  .legal-hero .lead { font-size: 20px; }
  .legal { padding: 96px 0 120px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .legal aside { grid-column: span 4; }
  .toc { position: sticky; top: 112px; padding: 32px; }
  .prose { grid-column: 6 / span 7; gap: 40px; }
  .prose section { padding-bottom: 40px; }
  .prose h2 { font-size: 30px; }
  .prose p, .prose ul { font-size: 18px; }
}

/* ---------- Illustration animations ---------- */
@keyframes wnSpin { to { transform: rotate(360deg) } }
@keyframes wnFloat { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
@keyframes wnBuild { 0% { transform: scaleX(0) } 25%, 85% { transform: scaleX(1) } 100% { transform: scaleX(1); opacity: 0 } }
@keyframes wnPop { 0% { opacity: 0; transform: scale(.6) } 15%, 85% { opacity: 1; transform: scale(1) } 100% { opacity: 0; transform: scale(1) } }
@keyframes wnPulse { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.08) } }
@keyframes wnClock { 0% { stroke-dashoffset: 188.5 } 70%, 100% { stroke-dashoffset: 0 } }
@keyframes wnCursor { 0% { transform: translate(300px,520px) } 25% { transform: translate(180px,300px) } 45% { transform: translate(170px,300px) } 65% { transform: translate(400px,390px) } 85% { transform: translate(510px,560px) } 100% { transform: translate(300px,520px) } }
@keyframes wnTwinkle { 0%, 100% { opacity: .2; transform: scale(.6) } 50% { opacity: 1; transform: scale(1) } }
@keyframes svDraw { 0% { stroke-dashoffset: 100 } 45%, 85% { stroke-dashoffset: 0 } 100% { stroke-dashoffset: 0; opacity: 0 } }
@keyframes svPen { 0% { transform: translate(150px,120px) } 20% { transform: translate(172px,104px) } 35% { transform: translate(198px,114px) } 45%, 85% { transform: translate(222px,96px) } 100% { transform: translate(150px,120px) } }
@keyframes svType { 0% { transform: scaleX(0) } 15%, 85% { transform: scaleX(1) } 100% { transform: scaleX(1); opacity: 0 } }
@keyframes svBlink { 50% { opacity: 0 } }
@keyframes svGrow { 0% { transform: scaleY(0) } 20%, 85% { transform: scaleY(1) } 100% { transform: scaleY(1); opacity: 0 } }
@keyframes hwDot { 0%, 60%, 100% { opacity: .3; transform: translateY(0) } 30% { opacity: 1; transform: translateY(-3px) } }
@keyframes hwRocket { 0%, 100% { transform: translateY(8px) } 50% { transform: translateY(-8px) } }
@keyframes hwFlame { from { transform: scaleY(.7); opacity: .7 } to { transform: scaleY(1.15); opacity: 1 } }
@keyframes hwLive { 50% { opacity: .3 } }
@keyframes hwFill { 0% { transform: scaleX(0) } 70%, 100% { transform: scaleX(1) } }
@keyframes hwNode { 0%, 100% { box-shadow: 0 0 0 0 rgba(139,92,246,0) } 8% { box-shadow: 0 0 0 10px rgba(139,92,246,.35) } 20% { box-shadow: 0 0 0 0 rgba(139,92,246,0) } }

.fb { transform-box: fill-box; transform-origin: center; }
.f1 { animation: wnFloat 6s ease-in-out infinite; }
.f2 { animation: wnFloat 7s ease-in-out -2s infinite; }
.f3 { animation: wnFloat 5s ease-in-out -1s infinite; }
.ring { transform-box: fill-box; transform-origin: center; animation: wnSpin 40s linear infinite; }
.ring-r { transform-box: fill-box; transform-origin: center; animation: wnSpin 30s linear infinite reverse; }
.build, .ln { transform-box: fill-box; transform-origin: left center; animation: wnBuild 4s ease-in-out infinite; }
.ln.l2 { animation-delay: .2s; }
.pop { transform-box: fill-box; transform-origin: center; opacity: 0; animation: wnPop 4s cubic-bezier(.3,1.4,.5,1) infinite; }
.p0 { animation-delay: .4s; } .p1 { animation-delay: .7s; } .p2 { animation-delay: .9s; } .p3 { animation-delay: 1.1s; }
.blob { transform-box: fill-box; transform-origin: center; animation: wnPulse 3s ease-in-out infinite; }
.clock { animation: wnClock 4s ease-in-out infinite; }
.cursor { animation: wnCursor 4s ease-in-out infinite; }
.spark { transform-box: fill-box; transform-origin: center; animation: wnTwinkle 2.4s ease-in-out infinite; }
.s2 { animation-delay: .8s; } .s3 { animation-delay: 1.6s; }
.draw { stroke-dasharray: 100; stroke-dashoffset: 100; animation: svDraw 4s ease-in-out infinite; }
.pen { animation: svPen 4s ease-in-out infinite; }
.type { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); animation: svType 4s steps(6) infinite; }
.t2 { animation-delay: .3s; } .t3 { animation-delay: .6s; } .t4 { animation-delay: .9s; } .t5 { animation-delay: 1.1s; } .t6 { animation-delay: 1.4s; }
.caret { animation: svBlink 1s steps(2) infinite; }
.orbit { transform-box: fill-box; transform-origin: center; animation: wnSpin 5s linear infinite; }
.grow { transform-box: fill-box; transform-origin: center bottom; transform: scaleY(0); animation: svGrow 4s cubic-bezier(.3,1.3,.5,1) infinite; }
.g2 { animation-delay: .2s; } .g3 { animation-delay: .4s; } .g4 { animation-delay: .6s; }
.dot { animation: hwDot 1.2s ease-in-out infinite; } .d2 { animation-delay: .15s; } .d3 { animation-delay: .3s; }
.gear { transform-box: fill-box; transform-origin: center; animation: wnSpin 6s linear infinite; }
.rocket { animation: hwRocket 4s ease-in-out infinite; }
.flame { transform-box: fill-box; transform-origin: center top; animation: hwFlame .4s ease-in-out infinite alternate; }
.blink { animation: hwLive 1.4s ease-in-out infinite; }

/* Pause off-screen animations (set by main.js) to save CPU/battery */
.is-paused, .is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pop, .type, .grow { opacity: 1; transform: none; }
  .draw { stroke-dashoffset: 0; }
  .clock { stroke-dashoffset: 0; }
}
