
:root {
  --font-display: "Space Grotesk", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #eef0f6;
  --ink: #0b1020;
  --ink-2: #353c52;
  --muted: #5f6880;
  --line: rgba(11, 16, 32, .09);
  --line-strong: rgba(11, 16, 32, .16);
  --dark: #070a12;
  --dark-2: #0e1322;
  --dark-3: #161c2f;
  --on-dark: #eef2ff;
  --on-dark-2: rgba(238, 242, 255, .72);
  --on-dark-3: rgba(238, 242, 255, .5);
  --line-dark: rgba(255, 255, 255, .1);
  --accent: #2f6bff;
  --accent-hover: #1f5af0;
  --accent-ink: #1d4ed8;
  --accent-soft: rgba(47, 107, 255, .1);
  --teal: #14c8b4;
  --lime: #c7f24a;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --wa: #25d366;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 16, 32, .05), 0 2px 8px rgba(11, 16, 32, .04);
  --shadow-md: 0 1px 2px rgba(11, 16, 32, .06), 0 12px 32px -12px rgba(11, 16, 32, .18);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .2), 0 32px 80px -24px rgba(0, 0, 0, .55);
  --glow: 0 8px 28px -10px rgba(47, 107, 255, .7);
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 1024px) { :root { --nav-h: 72px; } }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-wa { fill: currentColor; stroke: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--lime); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* CJK typography: no tracking, roomier leading, and no breaks inside the h1 words (ZWSP marks the allowed breaks) */
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; }
:lang(zh) h1 { line-height: 1.18; word-break: keep-all; line-break: strict; }
:lang(zh) h2 { line-height: 1.25; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid rgba(47, 107, 255, .18);
}
.eyebrow-dark { color: var(--on-dark); background: rgba(255, 255, 255, .08); border-color: var(--line-dark); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(199, 242, 74, .2); }
.section-title { font-size: clamp(1.9rem, 1.45rem + 1.9vw, 3rem); max-width: 18ch; }
.section-lead { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 56ch; }
.section-head { margin-bottom: 40px; }
.section-head.split { display: grid; gap: 24px; align-items: end; }
@media (min-width: 900px) {
  .section-head { margin-bottom: 56px; }
  .section-head.split { grid-template-columns: 1fr auto; }
}
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15.5px; line-height: 1.2; white-space: nowrap;
  cursor: pointer; text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16.5px; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(47, 107, 255, .8); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: rgba(255, 255, 255, .07); color: var(--on-dark); border-color: rgba(255, 255, 255, .16); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.btn-ghost-dark { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost-dark:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--lime); transform: translateY(-2px); }
