/* ==========================================================================
   Wallace Solutions — main stylesheet
   Dark, bold, tech-forward. Mobile-first. No framework.
   ========================================================================== */

:root {
  --bg: #F8FAFC;
  --bg-2: #FFFFFF;
  --bg-3: #EEF2F7;
  --navy: #0F172A;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --text: #0F172A;
  --text-2: #475569;
  --text-3: #64748B;
  --violet: #1D4ED8;
  --blue: #2563EB;
  --blue-2: #1D4ED8;
  --cyan: #3B82F6;
  --orange: #F97316;
  --orange-2: #EA580C;
  --lime: #16A34A;
  --grad: linear-gradient(120deg, #1D4ED8 0%, #3B82F6 100%);
  --grad-cta: linear-gradient(120deg, #F97316 0%, #FB923C 100%);
  --grad-soft: linear-gradient(120deg, rgba(37,99,235,.12), rgba(59,130,246,.10));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(15,23,42,.10);
  --glow: 0 0 0 1px rgba(37,99,235,.25), 0 10px 40px rgba(37,99,235,.18);
  --font-head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --container: 1200px;
  --gutter: 20px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 800; }
h3, h4 { font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 60ch; }
.muted { color: var(--text-2); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--violet); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip-link:focus { left: 8px; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font-body);
  letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }

/* ---------- Background FX ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(rgba(11,20,55,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(11,20,55,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at top, #000 20%, transparent 70%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; pointer-events: none; z-index: -1; animation: drift 18s ease-in-out infinite alternate; }
.orb--v { background: #BFDBFE; width: 520px; height: 520px; top: -140px; left: -160px; }
.orb--c { background: #FED7AA; width: 420px; height: 420px; top: 120px; right: -140px; animation-delay: -6s; }
.orb--l { background: #93C5FD; width: 260px; height: 260px; bottom: -80px; left: 40%; opacity: .25; animation-delay: -12s; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(40px,60px,0) scale(1.12); } }
.cursor-glow { position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(37,99,235,.09), transparent 60%); transform: translate(-50%,-50%); transition: opacity .3s; opacity: 0; }
@media (hover:hover) { .cursor-glow { opacity: 1; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1;
  border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--grad-cta); color: #fff; box-shadow: 0 8px 24px rgba(249,115,22,.35); }
.btn--primary:hover { box-shadow: 0 12px 30px rgba(249,115,22,.45); }
.btn--blue { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(37,99,235,.28); }
.btn--primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s; }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { background: #fff; border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); border-color: #B9C2D8; }
.btn--wa { background: #22C55E; color: #fff; box-shadow: 0 8px 24px rgba(34,197,94,.28); }
.btn--lg { padding: 18px 32px; font-size: 16px; }
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90; transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(255,255,255,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img, .brand svg { height: 44px; width: auto; }
.brand .brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; }
.nav-primary ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav-primary li { position: relative; }
.nav-primary a { display: inline-block; padding: 10px 14px; border-radius: 10px; font-weight: 500; font-size: 15px; color: var(--text-2); transition: color .2s, background .2s; }
.nav-primary a:hover, .nav-primary .current-menu-item > a, .nav-primary .current-menu-ancestor > a, .nav-primary .current_page_item > a { color: var(--text); background: var(--surface); }
.nav-primary .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 14px; padding: 8px; display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: .25s var(--ease); box-shadow: var(--shadow);
}
.nav-primary li:hover > .sub-menu, .nav-primary li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-primary .sub-menu a { display: block; padding: 10px 12px; font-size: 14px; }
.nav-primary .menu-item-has-children > a::after { content: "▾"; margin-left: 6px; font-size: 11px; opacity: .6; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; width: 46px; height: 46px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s, opacity .3s; transform-origin: center; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
  .nav-toggle { display: flex; }
  .header-cta .btn--ghost { display: none; }
  .nav-primary {
    position: fixed; inset: 76px 0 0 0; background: rgba(255,255,255,.98); backdrop-filter: blur(12px); padding: 24px var(--gutter) 40px;
    transform: translateX(100%); transition: transform .35s var(--ease), visibility 0s .35s; visibility: hidden; overflow-y: auto; z-index: 80;
  }
  .nav-primary.is-open { transform: translateX(0); visibility: visible; transition: transform .35s var(--ease); }
  .nav-primary ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-primary a { display: block; font-size: 20px; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-primary .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; background: transparent; box-shadow: none; padding: 0 0 0 16px; }
  .nav-primary .sub-menu a { font-size: 16px; color: var(--text-2); }
}
@media (max-width: 640px) { .header-cta .btn--primary { padding: 10px 14px; font-size: 13px; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(72px, 12vw, 150px) 0 clamp(56px, 8vw, 100px); position: relative; overflow: hidden; }
.hero-inner { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { margin-bottom: 22px; font-size: clamp(2.3rem, 4.6vw, 4rem); max-width: 14ch; }
.hero h1 .line { display: block; }
.hero .lead { margin-bottom: 32px; }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 4px 14px rgba(11,20,55,.06); font-size: 13px; color: var(--text-2); margin-bottom: 26px; }
.hero-pill .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--grad-cta); display: grid; place-items: center; font-size: 11px; color: #fff; }
.hero-pill .pulse { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hero-proof { display: flex; flex-wrap: wrap; gap: 24px 36px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-proof div strong { display: block; font-family: var(--font-head); font-size: 1.7rem; line-height: 1; }
.hero-proof div > span { font-size: 13px; color: var(--text-3); }

/* Hero visual: floating dashboard cards */
.hero-visual { position: relative; min-height: 420px; }
.hv-card {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 18px; box-shadow: var(--shadow); animation: floaty 7s ease-in-out infinite;
}
.hv-card .k { font-size: 12px; color: var(--text-3); margin-bottom: 4px; }
.hv-card .v { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; }
.hv-card .up { color: #16A34A; font-size: 13px; font-weight: 600; }
.hv-card--1 { top: 6%; left: 4%; width: 46%; animation-delay: 0s; }
.hv-card--2 { top: 30%; right: 2%; width: 50%; animation-delay: -2.4s; }
.hv-card--3 { bottom: 6%; left: 12%; width: 58%; animation-delay: -4.8s; }
.hv-card .bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-top: 10px; }
.hv-card .bars i { flex: 1; background: var(--grad); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: grow 1.4s var(--ease) both; }
.hv-card .bars i:nth-child(n) { animation-delay: calc(var(--i) * .08s); }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hv-ring { position: absolute; inset: 10% 10%; border-radius: 50%; border: 1px dashed rgba(11,20,55,.18); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hv-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--navy); color: #fff; border: 1px solid var(--navy); box-shadow: 0 8px 20px rgba(11,20,55,.18); font-size: 12px; font-weight: 600; animation: floaty 6s ease-in-out infinite; }
.hv-chip img { width: 16px; height: 16px; }
.hv-chip--a { top: 0; right: 14%; animation-delay: -1s; }
.hv-chip--b { bottom: 22%; right: 0; animation-delay: -3s; }
.hv-chip--c { top: 58%; left: 0; animation-delay: -5s; }

/* ---------- Logo marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; color: var(--text-2); white-space: nowrap; opacity: .85; transition: .25s; }
.marquee-item:hover { opacity: 1; color: var(--text); }
.marquee-item img { width: 26px; height: 26px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-label { text-align: center; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) { .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .35s var(--ease), border-color .3s, background .3s; overflow: hidden; display: flex; flex-direction: column;
}
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--line-2); display: grid; place-items: center; margin-bottom: 20px; }
.card-icon img, .card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 15px; flex: 1; }
.card .link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--blue); margin-top: 14px; }
.card .link svg { width: 16px; height: 16px; transition: transform .25s; }
.card:hover .link svg { transform: translateX(4px); }
.card--feature { background: linear-gradient(160deg, #EFF6FF, #FFF7ED); }

/* Tilt */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 30px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--text-2); font-size: 14px; display: block; margin-top: 8px; }

