/* Apki App Software Solutions: premium, quiet, product-first */
:root {
  color-scheme: light;
  --bg: #fbfbfd;
  --gray: #f5f5f7;
  --white: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --hair: #d2d2d7;
  --hair-soft: rgba(0, 0, 0, 0.08);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --violet: #6a4cff;
  --grad: linear-gradient(100deg, #7c5cff 0%, #5b6cff 40%, #1ea7e8 80%, #22d3ee 100%);
  --grad-light: linear-gradient(100deg, #b6a4ff 0%, #8fa0ff 40%, #5ccff5 100%);
  --radius: 28px;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 52px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: rgba(0, 113, 227, 0.18); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14px; transition: top 0.2s; }
.skip-link:focus { top: 10px; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-light { background-image: var(--grad-light); }
.muted-h { color: var(--ink-3); }

/* ---------- NAV ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: 52px;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-color: var(--hair-soft); background: rgba(251, 251, 253, 0.8); }
.nav-inner { max-width: 1060px; height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand-mark { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 30px; margin-left: auto; font-size: 13px; letter-spacing: -0.01em; }
.nav-links a { color: rgba(29, 29, 31, 0.8); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { font-size: 13px; font-weight: 500; color: #fff; background: var(--blue); padding: 6px 14px; border-radius: 980px; transition: background 0.2s; white-space: nowrap; }
.nav-cta:hover { background: var(--blue-hover); }
.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -12px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- BUTTONS & LINKS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 980px; border: 0; cursor: pointer;
  font: 400 17px/1.2 var(--font); letter-spacing: -0.022em; color: #fff; background: var(--blue);
  transition: background 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: var(--blue-hover); }
.btn:active { transform: scale(0.98); }
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.btn-secondary { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.btn-secondary:hover { background: var(--blue); color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: 2px; color: var(--link); font-size: 17px; }
.link-arrow::after {
  content: ""; width: 0.6em; height: 0.6em; margin-left: 2px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 1.5 6.5 5 3 8.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 1.5 6.5 5 3 8.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.25s var(--ease);
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-arrow:hover::after { transform: translateX(2px); }

/* ---------- HERO ---------- */
.hero { padding: clamp(104px, 14vh, 148px) var(--gutter) 0; text-align: center; background: var(--bg); overflow: hidden; }
.hero-copy { max-width: 900px; margin: 0 auto; }
.hero-kicker { font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; }
.hero h1 { margin-top: 10px; font-size: clamp(44px, 7.6vw, 96px); font-weight: 700; line-height: 1.04; letter-spacing: -0.045em; }
.hero-sub { max-width: 640px; margin: 22px auto 0; font-size: clamp(19px, 2vw, 24px); line-height: 1.38; color: var(--ink-2); letter-spacing: -0.015em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 30px; margin-top: 34px; }

/* ---------- SHOWCASE (pinned 3D sequence) ---------- */
.showcase { position: relative; height: 340vh; background: var(--bg); }
.showcase-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease); }
#scene.ready { opacity: 1; }
.captions { position: absolute; left: 0; right: 0; bottom: max(5vh, 28px); display: grid; justify-items: center; padding: 0 var(--gutter); pointer-events: none; }
.showcase-sticky::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26vh; background: linear-gradient(to bottom, rgba(251, 251, 253, 0), var(--bg) 62%); pointer-events: none; z-index: 1; }
.captions { z-index: 2; }
.no-webgl .showcase-sticky::after, .reduced .showcase-sticky::after { display: none; }
.cap {
  grid-area: 1 / 1; max-width: 640px; text-align: center; text-wrap: balance;
  font-size: clamp(19px, 2vw, 24px); line-height: 1.35; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-3);
  opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.cap strong { color: var(--ink); font-weight: 600; }
.cap.on { opacity: 1; transform: none; }
.no-webgl .showcase, .reduced .showcase { height: auto; }
.no-webgl .showcase-sticky, .reduced .showcase-sticky { position: relative; height: clamp(320px, 62vw, 720px); }
.no-webgl .captions, .reduced .captions { position: static; gap: 14px; padding-bottom: 64px; }
.no-webgl .cap, .reduced .cap { grid-area: auto; opacity: 1; transform: none; }
.no-webgl .showcase-sticky { height: auto; }
.no-webgl .stage-fallback { position: relative; height: clamp(300px, 56vw, 640px); }

/* load-in for hero copy */
.intro { opacity: 0; transform: translateY(18px); animation: intro 1.2s var(--ease) forwards; }
.intro:nth-child(2) { animation-delay: 0.08s; }
.intro:nth-child(3) { animation-delay: 0.2s; }
.intro:nth-child(4) { animation-delay: 0.32s; }
@keyframes intro { to { opacity: 1; transform: none; } }

