/* ==========================================================================
   GMM Digital Art — stylesheet
   ========================================================================== */

:root {
  --ink: #0e1120;
  --ink-2: #2a2f45;
  --muted: #5d6378;
  --line: #e6e4ee;
  --bg: #fbfaf8;
  --surface: #ffffff;
  --soft: #f3f1fb;
  --accent: #5b3df5;
  --accent-dark: #4327d6;
  --accent-2: #ff6b4a;
  --accent-3: #16c7a8;
  --grad: linear-gradient(120deg, #5b3df5, #b43cf0 50%, #ff6b4a);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(20, 16, 60, .3);
  --shadow-sm: 0 8px 24px -10px rgba(20, 16, 60, .2);
  --container: 1200px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.3rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.28rem; font-weight: 600; }
p { margin: 0 0 1em; }
main { overflow-x: clip; }
.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.grad-text { background: var(--grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradmove 6s linear infinite; }
@keyframes gradmove { to { background-position: 200% center; } }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Scroll progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); z-index: 60; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.6em; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .3s var(--ease), background .2s, box-shadow .3s, color .2s, border-color .2s;
  transform: translate(var(--mx, 0px), calc(var(--my, 0px) + var(--lift, 0px)));
}
.btn::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:hover::after { transform: translateX(120%); }
.btn:hover { --lift: -3px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 28px -12px var(--accent); }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 18px 34px -12px var(--accent); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(91,61,245,.15); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(91,61,245,0); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(251,250,248,.8);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px -12px rgba(0,0,0,.15); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.15rem; }
.logo-mark { width: 42px; height: 42px; border-radius: 13px; background: var(--grad); background-size: 200% auto; animation: gradmove 6s linear infinite; display: grid; place-items: center; flex: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 18px -8px rgba(91,61,245,.7); transition: transform .4s var(--ease); }
.logo-mark svg { width: 30px; height: 30px; }
.logo-text { font-weight: 500; letter-spacing: -.02em; }
.logo-text b { font-weight: 700; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 500; font-size: .95rem; color: var(--ink-2); position: relative; }
.nav-links a.btn-primary { color: #fff; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang-switch a { padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; }
.nav-links .lang-switch a::after { display: none; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .25s, opacity .25s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 44px 0 96px; position: relative; overflow: hidden; isolation: isolate; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: -1; animation: drift 18s ease-in-out infinite alternate; }
.blob.b1 { width: 460px; height: 460px; background: #c9bcff; top: -120px; right: 8%; }
.blob.b2 { width: 380px; height: 380px; background: #ffc9b8; bottom: -120px; right: 35%; animation-delay: -6s; }
.blob.b3 { width: 320px; height: 320px; background: #b6f1e5; top: 30%; left: -120px; animation-delay: -12s; }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,40px) scale(1.12); } 100% { transform: translate(-40px,20px) scale(.95); } }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4vw, 3.3rem); margin-bottom: .45em; }
.hero h1 .rotator { display: block; min-height: 1.15em; white-space: nowrap; }
.hero .eyebrow {
  text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 500; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px 7px 12px;
  box-shadow: var(--shadow-sm); margin-bottom: 1.4rem;
}
.hero .eyebrow::before { background: var(--accent-3); box-shadow: 0 0 0 4px rgba(22,199,168,.18); }
.hero .eyebrow b { color: var(--ink); font-weight: 600; }
.rotator .caret { display: inline-block; width: 4px; height: .9em; background: var(--accent-2); margin-left: 4px; vertical-align: -.08em; border-radius: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 540px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 0; font-size: .95rem; font-weight: 500; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 20px; height: 20px; color: #fff; background: var(--accent-3); border-radius: 50%; padding: 4px; flex: none; }

.hero-visual { position: relative; perspective: 1200px; }
.stage { position: relative; aspect-ratio: 10 / 8.6; display: flex; justify-content: center; }
.browser {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden;
  border: 0 solid var(--ink);
  transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg));
  transition: transform .5s var(--ease), width .85s var(--ease), border-radius .85s var(--ease), border-width .85s var(--ease);
}
.browser.phone { width: 47%; border-radius: 38px; border-width: 9px; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar span { margin-left: 12px; flex: 1; height: 24px; border-radius: 999px; background: var(--soft); font-size: .72rem; color: var(--muted); display: flex; align-items: center; padding-left: 12px; }
.browser-bar span b { font-weight: 500; }
.browser-bar .lock { width: 11px; height: 11px; margin-right: 6px; color: #0f9d7a; flex: none; }

.browser-bar { flex: none; transition: padding .85s var(--ease); }
.phone .browser-bar { padding: 9px 12px; }
.phone .browser-bar i { display: none; }
.phone .browser-bar span { margin-left: 0; font-size: .64rem; height: 22px; justify-content: center; padding: 0 8px; }

/* ---------- Animated website mockup (hero) ----------
   Everything inside is sized in em from --u, so the same markup
   reflows between the desktop frame and the narrower phone frame. */
.mock { --u: 1cqw; container-type: inline-size; position: relative; flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.phone .mock { --u: 2.15cqw; }
.mock-page { --demo: var(--accent); position: absolute; top: 0; left: 0; right: 0; font-size: calc(var(--u) * 2.1); line-height: 1.4; color: #1b1b2a; transition: transform 1.1s var(--ease), opacity .35s ease; }
.mock-page.fade { opacity: 0; }
.m-nav { height: 4.3em; display: flex; align-items: center; justify-content: space-between; padding: 0 1.9em; border-bottom: 1px solid #efedf5; }
.m-logo { font-family: var(--font-head); font-weight: 700; font-size: 1.45em; letter-spacing: -.02em; }
.m-logo i { font-style: normal; color: var(--demo); }
.m-links { display: flex; gap: 1.7em; color: #6b6f85; }
.m-actions { display: flex; align-items: center; gap: 1.3em; }
.m-icon { position: relative; width: 1.7em; height: 1.7em; }
.m-icon svg { width: 100%; height: 100%; }
.m-burger { display: none; width: 1.6em; height: 1.1em; flex-direction: column; justify-content: space-between; }
.m-burger i { height: 2px; background: #1b1b2a; border-radius: 2px; }
.phone .m-links { display: none; }
.phone .m-burger { display: flex; }
.m-badge { position: absolute; top: -.6em; right: -.75em; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--accent-2); color: #fff; font-size: .8em; font-weight: 700; display: grid; place-items: center; transform: scale(0); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.m-badge.on { transform: scale(1); }
.m-hero { margin: 1.4em; min-height: 19em; border-radius: 1.2em; padding: 2.4em; color: #fff; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.m-hero small { font-size: .8em; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.m-hero strong { display: block; font-family: var(--font-head); font-size: 2.45em; line-height: 1.1; margin: .5em 0 .45em; max-width: 9.5em; letter-spacing: -.02em; }
.m-hero p { max-width: 19em; opacity: .85; margin: 0 0 1.4em; }
.phone .m-hero { min-height: 24em; padding: 2em 1.6em; }
.phone .m-hero strong { font-size: 2.15em; }
.m-btn { display: inline-block; background: var(--demo); color: #fff; font-weight: 600; padding: .7em 1.6em; border-radius: 5em; transition: transform .15s, background .3s; }
.m-wide { display: block; text-align: center; margin-top: .4em; }
.pressed { transform: scale(.92); }
.m-section { padding: 0 1.4em; margin-top: 1.2em; }
.m-title { display: flex; justify-content: space-between; align-items: baseline; margin: 1em 0 .9em; }
.m-title strong { font-family: var(--font-head); font-size: 1.65em; letter-spacing: -.02em; }
.m-title span { color: var(--demo); font-weight: 600; }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4em; }
.m-grid.three { grid-template-columns: repeat(3, 1fr); gap: 1em; }
.phone .m-grid, .phone .m-grid.three { grid-template-columns: 1fr; }
.m-card { border: 1px solid #efedf5; border-radius: 1em; overflow: hidden; background: #fff; }
.m-card img { width: 100%; height: 11.5em; object-fit: cover; }
.m-grid.three img { height: 8.5em; }
.phone .m-grid.three img { height: 11.5em; }
.m-card > div { padding: .85em 1em 1em; }
.m-card b { display: block; font-weight: 600; }
.m-card small { color: #6b6f85; }
.m-row { display: flex; justify-content: space-between; align-items: center; gap: .5em; margin-top: .45em; }
.m-price { color: var(--demo); font-weight: 700; white-space: nowrap; }
.m-price small { font-weight: 500; font-size: .8em; }
.m-add { background: #1b1b2a; color: #fff; font-size: .82em; font-weight: 600; padding: .5em .95em; border-radius: 5em; white-space: nowrap; transition: background .3s, transform .15s; }
.m-list { display: grid; gap: .7em; }
.m-item { display: flex; align-items: center; gap: 1em; border: 1.5px solid #efedf5; border-radius: 1em; padding: .75em 1em; background: #fff; transition: border-color .3s, box-shadow .3s, transform .15s; }
.m-item img { width: 4.2em; height: 4.2em; border-radius: .7em; object-fit: cover; flex: none; margin: -.2em 0 -.2em -.3em; }
.m-item .grow { flex: 1; min-width: 0; }
.m-item small { display: block; color: #6b6f85; font-size: .86em; }
.m-box { border: 1px solid #efedf5; border-radius: 1em; padding: 1.2em; background: #faf9fc; }
.m-label { font-size: .78em; color: #6b6f85; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6em; }
.m-chips { display: flex; flex-wrap: wrap; gap: .5em; margin-bottom: 1em; }
.m-chip, .m-slot, .m-day { border: 1.5px solid #dcd9e8; background: #fff; border-radius: .6em; padding: .45em .9em; font-weight: 500; transition: background .3s, color .3s, border-color .3s, transform .15s; }
.m-days { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5em; margin-bottom: 1em; }
.phone .m-days { grid-template-columns: repeat(3, 1fr); }
.m-day { text-align: center; padding: .45em 0; line-height: 1.25; font-weight: 700; }
.m-day small { display: block; font-size: .75em; font-weight: 500; opacity: .7; }
.m-add.done, .m-chip.on, .m-slot.on, .m-day.on { background: var(--accent-3); border-color: var(--accent-3); color: #fff; }
.m-item.on { border-color: var(--demo); box-shadow: 0 .4em 1.2em -.5em var(--demo); }
.m-search { display: flex; align-items: center; gap: .4em; background: #fff; color: #1b1b2a; border-radius: .9em; padding: .45em; margin-top: .6em; width: 100%; max-width: 34em; }
.m-search > div { flex: 1; padding: .25em .7em; border-right: 1px solid #eee; font-weight: 600; font-size: .92em; }
.m-search > div small { display: block; color: #6b6f85; font-weight: 500; font-size: .78em; letter-spacing: 0; text-transform: none; opacity: 1; }
.phone .m-search { flex-direction: column; align-items: stretch; }
.phone .m-search > div { border-right: 0; border-bottom: 1px solid #eee; padding: .4em .7em; }
.phone .m-search .m-btn { text-align: center; }
.m-foot { margin-top: 2em; height: 6.5em; background: var(--ink); }

.m-cursor { position: absolute; top: 0; left: 0; width: calc(var(--u) * 3.6); height: calc(var(--u) * 3.6); z-index: 3; pointer-events: none; transition: transform .9s var(--ease), opacity .3s; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.m-cursor svg { width: 100%; height: 100%; transform-origin: 15% 10%; transition: transform .15s; }
.m-cursor.press svg { transform: scale(.8); }
.m-cursor.hide, .phone .m-cursor { opacity: 0; }
.m-tap { position: absolute; left: 0; top: 0; width: calc(var(--u) * 6); height: calc(var(--u) * 6); margin: calc(var(--u) * -3) 0 0 calc(var(--u) * -3); border-radius: 50%; background: rgba(91,61,245,.3); border: 2px solid rgba(91,61,245,.55); opacity: 0; pointer-events: none; z-index: 2; }
.m-tap.go { animation: m-tap .6s ease-out; }
@keyframes m-tap { from { opacity: 1; transform: scale(.25); } to { opacity: 0; transform: scale(1.4); } }
.m-toast { position: absolute; left: 50%; bottom: calc(var(--u) * 4); z-index: 4; display: flex; align-items: center; gap: .6em; max-width: 92%; background: var(--ink); color: #fff; font-weight: 600; font-size: calc(var(--u) * 2.1); padding: .75em 1.3em; border-radius: 5em; box-shadow: 0 1em 2em -.6em rgba(0,0,0,.45); opacity: 0; transform: translate(-50%, 1.5em); transition: opacity .4s, transform .5s var(--ease); pointer-events: none; }
.m-toast.show { opacity: 1; transform: translate(-50%, 0); }
.m-toast span { white-space: nowrap; }
.phone .m-toast { border-radius: 1.2em; }
.phone .m-toast span { white-space: normal; }
.m-toast i { width: 1.35em; height: 1.35em; border-radius: 50%; background: var(--accent-3); display: grid; place-items: center; font-style: normal; font-size: .85em; flex: none; }

/* Demo controls under the mockup */
.demo-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; position: relative; z-index: 3; }
.demo-tabs, .device-switch { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; box-shadow: var(--shadow-sm); }
.demo-tabs button, .device-switch button { font: inherit; font-size: .86rem; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: background .3s, color .3s; display: inline-flex; align-items: center; gap: 6px; }
.demo-tabs button:hover, .device-switch button:hover { color: var(--ink); }
.demo-tabs button[aria-selected="true"], .device-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.device-switch button { padding: 7px 11px; }
.device-switch svg { width: 17px; height: 17px; }

.float-card {
  position: absolute; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow);
  padding: 12px 16px; display: flex; align-items: center; gap: 12px; font-size: .88rem; font-weight: 600; color: var(--ink);
  animation: float 6s ease-in-out infinite; z-index: 2;
}
.float-card small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
.float-card .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-card .ico svg { width: 20px; height: 20px; }
.float-card.one { left: -40px; bottom: 110px; }
.float-card.two { right: -26px; top: 54px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: #fff; overflow: hidden; padding: 22px 0; position: relative; z-index: 2; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: var(--font-head); font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 40px; }
.marquee span::after { content: "✦"; color: var(--accent-2); font-size: .9em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 110px 0; position: relative; }
.section-head { max-width: 700px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  --x: 50%; --y: 50%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--x) var(--y), rgba(91,61,245,.12), transparent 60%);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(91,61,245,.3); }
.service-card .icon {
  width: 60px; height: 60px; border-radius: 18px; color: #fff; display: grid; place-items: center; margin-bottom: 24px;
  background: var(--c, var(--accent)); box-shadow: 0 12px 24px -12px var(--c, var(--accent));
  transition: transform .5s var(--ease);
}
.service-card:hover .icon { transform: rotate(-10deg) scale(1.1); }
.service-card .icon svg { width: 28px; height: 28px; }
.service-card p { color: var(--muted); font-size: 1rem; margin: 0; }
.service-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: .92rem; color: var(--accent); }
.service-card .more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.service-card:hover .more svg { transform: translateX(5px); }

/* About */
.about { background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%); color: var(--ink-2); overflow: hidden; isolation: isolate; }
.about::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(180,60,240,.12), transparent 65%); z-index: -1; }
.about::after { content: ""; position: absolute; width: 460px; height: 460px; left: -180px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,107,74,.1), transparent 65%); z-index: -1; }
.about p { color: var(--muted); }
.about-images img { box-shadow: var(--shadow); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-images { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-images img { border-radius: var(--radius); object-fit: cover; width: 100%; will-change: transform; }
.about-images img:first-child { grid-row: span 2; height: 100%; min-height: 420px; }
.about-images img:not(:first-child) { aspect-ratio: 1; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-sm); transition: box-shadow .3s, transform .3s var(--ease), border-color .3s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(91,61,245,.25); }
.about .feature p { color: var(--muted); }
.feature h3 { font-size: 1.02rem; margin-bottom: .3em; display: flex; align-items: center; gap: 10px; }
.feature h3 span { font-size: 1.3rem; }
.feature p { font-size: .93rem; margin: 0; }

/* Process */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; --p: 0; }
.timeline::before, .timeline::after { content: ""; position: absolute; top: 31px; left: 32px; right: 32px; height: 3px; border-radius: 3px; background: var(--line); }
.timeline::after { background: var(--grad); transform-origin: left; transform: scaleX(var(--p)); transition: transform .2s linear; }
.step { position: relative; z-index: 1; }
.step .num {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--accent);
  background: var(--surface); border: 3px solid var(--line); transition: all .5s var(--ease);
}
.step.active .num { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 0 8px rgba(91,61,245,.15); transform: scale(1.05); }
.step p { color: var(--muted); font-size: .98rem; }

/* Work */
.work { background: var(--soft); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.2; color: #fff; box-shadow: var(--shadow-sm); }
.work-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14,17,32,.72) 0%, rgba(14,17,32,.18) 32%, transparent 55%); transition: background .4s; }
.work-card img { filter: brightness(1.08) saturate(1.05); }
.work-card:hover img { transform: scale(1.1); }
.work-card:hover::after { background: linear-gradient(to top, rgba(67,39,214,.95) 0%, rgba(67,39,214,.5) 55%, rgba(14,17,32,.1) 100%); }
.work-card .body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; z-index: 1; }
.work-card h3 { color: #fff; margin-bottom: .2em; }
.work-card p { font-size: .94rem; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s; color: #e6e4ff; }
.work-card:hover p, .work-card:focus-within p { max-height: 120px; opacity: 1; }
.tag { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); padding: 5px 11px; border-radius: 999px; margin-bottom: 10px; }

/* Packages */
.packages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.package {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 38px 32px;
  display: flex; flex-direction: column; position: relative; transition: transform .4s var(--ease), box-shadow .4s;
}
.package:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.package.featured { color: #c9cbe0; border: 2px solid transparent; background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--grad) border-box; background-size: 100% 100%, 200% 100%; box-shadow: var(--shadow); animation: border-flow 4s linear infinite; }
@keyframes border-flow { to { background-position: 0 0, 200% 0; } }
.package.featured h3 { color: #fff; }
.package .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent-2); color: #fff; font-size: .74rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.package .desc { font-size: .95rem; color: var(--muted); min-height: 3.2em; }
.package.featured .desc { color: #a7aac4; }
.price { margin: 6px 0 26px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.price strong { font-family: var(--font-head); font-size: 2.8rem; font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.package.featured .price strong { color: #fff; }
.package.featured .price small { color: #a7aac4; }
.package ul { list-style: none; padding: 0; margin: 0 0 30px; flex: 1; font-size: .96rem; }
.package li { display: flex; gap: 10px; padding: 7px 0; }
.package li svg { width: 20px; height: 20px; color: #fff; background: var(--accent-3); border-radius: 50%; padding: 4px; flex: none; margin-top: 3px; }
.package .btn { width: 100%; }
.extras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.extra { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px dashed #cfc9ec; border-radius: 18px; padding: 20px 26px; transition: border-color .3s, transform .3s var(--ease); }
.extra:hover { border-color: var(--accent); transform: translateY(-3px); }
.extra strong { font-family: var(--font-head); color: var(--ink); display: block; }
.extra span { font-size: .92rem; color: var(--muted); }
.extra .p { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--accent); white-space: nowrap; }
.price-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 26px; }

/* FAQ */
.faq { background: var(--surface); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 22px 50px 22px 0; position: relative; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.06rem; transition: color .2s; }
.faq-list summary:hover { color: var(--accent); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--soft); color: var(--accent); display: grid; place-items: center; font-size: 1.3rem; font-weight: 500; transition: transform .35s var(--ease), background .2s, color .2s; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(135deg); background: var(--accent); color: #fff; }
.faq-list details p { color: var(--muted); padding-right: 40px; animation: fadeDown .4s var(--ease); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } }

/* Contact */
.contact-wrap {
  background: linear-gradient(135deg, var(--ink) 0%, #261b66 100%); border-radius: 32px; padding: 70px;
  color: #c9cbe0; display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; position: relative; overflow: hidden; isolation: isolate;
}
.contact-wrap .blob { opacity: .35; }
.contact-wrap h2 { color: #fff; }
.contact-wrap .eyebrow { color: #a898ff; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-list a { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff; transition: background .2s, transform .3s var(--ease); }
.contact-list a:hover { background: rgba(255,255,255,.12); transform: translateX(6px); }
.contact-list .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--accent); display: grid; place-items: center; flex: none; }
.contact-list .ico svg { width: 21px; height: 21px; }
.contact-list small { display: block; color: #a7aac4; font-size: .78rem; }
.contact-list strong { font-weight: 600; word-break: break-word; }
.contact-form { background: var(--surface); border-radius: 24px; padding: 38px; color: var(--ink-2); position: relative; }
.contact-form h3 { margin-bottom: 4px; }
.contact-form > p { color: var(--muted); font-size: .95rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: .97rem; color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(91,61,245,.12); background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .88rem; font-weight: 500; cursor: pointer; transition: all .2s; user-select: none; }
.chips span:hover { border-color: var(--accent); }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips input:focus-visible + span { box-shadow: 0 0 0 4px rgba(91,61,245,.2); }
.contact-form .btn { width: 100%; margin-top: 4px; }
.form-status { font-size: .9rem; margin: 12px 0 0; text-align: center; min-height: 1.4em; }
.form-status.ok { color: #0f9d7a; font-weight: 600; }
.form-status.err { color: #d93b1f; font-weight: 600; }

/* Footer */
.site-footer { padding: 60px 0 30px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer p { color: var(--muted); font-size: .94rem; max-width: 340px; margin-top: 16px; }
.site-footer h4 { font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .94rem; color: var(--muted); }
.site-footer ul a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: var(--muted); }
.footer-bottom a { text-decoration: underline; }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px -8px rgba(37,211,102,.7); transition: transform .3s var(--ease); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.wa-float:hover { transform: scale(1.1) rotate(-8deg); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Before / After ---------- */
@property --pos { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.ba-section { background: var(--surface); }
.ba {
  --pos: 50%; --u: 1cqw; container-type: inline-size;
  position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow);
  cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; max-width: 1000px; margin-inline: auto;
}
.ba.hint { transition: --pos .9s var(--ease); }
.ba-pane { position: absolute; inset: 0; font-size: calc(var(--u) * 1.6); overflow: hidden; }
.ba-new { clip-path: inset(0 0 0 var(--pos)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.35); z-index: 3; pointer-events: none; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; box-shadow: 0 8px 24px -6px rgba(0,0,0,.4); transition: transform .3s var(--ease); }
.ba:hover .ba-knob { transform: scale(1.1); }
.ba:focus-within .ba-knob { outline: 3px solid var(--accent); outline-offset: 3px; }
.ba-knob svg { width: 26px; height: 26px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; margin: 0; }
.ba-tag { position: absolute; bottom: 16px; z-index: 2; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; pointer-events: none; }
.ba-tag.old { left: 16px; background: rgba(0,0,0,.65); color: #fff; }
.ba-tag.new { right: 16px; background: var(--accent); color: #fff; }

/* the "old" website */
.ba-old { background: #c9c5bc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M0 0h4v4H0zM4 4h4v4H4z' fill='%23bdb8ae'/%3E%3C/svg%3E"); font-family: "Times New Roman", Times, serif; color: #000; }
.o-top { background: linear-gradient(#000080, #1e5ae0); border-bottom: .25em ridge #c0c0c0; padding: 1em 1.4em .8em; text-align: center; }
.o-logo { font-family: "Comic Sans MS", "Comic Sans", cursive; font-size: 2.6em; font-weight: 700; color: #ffea00; text-shadow: .1em .1em 0 #ff0000; }
.o-scroll { display: block; overflow: hidden; white-space: nowrap; color: #00ff00; font-family: "Courier New", monospace; font-weight: 700; margin-top: .3em; }
.o-scroll span { display: inline-block; padding-left: 100%; animation: o-marquee 14s linear infinite; }
@keyframes o-marquee { to { transform: translateX(-100%); } }
.o-body { display: grid; grid-template-columns: 14em 1fr; gap: 1em; padding: 1em 1.4em; }
.o-nav { background: #fff; border: .2em outset #ddd; padding: .6em .8em; line-height: 1.9; }
.o-nav a { display: block; color: #0000ee; text-decoration: underline; }
.o-nav a:nth-child(2) { color: #551a8b; }
.o-main { background: #fffff0; border: .2em inset #ddd; padding: .8em 1.2em; }
.o-main h3 { font-family: "Times New Roman", serif; color: #cc0000; font-size: 1.7em; text-align: center; margin: 0 0 .3em; letter-spacing: 0; }
.o-main p { margin: 0 0 .6em; }
.o-row { display: flex; gap: 1em; align-items: flex-start; }
.o-row img { width: 11em; height: 7.5em; object-fit: cover; border: .25em ridge #999; filter: saturate(.6) contrast(.9); flex: none; }
.o-counter { display: inline-block; background: #000; color: #0f0; font-family: "Courier New", monospace; padding: .1em .5em; border: .15em inset #666; letter-spacing: .2em; }
.o-small { font-size: .8em; color: #555; }
.o-construct { margin-top: .6em; height: 1.2em; background: repeating-linear-gradient(45deg, #ffcc00 0 .8em, #000 .8em 1.6em); }

/* the "new" website */
.ba-new { background: #fff; color: #1b1b2a; font-family: var(--font-body); }
.n-nav { display: flex; align-items: center; justify-content: space-between; padding: 1.2em 2.4em; }
.n-nav b { font-family: var(--font-head); font-size: 1.5em; letter-spacing: -.02em; }
.n-nav b i { font-style: normal; color: #c2702b; }
.n-nav span:not(.n-btn) { color: #6b6f85; }
.n-btn { display: inline-block; background: #c2702b; color: #fff; font-weight: 600; padding: .65em 1.4em; border-radius: 5em; }
.n-hero { margin: 0 2.4em; height: 23em; border-radius: 1.4em; padding: 3em 3em 3em 52%; color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background-size: cover; background-position: center; }
.n-hero small { letter-spacing: .2em; text-transform: uppercase; font-size: .8em; opacity: .9; }
.n-hero strong { font-family: var(--font-head); font-size: 3.2em; line-height: 1.05; max-width: 9em; margin: .35em 0; letter-spacing: -.03em; }
.n-hero p { max-width: 24em; opacity: .9; margin: 0 0 1.4em; }
.n-feats { display: flex; justify-content: flex-end; gap: 2.2em; padding: 1.5em 2.4em; font-weight: 600; }
.n-feats span { display: flex; align-items: center; gap: .6em; }
.n-feats span::before { content: ""; width: .7em; height: .7em; border-radius: 50%; background: #c2702b; box-shadow: 0 0 0 .3em rgba(194,112,43,.18); }

/* ---------- Price calculator ---------- */
.calc-section { background: var(--soft); }
.calc { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.calc-options { display: grid; gap: 18px; }
.calc-step { margin: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 22px; padding: 24px 26px; min-width: 0; }
.calc-step[hidden] { display: none; }
.calc-step legend { float: left; width: 100%; padding: 0; margin-bottom: 16px; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--ink); display: flex; align-items: center; gap: 12px; }
.calc-step legend span { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .85rem; flex: none; }
.calc-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; clear: both; }
.calc-type input, .calc-check input, .calc-switch input { position: absolute; opacity: 0; pointer-events: none; }
.calc-type { position: relative; }
.calc-type > span { display: flex; flex-direction: column; gap: 2px; height: 100%; border: 2px solid var(--line); border-radius: 16px; padding: 16px; cursor: pointer; transition: border-color .25s, background .25s, transform .25s var(--ease), box-shadow .25s; }
.calc-type > span:hover { border-color: #c9bfff; transform: translateY(-2px); }
.calc-type svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 8px; }
.calc-type b { color: var(--ink); font-size: .98rem; line-height: 1.3; }
.calc-type small { color: var(--muted); font-size: .84rem; }
.calc-type em { font-style: normal; font-weight: 700; color: var(--accent); font-size: .88rem; margin-top: 6px; }
.calc-type input:checked + span { border-color: var(--accent); background: #f7f5ff; box-shadow: 0 10px 24px -14px var(--accent); }
.calc-type input:focus-visible + span, .calc-check input:focus-visible + span, .calc-switch input:focus-visible ~ .sw { outline: 3px solid rgba(91,61,245,.35); outline-offset: 2px; }
.calc-range { display: flex; align-items: center; gap: 18px; clear: both; }
.calc-range input { flex: 1; accent-color: var(--accent); height: 6px; cursor: pointer; }
.calc-range output { min-width: 110px; text-align: center; font-family: var(--font-head); font-weight: 700; color: var(--ink); background: var(--soft); border-radius: 12px; padding: 8px 12px; }
.calc-hint { font-size: .86rem; color: var(--muted); margin: 10px 0 0; }
.calc-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; clear: both; }
.calc-check { position: relative; }
.calc-check[hidden] { display: none; }
.calc-check > span { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; font-size: .93rem; font-weight: 500; transition: border-color .25s, background .25s; height: 100%; }
.calc-check > span::before { content: ""; width: 20px; height: 20px; border-radius: 6px; border: 2px solid #cfcadf; flex: none; transition: all .2s; background: #fff center / 12px no-repeat; }
.calc-check > span em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--accent); white-space: nowrap; }
.calc-check input:checked + span { border-color: var(--accent); background: #f7f5ff; }
.calc-check input:checked + span::before { background-color: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.calc-toggles { display: grid; gap: 12px; clear: both; }
.calc-switch { position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer; font-weight: 500; color: var(--ink); }
.calc-switch small { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; }
.calc-switch .sw { width: 46px; height: 26px; border-radius: 999px; background: #d9d6e6; position: relative; flex: none; transition: background .25s; }
.calc-switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: transform .3s var(--ease); }
.calc-switch input:checked ~ .sw { background: var(--accent); }
.calc-switch input:checked ~ .sw::after { transform: translateX(20px); }
.calc-summary { position: sticky; top: 100px; background: var(--ink); color: #c9cbe0; border-radius: 26px; padding: 32px; box-shadow: var(--shadow); overflow: hidden; isolation: isolate; }
.calc-summary::before { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(180,60,240,.45), transparent 65%); z-index: -1; }
.calc-label { font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #a898ff; }
.calc-total { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.8rem, 5vw, 3.6rem); color: #fff; line-height: 1.1; margin: 6px 0 4px; letter-spacing: -.03em; }
.calc-total.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.06); color: #ffd3c7; } }
.calc-monthly { color: #ffb49f; font-weight: 600; font-size: .95rem; }
.calc-lines { list-style: none; padding: 16px 0 0; margin: 16px 0; border-top: 1px solid rgba(255,255,255,.12); display: grid; gap: 8px; font-size: .92rem; }
.calc-lines li { display: flex; justify-content: space-between; gap: 12px; animation: fadeDown .35s var(--ease); }
.calc-lines b { color: #fff; font-weight: 600; white-space: nowrap; }
.calc-time { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.07); border-radius: 14px; padding: 12px 14px; font-size: .93rem; margin-bottom: 18px; }
.calc-time svg { width: 20px; height: 20px; color: var(--accent-3); flex: none; }
.calc-time b { color: #fff; }
.calc-summary .btn { width: 100%; }
.calc-note { font-size: .8rem; color: #8f93ad; margin: 12px 0 0; text-align: center; }

/* ---------- Animated section titles ---------- */
.reveal.split { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); }
.split.visible .w > span { transform: none; }

/* ---------- WhatsApp chat bubble ---------- */
.wa-bubble { position: fixed; right: 20px; bottom: 92px; z-index: 41; width: 300px; background: var(--surface); border-radius: 20px; box-shadow: 0 24px 60px -18px rgba(14,17,32,.45); overflow: hidden; opacity: 0; transform: translateY(16px) scale(.96); transform-origin: bottom right; transition: opacity .35s, transform .45s var(--ease); }
.wa-bubble.show { opacity: 1; transform: none; }
.wa-head { display: flex; align-items: center; gap: 12px; background: #075e54; color: #fff; padding: 14px 44px 14px 16px; }
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-family: var(--font-head); font-size: .75rem; font-weight: 700; position: relative; flex: none; }
.wa-avatar::after { content: ""; position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #25d366; border: 2px solid #075e54; }
.wa-head b { display: block; font-size: .95rem; }
.wa-head small { font-size: .78rem; opacity: .8; }
.wa-close { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.wa-close:hover { background: rgba(255,255,255,.3); }
.wa-body { background: #ece5dd; padding: 16px; min-height: 76px; }
.wa-msg { display: inline-block; background: #fff; border-radius: 0 12px 12px 12px; padding: 10px 14px; font-size: .93rem; color: var(--ink); box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-msg p { margin: 0; display: none; }
.wa-typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.wa-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa0b0; animation: typing 1s infinite; }
.wa-typing i:nth-child(2) { animation-delay: .15s; }
.wa-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.wa-bubble.typed .wa-typing { display: none; }
.wa-bubble.typed .wa-msg p { display: block; animation: fadeDown .35s var(--ease); }
.wa-cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 16px 16px; background: #25d366; color: #fff; font-weight: 600; border-radius: 999px; padding: 11px; transition: background .2s; }
.wa-cta:hover { background: #1ebe5b; }
.wa-cta svg { width: 18px; height: 18px; }

/* ---------- Sticky mobile action bar ---------- */
.mobile-bar { display: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.from-left { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.zoom { transform: scale(.92); }
.reveal.visible { opacity: 1; transform: none; }

/* Reduced motion: keep fades, colour shifts and typing; drop large movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .float-card, .wa-float::before { animation: none; }
  .reveal, .reveal.from-left, .reveal.from-right, .reveal.zoom { transform: none; }
  .browser { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .packages-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 34px; }
  .extras { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .timeline::before, .timeline::after { display: none; }
  .contact-wrap { padding: 50px; gap: 40px; }
}
/* The full menu needs ~1100px; below that it becomes the ☰ menu */
@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto 0; background: var(--bg); flex-direction: column; align-items: stretch;
    gap: 0; padding: 12px 16px 24px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0,0,0,.2);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s;
  }
  .menu-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child, .nav-links li:nth-last-child(2) { border: 0; }
  .nav-links a:not(.btn) { display: block; padding: 14px 4px; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .lang-switch { margin: 14px 0 6px; align-self: flex-start; }
  .nav-links .btn { margin-top: 8px; width: 100%; }
}
@media (max-width: 900px) {
  .hero { padding: 36px 0 80px; }
  .hero-grid, .about-grid, .faq-grid, .contact-wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 540px; margin-inline: auto; width: 100%; }
  .float-card.one { left: -6px; }
  .float-card.two { right: -6px; }
  section { padding: 80px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .services-grid, .work-grid, .timeline, .features, .footer-grid { grid-template-columns: 1fr; }
  .contact-wrap { padding: 34px 20px; border-radius: 24px; }
  .contact-form { padding: 26px 20px; }
  .float-card { font-size: .78rem; padding: 9px 12px; }
  .float-card .ico { width: 32px; height: 32px; }
  .about-images img:first-child { min-height: 300px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .price strong { font-size: 2.4rem; }
}

/* ---------- Responsive: new sections ---------- */
@media (max-width: 1024px) {
  .calc { grid-template-columns: 1fr; }
  .calc-summary { position: relative; top: 0; }
}
@media (max-width: 900px) {
  .demo-controls { justify-content: center; }
}
@media (max-width: 640px) {
  .ba { aspect-ratio: 3 / 4.3; --u: 2.1cqw; border-radius: 18px; }
  .o-body { grid-template-columns: 1fr; }
  .o-nav { display: flex; flex-wrap: wrap; gap: 0 1em; line-height: 1.6; }
  .o-row img { width: 8em; height: 6em; }
  .n-nav { padding: 1em 1.4em; }
  .n-nav span:not(.n-btn) { display: none; }
  .n-hero { margin: 0 1.4em; height: 22em; padding: 1.6em 1.3em 1.6em 46%; }
  .n-hero strong { font-size: 1.9em; }
  .n-feats { flex-direction: column; align-items: flex-end; gap: .7em; padding: 1.4em; }
  .ba-knob { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .calc-types, .calc-extras { grid-template-columns: 1fr; }
  .calc-step { padding: 20px 18px; }
  .calc-summary { padding: 26px 22px; }
  .demo-tabs button { padding: 6px 9px; font-size: .78rem; }
  .device-switch button { padding: 6px 8px; }
  .wa-float, .wa-bubble { display: none; }
  .mobile-bar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; gap: 8px; padding: 8px;
    background: rgba(14,17,32,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 18px;
    box-shadow: 0 16px 40px -12px rgba(0,0,0,.5); transform: translateY(150%); transition: transform .45s var(--ease);
  }
  .mobile-bar.show { transform: none; }
  .mobile-bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; color: #fff; font-weight: 600; font-size: .9rem; padding: 12px 6px; border-radius: 12px; background: rgba(255,255,255,.1); }
  .mobile-bar a.wa { background: #25d366; }
  .mobile-bar a.primary { background: var(--accent); }
  .mobile-bar svg { width: 18px; height: 18px; }
  .site-footer { padding-bottom: 110px; }
}

.calc-link { color: var(--accent); font-weight: 600; font-size: 1rem; border-bottom: 2px solid rgba(91,61,245,.25); transition: border-color .2s; }
.calc-link:hover { border-color: var(--accent); }

/* ---------- Car finale in the hero ---------- */
@property --reveal { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
.car-layer { --reveal: 0%; position: absolute; left: 0; top: 0; width: 560px; z-index: 6; pointer-events: none; visibility: hidden; will-change: transform; }
.car-layer.on { visibility: visible; }
.car-wrap { position: relative; aspect-ratio: 1000 / 320; }
.car-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* 1. line of light */
.car-line { position: absolute; left: -4%; right: -4%; top: 58%; height: 3px; margin-top: -1.5px; border-radius: 3px; background: linear-gradient(90deg, transparent, #fff 18%, #fff 82%, transparent); box-shadow: 0 0 10px 3px rgba(168,152,255,.95), 0 0 40px 10px rgba(180,60,240,.6); opacity: 0; transform: scaleX(.25); transition: opacity .3s, transform .7s var(--ease); }
.car-layer.line .car-line { opacity: 1; transform: scaleX(1); }
.car-layer.wire .car-line { opacity: 0; transform: scaleX(1.1); transition-duration: 1s; }

/* 2. neon blueprint */
.car-wire { filter: drop-shadow(0 0 3px rgba(190,178,255,.95)) drop-shadow(0 0 12px rgba(91,61,245,.7)); transition: opacity .7s; }
.car-wire path { fill: none; stroke: #c4b8ff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease); }
.car-wire path:nth-child(n+6) { transition-delay: .25s; }
.car-layer.wire .car-wire path { stroke-dashoffset: 0; }
.car-layer.solid .car-wire { opacity: 0; }

/* 3. scan beam reveals the real car */
.car-solid { position: absolute; inset: 0; clip-path: inset(-80% calc(100% - var(--reveal)) -80% -80%); }
.car-layer.scan { --reveal: 100%; transition: --reveal 1.1s cubic-bezier(.45, 0, .2, 1); }
.car-scan { position: absolute; top: -22%; bottom: -12%; left: var(--reveal); width: 3px; margin-left: -1.5px; background: linear-gradient(transparent, #fff 18%, #fff 82%, transparent); border-radius: 3px; box-shadow: 0 0 8px 3px #fff, 0 0 26px 10px rgba(168,152,255,.9), 0 0 70px 26px rgba(180,60,240,.5); opacity: 0; transition: opacity .3s; }
.car-scan::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 140px; background: linear-gradient(90deg, rgba(168,152,255,0), rgba(168,152,255,.28)); -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); }
.car-layer.scan .car-scan { opacity: 1; }
.car-layer.solid .car-scan { opacity: 0; }
.car-scan i { position: absolute; left: -2px; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px #c4b8ff; animation: car-spark .5s ease-out infinite; }
.car-scan i:nth-child(1) { top: 20%; }
.car-scan i:nth-child(2) { top: 38%; animation-delay: -.1s; }
.car-scan i:nth-child(3) { top: 52%; animation-delay: -.25s; }
.car-scan i:nth-child(4) { top: 66%; animation-delay: -.35s; }
.car-scan i:nth-child(5) { top: 80%; animation-delay: -.15s; }
.car-scan i:nth-child(6) { top: 92%; animation-delay: -.4s; }
@keyframes car-spark { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(-26px, -10px) scale(.2); opacity: 0; } }
.car-flash { position: absolute; inset: -40% -10%; background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(196,184,255,.5) 45%, transparent 75%); opacity: 0; pointer-events: none; }
.car-layer.solid .car-flash { animation: car-flash-out .8s ease-out; }
@keyframes car-flash-out { 0% { opacity: 0; } 15% { opacity: .9; } 100% { opacity: 0; } }

/* 4. paint glint, lights, underglow */
.car .car-glint { transform: translateX(-200px); }
.car-layer.glint .car-glint { animation: car-glint 1.2s var(--ease) forwards; }
@keyframes car-glint { to { transform: translateX(1400px); } }
.car .car-beam { opacity: 0; transition: opacity .3s; }
.car-layer.lights .car-beam { opacity: 1; animation: car-beam-flash .9s steps(1) 1; }
@keyframes car-beam-flash { 0% { opacity: 1; } 20% { opacity: 0; } 40% { opacity: 1; } 60% { opacity: 0; } 80% { opacity: 1; } }
.car-layer.lights .car-head { filter: drop-shadow(0 0 5px #fff6d0) drop-shadow(0 0 14px #fff6d0); }
.car-layer.lights .car-tail { filter: drop-shadow(0 0 6px #ff2d55) drop-shadow(0 0 12px #ff2d55); }
.car .car-underglow { opacity: 0; transition: opacity 1s; }
.car-layer.lights .car-underglow { opacity: .8; }

/* 5. engine, driving, braking */
.car .spin { transform-box: fill-box; transform-origin: center; }
.car-layer.driving .spin { animation: car-spin .16s linear infinite; }
@keyframes car-spin { to { transform: rotate(360deg); } }
.car-layer.rev .car-solid { animation: car-rev .1s linear 7; }
@keyframes car-rev { 50% { transform: translate(1px, -1.5px) rotate(-.25deg); } }
.car-layer.driving .car-solid { animation: car-bump .28s ease-in-out infinite; }
@keyframes car-bump { 50% { transform: translateY(-1.5px); } }
.car-layer.brake .car-solid { animation: car-brake .7s var(--ease); transform-origin: 12% 92%; }
@keyframes car-brake { 40% { transform: rotate(1.4deg); } }

.car-speed { position: absolute; left: 78%; top: 22%; width: 75%; height: 62%; opacity: 0; transition: opacity .25s; }
.car-layer.driving .car-speed { opacity: 1; }
.car-speed i { position: absolute; left: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, rgba(180,60,240,.75), rgba(91,61,245,0)); animation: car-streak .32s linear infinite; }
.car-speed i:nth-child(1) { top: 5%; width: 70%; }
.car-speed i:nth-child(2) { top: 28%; width: 45%; animation-delay: -.1s; }
.car-speed i:nth-child(3) { top: 50%; width: 85%; animation-delay: -.2s; }
.car-speed i:nth-child(4) { top: 72%; width: 55%; animation-delay: -.05s; }
.car-speed i:nth-child(5) { top: 92%; width: 35%; animation-delay: -.25s; }
@keyframes car-streak { from { transform: translateX(-10%); opacity: 1; } to { transform: translateX(60%); opacity: 0; } }
.car-puffs { position: absolute; right: 1%; top: 64%; width: 60px; height: 30px; }
.car-puffs i { position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: rgba(140,140,170,.45); opacity: 0; }
.car-layer.rev .car-puffs i, .car-layer.driving .car-puffs i { animation: car-puff .7s ease-out infinite; }
.car-puffs i:nth-child(2) { animation-delay: .23s !important; }
.car-puffs i:nth-child(3) { animation-delay: .46s !important; }
@keyframes car-puff { from { opacity: .9; transform: translate(0, 0) scale(.4); } to { opacity: 0; transform: translate(50px, -14px) scale(1.8); } }

.car-tagline { position: absolute; left: -20%; right: -20%; top: 104%; margin: 0; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.05rem, 2vw, 1.45rem); color: var(--ink); letter-spacing: -.02em; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .6s var(--ease); }
.car-layer.tag .car-tagline { opacity: 1; transform: none; }

.hero-visual .float-card { transition: opacity .4s; }
.hero-visual.car-mode .float-card { opacity: 0; }

/* ---------- Legal pages & consent ---------- */
.legal { max-width: 780px; padding: 64px 0 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .2em; }
.legal-updated { color: var(--muted); font-size: .92rem; margin-bottom: 2em; }
.legal h2 { font-size: 1.3rem; margin: 2em 0 .6em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .45em; }
.legal a, .consent a, .footer-legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-page .site-footer { padding-top: 30px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 4px 0 16px; cursor: pointer; line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; cursor: pointer; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (min-width: 641px) { .footer-bottom { padding-right: 76px; } }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--accent); }

/* WhatsApp bubble: minimise to a small pill, message field */
.wa-close { display: grid; place-items: center; }
.wa-close svg { width: 16px; height: 16px; }
.wa-form { display: flex; gap: 8px; padding: 12px 14px 6px; background: #f0f2f5; }
.wa-form input { flex: 1; min-width: 0; font: inherit; font-size: .92rem; border: 0; border-radius: 999px; padding: 10px 14px; background: #fff; color: var(--ink); outline: none; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s; }
.wa-form input:focus { box-shadow: inset 0 0 0 1.5px #25d366; }
.wa-form button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; transition: background .2s, transform .2s; }
.wa-form button:hover { background: #1ebe5b; transform: scale(1.06); }
.wa-form button svg { width: 18px; height: 18px; }
.wa-note { margin: 0; padding: 4px 14px 12px; background: #f0f2f5; font-size: .74rem; color: var(--muted); text-align: center; }
.wa-pill { position: fixed; right: 92px; bottom: 28px; z-index: 41; display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: .9rem; cursor: pointer; box-shadow: 0 12px 30px -10px rgba(14,17,32,.35); animation: pill-in .45s var(--ease); transition: transform .25s var(--ease); }
.wa-pill:hover { transform: translateY(-3px); }
.wa-pill b { color: #128c4b; }
.wa-pill .wa-avatar { width: 34px; height: 34px; font-size: .62rem; color: #fff; }
.wa-pill .wa-avatar::after { border-color: #fff; width: 10px; height: 10px; }
@keyframes pill-in { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 640px) { .wa-pill { display: none; } }
.wa-pill[hidden] { display: none; }

/* ---------- Projects / portfolio ---------- */
.project { display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center; }
.project-media { position: relative; display: block; padding: 0 44px 56px 0; }
.project-browser { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .6s var(--ease); }
.project-browser img { width: 100%; height: auto; }
.project-admin { position: absolute; right: 0; bottom: 0; width: 56%; height: auto; border-radius: 14px; border: 4px solid #fff; box-shadow: var(--shadow); transition: transform .6s var(--ease); }
.project:hover .project-browser { transform: translateY(-6px); }
.project:hover .project-admin { transform: translate(8px, -14px); }
.tag-pill { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--accent); background: var(--soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.project-info h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.project-info p { color: var(--muted); }
.project-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: .95rem; font-weight: 500; }
.project-list li { display: flex; gap: 8px; align-items: flex-start; }
.project-list svg { width: 20px; height: 20px; color: #fff; background: var(--accent-3); border-radius: 50%; padding: 4px; flex: none; margin-top: 2px; }
.project-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.project-note { font-size: .82rem; margin: 16px 0 0; }
@media (max-width: 900px) { .project { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 640px) { .project-list { grid-template-columns: 1fr; } .project-media { padding: 0 20px 32px 0; } }
.project + .project { margin-top: 110px; }
.project.reverse { grid-template-columns: 1fr 1.15fr; }
.project.reverse .project-media { order: 2; padding: 0 0 56px 44px; }
.project.reverse .project-admin { right: auto; left: 0; }
.project.reverse:hover .project-admin { transform: translate(-8px, -14px); }
@media (max-width: 900px) { .project.reverse { grid-template-columns: 1fr; } .project.reverse .project-media { order: 0; } .project + .project { margin-top: 70px; } }
@media (max-width: 640px) { .project.reverse .project-media { padding: 0 0 32px 20px; } }

.m-hero { text-shadow: 0 1px 14px rgba(0,0,0,.45); }
.m-hero .m-btn { text-shadow: none; }