.btn-wa { background: #fff; color: #128c4a; border-color: var(--line-strong); }
.btn-wa .icon { fill: currentColor; stroke: none; }
.btn-wa:hover { border-color: #128c4a; }

/* Announcement bar (static, scrolls away) */
.announce { background: var(--dark-2); color: var(--on-dark-2); border-bottom: 1px solid var(--line-dark); font-size: 13px; line-height: 1.45; }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.announce .icon { width: 16px; height: 16px; color: var(--lime); flex: none; }
.announce p { text-wrap: balance; }
.announce-link { display: inline-flex; align-items: center; gap: 4px; color: var(--lime); font-weight: 600; white-space: nowrap; padding: 4px 2px; }
.announce-link .icon { width: 14px; height: 14px; color: inherit; }
.announce-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Sticky header */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(7, 10, 18, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { background: rgba(7, 10, 18, .86); border-bottom-color: var(--line-dark); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-dark); min-height: 44px; flex: none; }
.brand-mark { width: 34px; height: 34px; flex: none; display: grid; place-items: center; padding: 4px; border-radius: 9px; background: #fff; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
@media (max-width: 359.98px) { .nav .brand-name { display: none; } }
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a { color: var(--on-dark-2); font-weight: 500; font-size: 15px; padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--on-dark); background: rgba(255, 255, 255, .06); }
.nav-mobile-cta { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.nav-cta { display: none; }
.lang-switch { display: inline-flex; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-dark); }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-width: 38px; min-height: 40px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: var(--on-dark-2); font-size: 12.5px; font-weight: 600; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.lang-switch a:hover { color: var(--on-dark); }
.lang-switch a.active { background: #fff; color: var(--ink); }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .06); color: var(--on-dark); cursor: pointer; flex: none; }
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .ic-close { display: none; }
.menu-toggle[aria-expanded="true"] .ic-open { display: none; }
.menu-toggle[aria-expanded="true"] .ic-close { display: block; }
@media (max-width: 1119.98px) {
  .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 12px 16px 20px;
    background: rgba(7, 10, 18, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: transform .25s var(--ease), opacity .25s, visibility 0s .25s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; visibility: visible; transition: transform .25s var(--ease), opacity .25s; }
  .nav-links a { font-size: 17px; padding: 12px 14px; min-height: 48px; }
  .nav-links .nav-mobile-cta { display: inline-flex; margin: 12px 14px 0; justify-content: center; font-size: 16px; color: #fff; }
}
@media (min-width: 1024px) {
  .brand-name { font-size: 18px; }
  .lang-switch a { min-width: 44px; min-height: 44px; padding: 0 10px; font-size: 13px; }
}
/* Full link row only once the longest (BM) labels fit beside the brand and language switch */
@media (min-width: 1120px) {
  .nav-inner { gap: 16px; }
  .nav-links { display: flex; }
  .nav-links .nav-mobile-cta { display: none; }
  .nav-actions { gap: 10px; }
  .menu-toggle { display: none; }
}
@media (min-width: 1280px) {
  .nav-cta { display: inline-flex; }
  .nav-links a { padding: 10px 14px; }
  /* BM labels are the longest: a tighter, slightly smaller link row keeps brand + links + switch + CTA inside the 1200px container */
  html:lang(ms) .nav-inner { gap: 12px; }
  html:lang(ms) .nav-links { gap: 0; }
  html:lang(ms) .nav-links a { padding: 10px 8px; font-size: 14px; }
  html:lang(ms) .nav-actions { gap: 8px; }
  html:lang(ms) .nav-cta { padding: 0 14px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); padding: 48px 0 104px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; }
.hero-bg .b1 { width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; left: -20vw; top: -30vw; background: radial-gradient(circle at center, rgba(47, 107, 255, .65), rgba(47, 107, 255, 0) 65%); animation: drift1 28s ease-in-out infinite alternate; }
.hero-bg .b2 { width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; right: -18vw; top: -10vw; background: radial-gradient(circle at center, rgba(20, 200, 180, .45), rgba(20, 200, 180, 0) 65%); animation: drift2 34s ease-in-out infinite alternate; }
.hero-bg .b3 { width: 50vw; height: 50vw; max-width: 600px; max-height: 600px; left: 35vw; bottom: -25vw; background: radial-gradient(circle at center, rgba(199, 242, 74, .22), rgba(199, 242, 74, 0) 65%); }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
@keyframes drift1 { to { transform: translate(8vw, 6vw) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-6vw, 8vw) scale(1.08); } }
/* Phones: static backdrop, no continuous compositing */
@media (max-width: 899.98px) { .blob { animation: none !important; } }
.hero-inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) {
  .hero { padding: 80px 0 136px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; }
}
h1 { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 3.9rem); letter-spacing: -.035em; line-height: 1.05; margin: 0 0 24px; max-width: 22ch; }
:lang(ms) h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.7rem); }
:lang(zh) h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.5rem); }
h1 .hl { font-style: normal; color: var(--lime); position: relative; display: inline-block; white-space: nowrap; }
h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .1em; border-radius: 999px;
  background: linear-gradient(90deg, var(--lime), var(--teal));
  transform: scaleX(0); transform-origin: left; animation: grow .9s var(--ease) .4s forwards;
}
@keyframes grow { to { transform: scaleX(1); } }
.lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--on-dark-2); max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-ctas .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero-ctas .btn { flex: 0 0 auto; } }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--on-dark-3); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--on-dark-2); font-weight: 500; }
.hero-points .icon { width: 18px; height: 18px; color: var(--lime); }