/* Static fallback when WebGL isn't available */
.stage-fallback { display: none; position: absolute; inset: 0; }
.no-webgl .stage-fallback { display: block; }
.fb-laptop { position: absolute; left: 50%; bottom: 14%; width: min(74%, 760px); aspect-ratio: 16 / 10.4; transform: translateX(-52%); border-radius: 18px 18px 6px 6px; background: #1d1d1f; padding: 1.4%; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.45); }
.fb-laptop::after { content: ""; position: absolute; left: -7%; right: -7%; bottom: -4.5%; height: 4.5%; border-radius: 0 0 14px 14px; background: linear-gradient(#e3e3e8, #b9b9c0); }
.fb-screen { width: 100%; height: 100%; border-radius: 10px; background: radial-gradient(60% 80% at 70% 30%, #c9bdff 0%, transparent 60%), radial-gradient(50% 70% at 20% 80%, #b6ecfb 0%, transparent 60%), #fff; }
.fb-phone { position: absolute; right: 12%; bottom: 8%; width: min(17%, 170px); aspect-ratio: 9 / 19.5; border-radius: 22% / 10%; background: #2a2a2e; padding: 2.4%; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.5); }
.fb-phone-screen { width: 100%; height: 100%; border-radius: 19% / 8.6%; background: linear-gradient(160deg, #7c5cff, #1ea7e8 70%, #22d3ee); }

/* ---------- STATEMENT ---------- */
.statement { background: #000; padding: clamp(110px, 16vw, 200px) var(--gutter); }
.statement-text { max-width: 980px; margin: 0 auto; font-size: clamp(30px, 4.6vw, 56px); line-height: 1.12; font-weight: 600; letter-spacing: -0.035em; color: #f5f5f7; }
.statement-text .w { color: #424245; transition: color 0.5s ease; }
.statement-text .w.lit { color: #f5f5f7; }

/* ---------- SECTIONS ---------- */
.section { padding: clamp(96px, 12vw, 160px) var(--gutter); }
.section-head { max-width: var(--maxw); margin: 0 auto clamp(48px, 6vw, 80px); }
.section-head.center { text-align: center; }
.kicker { font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; color: var(--violet); margin-bottom: 12px; letter-spacing: -0.01em; }
.kicker-light { color: #a99bff; }
.section-head h2 { font-size: clamp(40px, 5.8vw, 72px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 700; }
.section-sub { margin: 20px auto 0; max-width: 560px; font-size: clamp(19px, 1.8vw, 21px); color: var(--ink-2); }

/* ---------- SERVICES BENTO ---------- */
.services { background: var(--gray); }
.bento { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile {
  position: relative; grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(28px, 3vw, 40px); border-radius: var(--radius); background: var(--white); overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.tile:hover { transform: scale(1.012); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.25); }
.tile h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; margin-top: 6px; }
.tile p:not(.tile-kicker) { color: var(--ink-2); margin-top: 12px; max-width: 42ch; }
.tile .link-arrow { margin-top: auto; padding-top: 22px; }
.tile-kicker { font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; }
.tile-dark { background: #000; color: #f5f5f7; }
.tile-dark p:not(.tile-kicker), .tile-dark .tile-kicker { color: #a1a1a6; }
.tile-dark .link-arrow { color: #2997ff; }

.glyph { width: 56px; height: 56px; margin-bottom: 26px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg, #f1eeff, #e4f6fd); }
.glyph svg { width: 28px; height: 28px; fill: none; stroke: var(--violet); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.glyph-play { background: var(--grad); }
.glyph-play svg { fill: #fff; stroke: #fff; stroke-width: 1; }

/* Websites: big tile with browser mock */
.tile-web { grid-column: span 4; min-height: 520px; flex-direction: row; gap: 32px; align-items: stretch; }
.tile-web .tile-copy { flex: 0 0 44%; display: flex; flex-direction: column; align-items: flex-start; }
.tile-web h3, .tile-mobile h3 { font-size: clamp(28px, 3vw, 40px); }
.mock-browser { flex: 1; align-self: center; margin-right: calc(clamp(28px, 3vw, 40px) * -1 - 60px); border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 30px 60px -30px rgba(40, 30, 110, 0.35); overflow: hidden; transition: transform 0.8s var(--ease); }
.tile-web:hover .mock-browser { transform: translateX(-10px); }
.mb-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #f5f5f7; border-bottom: 1px solid #e8e8ed; }
.mb-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.mb-bar i:nth-child(2) { background: #febc2e; }
.mb-bar i:nth-child(3) { background: #28c840; }
.mb-bar span { flex: 0 1 46%; height: 18px; margin-left: 16px; border-radius: 6px; background: #e8e8ed; }
.mb-body { padding: 26px; display: grid; gap: 18px; }
.mb-hero { position: relative; height: 200px; border-radius: 12px; padding: 30px 26px; background: radial-gradient(70% 90% at 85% 20%, #c8bcff 0%, transparent 65%), radial-gradient(60% 80% at 60% 110%, #aee9fa 0%, transparent 60%), #f7f7fb; overflow: hidden; }
.mb-hero b { display: block; height: 16px; width: 54%; border-radius: 5px; background: #1d1d1f; }
.mb-hero b + b { width: 38%; margin-top: 10px; background: #1d1d1f; opacity: 0.85; }
.mb-hero em { display: block; width: 88px; height: 28px; margin-top: 22px; border-radius: 980px; background: var(--blue); }
.mb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mb-cards span { height: 92px; border-radius: 10px; background: #f5f5f7; }
.mb-cards span:nth-child(2) { background: linear-gradient(150deg, #efeaff, #e3f5fc); }

.tile-half { grid-column: span 3; }

/* Mobile: tall dark tile with phone */
.tile-mobile { grid-row: span 2; min-height: 520px; }
.tile-mobile .tile-copy { margin-bottom: 36px; }
.mock-phone {
  position: relative; width: 72%; max-width: 250px; aspect-ratio: 9 / 19.2; margin: auto auto -120px; top: 0; padding: 18px 14px;
  border-radius: 40px; background: linear-gradient(165deg, #6d5cff 0%, #3b6cf6 45%, #11a8d8 100%);
  box-shadow: 0 0 0 7px #2c2c2e, 0 0 0 8px #48484a, 0 40px 80px -20px rgba(80, 100, 255, 0.45);
  transition: transform 0.8s var(--ease);
}
.tile-mobile:hover .mock-phone { transform: translateY(-12px); }
.mp-island { width: 34%; height: 20px; margin: 0 auto 22px; border-radius: 20px; background: #000; }
.mp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px 10px; }
.mp-grid i, .mp-dock i { aspect-ratio: 1; border-radius: 26%; background: rgba(255, 255, 255, 0.9); }
.mp-grid i:nth-child(3n + 1) { background: linear-gradient(145deg, #fff, #dcd4ff); }
.mp-grid i:nth-child(4n + 2) { background: linear-gradient(145deg, #ffd6ec, #fff); }
.mp-grid i:nth-child(5n) { background: linear-gradient(145deg, #d4f6ff, #fff); }
.mp-dock { position: absolute; left: 10px; right: 10px; bottom: 110px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 10px; border-radius: 26px; background: rgba(255, 255, 255, 0.22); backdrop-filter: blur(10px); }

.tile-ad { background: radial-gradient(120% 90% at 100% 0%, #241a4f 0%, #000 60%); }

/* ---------- PROCESS ---------- */
.process { background: var(--white); }
.process-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.process-head { position: sticky; top: 120px; margin: 0; }
.process-sub { margin-top: 20px; max-width: 30ch; font-size: clamp(19px, 1.6vw, 21px); color: var(--ink-2); }
.process-meter { position: relative; width: 2px; height: 120px; margin-top: 36px; border-radius: 2px; background: var(--hair); overflow: hidden; }
.process-meter span { position: absolute; inset: 0; background: linear-gradient(#7c5cff, #22c7ee); transform: scaleY(0); transform-origin: top; transition: transform 0.3s linear; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding: 44px 0 48px; border-top: 1px solid var(--hair); opacity: 0.3; transition: opacity 0.6s var(--ease); }
.step:last-child { border-bottom: 1px solid var(--hair); }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.step.active { opacity: 1; }
.step.active::before { transform: scaleX(1); }
.step-num { display: block; font-size: 14px; font-weight: 600; color: var(--violet); margin-bottom: 14px; letter-spacing: -0.005em; }
.step h3 { font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -0.04em; font-weight: 700; line-height: 1.05; }
.step > p { margin-top: 14px; color: var(--ink-2); font-size: clamp(17px, 1.5vw, 19px); max-width: 44ch; }
.step-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.step-points li { font-size: 14px; padding: 7px 14px; border-radius: 980px; background: var(--gray); color: var(--ink); }

/* ---------- WHY (dark) ---------- */
.why { background: #000; color: #f5f5f7; padding: clamp(110px, 14vw, 180px) var(--gutter); }
.why-inner { max-width: var(--maxw); margin: 0 auto; }
.why .section-head { margin-left: 0; }
.why-lead { max-width: 620px; margin-top: 24px; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; color: #a1a1a6; }
.why { position: relative; overflow: hidden; }
.why::before { content: ""; position: absolute; left: 50%; top: -30%; width: 120vw; height: 80%; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(124, 92, 255, 0.22), transparent 70%); pointer-events: none; }
.why-inner { position: relative; }


/* ---------- WHY CARDS ---------- */
.why-head { max-width: 760px; }
.why-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: clamp(8px, 2vw, 24px); }
.wcard {
  position: relative; grid-column: span 2; display: flex; flex-direction: column; gap: 28px; min-width: 0;
  padding: clamp(28px, 3vw, 36px); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, #1a1a1c 0%, #111112 100%);
}
.wcard::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(182, 164, 255, 0.35), rgba(255, 255, 255, 0.05) 35%, rgba(255, 255, 255, 0.03) 70%, rgba(92, 207, 245, 0.25)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.wcard-team { grid-column: span 4; }
.wcard-wide { grid-column: span 6; flex-direction: row; align-items: center; gap: clamp(28px, 5vw, 72px); }
.wcard-wide .wcopy { flex: 0 0 38%; }
.wkicker { font-size: 14px; font-weight: 600; color: #a99bff; margin-bottom: 8px; }
.wcard h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; color: #f5f5f7; }
.wcopy > p:not(.wkicker) { margin-top: 10px; color: #a1a1a6; max-width: 46ch; }
.wcopy .btn { margin-top: 24px; }
.btn-light { background: #f5f5f7; color: #1d1d1f; }
.btn-light:hover { background: #fff; }
.wviz { position: relative; margin-top: auto; border-radius: 18px; min-width: 0; }

/* One team: services drifting past */
.team-viz { height: 196px; display: grid; align-content: center; gap: 12px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.team-row { overflow: hidden; }
.team-track { display: flex; gap: 10px; width: max-content; animation: drift 38s linear infinite; }
.team-track.slow { animation-duration: 52s; }
.team-row.rev .team-track { animation-direction: reverse; }
.team-track span { padding: 10px 18px; border-radius: 980px; font-size: 15px; white-space: nowrap; color: #d2d2d7; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); }
.team-track span.hot { color: #fff; background: linear-gradient(110deg, rgba(124, 92, 255, 0.55), rgba(34, 199, 238, 0.45)); border-color: transparent; }
@keyframes drift { to { transform: translateX(-50%); } }
.team-mark { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 20px; display: grid; place-items: center; background: rgba(17, 17, 18, 0.94); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 50px -10px rgba(124, 92, 255, 0.6); }
.team-mark svg { width: 34px; height: 34px; }

/* Real person: chat */
.chat { padding: 14px; display: grid; gap: 8px; background: #0b141a; }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.chat-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #fff; background: var(--grad); }
.chat-head b { display: block; font-size: 14px; color: #e9edef; }
.chat-head small { display: block; font-size: 12px; color: #25d366; }
.bubble { position: relative; max-width: 86%; padding: 8px 11px 18px; border-radius: 12px; font-size: 14px; line-height: 1.35; color: #e9edef; }
.bubble time { position: absolute; right: 9px; bottom: 4px; font-size: 10px; color: rgba(233, 237, 239, 0.55); }
.bubble.in { justify-self: start; background: #202c33; border-top-left-radius: 4px; }
.bubble.out { justify-self: end; background: #005c4b; border-top-right-radius: 4px; }
.bubble.typing { display: flex; gap: 4px; padding: 12px 14px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: dot 1.2s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: 0.15s; } .bubble.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }
.js .wcard.reveal .bubble { opacity: 0; transform: translateY(8px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .wcard.in .bubble { opacity: 1; transform: none; }
.js .wcard.in .bubble.out { transition-delay: 0.6s; } .js .wcard.in .bubble.typing { transition-delay: 1.2s; }

/* Clear quotes: an itemised quote */
.quote { display: grid; place-items: center; padding: 22px 0 0; background: radial-gradient(80% 100% at 50% 0%, rgba(124, 92, 255, 0.25), transparent 70%); overflow: hidden; }
.quote-doc { width: 82%; padding: 18px 18px 14px; border-radius: 12px 12px 0 0; background: #f5f5f7; color: #1d1d1f; box-shadow: 0 -10px 40px -10px rgba(124, 92, 255, 0.4); }
.quote-top { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid #d2d2d7; }
.quote-top b { font-size: 15px; }
.quote-top span { font-size: 12px; color: #6e6e73; }
.quote ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.quote li { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; font-size: 13px; border-bottom: 1px dashed #d2d2d7; }
.quote li::after { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #34c759 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; transform: scale(0); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.wcard.in .quote li::after { transform: none; }
.wcard.in .quote li:nth-child(2)::after { transition-delay: 0.15s; } .wcard.in .quote li:nth-child(3)::after { transition-delay: 0.3s; } .wcard.in .quote li:nth-child(4)::after { transition-delay: 0.45s; }
.quote-foot { margin-top: 10px; font-size: 12px; font-weight: 600; color: #248a3d; }

/* Progress: milestone timeline */
.timeline { padding: 0 6px 8px; }
.tl-card { display: flex; align-items: center; gap: 12px; margin-bottom: 56px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); opacity: 0; transform: translateY(10px); transition: opacity 0.7s var(--ease) 1.4s, transform 0.7s var(--ease) 1.4s; }
.wcard.in .tl-card { opacity: 1; transform: none; }
.tl-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #22c7ee, #3f6df5); }
.tl-ico svg { width: 15px; height: 15px; fill: #fff; margin-left: 2px; }
.tl-card b { display: block; font-size: 14px; color: #f5f5f7; font-weight: 600; }
.tl-card small { display: block; font-size: 12px; color: #8e8e93; }
.tl-track { position: absolute; left: 6%; right: 6%; bottom: 46px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); }
.tl-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #7c5cff, #22c7ee); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) 0.2s; }
.wcard.in .tl-fill { transform: scaleX(0.66); }
.tl-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-size: 13px; color: #6e6e73; }
.tl-steps li { position: relative; display: grid; justify-items: center; gap: 12px; }
.tl-steps i { position: relative; z-index: 1; width: 17px; height: 17px; border-radius: 50%; background: #2c2c2e; box-shadow: 0 0 0 4px #141415; }
.tl-steps .done { color: #d2d2d7; }
.tl-steps .done i { background: #7c5cff; }
.tl-steps .now { color: #fff; font-weight: 600; }
.tl-steps .now i { background: #22c7ee; box-shadow: 0 0 0 4px #141415, 0 0 0 9px rgba(34, 199, 238, 0.25); animation: ping 2s infinite; }
@keyframes ping { 50% { box-shadow: 0 0 0 4px #141415, 0 0 0 13px rgba(34, 199, 238, 0); } }
.tl-steps em { position: absolute; top: -34px; font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 980px; color: #0b2830; background: #22c7ee; }

/* Every screen: device outlines */
.devices { height: 150px; display: flex; align-items: flex-end; justify-content: center; gap: 12px; padding-bottom: 6px; }
.dv { position: relative; display: block; border: 2px solid #48484a; border-radius: 10px; padding: 4px; background: #0d0d0e; }
.dv i { display: block; width: 100%; height: 100%; border-radius: 5px; background: linear-gradient(150deg, #7c5cff, #3f6df5 55%, #22c7ee); opacity: 0.9; }
.dv-desk { width: 140px; height: 96px; }
.dv-desk::after { content: ""; position: absolute; left: 50%; bottom: -16px; width: 40px; height: 14px; margin-left: -20px; border-radius: 0 0 6px 6px; background: #48484a; }
.dv-desk { margin-bottom: 16px; }
.dv-tab { width: 74px; height: 100px; border-radius: 12px; }
.dv-phone { width: 40px; height: 78px; border-radius: 11px; }
.dv::before { content: ""; position: absolute; right: -8px; top: -8px; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: #34c759 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; box-shadow: 0 0 0 3px #131314; transform: scale(0); transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s; }
.wcard.in .dv::before { transform: none; }
.wcard.in .dv-tab::before { transition-delay: 0.6s; } .wcard.in .dv-phone::before { transition-delay: 0.8s; }

/* After launch: update log */
.updates { flex: 1; width: 100%; margin-top: 0; }
.updates ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.updates li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); }
.updates li > i { width: 10px; height: 10px; border-radius: 50%; }
.updates .ok { background: #34c759; box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.15); }
.updates .info { background: #22c7ee; box-shadow: 0 0 0 4px rgba(34, 199, 238, 0.15); }
.updates b { display: block; font-size: 15px; font-weight: 600; color: #f5f5f7; }
.updates small { display: block; font-size: 13px; color: #8e8e93; }
.updates time { font-size: 12px; color: #6e6e73; white-space: nowrap; }

@media (max-width: 1068px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .wcard, .wcard-team { grid-column: span 1; }
  .wcard-team, .wcard-wide { grid-column: span 2; }
}
@media (max-width: 680px) {
  .why-grid { grid-template-columns: 1fr; gap: 14px; }
  .wcard, .wcard-team, .wcard-wide { grid-column: span 1; }
  .wcard-wide { flex-direction: column; align-items: stretch; }
  .wcard-wide .wcopy { flex: none; }
  .updates li { grid-template-columns: auto 1fr; }
  .updates time { grid-column: 2; }
}

/* ---------- FAQ ---------- */
.faq { background: var(--white); }
.faq .section-head { max-width: 880px; }
.faq-list { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--hair); }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -0.025em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 20px; height: 20px; background: var(--ink-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 3v14M3 10h14' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 3v14M3 10h14' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.45s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--link); }
.faq-body p { padding: 0 48px 28px 0; color: var(--ink-2); font-size: 17px; max-width: 70ch; }
.faq-body { overflow: hidden; }
.faq-more { margin-top: 32px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------- CONTACT ---------- */
.contact { background: var(--gray); }
.contact-grid { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.ccard { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: 20px; background: var(--white); font-size: 17px; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); word-break: break-word; }
.ccard:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -28px rgba(0, 0, 0, 0.3); }
.ccard small { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 2px; }
.ccard-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, #f1eeff, #e4f6fd); }
.ccard-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--violet); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ccard-wa { background: #e7f8ee; }
.ccard-wa svg { stroke: #15a34a; }
.hours { display: flex; align-items: center; gap: 10px; padding: 8px 6px; font-size: 14px; color: var(--ink-2); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.18); }

.form { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--white); display: grid; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; padding: 26px 16px 10px; border-radius: 12px; border: 1px solid var(--hair); background: #fff;
  font: 400 17px/1.3 var(--font); letter-spacing: -0.022em; color: var(--ink); outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field-select select { cursor: pointer; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%236e6e73' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 16px center / 12px no-repeat; }
.field label { position: absolute; left: 17px; top: 18px; font-size: 17px; color: var(--ink-3); pointer-events: none; transform-origin: left top; transition: transform 0.2s var(--ease), color 0.2s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label,
.field label.static { transform: translateY(-9px) scale(0.72); }
.field.invalid input, .field.invalid textarea { border-color: #e30000; background: #fff5f5; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.form-note { min-height: 1.4em; font-size: 14px; color: #248a3d; }
.form-note.error { color: #e30000; }


/* ---------- SERVICE ILLUSTRATIONS ---------- */
.viz { position: relative; width: 100%; height: 180px; margin-top: 28px; border-radius: 18px; overflow: hidden; }
.tile-half .viz { height: 200px; }

/* Web apps: mini dashboard */
.viz-dash { display: flex; gap: 10px; padding: 14px; background: var(--gray); }
.vd-side { width: 38px; display: grid; align-content: start; gap: 10px; padding: 10px 8px; border-radius: 10px; background: #fff; }
.vd-side i { height: 8px; border-radius: 4px; background: #e8e8ed; }
.vd-side i:first-child { height: 22px; border-radius: 7px; background: var(--grad); }
.vd-main { flex: 1; display: grid; grid-template-rows: auto 1fr; gap: 10px; min-width: 0; }
.vd-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vd-kpis span { height: 34px; border-radius: 9px; background: #fff; }
.vd-kpis span:first-child { background: linear-gradient(135deg, #efeaff, #e2f6fd); }
.vd-bars { display: flex; align-items: flex-end; gap: 8%; padding: 12px 14px 10px; border-radius: 10px; background: #fff; }
.vd-bars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: #e3e3ea; transform: scaleY(0.08); transform-origin: bottom; transition: transform 1.2s var(--ease); }
.vd-bars i:last-child { background: var(--grad); }
.tile.in .vd-bars i { transform: none; }
.vd-bars i:nth-child(2) { transition-delay: 0.06s; } .vd-bars i:nth-child(3) { transition-delay: 0.12s; } .vd-bars i:nth-child(4) { transition-delay: 0.18s; }
.vd-bars i:nth-child(5) { transition-delay: 0.24s; } .vd-bars i:nth-child(6) { transition-delay: 0.3s; } .vd-bars i:nth-child(7) { transition-delay: 0.36s; }

/* Ad clips: vertical video frames */
.viz-reel { display: flex; justify-content: center; align-items: center; overflow: visible; }
.vr-frame { position: relative; z-index: 2; width: 100px; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: linear-gradient(170deg, #ff5f9e 0%, #7c5cff 50%, #1ea7e8 100%); box-shadow: 0 20px 40px -16px rgba(124, 92, 255, 0.6); }
.vr-side { position: absolute; z-index: 1; width: 82px; left: calc(50% - 112px); opacity: 0.4; transform: rotate(-8deg); background: linear-gradient(170deg, #2a2a2e, #3a3a3e); box-shadow: none; }
.vr-right { left: calc(50% + 30px); transform: rotate(8deg); }
.vr-play { position: absolute; left: 50%; top: 42%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vr-play svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }
.vr-caption { position: absolute; left: 10px; right: 10px; bottom: 18px; display: grid; gap: 5px; }
.vr-caption b { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.9); }
.vr-caption b + b { width: 60%; opacity: 0.7; }
.vr-progress { position: absolute; left: 10px; right: 10px; bottom: 8px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.vr-progress i { position: absolute; inset: 0; background: #fff; transform-origin: left; animation: reel 5s linear infinite; }
@keyframes reel { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* AI documentation: a page being drafted */
.viz-doc { display: grid; place-items: center; background: linear-gradient(145deg, #f1eeff, #e6f6fd); }
.doc-page { width: 62%; max-width: 260px; height: 150px; margin-top: 46px; padding: 20px 20px 0; border-radius: 12px 12px 0 0; background: #fff; box-shadow: 0 20px 40px -24px rgba(60, 40, 160, 0.4); display: grid; align-content: start; gap: 9px; }
.doc-title { width: 55%; height: 10px; border-radius: 5px; background: var(--ink); margin-bottom: 4px; }
.doc-line { width: var(--w); height: 7px; border-radius: 4px; background: #e3e3ea; transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease); }
.tile.in .doc-line { transform: none; }
.doc-line:nth-child(2) { transition-delay: 0.2s; } .doc-line:nth-child(3) { transition-delay: 0.5s; } .doc-line:nth-child(4) { transition-delay: 0.8s; }
.doc-line:nth-child(5) { transition-delay: 1.1s; } .doc-line:nth-child(6) { transition-delay: 1.4s; background: linear-gradient(90deg, #c9bcff, #a6e6f8); }
.doc-ai { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 980px; background: rgba(255, 255, 255, 0.85); font-size: 13px; font-weight: 500; color: var(--violet); box-shadow: 0 6px 16px -8px rgba(60, 40, 160, 0.4); }
.doc-ai svg { width: 15px; height: 15px; fill: var(--violet); animation: twinkle 2.4s var(--ease) infinite; }
@keyframes twinkle { 50% { transform: scale(0.75) rotate(20deg); opacity: 0.6; } }

/* Consultancy: growth curve */
.viz-growth { background: var(--gray); padding: 18px 0 0; display: grid; grid-template-rows: 1fr auto; }
.viz-growth svg { width: 100%; height: 100%; display: block; }
.g-line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) 0.2s; }
.g-area { opacity: 0; transition: opacity 1s ease 1s; }
.tile.in .g-line { stroke-dashoffset: 0; }
.tile.in .g-area { opacity: 1; }
.g-steps { display: flex; justify-content: space-between; padding: 10px 18px 14px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.g-steps span:last-child { color: var(--violet); }

/* Business profiles: a profile card */
.viz-profile { display: grid; place-items: center; background: radial-gradient(80% 90% at 80% 0%, #ebe6ff 0%, transparent 60%), radial-gradient(70% 80% at 0% 100%, #dff4fc 0%, transparent 60%), var(--gray); }
.pf-card { position: relative; width: 72%; max-width: 290px; padding: 18px; border-radius: 16px; background: #fff; box-shadow: 0 24px 48px -28px rgba(40, 30, 110, 0.45); display: grid; grid-template-columns: 48px 1fr; gap: 10px 14px; align-items: center; transition: transform 0.8s var(--ease); }
.tile:hover .pf-card { transform: translateY(-4px) rotate(-1deg); }
.pf-avatar { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); }
.pf-avatar svg { width: 30px; height: 30px; }
.pf-text { display: grid; gap: 7px; }
.pf-text b { width: 70%; height: 9px; border-radius: 5px; background: var(--ink); }
.pf-text i { width: 46%; height: 7px; border-radius: 4px; background: #d2d2d7; }
.pf-badge { position: absolute; top: 14px; right: 14px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); }
.pf-badge svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pf-stars { grid-column: 1 / -1; font-size: 14px; letter-spacing: 3px; color: #ff9f0a; }
.pf-btns { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-btns em { height: 26px; border-radius: 980px; background: var(--blue); }
.pf-btns em + em { background: var(--gray); }

/* Landing pages: a page with a CTA being clicked */
.viz-landing { display: grid; place-items: end center; background: linear-gradient(160deg, #191629, #0b1a26); }
.tile:not(.tile-dark) .viz-landing { background: linear-gradient(145deg, #f1eeff, #e6f6fd); }
.ld-page { position: relative; width: 76%; max-width: 300px; height: 160px; padding: 14px 18px; border-radius: 12px 12px 0 0; background: #fff; box-shadow: 0 20px 40px -24px rgba(60, 40, 160, 0.4); display: grid; align-content: start; justify-items: center; gap: 9px; }
.ld-nav { width: 100%; display: flex; justify-content: space-between; margin-bottom: 10px; }
.ld-nav i { width: 18px; height: 18px; border-radius: 5px; background: var(--grad); }
.ld-nav i + i { width: 60px; height: 8px; margin-top: 5px; border-radius: 4px; background: #e3e3ea; }
.ld-h { width: 70%; height: 11px; border-radius: 6px; background: var(--ink); }
.ld-h2 { width: 48%; background: linear-gradient(90deg, #7c5cff, #22c7ee); }
.ld-cta { margin-top: 8px; padding: 7px 16px; border-radius: 980px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 600; animation: press 3.2s var(--ease) infinite; }
.ld-cursor { position: absolute; width: 18px; height: 18px; left: 66%; top: 100%; fill: var(--ink); stroke: #fff; stroke-width: 1.4; animation: cursor 3.2s var(--ease) infinite; }
@keyframes cursor { 0% { transform: translate(40px, 10px); opacity: 0; } 25% { opacity: 1; } 50%, 62% { transform: translate(-38px, -58px); } 100% { transform: translate(-38px, -58px); opacity: 0; } }
@keyframes press { 0%, 52% { transform: none; box-shadow: none; } 56% { transform: scale(0.94); } 62% { transform: none; box-shadow: 0 0 0 8px rgba(0, 113, 227, 0.18); } 80%, 100% { box-shadow: 0 0 0 14px rgba(0, 113, 227, 0); } }

/* ---------- CONTACT CHIPS ---------- */
.chips { border: 0; margin: 4px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; padding: 0; margin-bottom: 12px; font-size: 14px; color: var(--ink-2); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 16px; border-radius: 980px; border: 1px solid var(--hair); font-size: 15px; color: var(--ink); background: #fff; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.chip:hover span { border-color: var(--ink-3); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- FOOTER ---------- */
.footer { background: var(--gray); color: var(--ink-2); font-size: 12px; line-height: 1.5; letter-spacing: -0.01em; }
.footer-inner { max-width: 1060px; margin: 0 auto; padding: 40px var(--gutter) 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--hair); }
.footer .brand { color: var(--ink); font-size: 15px; }
.footer-about p { margin-top: 12px; max-width: 34ch; }
.footer h4 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 18px; }

/* ---------- WHATSAPP ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 10px 30px -10px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 26px; height: 26px; fill: none; stroke: #15a34a; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- REVEAL ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- LEGAL PAGES ---------- */
.legal-back { margin-left: auto; font-size: 13px; color: var(--link); }
.legal-back:hover { text-decoration: underline; }
.legal { padding: calc(52px + clamp(56px, 8vw, 104px)) var(--gutter) clamp(72px, 9vw, 120px); }
.legal-head, .legal-body { max-width: 720px; margin: 0 auto; }
.legal-head h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 700; }
.legal-meta { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.legal-body { margin-top: clamp(36px, 5vw, 56px); color: var(--ink); }
.legal-body p, .legal-body li { color: #3a3a3c; }
.legal-body p + p { margin-top: 14px; }
.legal-body a { color: var(--link); }
.legal-body a:hover { text-decoration: underline; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-lead { font-size: clamp(19px, 1.8vw, 21px); line-height: 1.45; }
.legal-body section { padding-top: clamp(36px, 5vw, 52px); scroll-margin-top: 64px; }
.legal-body h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 14px; }
.legal-body h3 { font-size: 19px; letter-spacing: -0.02em; margin: 24px 0 10px; }
.legal-body ul, .legal-body ol { margin: 12px 0 0; padding-left: 1.25em; display: grid; gap: 10px; }
.legal-summary, .legal-toc { margin-top: 32px; padding: clamp(22px, 3vw, 32px); border-radius: 22px; background: var(--white); box-shadow: 0 0 0 1px var(--hair-soft); }
.legal-summary h2, .legal-toc h2 { font-size: 17px; letter-spacing: -0.02em; margin-bottom: 4px; }
.legal-toc { background: var(--gray); box-shadow: none; }
.legal-toc ol { gap: 6px; }
@media (min-width: 680px) { .legal-toc ol { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1068px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile-web, .tile-half { grid-column: span 1; }
  .tile-web { grid-column: span 2; }
  .tile-mobile { grid-row: auto; }
  .process-grid { grid-template-columns: 1fr; gap: 24px; }
  .process-head { position: static; }
  .process-meter { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
  .hours { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 833px) {
  .nav-links {
    position: absolute; top: 52px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    padding: 12px var(--gutter) 28px; background: rgba(251, 251, 253, 0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    font-size: 24px; font-weight: 600; letter-spacing: -0.02em;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
    border-bottom: 1px solid var(--hair-soft);
  }
  .nav-links a { padding: 10px 0; color: var(--ink); }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-cta { margin-left: auto; }
  .nav-toggle { display: block; }
  .tile-web { flex-direction: column; min-height: 0; }
  .tile-web .tile-copy { flex: none; }
  .mock-browser { width: 118%; margin: 8px 0 -60px; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .showcase { height: 300vh; }
  .bento { grid-template-columns: 1fr; gap: 14px; }
  .tile, .tile-web, .tile-half { grid-column: span 1; }
  .tile-mobile { min-height: 0; }
  .mock-phone { margin-bottom: -150px; }
  .step { padding: 32px 0 36px; }
  .field-row { grid-template-columns: 1fr; }
  .form-actions .btn { flex: 1 1 100%; }
  .nav-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .faq-body p { padding-right: 0; }
  .wa-float { right: 16px; bottom: 16px; }
}

/* WhatsApp assistants & automation: wide dark tile with a live chat */
.tile-auto { grid-column: span 6; flex-direction: row; align-items: stretch; gap: clamp(28px, 4vw, 56px); }
.tile-auto .tile-copy { flex: 1 1 52%; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.tile-auto h3 { font-size: clamp(28px, 3vw, 40px); }
.tile-auto .tile-copy p:not(.tile-kicker) { max-width: 52ch; }
.auto-rules { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: #d2d2d7; }
.auto-rules li { padding: 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); }
.auto-rules b { font-weight: 600; background: var(--grad-light); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auto-chat { flex: 0 1 380px; align-self: center; border-radius: 20px; padding: 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -30px rgba(37, 211, 102, 0.35); }
.tile-auto .chat .bubble { margin: 0; color: #e9edef; max-width: 86%; }
.auto-flow { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.auto-flow i { font-style: normal; font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 980px; color: #25d366; background: rgba(37, 211, 102, 0.12); }
.js .tile-auto.reveal .bubble, .js .tile-auto.reveal .auto-flow { opacity: 0; transform: translateY(8px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .tile-auto.in .bubble, .js .tile-auto.in .auto-flow { opacity: 1; transform: none; }
.js .tile-auto.in .bubble:nth-of-type(2) { transition-delay: 0.6s; } .js .tile-auto.in .bubble:nth-of-type(3) { transition-delay: 1.2s; }
.js .tile-auto.in .bubble:nth-of-type(4) { transition-delay: 1.8s; } .js .tile-auto.in .auto-flow { transition-delay: 2.4s; }
@media (max-width: 1068px) { .tile-auto { grid-column: span 2; } }
@media (max-width: 833px) { .tile-auto { flex-direction: column; } .auto-chat { flex: none; width: 100%; max-width: 420px; } }
@media (max-width: 640px) { .tile-auto { grid-column: span 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .tile-auto .bubble, .js .tile-auto .auto-flow { opacity: 1; transform: none; }
  .intro { opacity: 1; transform: none; }
}

/* illustrations sit at the bottom of each tile so neighbours line up */
.tile > p:not(.tile-kicker) { margin-bottom: 28px; }
.tile > .viz { margin-top: auto; }
.process-head h2 { font-size: clamp(40px, 4.6vw, 60px); }

/* Pause looping illustrations while they are off-screen (saves CPU/GPU) */
.offscreen, .offscreen * { animation-play-state: paused !important; }