/* ---------- Process ---------- */
.steps { display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 28px 24px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 14px; }
.step h4 { margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 14.5px; margin: 0; }

/* ---------- Portfolio ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-btn { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); color: var(--text-2); font-size: 14px; font-weight: 500; transition: .25s; }
.filter-btn:hover, .filter-btn.is-active { background: var(--grad); color: #fff; border-color: transparent; }
.work-card { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); transition: transform .35s var(--ease), border-color .3s; }
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work-card .thumb { aspect-ratio: 3/2; overflow: hidden; }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.work-card:hover .thumb img { transform: scale(1.06); }
.work-card .body { padding: 20px 22px 22px; }
.work-card .tag { display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); font-weight: 600; margin-bottom: 8px; }
.work-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.work-card .result { font-size: 14px; color: var(--text-2); margin: 0; }
.work-card .result strong { color: #15803D; }
.work-card.is-hidden { display: none; }

/* Single project */
.project-hero { padding: clamp(56px, 8vw, 96px) 0 32px; position: relative; overflow: hidden; }
.project-meta { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 24px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-meta div span { display: block; font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; }
.project-meta div strong { font-weight: 600; }
.gallery { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery img { border-radius: var(--radius-sm); border: 1px solid var(--line); width: 100%; }
.case-block { display: grid; gap: 22px; }
@media (min-width: 900px) { .case-block { grid-template-columns: repeat(3, 1fr); } }
.case-block .card h4 { color: var(--blue); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--text-2); font-size: 1.05rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius-sm); }

/* ---------- Service single ---------- */
.service-hero { padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 64px); position: relative; overflow: hidden; }
.service-hero .brandmark { width: 64px; height: 64px; border-radius: 16px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 6px 18px rgba(11,20,55,.08); display: grid; place-items: center; margin-bottom: 22px; }
.service-hero .brandmark img { width: 32px; height: 32px; }
.two-col { display: grid; gap: 40px; }
@media (min-width: 1000px) { .two-col { grid-template-columns: 1fr 360px; align-items: start; } }
.sticky-cta { position: sticky; top: 100px; }
.sticky-cta .card { padding: 26px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.check-list li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; transition: border-color .25s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; font-weight: 600; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--blue); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding-bottom: 18px; margin: 0; }