/* App mockups (illustrative sample data) */
.hero-visual { position: relative; }
.app-glow { position: absolute; inset: 10% -5% -10%; background: radial-gradient(ellipse at 50% 60%, rgba(47, 107, 255, .35), transparent 65%); filter: blur(10px); z-index: 0; }
.app {
  position: relative; z-index: 1;
  background: var(--surface); color: var(--ink);
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--shadow-lg);
  font-size: 12.5px;
}
.app-chrome { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: var(--dark-2); border-bottom: 1px solid var(--line-dark); }
.dots { display: inline-flex; gap: 6px; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; }
.dots i:nth-child(1) { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.crumb { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 10px; border-radius: 7px; background: rgba(255, 255, 255, .07); color: var(--on-dark-3); font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.crumb i { font-style: normal; opacity: .5; }
.crumb span:last-child { color: var(--on-dark-2); }
/* Real screenshots inside the window frame */
.app-shot .shot { display: block; width: 100%; height: auto; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ghost { border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.pill-ghost::before { display: none; }
.pill.ok { background: rgba(22, 163, 74, .1); color: #15803d; }
.pill.wait { background: rgba(217, 119, 6, .12); color: #b45309; }
.pill.info { background: var(--accent-soft); color: var(--accent-ink); }
.pill.bad { background: rgba(220, 38, 38, .1); color: #b91c1c; }
.pill.neutral { background: var(--surface-2); color: var(--muted); }

/* Charts (ERP tile, illustrative) */
.mini-chart-card { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 12px 8px; background: var(--surface); min-width: 0; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; font-weight: 600; margin-bottom: 8px; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.legend i { width: 10px; height: 3px; border-radius: 2px; background: var(--accent); }
.legend i.l2 { background: var(--line-strong); margin-left: 6px; }
.mini-chart .gridl line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
/* Axis labels live in HTML so the stretched SVG never distorts text */
.xlab { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 6px; text-align: center; font-size: 10px; font-weight: 500; color: var(--muted); line-height: 1; }
.chart-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: stretch; }
.chart-grid .ylab { display: flex; flex-direction: column; justify-content: space-between; margin: -.5em 0; font-size: 9.5px; line-height: 1; font-weight: 500; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.chart-grid .xlab { grid-column: 2; }
.mini-chart { width: 100%; height: 112px; }
@media (min-width: 1024px) { .mini-chart { height: 168px; } }
.mini-chart .bar { fill: var(--accent); opacity: .85; transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform .8s var(--ease); }
.mini-chart .bar:nth-child(2) { transition-delay: 60ms; } .mini-chart .bar:nth-child(3) { transition-delay: 120ms; } .mini-chart .bar:nth-child(4) { transition-delay: 180ms; } .mini-chart .bar:nth-child(5) { transition-delay: 240ms; } .mini-chart .bar:nth-child(6) { transition-delay: 300ms; }
.mini-chart .bar.hi { fill: var(--teal); opacity: 1; }
.in .mini-chart .bar, html:not(.js) .mini-chart .bar { transform: scaleY(1); }

/* "Live product" badge: absolute on desktop, a static row under the window on smaller screens */
.hero-badges { display: contents; }
.float-badge {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 9px; border-radius: 14px;
  background: rgba(14, 19, 34, .94); color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 600; white-space: nowrap;
  animation: floaty 6s ease-in-out infinite;
}
.live-badge { top: -18px; right: 36px; transition: border-color .2s, background .2s; }
.live-badge:hover { border-color: rgba(255, 255, 255, .34); background: rgba(14, 19, 34, 1); }
.live-badge .fb-icon { position: relative; }
.live-badge .fb-icon::after { content: ""; position: absolute; inset: -3px; border-radius: 10px; border: 2px solid var(--lime); opacity: 0; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.9); opacity: .7; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
.fb-icon { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--lime); color: var(--ink); flex: none; }
.fb-icon .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.fb-icon.teal { background: var(--teal); }
@keyframes floaty { 50% { transform: translateY(-6px); } }
@media (max-width: 1023.98px) {
  .hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; position: relative; z-index: 2; }
  .float-badge { position: static; animation: none; box-shadow: none; background: rgba(255, 255, 255, .06); }
}
/* Tablet landscape: the window is too narrow for the badge to sit beside the breadcrumb, so it anchors bottom-left (the phone takes bottom-right) */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .live-badge { top: auto; right: auto; left: -14px; bottom: 60px; }
}
/* Phone bezel (product page on a phone). Overlaps the window on desktop; hidden below 1024px where the window already fills the width */
.phone { position: relative; z-index: 2; width: 100%; padding: 8px; border-radius: 30px; background: #0b0f1a; border: 1px solid rgba(255, 255, 255, .2); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .05); }
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; width: 36%; height: 14px; border-radius: 999px; background: #0b0f1a; transform: translateX(-50%); z-index: 2; }
.phone-screen { border-radius: 22px; overflow: hidden; aspect-ratio: 9 / 18.5; background: #0b0f1a; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-phone { display: none; }
@media (min-width: 1024px) {
  .hero-visual { padding-right: 56px; padding-bottom: 36px; }
  .hero-phone { display: block; position: absolute; right: -8px; bottom: -8px; width: clamp(150px, 15vw, 188px); animation: floaty 7s ease-in-out infinite; }
}

/* Light page body sheet */
.page-body { position: relative; z-index: 2; background: var(--bg); border-radius: 32px 32px 0 0; margin-top: -40px; padding-top: 8px; }
@media (min-width: 1024px) { .page-body { border-radius: 40px 40px 0 0; margin-top: -56px; } }

/* Capability marquee with edge fades */
.strip { padding: 40px 0 8px; }
.strip-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.marquee { position: relative; overflow: hidden; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(48px, 10vw, 140px); z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg) 20%, rgba(245, 246, 250, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg) 20%, rgba(245, 246, 250, 0)); }
.marquee-track { display: flex; gap: 10px; width: max-content; padding: 4px 0; animation: marquee 56s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap; box-shadow: var(--shadow-sm); }
.chip .icon { width: 17px; height: 17px; color: var(--accent); }

/* Pain points */
.pains { padding-top: 56px; padding-bottom: 48px; } /* shares a background with Services, so a shorter gap reads as one flow */
.pain-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pain-grid { grid-template-columns: repeat(4, 1fr); } }
.pain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 12px; align-content: start; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.pain h3 { font-size: 18px; }
.pain p { color: var(--muted); font-size: 15px; }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.icon-tile .icon { width: 22px; height: 22px; }
.icon-tile.sm { width: 40px; height: 40px; }
@media (hover: hover) {
  .pain:hover, .tile:hover, .steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
}

/* Services bento */
.bento { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.t-ec { grid-area: ec; } .t-s1 { grid-area: s1; } .t-int { grid-area: int; } .t-s3 { grid-area: s3; } .t-s2 { grid-area: s2; } .t-sup { grid-area: sup; } .t-cta { grid-area: cta; }
.bento { grid-template-areas: "ec" "s1" "int" "s3" "s2" "sup" "cta"; }
@media (min-width: 640px) {
  .bento { gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "ec ec" "s1 s1" "int s3" "s2 sup" "cta cta"; }
}
@media (min-width: 1024px) {
  .bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas:
      "ec ec s1 s1 s1 s1"
      "int int s1 s1 s1 s1"
      "s3 s3 s2 s2 sup sup"
      "cta cta cta cta cta cta";
  }
}
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 12px; align-content: start; min-width: 0; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.tile h3 { font-size: 19px; }
.tile p { color: var(--muted); font-size: 15px; }
.tile .icon-tile { margin-bottom: 4px; }
.tile-big { padding: 0; overflow: hidden; grid-template-rows: auto 1fr; }
.tile-text { padding: 28px 28px 8px; display: grid; gap: 12px; }
.tile-big h3 { font-size: 22px; }
.mini-app { margin: 16px 0 0 24px; border-radius: 14px 0 0 0; border: 1px solid var(--line); border-right: 0; border-bottom: 0; overflow: hidden; background: var(--surface); box-shadow: -8px -8px 32px -16px rgba(11, 16, 32, .25); transform: translateY(8px); transition: transform .5s var(--ease); min-height: 220px; }
@media (min-width: 640px) { .mini-app { margin-left: 28px; } }
.tile-big:hover .mini-app { transform: translateY(0); }
.mini-app .app-chrome { height: 32px; background: #f1f3f8; border-bottom-color: var(--line); }
.mini-app .dots i { width: 8px; height: 8px; }
.mini-app .crumb { background: #fff; color: var(--muted); border: 1px solid var(--line); font-size: 10.5px; padding: 2px 8px; }
.mini-app .crumb span:last-child { color: var(--ink-2); }
.mini-body { padding: 14px 14px 48px; display: grid; gap: 12px; }
.mini-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.mini-kpis div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 2px; min-width: 0; }
.mini-kpis small { font-size: 10.5px; line-height: 1.3; color: var(--muted); }
.mini-kpis strong { font-family: var(--font-display); font-size: 15px; letter-spacing: -.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Narrow phones fit only two KPI tiles per row: let the third span the row instead of leaving a gap beside it */
@media (max-width: 459.98px) {
  .mini-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-kpis div:nth-child(3) { grid-column: 1 / -1; }
}
.mini-rows { display: grid; gap: 6px; }
.mini-rows div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; }
.mini-rows span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Micro-visuals inside service tiles */
.tile-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; min-height: 44px; font-weight: 600; font-size: 14.5px; color: var(--accent-ink); justify-self: start; }
.tile-link .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.tile-link:hover .icon { transform: translateX(3px); }
.illus-cap { position: absolute; right: 12px; bottom: 12px; z-index: 2; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; }
.flow-step { display: inline-flex; align-items: center; gap: 6px; }
.flow b { padding: 7px 11px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.flow .icon { width: 15px; height: 15px; color: var(--muted); }
.toggles { display: grid; gap: 8px; margin-top: 8px; }
.toggles li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); font-weight: 500; }
.switch { position: relative; width: 32px; height: 18px; border-radius: 999px; background: var(--accent); flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.pipe { display: grid; margin-top: 8px; }
.pipe li { position: relative; display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; }
.pipe li:last-child { padding-bottom: 0; }
.pipe li::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: var(--line-strong); }
.pipe li:last-child::before { display: none; }
.pipe i { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; flex: none; background: rgba(22, 163, 74, .1); color: #15803d; border: 1px solid rgba(22, 163, 74, .3); }
.pipe i .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.pipe .live i { background: var(--accent); color: #fff; border-color: transparent; box-shadow: 0 0 0 4px var(--accent-soft); }
.pipe b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.pipe small { display: block; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress { display: grid; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.progress-label { display: flex; justify-content: space-between; gap: 8px; }
.progress-label b { color: #15803d; font-variant-numeric: tabular-nums; }
.progress .bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--teal)); transition: width 1.2s var(--ease) .3s; }
.in .progress .bar i, html:not(.js) .progress .bar i { width: 100%; }
.ticks { display: grid; gap: 8px; margin-top: 8px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.ticks .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(22, 163, 74, .1); color: #15803d; stroke-width: 2.6; }
.mini-chat { display: grid; gap: 8px; margin-top: 8px; }
.msg { max-width: 92%; padding: 9px 12px; border-radius: 14px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.msg small { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 1px; font-weight: 600; }
.msg.you { background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 5px; justify-self: start; }
.msg.us { background: var(--accent); color: #fff; border-bottom-right-radius: 5px; justify-self: end; }
.msg.us small { color: rgba(255, 255, 255, .78); }
.chat-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.chat-langs { font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tile-cta { background: var(--dark); color: var(--on-dark); border-color: var(--dark); background-image: radial-gradient(70% 90% at 100% 0%, rgba(47, 107, 255, .5), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(20, 200, 180, .3), transparent 60%); }
.tile-cta h3 { font-size: 20px; }
.tile-cta p { color: var(--on-dark-2); margin-top: 6px; }
.tile-cta .btn { justify-self: start; }
@media (min-width: 1024px) {
  .tile-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 28px 32px; }
  .tile-cta p { max-width: 60ch; }
}

/* Our work (three case studies behind a product switcher: Fivooo, Forge, Dynasty Game Store) */
.work { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.work .section-head { margin-bottom: 32px; }
/* Product switcher: one tablist, each case study is its panel; hidden cases are display:none so the page stays short */
.work-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; margin: 0 auto 40px; max-width: 920px; border-radius: 22px; background: var(--surface-2); border: 1px solid var(--line); }
.work-switch button { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 64px; padding: 10px 16px; border: 0; border-radius: 16px; background: transparent; color: var(--muted); text-align: left; cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.work-switch button:hover { color: var(--ink); }
.work-switch button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.ws-ic { width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--surface); color: var(--muted); border: 1px solid var(--line); transition: background .2s, color .2s; }
.ws-ic .icon { width: 20px; height: 20px; }
.work-switch button[aria-selected="true"] .ws-ic { background: var(--accent); color: #fff; border-color: transparent; }
.ws-text { display: grid; gap: 2px; min-width: 0; }
.ws-name { font-family: var(--font-display); font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; line-height: 1.15; }
.ws-desc { font-size: 12.5px; font-weight: 500; line-height: 1.3; color: var(--muted); }
@media (min-width: 900px) { .work-switch { margin-bottom: 56px; } .work-switch button { padding: 12px 18px; } }
/* Phones: a plain segmented control with the product names only */
@media (max-width: 639.98px) {
  .work-switch { gap: 4px; padding: 4px; border-radius: 16px; margin-bottom: 32px; }
  .work-switch button { justify-content: center; text-align: center; gap: 0; min-height: 50px; padding: 8px 6px; border-radius: 12px; }
  .ws-ic, .ws-desc { display: none; }
  .ws-name { font-size: 13.5px; }
}
.case[hidden] { display: none; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); max-width: 100%; }
.seg button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; font-size: 14.5px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.seg button .icon { width: 17px; height: 17px; }
.seg button:hover { color: var(--ink); }
@media (max-width: 559.98px) { .seg { display: flex; width: 100%; } .seg button { flex: 1; padding: 0 10px; font-size: 14px; } .seg button .icon { display: none; } }
/* Four labels do not fit on one row on phones: wrap into a 2x2 grid */
@media (max-width: 639.98px) { .work-gallery .seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; border-radius: 18px; } .work-gallery .seg button { padding: 0 10px; font-size: 13.5px; white-space: normal; line-height: 1.2; text-align: center; justify-content: center; border-radius: 14px; } .work-gallery .seg button .icon { display: none; } }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.panel { animation: panelin .4s var(--ease); }
.panel[hidden] { display: none; }
@keyframes panelin { from { opacity: 0; transform: translateY(10px); } }
.panel-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.panel-note .icon { color: var(--accent); width: 18px; height: 18px; margin-top: 3px; }
/* One template per case study: kicker (eyebrow + status pill), title, intro and logo card, then stats, gallery and the side column */
.case-head { display: grid; gap: 24px; align-items: center; margin-bottom: 40px; }
@media (min-width: 900px) {
  .case-head { grid-template-columns: minmax(0, 1fr) auto; margin-bottom: 56px; }
}
.case-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.case-kicker .eyebrow { margin: 0; }
.case-status { font-size: 12px; padding: 4px 11px; }
.case-title { font-size: clamp(1.65rem, 1.3rem + 1.5vw, 2.5rem); max-width: 30ch; }
.work-card { display: grid; gap: 10px; justify-items: start; align-content: start; padding: 22px 24px; border-radius: var(--r-lg); background: var(--dark); color: var(--on-dark); background-image: radial-gradient(70% 90% at 100% 0%, rgba(47, 107, 255, .45), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(20, 200, 180, .25), transparent 60%); max-width: 320px; }
.work-card img { width: 150px; height: auto; margin: -8px 0 -14px -6px; }
.work-card-k { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--lime); }
.work-card-d { font-size: 14px; color: var(--on-dark-2); }
.work-card .btn { margin-top: 6px; }
/* Fivooo keeps its own brand inside its card only: cream surface, terracotta mark and button */
.work-card-fivooo { background: #faf7f2; background-image: none; color: var(--ink); border: 1px solid rgba(168, 72, 42, .2); }
.work-card-fivooo img { width: 64px; height: 64px; margin: 0 0 2px; border-radius: 16px; box-shadow: 0 8px 20px -10px rgba(168, 72, 42, .55); }
.work-card-fivooo .work-card-k { color: #a8482a; }
.work-card-fivooo .work-card-d { color: var(--muted); }
.btn-terra { background: #a8482a; color: #fff; box-shadow: 0 8px 24px -10px rgba(168, 72, 42, .65); }
.btn-terra:hover { background: #8e3a20; transform: translateY(-2px); }
/* Forge keeps its own brand inside its card only: graphite surfaces, steel accent, Inter */
.work-card-forge { background: #0e1115; background-image: linear-gradient(160deg, #161a20, #0e1115 70%); color: #fff; border: 1px solid rgba(90, 130, 168, .35); font-family: "Inter", var(--font-body); }
.work-card-forge img { width: 64px; height: 64px; margin: 0 0 2px; border-radius: 16px; box-shadow: 0 8px 20px -10px rgba(47, 81, 116, .9); }
.work-card-forge .work-card-k { color: #5a82a8; }
.work-card-forge .work-card-d { color: rgba(255, 255, 255, .72); }
.btn-steel { background: #2f5174; color: #fff; box-shadow: 0 8px 24px -10px rgba(47, 81, 116, .8); }
.btn-steel:hover { background: #27445f; transform: translateY(-2px); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 40px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 56px; } }
.stat { display: grid; gap: 6px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); min-width: 0; }
.stat b { font-family: var(--font-display); font-size: clamp(2rem, 1.6rem + 1.6vw, 2.9rem); line-height: 1; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat b small { font-size: .5em; font-weight: 700; color: var(--accent-ink); margin-left: 4px; letter-spacing: 0; }
.stat span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.work-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .work-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 48px; } }
.work-gallery .seg { margin-bottom: 20px; }
.work-gallery .app { border-color: rgba(11, 16, 32, .12); box-shadow: var(--shadow-md); }
/* All four screens share one grid cell, so the gallery keeps the height of the tallest screenshot and switching tabs never shifts the page */
.work-gallery .panels { display: grid; }
.work-gallery .panel { grid-area: 1 / 1; }
.work-gallery .panel[hidden] { display: block; visibility: hidden; pointer-events: none; }
.work-side { display: grid; gap: 16px; align-content: start; }
.work-side .built-title { font-size: 22px; }
.ticks.built { gap: 12px; margin-top: 0; }
.ticks.built li { align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.ticks.built .icon { margin-top: 1px; }
.tech-label { margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tech { display: flex; flex-wrap: wrap; gap: 8px; }
.tech li { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.work-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.work-ctas .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .work-ctas .btn { flex: 0 0 auto; } }
/* More projects: quiet secondary row under the case studies (client work under NDA; text-only cards, small type, no links) */
.more-work { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--line); }
.more-head { display: grid; gap: 6px; margin-bottom: 20px; }
.more-title { font-size: 18px; letter-spacing: -.015em; color: var(--ink); }
.more-lead { font-size: 14px; color: var(--muted); max-width: 56ch; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.more-card { display: grid; gap: 8px; align-content: start; min-width: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.more-side { display: grid; gap: 8px; min-width: 0; }
.more-card h4 { font-size: 16px; letter-spacing: -.01em; line-height: 1.25; color: var(--ink); }
.more-desc { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.more-meta { font-size: 12px; line-height: 1.5; font-weight: 600; color: var(--ink-2); }
.tech-sm { gap: 6px; margin-top: 4px; }
.tech-sm li { padding: 4px 10px; font-size: 12px; background: var(--surface); }
@media (min-width: 900px) {
  .more-work { margin-top: 72px; padding-top: 44px; }
  .more-head { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 16px; }
  .more-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
  /* A lone card spreads across the row instead of leaving two empty columns: title + description left, status + tags right */
  .more-card:only-child { grid-template-columns: minmax(0, 1fr) minmax(0, 38%); column-gap: 40px; padding: 22px 24px; }
  .more-card:only-child .more-side { grid-column: 2; grid-row: 1 / span 2; }
  .more-card:only-child .more-desc { max-width: 60ch; }
}
/* Six Fivooo tabs, text only: a 3x2 grid up to 1199px (phones share the Dynasty grid rules), one compact row from 1200px that still wraps evenly if a label set needs it */
.seg-6 button .icon { display: none; }
@media (max-width: 639.98px) { .work-gallery .seg-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 1199.98px) {
  .work-gallery .seg-6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 640px; border-radius: 18px; }
  .work-gallery .seg-6 button { justify-content: center; padding: 0 12px; border-radius: 14px; }
}
@media (min-width: 1200px) {
  .seg-6 { flex-wrap: wrap; border-radius: 18px; }
  .seg-6 button { flex: 1 1 auto; justify-content: center; padding: 0 14px; border-radius: 14px; }
}
/* Five Forge tabs, text only: a 3 + 2 grid up to 1199px (six columns so the second row stays centred), one compact row from 1200px */
.seg-5 button .icon { display: none; }
@media (max-width: 1199.98px) {
  .work-gallery .seg-5 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; max-width: 640px; border-radius: 18px; }
  .work-gallery .seg-5 button { grid-column: span 2; justify-content: center; padding: 0 10px; border-radius: 14px; white-space: normal; line-height: 1.2; text-align: center; }
  .work-gallery .seg-5 button:nth-child(n + 4) { grid-column: span 3; }
}
@media (min-width: 1200px) {
  .seg-5 { flex-wrap: wrap; border-radius: 18px; }
  .seg-5 button { flex: 1 1 auto; justify-content: center; padding: 0 14px; border-radius: 14px; }
}
/* Handheld screen: the phone bezel on a cream stage the same footprint as the window frames */
.phone-stage { display: flex; justify-content: center; padding: 24px 16px; border-radius: var(--r-lg); border: 1px solid rgba(11, 16, 32, .12); background: linear-gradient(160deg, #faf7f2, #efe3d2); box-shadow: var(--shadow-md); }
.phone-stage .phone { width: clamp(200px, 70%, 280px); }
/* The Fivooo handheld capture is 390x846 (9/19.5), taller than the hero phone's 9/18.5 bezel; match it so the bottom of the screen (Receive stock button) is not cropped */
.phone-stage .phone-screen { aspect-ratio: 390 / 846; }
@media (min-width: 1024px) { .phone-stage { padding: 28px 16px; } .phone-stage .phone { width: clamp(220px, 36%, 272px); } }
/* On phones the Fivooo panels do not share one cell: the tall handheld screen would otherwise leave a gap under the other five */
@media (max-width: 1023.98px) { .gallery-fivooo .panels { display: block; } .gallery-fivooo .panel[hidden] { display: none; } }

/* Why us */
.why-inner { display: grid; gap: 40px; }
@media (min-width: 960px) { .why-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; } .why-copy { position: sticky; top: calc(var(--nav-h) + 32px); } }
.why-copy .btn { margin-top: 28px; }
.why-list { display: grid; gap: 16px; }
@media (min-width: 640px) { .why-list { grid-template-columns: repeat(2, 1fr); } }
.why-list li { display: grid; gap: 16px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); align-content: start; }
.why-list strong { display: block; font-family: var(--font-display); font-size: 17.5px; letter-spacing: -.01em; margin-bottom: 6px; }
.why-list span:not(.icon-tile) { color: var(--muted); font-size: 15px; }

/* Process */
.process { background: var(--surface); border-top: 1px solid var(--line); }
.steps { display: grid; gap: 16px; position: relative; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); display: grid; gap: 12px; align-content: start; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.steps h3 { font-size: 18px; }
.steps p { color: var(--muted); font-size: 15px; }
.step-num { position: absolute; top: 20px; right: 20px; font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
@media (min-width: 1024px) {
  .steps li:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -16px; width: 16px; height: 1px; background: var(--line-strong); }
}

/* FAQ */
.faq-inner { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; } .faq-copy { position: sticky; top: calc(var(--nav-h) + 32px); } }
.faq-copy .btn { margin-top: 28px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-list details[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; min-height: 60px; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: 16.5px; letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 18px; height: 18px; color: var(--accent); transition: transform .3s var(--ease); stroke-width: 2.2; }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list details p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; max-width: 70ch; }

/* CTA band */
.band-wrap { padding-top: 0; }
.band { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--dark); color: var(--on-dark); isolation: isolate; }
.band-bg { position: absolute; inset: 0; z-index: -1; }
.band-bg .b1 { width: 80%; padding-top: 80%; left: -30%; top: -40%; background: radial-gradient(circle at center, rgba(47, 107, 255, .7), rgba(47, 107, 255, 0) 65%); }
.band-bg .b2 { width: 70%; padding-top: 70%; right: -25%; bottom: -50%; background: radial-gradient(circle at center, rgba(20, 200, 180, .5), rgba(20, 200, 180, 0) 65%); }
.band-bg .grid-lines { -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 10%, transparent 80%); mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 10%, transparent 80%); }
.band-inner { padding: 56px 24px; display: grid; gap: 16px; justify-items: start; }
@media (min-width: 900px) { .band-inner { padding: 88px 80px; } }
.band h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); max-width: 16ch; }
.band p { color: var(--on-dark-2); font-size: 17px; max-width: 52ch; }
.band .hero-ctas { margin-top: 12px; }
.band .btn-light { box-shadow: 0 10px 30px -10px rgba(199, 242, 74, .55); }

/* Contact */
.contact { padding-top: 24px; }
.contact-inner { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-inner { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; } }
.check-list { display: grid; gap: 10px; margin-top: 24px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.check-list .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); stroke-width: 2.6; }
.whatsapp-card { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s; }
.whatsapp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(37, 211, 102, .5); }
.wa-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--wa); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.wa-ic .icon { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.wa-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.wa-text strong { font-family: var(--font-display); font-size: 16px; }
.wa-text span { font-size: 14px; color: var(--muted); }
.wa-arrow { color: var(--muted); width: 18px; height: 18px; }
.contact-details { display: grid; gap: 14px; margin-top: 28px; }
.contact-details li { display: flex; align-items: center; gap: 14px; }
.contact-details li > span:last-child { display: grid; min-width: 0; }
.contact-details small { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.contact-details a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-details a:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
.lead-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-md); display: grid; gap: 16px; }
@media (min-width: 640px) { .lead-form { padding: 36px; } }
.field-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.lead-form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.lead-form input:not([type="checkbox"]), .lead-form select, .lead-form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg);
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none; -webkit-appearance: none;
}
.lead-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6880' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.lead-form textarea { resize: vertical; min-height: 120px; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(47, 107, 255, .18); }
.lead-form .invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
/* The live region stays rendered (and in the accessibility tree) even while empty */
.form-status { display: block; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; font-weight: 500; text-align: center; }
.form-status:empty { padding: 0; height: 0; overflow: hidden; margin-top: -16px; }
.form-status.ok { background: rgba(22, 163, 74, .1); color: #15803d; }
.form-status.err { background: rgba(220, 38, 38, .08); color: #b91c1c; }

/* Footer */
.footer { background: var(--dark); color: var(--on-dark-2); padding: 64px 0 40px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1.1fr .8fr .8fr 1.15fr; gap: 36px; } }
.footer-brand { display: grid; gap: 16px; justify-items: start; align-content: start; max-width: 36ch; }
.footer-brand p { font-size: 14.5px; }
.footer-lang { display: grid; gap: 8px; justify-items: start; margin-top: 8px; }
.footer-lang-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-3); }
.footer-col { display: grid; gap: 4px; align-content: start; }
.footer-col h4 { color: var(--on-dark); font-size: 14px; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 10px; }
.footer-col a, .footer-col span { font-size: 15px; padding: 10px 0; display: inline-block; transition: color .2s; overflow-wrap: anywhere; }
.footer-col a:hover { color: #fff; }
.footer-ext span { display: inline; padding: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 48px; padding: 24px 80px 0 0; border-top: 1px solid var(--line-dark); font-size: 13.5px; color: var(--on-dark-3); }
.footer-privacy { flex-basis: 100%; margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--on-dark-3); max-width: 760px; }
.footer-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-chips span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-dark); font-size: 12px; font-weight: 500; }
/* Keep the floating WhatsApp button clear of the footer chips on phones */
@media (max-width: 899.98px) { .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* Floating WhatsApp + sticky mobile bar: never two WhatsApp buttons at once */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px -8px rgba(37, 211, 102, .7); transition: transform .3s var(--ease), opacity .3s; }
.wa-float .icon { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); }
@media (max-width: 899.98px) { .wa-float { bottom: calc(16px + env(safe-area-inset-bottom)); width: 50px; height: 50px; } .wa-float .icon { width: 26px; height: 26px; } .mobile-bar:not(.is-hidden) ~ .wa-float { opacity: 0; pointer-events: none; transform: translateY(16px); } }
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); transition: transform .35s var(--ease); }
.mobile-bar .btn { min-height: 50px; padding: 0 12px; font-size: 15px; }
.mobile-bar .btn-wa .icon { width: 20px; height: 20px; }
.mobile-bar.is-hidden { transform: translateY(110%); }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* Reveal on scroll: progressive enhancement only (content is visible without JS or IntersectionObserver) */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
html.js:not(.no-io) .reveal:not(.in) { opacity: 0; transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.js:not(.no-io) .reveal:not(.in) { opacity: 1; transform: none; }
  .mini-chart .bar { transform: none; }
  .progress .bar i { width: 100%; }
  .live-badge .fb-icon::after, .hero-phone { animation: none; }
  h1 .hl::after { transform: none; }
  .marquee::before, .marquee::after { display: none; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; padding: 4px 16px; }
}