/* ---------- Testimonials ---------- */
.quote { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.quote p { font-size: 1.05rem; color: var(--text); }
.quote .who .av { color: #fff; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.quote .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 700; font-family: var(--font-head); }
.quote .who small { display: block; color: var(--text-3); }
.stars { color: #F59E0B; letter-spacing: 2px; font-size: 14px; margin-bottom: 12px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 6vw, 72px); background: linear-gradient(135deg, #1E3A8A 0%, #0F172A 60%, #1E293B 100%); border: 0; text-align: center; color: #fff; }
.cta-band .lead { color: #CBD5E1; }
.cta-band .btn--ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); color: #fff; }
.cta-band::before { content: ""; position: absolute; width: 600px; height: 600px; left: 50%; top: -420px; transform: translateX(-50%); background: radial-gradient(circle, rgba(59,130,246,.55), transparent 60%); pointer-events: none; }
.cta-band h2 { position: relative; }
.cta-band .btn-row { justify-content: center; position: relative; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; }
.contact-item .ic svg { width: 20px; height: 20px; }
.contact-item strong { display: block; margin-bottom: 2px; }
.contact-item a, .contact-item span { color: var(--text-2); font-size: 15px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); }

/* Form styling — applies to CF7, WPForms and the built-in fallback form */
.form-card label, .wpcf7 label, .wpforms-field-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text-2); }
.form-card input:not([type=submit]):not([type=checkbox]), .form-card textarea, .form-card select,
.wpcf7 input:not([type=submit]):not([type=checkbox]), .wpcf7 textarea, .wpcf7 select,
.wpforms-field input:not([type=submit]), .wpforms-field textarea, .wpforms-field select {
  width: 100%; background: #F7F8FC; border: 1px solid var(--line-2); color: var(--text); border-radius: 12px; padding: 13px 15px; font: inherit; font-size: 15px;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.form-card select, .wpcf7 select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234B5675' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.form-card select option { background: #fff; }
.form-card input:focus, .form-card textarea:focus, .form-card select:focus, .wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.14); }
.form-card textarea, .wpcf7 textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.form-card input[type=submit], .wpcf7 input[type=submit], .wpforms-submit, .form-card button[type=submit] {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 0; color: #fff; background: var(--grad-cta); box-shadow: 0 8px 24px rgba(249,115,22,.35); transition: transform .25s; cursor: pointer;
}
.form-card input[type=submit]:hover, .wpcf7 input[type=submit]:hover, .form-card button[type=submit]:hover { transform: translateY(-2px); }
.form-card button[type=submit] { white-space: nowrap; }
.form-card button[type=submit] svg { width: 18px; height: 18px; flex: none; }
.wpcf7 .wpcf7-response-output { border-radius: 12px; border-color: var(--line-2) !important; margin: 16px 0 0 !important; }
.wpcf7 .wpcf7-not-valid-tip { color: #DC2626; font-size: 13px; }
.wpcf7-spinner { display: none; }
.form-notice { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; }
.form-notice--ok { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
.form-notice--err { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.hp-field { position: absolute; left: -9999px; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }

/* ---------- About ---------- */
.values { display: grid; gap: 18px; }
@media (min-width: 760px) { .values { grid-template-columns: repeat(3, 1fr); } }
.timeline { display: grid; gap: 14px; }
.timeline .card { flex-direction: row; gap: 18px; align-items: flex-start; }
.timeline .yr { font-family: var(--font-head); font-weight: 700; color: var(--blue); flex: none; width: 70px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(64px, 9vw, 120px); background: var(--navy); color: #fff; }
.site-footer .footer-grid h4 { color: #94A3B8; }
.site-footer .footer-grid a, .site-footer .footer-grid p, .site-footer .addr { color: #CBD5E1; }
.site-footer .addr strong { color: #fff; }
.site-footer .footer-bottom { border-top-color: rgba(255,255,255,.12); color: #94A3B8; }
.site-footer .footer-bottom a { color: #CBD5E1; }
.site-footer .socials a { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.footer-grid { display: grid; gap: 36px; padding: clamp(48px, 6vw, 72px) 0 40px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-grid h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-2); font-size: 15px; transition: color .2s; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { color: var(--text-2); font-size: 15px; }
.footer-brand img { height: 46px; margin-bottom: 16px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); display: grid; place-items: center; transition: .25s; }
.socials a:hover { background: var(--grad); border-color: transparent; transform: translateY(-3px); }
.socials img { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: var(--text-3); }
.footer-bottom a { color: var(--text-2); }
.addr { font-size: 14px; color: var(--text-2); line-height: 1.5; margin-bottom: 12px; }
.addr strong { color: var(--text); display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; }

/* ---------- Floating actions ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 85; display: flex; flex-direction: column; gap: 10px; }
.fab a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: transform .25s; position: relative; }
.fab a:hover { transform: scale(1.08); }
.fab .wa { background: #22C55E; }
.fab .call { background: var(--grad); color: #fff; }
.fab .wa { color: #fff; }
.fab svg { width: 26px; height: 26px; }
.fab .wa::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(34,197,94,.5); animation: ripple 2s infinite; }
@keyframes ripple { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.to-top { position: fixed; left: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 6px 18px rgba(11,20,55,.12); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: .3s; z-index: 85; color: var(--navy); }
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 64px); position: relative; overflow: hidden; }
.breadcrumbs { font-size: 13px; color: var(--text-3); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs a { color: var(--text-2); }
.breadcrumbs span::before { content: "/"; margin-right: 8px; color: var(--text-3); }
.breadcrumbs span:first-child::before { content: none; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.reveal[data-delay="5"] { transition-delay: .5s; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: .19s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: .26s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: .33s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: .40s; }
.reveal-stagger.is-in > *:nth-child(7) { transition-delay: .47s; }
.reveal-stagger.is-in > *:nth-child(8) { transition-delay: .54s; }
.reveal-stagger.is-in > *:nth-child(n+9) { transition-delay: .6s; }
.word-reveal .w { display: inline-block; opacity: 0; transform: translateY(40px) rotate(3deg); animation: wordIn .8s var(--ease) forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--grad); width: 0; z-index: 100; transition: width .1s linear; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-stagger > *, .word-reveal .w { opacity: 1; transform: none; }
}

/* ---------- WP core compat ---------- */
.alignwide { max-width: var(--container); }
.wp-block-image img { border-radius: var(--radius-sm); }
.entry-content > * { max-width: 760px; }
.entry-content > .alignwide, .entry-content > .alignfull { max-width: none; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; }
.error-404 { text-align: center; padding: 120px 0; }
.error-404 h1 { font-size: clamp(5rem, 15vw, 10rem); }

/* ==========================================================================
   v1.1 — conversion & UX layer
   ========================================================================== */

/* Accessible focus rings */
:focus-visible { outline: 3px solid rgba(37,99,235,.55); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible { outline-offset: 4px; }

/* Header compact state */
.site-header.is-scrolled .header-inner { height: 64px; }
.site-header.is-scrolled .brand img { height: 38px; }
.header-inner, .brand img { transition: height .3s var(--ease); }

/* Trust strip under hero CTAs */
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; padding: 0; list-style: none; font-size: 13.5px; color: var(--text-2); }
.trust-strip li { display: inline-flex; align-items: center; gap: 7px; }
.trust-strip li::before { content: "✓"; width: 18px; height: 18px; border-radius: 50%; background: #DCFCE7; color: #15803D; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* Hero parallax layers */
.hero-visual { will-change: transform; }

/* Work card image reveal */
.work-card .thumb img { clip-path: inset(0 0 0 0); }
.reveal-stagger > .work-card .thumb img { clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease) .15s, transform .7s var(--ease); }
.reveal-stagger.is-in > .work-card .thumb img { clip-path: inset(0 0 0 0); }

/* Animated FAQ */
.faq details .faq-body { overflow: hidden; }
.faq summary { user-select: none; }
.faq details[open] summary { color: var(--blue-2); }

/* Card icon hover pop */
.card:hover .card-icon { transform: translateY(-3px) rotate(-4deg); box-shadow: 0 8px 18px rgba(37,99,235,.18); }
.card-icon { transition: transform .35s var(--ease), box-shadow .35s; }

/* Marquee icons soft → full on hover row */
.marquee-item img { opacity: .8; transition: opacity .25s; }
.marquee:hover .marquee-item img { opacity: 1; }

/* Sticky mobile action bar */
.mobile-bar { display: none; }
@media (max-width: 767px) {
  .fab { display: none; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 88; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(15,23,42,.08); transform: translateY(110%); transition: transform .4s var(--ease); }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; border-radius: 12px; font-weight: 600; font-size: 13.5px; }
  .mobile-bar a svg { width: 18px; height: 18px; }
  .mobile-bar .mb-call { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); }
  .mobile-bar .mb-wa { background: #22C55E; color: #fff; }
  .mobile-bar .mb-cta { background: var(--grad-cta); color: #fff; box-shadow: 0 6px 18px rgba(249,115,22,.35); }
  body { padding-bottom: 74px; }
  .to-top { bottom: 86px; }
}

/* Exit-intent / scroll offer */
.offer { position: fixed; right: 18px; bottom: 90px; z-index: 89; width: min(380px, calc(100vw - 36px)); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 60px rgba(15,23,42,.18); padding: 22px 22px 20px; transform: translateY(20px) scale(.96); opacity: 0; pointer-events: none; transition: .45s var(--ease); }
.offer.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.offer .offer-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-2); background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 999px; padding: 4px 10px; margin-bottom: 10px; }
.offer h4 { font-size: 1.15rem; margin-bottom: 6px; }
.offer p { font-size: 14px; color: var(--text-2); margin-bottom: 14px; }
.offer .btn { width: 100%; }
.offer .offer-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text-2); font-size: 18px; line-height: 1; }
.offer .offer-close:hover { background: var(--line); }
@media (max-width: 767px) { .offer { bottom: 84px; right: 12px; left: 12px; width: auto; } }

/* Inline form validation feedback */
.form-card input:user-invalid, .form-card textarea:user-invalid { border-color: #DC2626; }
.form-card input:user-valid, .form-card textarea:user-valid { border-color: #16A34A; }
.form-card .form-hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* What happens next (service sidebar) */
.next-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: ns; }
.next-steps li { display: flex; gap: 12px; font-size: 14px; color: var(--text-2); align-items: flex-start; }
.next-steps li::before { counter-increment: ns; content: counter(ns); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }


/* Nav CTA hover lift */
.header-cta .btn--primary:hover { transform: translateY(-2px) scale(1.02); }

/* Selection color */
::selection { background: #FED7AA; color: #0F172A; }

/* ---------- Hero: orbiting official brand logos ---------- */
.hero-orbit { position: relative; min-height: 520px; display: grid; place-items: center; }
.orbit-core { position: relative; z-index: 3; width: 168px; height: 168px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(15,23,42,.14), 0 0 0 12px rgba(255,255,255,.55); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; }
.orbit-core img { width: 54px; height: 54px; margin-bottom: 6px; }
.orbit-core strong { font-family: var(--font-head); font-size: 15px; line-height: 1.1; }
.orbit-core span { font-size: 12px; color: var(--text-2); }
.orbit { position: absolute; top: 50%; left: 50%; border-radius: 50%; border: 1px dashed rgba(37,99,235,.28); transform: translate(-50%,-50%); animation: orbit-spin var(--dur) linear infinite; }
.orbit--1 { --r: 150px; --dur: 40s; width: calc(var(--r) * 2); height: calc(var(--r) * 2); }
.orbit--2 { --r: 245px; --dur: 70s; width: calc(var(--r) * 2); height: calc(var(--r) * 2); animation-direction: reverse; border-color: rgba(249,115,22,.28); }
.orbit-item { position: absolute; top: 50%; left: 50%; width: 0; height: 0; transform: rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a))); }
.orbit-chip { position: absolute; top: 0; left: 0; width: 60px; height: 60px; transform: translate(-50%,-50%); border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(15,23,42,.12); display: grid; place-items: center; animation: orbit-counter var(--dur) linear infinite; transition: transform .3s var(--ease), box-shadow .3s; }
.orbit--2 .orbit-chip { animation-direction: reverse; }
.orbit-chip--sm { width: 48px; height: 48px; border-radius: 14px; }
.orbit-chip img, .orbit-chip i { width: 28px; height: 28px; font-size: 26px; }
.orbit-chip--sm img, .orbit-chip--sm i { width: 22px; height: 22px; font-size: 20px; }
.orbit-chip img { opacity: 1; }
.hero-orbit:hover .orbit, .hero-orbit:hover .orbit-chip { animation-play-state: paused; }
.orbit-chip:hover { transform: translate(-50%,-50%) scale(1.18); box-shadow: 0 16px 34px rgba(37,99,235,.22); z-index: 5; }
@keyframes orbit-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes orbit-counter { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(-360deg); } }
.hv-card--kpi { position: absolute; right: 0; bottom: 8px; width: 210px; z-index: 4; animation: floaty 7s ease-in-out infinite; }
@media (max-width: 1023px) {
  .hero-orbit { min-height: 480px; margin-top: 8px; }
  .orbit--1 { --r: 120px; } .orbit--2 { --r: 200px; }
  .orbit-chip { width: 50px; height: 50px; border-radius: 15px; } .orbit-chip--sm { width: 40px; height: 40px; }
  .orbit-chip img { width: 24px; height: 24px; } .orbit-chip--sm img { width: 18px; height: 18px; }
  .orbit-core { width: 140px; height: 140px; } .orbit-core img { width: 44px; height: 44px; }
  .hv-card--kpi { right: 0; bottom: 0; width: 180px; }
}
@media (max-width: 420px) { .orbit--1 { --r: 96px; } .orbit--2 { --r: 152px; } .hero-orbit { min-height: 400px; } .orbit-core { width: 120px; height: 120px; } .hv-card--kpi { width: 160px; padding: 12px; } }
@media (prefers-reduced-motion: reduce) { .orbit, .orbit-chip { animation: none !important; } }

/* ---------- Brand-tinted service cards ---------- */
.card--brand { background: linear-gradient(160deg, var(--tint) 0%, #fff 70%); border-color: var(--tint-2); }
.card--brand .card-icon { background: #fff; border-color: var(--tint-2); box-shadow: 0 6px 16px rgba(15,23,42,.06); }
.card--brand::before { background: linear-gradient(120deg, var(--brand), var(--tint-2)); }
.card--brand:hover { background: linear-gradient(160deg, var(--tint-2) 0%, var(--tint) 100%); }
.card--brand .link { color: var(--brand-text, var(--brand)); }
.card--brand::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--tint-2); opacity: .55; transition: transform .5s var(--ease); pointer-events: none; }
.card--brand:hover::after { transform: scale(1.5); }
.card--brand > * { position: relative; z-index: 1; }
.card--brand::after { z-index: 0; }

/* Contact: coloured official icons */
.contact-item .ic--brand { background: #fff; border-color: var(--line); box-shadow: 0 6px 16px rgba(15,23,42,.08); }
.contact-item .ic--brand img { width: 24px; height: 24px; }
.contact-item .ic--phone { background: linear-gradient(135deg, #2563EB, #3B82F6); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.3); }
.contact-item .ic--phone svg { width: 20px; height: 20px; }

/* ==========================================================================
   Service hero graphics (pure CSS illustrations)
   ========================================================================== */
.service-hero .container { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .service-hero .container { grid-template-columns: 1.05fr .95fr; } }
.service-hero .brandmark { margin-bottom: 18px; }
.sg { position: relative; min-height: 380px; width: 100%; max-width: 520px; margin: 0 auto; }
.sg-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(15,23,42,.10); font-size: 12.5px; font-weight: 600; animation: floaty 6s ease-in-out infinite; z-index: 4; }
.sg-chip img, .sg-chip i { width: 18px; height: 18px; font-size: 16px; }
.sg-chip--a { top: 4%; left: -4%; } .sg-chip--b { bottom: 10%; right: -4%; animation-delay: -2s; } .sg-chip--c { top: 46%; right: -8%; animation-delay: -4s; }
.sg-float { position: absolute; padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(15,23,42,.12); font-size: 13px; z-index: 4; animation: floaty 5s ease-in-out infinite; white-space: nowrap; }
.sg-float b { font-weight: 700; }
.sg-float--1 { top: 12%; left: 2%; } .sg-float--2 { top: 40%; right: 0; animation-delay: -1.5s; } .sg-float--3 { bottom: 14%; left: 0; animation-delay: -3s; }
/* skeleton primitives */
.sg .sg-h { height: 12px; width: 62%; border-radius: 6px; background: var(--navy); margin-bottom: 8px; }
.sg .sg-p { height: 7px; width: 90%; border-radius: 4px; background: #E2E8F0; margin-bottom: 6px; }
.sg .sg-p.short { width: 60%; }
/* web */
.sg-browser { position: relative; z-index: 2; width: 88%; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.sg-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #F8FAFC; }
.sg-bar i { width: 9px; height: 9px; border-radius: 50%; background: #E2E8F0; } .sg-bar i:nth-child(1) { background: #FCA5A5; } .sg-bar i:nth-child(2) { background: #FDE68A; } .sg-bar i:nth-child(3) { background: #86EFAC; }
.sg-bar span { flex: 1; height: 10px; border-radius: 5px; background: #E2E8F0; margin-left: 8px; }
.sg-page { padding: 14px; }
.sg-nav { height: 10px; width: 100%; border-radius: 5px; background: #EEF2F7; margin-bottom: 14px; }
.sg-hero { padding: 6px 0 14px; } .sg-hero .sg-h { animation: sg-grow 1.2s var(--ease) both; }
.sg-btn { width: 84px; height: 22px; border-radius: 999px; background: var(--grad-cta); margin-top: 6px; animation: sg-pop 1.4s var(--ease) both .4s; }
.sg-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; } .sg-cards i { height: 54px; border-radius: 8px; background: linear-gradient(160deg, #EFF6FF, #DBEAFE); animation: sg-pop .9s var(--ease) both; }
.sg-cards i:nth-child(2) { animation-delay: .15s; } .sg-cards i:nth-child(3) { animation-delay: .3s; }
.sg-gauge { position: absolute; right: -6px; bottom: 30px; z-index: 3; width: 120px; height: 120px; background: #fff; border-radius: 50%; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; animation: floaty 6s ease-in-out infinite; }
.sg-gauge svg { position: absolute; inset: 8px; transform: rotate(-90deg); } .sg-gauge circle { fill: none; stroke-width: 7; } .sg-gauge .track { stroke: #EEF2F7; } .sg-gauge .val { stroke: #16A34A; stroke-linecap: round; stroke-dasharray: 201; stroke-dashoffset: 201; animation: sg-gauge 1.6s var(--ease) forwards .3s; }
.sg-gauge strong { font-family: var(--font-head); font-size: 26px; line-height: 1; margin-top: -8px; } .sg-gauge span { position: absolute; bottom: 22px; font-size: 9px; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }
@keyframes sg-gauge { to { stroke-dashoffset: 4; } }
@keyframes sg-grow { from { width: 0; } } @keyframes sg-pop { from { transform: scale(.6); opacity: 0; } }
/* app */
.sg--app { min-height: 420px; }
.sg-phone { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 190px; height: 380px; background: #0F172A; border-radius: 30px; padding: 10px; box-shadow: var(--shadow); z-index: 3; }
.sg-phone--back { transform: translate(-50%,-50%) translateX(70px) rotate(8deg) scale(.9); z-index: 2; opacity: .85; }
.sg-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 70px; height: 14px; border-radius: 8px; background: #0F172A; z-index: 2; }
.sg-screen { height: 100%; border-radius: 22px; background: #fff; padding: 30px 12px 12px; overflow: hidden; }
.sg-tile { height: 70px; border-radius: 12px; background: var(--grad); margin: 8px 0; animation: sg-pop 1s var(--ease) both; }
.sg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; } .sg-row i { height: 44px; border-radius: 10px; background: #EFF6FF; }
.sg-tab { position: absolute; bottom: 20px; left: 22px; right: 22px; display: flex; justify-content: space-between; } .sg-tab i { width: 18px; height: 18px; border-radius: 6px; background: #E2E8F0; } .sg-tab i.on { background: var(--orange); }
/* automation */
.sg--auto { min-height: 300px; }
.sg-flow { position: absolute; inset: 0; width: 100%; height: 100%; }
.sg-flow .wire { fill: none; stroke: #CBD5E1; stroke-width: 2; stroke-dasharray: 6 6; }
.sg-flow .dot { fill: #2563EB; } .sg-flow .dot--o { fill: #F97316; }
.sg-node { position: absolute; transform: translateY(-50%); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 600; box-shadow: 0 10px 24px rgba(15,23,42,.10); }
.sg-node::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-right: 8px; }
.sg-node--end { background: var(--navy); color: #fff; border-color: var(--navy); } .sg-node--end::before { background: #22C55E; }
/* search */
.sg-searchbar { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; box-shadow: var(--shadow); font-size: 14px; color: var(--text-2); }
.sg-searchbar img { width: 22px; height: 22px; }
.sg-type { overflow: hidden; white-space: nowrap; border-right: 2px solid var(--text-2); animation: sg-type 2.4s steps(30) both, sg-caret .8s step-end infinite; }
@keyframes sg-type { from { width: 0; } to { width: 100%; } } @keyframes sg-caret { 50% { border-color: transparent; } }
.sg-serp { margin-top: 18px; display: grid; gap: 10px; }
.sg-result { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.sg-result b { display: block; height: 10px; width: 46%; border-radius: 5px; background: #CBD5E1; margin-bottom: 8px; font-size: 13px; color: #1D4ED8; }
.sg-result--you b { height: auto; width: auto; background: none; } .sg-result i { display: block; height: 7px; width: 92%; border-radius: 4px; background: #E2E8F0; margin-bottom: 6px; } .sg-result i.short { width: 60%; }
.sg-result--you { border-color: #93C5FD; box-shadow: 0 12px 30px rgba(37,99,235,.15); animation: sg-rise 1.2s var(--ease) both .6s; }
.sg-result--you em { position: absolute; right: 14px; top: 12px; font-style: normal; font-weight: 800; font-family: var(--font-head); color: #16A34A; }
@keyframes sg-rise { from { transform: translateY(140px); opacity: 0; } }
.sg-rank { position: absolute; right: -10px; top: 40%; background: var(--navy); color: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); animation: floaty 6s ease-in-out infinite; }
.sg-rank span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; opacity: .7; } .sg-rank strong { font-family: var(--font-head); font-size: 20px; }
/* social */
.sg--social { min-height: 420px; }
.sg-post { padding: 8px 0; } .sg-av { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); margin-bottom: 6px; }
.sg-media { height: 120px; border-radius: 10px; background: linear-gradient(135deg, #FDE68A, #FB7185); } .sg-media.alt { background: linear-gradient(135deg, #93C5FD, #6366F1); }
.sg-acts { display: flex; gap: 8px; margin-top: 8px; } .sg-acts i { width: 16px; height: 16px; border-radius: 4px; background: #E2E8F0; } .sg-acts .heart { background: #EF4444; border-radius: 50%; animation: sg-beat 1.4s ease-in-out infinite; }
@keyframes sg-beat { 0%,100% { transform: scale(1); } 30% { transform: scale(1.3); } }
/* ecommerce */
.sg-products { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 10px; }
.sg-prod { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; box-shadow: 0 8px 20px rgba(15,23,42,.06); animation: sg-pop .9s var(--ease) both; }
.sg-prod:nth-child(2) { animation-delay: .15s; } .sg-prod:nth-child(3) { animation-delay: .3s; }
.sg-prod i { display: block; height: 90px; border-radius: 10px; background: linear-gradient(160deg, #DBEAFE, #93C5FD); margin-bottom: 8px; } .sg-prod i.p2 { background: linear-gradient(160deg, #FFEDD5, #FDBA74); } .sg-prod i.p3 { background: linear-gradient(160deg, #DCFCE7, #86EFAC); }
.sg-prod b { display: block; height: 8px; width: 70%; border-radius: 4px; background: #CBD5E1; margin-bottom: 6px; } .sg-prod s { text-decoration: none; font-weight: 700; font-size: 13px; }
.sg-cart { margin-top: 14px; display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; border-radius: 14px; padding: 12px 16px; font-size: 14px; box-shadow: var(--shadow); }
.sg-cart span { flex: 1; } .sg-cart em { font-style: normal; background: var(--grad-cta); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 12px; }
/* analytics */
.sg-dash { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); position: relative; }
.sg-dash-head { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 12px; } .sg-dash-head b { font-size: 13px; } .sg-dash-head span { color: var(--text-3); }
.sg-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; } .sg-bars i { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #3B82F6, #1D4ED8); transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
.sg-bars i:nth-child(n) { animation-delay: calc(var(--i, 1) * .06s); } .sg-bars i:last-child { background: linear-gradient(180deg, #FB923C, #F97316); }
.sg-line { position: absolute; left: 16px; right: 16px; bottom: 16px; height: 60px; width: calc(100% - 32px); } .sg-line path { fill: none; stroke: #F97316; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: sg-draw 1.8s var(--ease) forwards .4s; }
@keyframes sg-draw { to { stroke-dashoffset: 0; } }
.sg-funnel { margin: 14px auto 0; display: grid; gap: 6px; width: 90%; } .sg-funnel i { display: block; margin: 0 auto; height: 26px; border-radius: 6px; background: linear-gradient(90deg, #DBEAFE, #93C5FD); font-style: normal; font-size: 11px; font-weight: 600; text-align: center; line-height: 26px; color: #1E3A8A; animation: sg-pop .8s var(--ease) both; }
.sg-funnel i:nth-child(2) { animation-delay: .1s; } .sg-funnel i:nth-child(3) { animation-delay: .2s; } .sg-funnel i:nth-child(4) { animation-delay: .3s; background: linear-gradient(90deg, #FED7AA, #FB923C); color: #7C2D12; }
/* ads */
.sg--ads { min-height: 400px; }
.sg-ad { position: relative; z-index: 2; width: 250px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; animation: floaty 7s ease-in-out infinite; }
.sg-ad-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 12px; color: var(--text-3); } .sg-ad-head img, .sg-ad-head i { width: 20px; height: 20px; font-size: 18px; } .sg-ad-head b { font-weight: 500; }
.sg-ad-media { height: 150px; background: linear-gradient(135deg, #1D4ED8, #3B82F6 60%, #F97316); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.sg-ad-cta { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; } .sg-ad-cta i { width: 90px; height: 8px; border-radius: 4px; background: #E2E8F0; } .sg-ad-cta em { font-style: normal; font-size: 12px; font-weight: 700; background: var(--grad-cta); color: #fff; padding: 7px 12px; border-radius: 999px; }
.sg-metric { position: absolute; z-index: 3; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: 0 10px 26px rgba(15,23,42,.12); animation: floaty 6s ease-in-out infinite; }
.sg-metric span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); } .sg-metric strong { font-family: var(--font-head); font-size: 20px; line-height: 1.1; } .sg-metric small { display: block; font-size: 11px; font-weight: 700; color: #16A34A; }
.sg-metric--1 { top: 8%; left: 0; } .sg-metric--2 { top: 40%; right: 0; animation-delay: -2s; } .sg-metric--3 { bottom: 6%; left: 4%; animation-delay: -4s; }
.sg-spark { position: absolute; right: 0; bottom: 0; width: 180px; height: 50px; } .sg-spark path { fill: none; stroke: #16A34A; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: sg-draw 2s var(--ease) forwards .5s; }
@media (max-width: 1023px) { .sg { min-height: 360px; } .sg-chip--a { left: 0; } .sg-chip--b, .sg-chip--c { right: 0; } .sg-rank { right: 0; } }

/* ---------- Service page: problem / approach / edge sections ---------- */
.pain-grid { display: grid; gap: 18px; } @media (min-width: 800px) { .pain-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.pain { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--radius-sm); padding: 22px 22px 20px; }
.pain h4 { margin-bottom: 8px; font-size: 1.05rem; } .pain p { margin: 0; font-size: 14.5px; color: var(--text-2); }
.approach { display: grid; gap: 0; position: relative; }
.approach-step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.approach-step:last-child { border-bottom: 0; }
.approach-step .num { width: 44px; height: 44px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; box-shadow: 0 8px 20px rgba(37,99,235,.25); }
.approach-step h4 { margin-bottom: 6px; } .approach-step p { margin: 0; color: var(--text-2); font-size: 15px; }
.edge-grid { display: grid; gap: 18px; } @media (min-width: 800px) { .edge-grid { grid-template-columns: repeat(3, 1fr); } }
.edge { background: linear-gradient(160deg, #EFF6FF, #fff); border: 1px solid #DBEAFE; border-radius: var(--radius); padding: 24px; }
.edge h4 { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; } .edge h4::before { content: "★"; color: var(--orange); }
.edge p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.kpi-pill { display: inline-flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px 8px 8px; box-shadow: 0 6px 18px rgba(15,23,42,.08); margin-bottom: 18px; font-size: 13px; color: var(--text-2); }
.kpi-pill strong { font-family: var(--font-head); font-size: 18px; color: var(--text); background: #DCFCE7; color: #166534; padding: 4px 10px; border-radius: 999px; }
