/* ============================================================
   Vizion Technologies — Light Theme Stylesheet
   Brand: #2563EB (blue) · #0F172A (dark) · #FFFFFF (bg)
   Fonts: Sora · DM Mono
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:       #ffffff;
  --bg-2:     #f8faff;
  --bg-3:     #eff6ff;
  --bg-dark:  #0f172a;
  --bg-dark2: #1e293b;

  --accent:   #2563eb;
  --accent-2: #3b82f6;
  --accent-lt:#dbeafe;
  --accent-bg:#eff6ff;

  --violet:   #7c3aed;
  --green:    #059669;
  --green-lt: #d1fae5;
  --green-dk: #065f46;
  --red-lt:   #fee2e2;
  --red-dk:   #991b1b;
  --amber:    #d97706;
  --amber-lt: #fef3c7;

  --text:     #0f172a;
  --t2:       #374151;
  --t3:       #64748b;
  --t4:       #94a3b8;
  --t5:       #cbd5e1;

  --bdr:      rgba(0,0,0,.08);
  --bdr2:     rgba(0,0,0,.13);

  --sh-xs:    0 1px 2px rgba(0,0,0,.04);
  --sh-sm:    0 1px 3px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --sh:       0 4px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);
  --sh-lg:    0 16px 48px rgba(0,0,0,.1), 0 4px 16px rgba(0,0,0,.06);
  --sh-blue:  0 8px 32px rgba(37,99,235,.22);

  --wa:       #25d366;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Sora', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  cursor: none;
}

/* ── Skip link ──────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: .5rem; top: .5rem;
  padding: .5rem .75rem;
  background: var(--accent); color: #fff;
  border-radius: 6px;
  transform: translateY(-120%);
  transition: transform .18s ease;
  z-index: 11000;
}
.skip-link:focus { transform: translateY(0); outline: none; }

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .cursor, .cursor-follower { display: none !important; }
  body { cursor: auto !important; }
  .marquee-track, .reveal, .hero-h1 .ln span, .scroll-line::after,
  .badge-dot, .wa-btn::before { animation: none !important; }
  #scroll-progress { transition: none !important; }
}

/* ── Focus ──────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── Scroll Progress ────────────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  z-index: 10000;
  transition: width .05s linear;
  pointer-events: none;
}

/* ── Custom Cursor ──────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .25s, height .25s, background .25s;
}
.cursor-follower {
  position: fixed;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid rgba(37,99,235,.4);
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: left .1s ease, top .1s ease, width .25s, height .25s;
}
.cursor.hover { width: 18px; height: 18px; background: var(--accent); }
.cursor-follower.hover { width: 52px; height: 52px; border-color: rgba(37,99,235,.6); }

/* ── Navigation ─────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 6%;
  transition: background .35s, box-shadow .35s, padding .35s;
}
nav.scrolled, nav.solid {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--bdr), 0 4px 20px rgba(0,0,0,.05);
  padding: .9rem 6%;
}
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--t3); font-size: .875rem; font-weight: 400; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: .5rem 1.3rem !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  transition: background .2s, box-shadow .2s, transform .15s !important;
}
.nav-cta:hover { background: #1d4ed8 !important; box-shadow: var(--sh-blue); transform: translateY(-1px); }
.nav-cta.active { color: #fff !important; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--t2); border-radius: 2px; transition: all .3s; }

.mob-nav {
  position: fixed; inset: 0;
  z-index: 400;
  background: var(--bg-dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2.5rem;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.mob-nav.open { transform: translateX(0); }
.mob-nav a { font-size: 2.2rem; font-weight: 800; color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; letter-spacing: -.04em; }
.mob-nav a:hover { color: #fff; }
.mob-close {
  position: absolute; top: 2rem; right: 6%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
  cursor: pointer; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; transition: background .2s, color .2s;
}
.mob-close:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ── Shared section styles ──────────────────────────────────── */
section { padding: 7rem 6%; position: relative; }
.page-top { padding-top: clamp(8rem, 12vw, 10rem); }
.sec-hd { margin-bottom: 4rem; }

.s-lbl {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 12px;
  font-family: 'DM Mono', monospace;
}
.s-lbl::before { content: ''; width: 24px; height: 2px; background: var(--accent); flex-shrink: 0; border-radius: 2px; }

.s-title { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -.038em; color: var(--text); margin-bottom: 1.2rem; }
.s-sub { font-size: 1rem; line-height: 1.85; font-weight: 300; color: var(--t3); max-width: 560px; }
.s-sub strong { color: var(--text); font-weight: 600; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  padding: .9rem 2rem; border-radius: 100px;
  text-decoration: none; font-weight: 600; font-size: .9rem;
  letter-spacing: -.01em;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: var(--sh-blue); }
.btn-primary svg { transition: transform .2s; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--t2);
  padding: .9rem 2rem; border-radius: 100px;
  text-decoration: none; font-weight: 500; font-size: .9rem;
  border: 1.5px solid var(--bdr2);
  transition: border-color .2s, color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }

.btn-white {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--accent);
  padding: .9rem 2.2rem; border-radius: 100px;
  text-decoration: none; font-weight: 700; font-size: .95rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(0,0,0,.2); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 6.5rem 6% 2rem;
  background: var(--bg);
  position: relative; overflow: hidden;
}
.hero-blob1 {
  position: absolute; top: -200px; right: -150px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.07), transparent 65%);
  pointer-events: none;
}
.hero-blob2 {
  position: absolute; bottom: -200px; left: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.05), transparent 65%);
  pointer-events: none;
}

.hero-inner { display: flex; align-items: center; gap: 3.5rem; width: 100%; position: relative; z-index: 2; }
.hero-content { flex: 1; max-width: 580px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent-bg); border: 1px solid var(--accent-lt);
  color: var(--accent);
  font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: .5rem 1.2rem; border-radius: 100px; margin-bottom: 1rem;
  opacity: 0;
  font-family: 'DM Mono', monospace;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: badgePulse 2s infinite;
}
@keyframes badgePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(5,150,105,.4); } 50% { box-shadow: 0 0 0 5px rgba(5,150,105,0); } }

.hero-h1 {
  font-size: clamp(1.75rem, 2.7vw, 2.75rem);
  font-weight: 800; line-height: 1.12;
  letter-spacing: -.035em; color: var(--text);
  margin-bottom: 1.1rem; opacity: 0;
}
.hero-h1 .ln { display: block; overflow: hidden; }
.hero-h1 .ln span { display: block; transform: translateY(110%); }
.hero-fix span { color: var(--accent); }

.hero-sub {
  font-size: .92rem; color: var(--t3); line-height: 1.8;
  font-weight: 300; max-width: 460px; margin-bottom: 1.5rem; opacity: 0;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; opacity: 0; }

.hero-trust {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  font-size: .78rem; color: var(--t3); font-weight: 400; opacity: 0;
  margin-bottom: 3.5rem;
}
.ht-item { display: flex; align-items: center; gap: 5px; color: var(--t2); }
.ht-item svg { color: var(--green); flex-shrink: 0; }
.ht-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--t5); }

/* Hero visual */
.hero-visual {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  flex: 0 0 auto; width: clamp(300px, 45%, 520px); position: relative;
  isolation: isolate; perspective: 1200px;
}
.hero-visual::before {
  content: ''; position: absolute; z-index: -1; inset: 6% 4%;
  background: radial-gradient(ellipse, rgba(59,130,246,.15), rgba(124,58,237,.06) 48%, transparent 72%);
  filter: blur(18px); transform: scale(1.08);
}
.vis-orbit {
  position: absolute; z-index: -1; border: 1px solid rgba(37,99,235,.12);
  border-radius: 50%; pointer-events: none;
}
.vis-orbit-a { width: 76px; height: 76px; top: 12%; left: -9%; animation: orbitDrift 8s ease-in-out infinite; }
.vis-orbit-b { width: 30px; height: 30px; right: 4%; bottom: 9%; background: rgba(124,58,237,.08); border-color: rgba(124,58,237,.14); animation: orbitDrift 6s ease-in-out infinite reverse; }
@keyframes orbitDrift { 0%,100% { transform: translate3d(0,0,0) rotate(0); } 50% { transform: translate3d(6px,-12px,0) rotate(18deg); } }
.vis-card {
  background: #fff; border: 1px solid var(--bdr);
  border-radius: 20px; box-shadow: var(--sh-lg);
  overflow: hidden; padding: 12px;
  transform: rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
  transform-style: preserve-3d; will-change: transform;
}
.hero-visual:hover .vis-card { box-shadow: 0 28px 75px rgba(15,23,42,.16), 0 8px 24px rgba(37,99,235,.1); }
.vis-topbar {
  display: flex; gap: 6px; align-items: center;
  padding: 0 0 10px 4px;
}
.vis-preview-tag {
  margin-left: auto; padding: .28rem .55rem; border-radius: 999px;
  color: var(--accent); background: var(--accent-bg); border: 1px solid var(--accent-lt);
  font: 500 .58rem 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }
.vis-card img { width: 100%; height: auto; border-radius: 10px; display: block; }

.vis-float {
  position: absolute;
  background: #fff; border: 1px solid var(--bdr);
  border-radius: 14px; padding: .75rem 1rem;
  box-shadow: var(--sh);
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem; max-width: min(280px, 72%); z-index: 2;
  transition: transform .25s, box-shadow .25s;
}
.vis-float:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--sh-lg); }
.vis-float-1 { bottom: -18px; left: -24px; }
.vis-float-2 { top: -18px; right: -16px; }
.vf-icon { font-size: 1.2rem; }
.vf-val { font-weight: 700; color: var(--text); font-size: .88rem; line-height: 1; }
.vf-lbl { font-size: .65rem; color: var(--t3); margin-top: 3px; line-height: 1.35; }

.hero-scroll {
  position: absolute; bottom: 1.8rem; left: 6%;
  display: flex; align-items: center; gap: 12px;
  color: var(--t5); font-size: .65rem;
  letter-spacing: .18em; text-transform: uppercase;
  font-family: 'DM Mono', monospace; opacity: 0;
}
.scroll-line { width: 1px; height: 44px; background: var(--t5); position: relative; overflow: hidden; }
.scroll-line::after {
  content: ''; position: absolute; top: -100%; left: 0; right: 0; height: 100%;
  background: var(--accent);
  animation: sDown 2.2s ease infinite;
}
@keyframes sDown { 0% { top: -100%; } 100% { top: 100%; } }

/* ── Marquee ────────────────────────────────────────────────── */
.marquee-wrap {
  background: var(--bg-2); padding: .8rem 0;
  overflow: hidden;
  border-top: 1px solid var(--bdr); border-bottom: 1px solid var(--bdr);
}
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: mq 32s linear infinite; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.mq-item {
  display: flex; align-items: center; gap: 12px;
  color: var(--t4); font-size: .72rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap; font-family: 'DM Mono', monospace;
}
.mq-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ── Social Proof ───────────────────────────────────────────── */
.social-proof { background: var(--bg); }

.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-bottom: 5rem;
}
.stat-card {
  background: var(--bg-2); border: 1px solid var(--bdr);
  border-radius: 18px; padding: 2rem 1.8rem;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.stat-card:hover { box-shadow: var(--sh); transform: translateY(-2px); }
.stat-n { font-size: 2.8rem; font-weight: 800; color: var(--text); letter-spacing: -.05em; line-height: 1; }
.stat-n span { color: var(--accent); }
.stat-l { font-size: .78rem; color: var(--t3); margin-top: .5rem; font-weight: 400; line-height: 1.4; }

.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3.5rem; }
.test-card {
  background: #fff; border: 1px solid var(--bdr);
  border-radius: 20px; padding: 2rem;
  box-shadow: var(--sh-sm);
  display: flex; flex-direction: column; gap: 1.2rem;
  transition: box-shadow .2s, transform .2s;
}
.test-card:hover { box-shadow: var(--sh); transform: translateY(-3px); }
.test-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; }
blockquote.test-q { font-size: .92rem; color: var(--t2); line-height: 1.8; font-weight: 300; flex: 1; font-style: italic; }
.test-author { display: flex; align-items: center; gap: 12px; padding-top: .5rem; border-top: 1px solid var(--bdr); }
.test-av {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--accent-bg); color: var(--accent);
  font-size: .85rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.test-name { font-size: .875rem; font-weight: 700; color: var(--text); }
.test-role { font-size: .75rem; color: var(--t3); margin-top: 2px; }

.trusted-by { text-align: center; padding: 2rem 0 0; border-top: 1px solid var(--bdr); }
.tb-lbl { font-size: .65rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--t4); margin-bottom: 1.2rem; font-family: 'DM Mono', monospace; }
.tb-list { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .6rem; }
.tb-item { font-size: .875rem; color: var(--t3); font-weight: 400; }
.tb-sep { color: var(--t5); font-weight: 300; }

/* ── Services ───────────────────────────────────────────────── */
.services { background: var(--bg-2); }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.svc-card {
  background: #fff; border: 1px solid var(--bdr);
  border-radius: 22px; padding: 2.4rem;
  display: flex; flex-direction: column; gap: 1rem;
  box-shadow: var(--sh-xs);
  position: relative;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.svc-card:hover { box-shadow: var(--sh); transform: translateY(-4px); border-color: var(--accent-lt); }

.svc-featured { border-color: var(--accent-lt); }
.svc-badge {
  position: absolute; top: -1px; right: 1.5rem;
  background: var(--accent); color: #fff;
  font-size: .62rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .28rem .8rem; border-radius: 0 0 8px 8px;
  font-family: 'DM Mono', monospace;
}

.svc-ico {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-bg); border: 1px solid var(--accent-lt);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  transition: background .25s;
  flex-shrink: 0;
}
.svc-card:hover .svc-ico { background: var(--accent-lt); }

.svc-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.svc-card > p { font-size: .85rem; color: var(--t3); line-height: 1.8; font-weight: 300; }

.svc-outcomes { list-style: none; display: flex; flex-direction: column; gap: .4rem; margin-top: .25rem; flex: 1; }
.svc-outcomes li {
  font-size: .8rem; color: var(--t2); font-weight: 400;
  padding-left: 1.2rem; position: relative;
}
.svc-outcomes li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--green); font-size: .75rem; font-weight: 700;
}

.svc-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-size: .82rem; font-weight: 600;
  text-decoration: none; margin-top: auto; padding-top: .5rem;
  border-top: 1px solid var(--bdr);
  transition: gap .2s;
}
.svc-link:hover { gap: 10px; }

/* ── Process ────────────────────────────────────────────────── */
.process { background: var(--bg); }

.proc-steps {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0; align-items: start;
}
.proc-step {
  background: #fff; border: 1px solid var(--bdr);
  border-radius: 22px; padding: 2.5rem 2rem;
  box-shadow: var(--sh-xs);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.proc-step:hover { box-shadow: var(--sh); transform: translateY(-3px); border-color: var(--accent-lt); }

.proc-connector {
  width: 48px; align-self: center;
  height: 2px; background: var(--bdr2);
  position: relative; flex-shrink: 0;
  margin-top: -2rem;
}
.proc-connector::after {
  content: '';
  position: absolute; right: -6px; top: -5px;
  width: 0; height: 0;
  border-left: 8px solid var(--bdr2);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.proc-num {
  font-family: 'DM Mono', monospace;
  font-size: 2.8rem; font-weight: 300; color: var(--bdr2);
  line-height: 1; margin-bottom: 1.5rem; letter-spacing: -.04em;
}
.proc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-bg); border: 1px solid var(--accent-lt);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 1.2rem;
}
.proc-step h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .6rem; letter-spacing: -.02em; }
.proc-step p { font-size: .83rem; color: var(--t3); line-height: 1.8; font-weight: 300; }

.proc-tag {
  display: inline-block; font-size: .62rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .25rem .7rem; border-radius: 6px; margin-top: 1rem;
  font-family: 'DM Mono', monospace;
}
.green-tag { background: var(--green-lt); color: var(--green-dk); border: 1px solid rgba(5,150,105,.2); }
.blue-tag { background: var(--accent-bg); color: var(--accent); border: 1px solid var(--accent-lt); }

/* ── Case Study ─────────────────────────────────────────────── */
.case-study { background: var(--bg-2); }

.cs-card {
  background: #fff; border: 1px solid var(--bdr);
  border-radius: 24px; padding: 3rem;
  box-shadow: var(--sh-sm);
}
.cs-tag {
  display: inline-block;
  background: var(--accent-bg); border: 1px solid var(--accent-lt);
  color: var(--accent);
  font-size: .65rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem 1rem; border-radius: 100px; margin-bottom: 2.5rem;
  font-family: 'DM Mono', monospace;
}

.cs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.cs-col {}
.cs-col-hd {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: -.01em;
  margin-bottom: 1.2rem; padding-bottom: .75rem; border-bottom: 2px solid;
}
.cs-bad { color: var(--red-dk); border-color: #fca5a5; }
.cs-good { color: var(--green-dk); border-color: #6ee7b7; }

.cs-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.cs-list li { font-size: .875rem; color: var(--t2); line-height: 1.65; padding-left: 1.4rem; position: relative; font-weight: 300; }
.bad-list li::before { content: '✕'; position: absolute; left: 0; color: #ef4444; font-weight: 700; font-size: .8rem; }
.good-list li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; font-size: .8rem; }

.cs-results {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--bg-2); border: 1px solid var(--bdr);
  border-radius: 18px; padding: 2rem;
  margin-bottom: 2.5rem;
}
.cs-result { text-align: center; }
.cs-r-n { font-size: 2.2rem; font-weight: 800; color: var(--accent); letter-spacing: -.04em; line-height: 1; margin-bottom: .4rem; }
.cs-r-l { font-size: .75rem; color: var(--t3); font-weight: 400; line-height: 1.4; }

.cs-footer { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Pricing ────────────────────────────────────────────────── */
.pricing { background: var(--bg); }

.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.price-card {
  background: #fff; border: 1px solid var(--bdr);
  border-radius: 22px; padding: 2.2rem;
  display: flex; flex-direction: column; gap: 1rem;
  box-shadow: var(--sh-xs);
  position: relative;
  transition: box-shadow .2s, transform .2s;
}
.price-card:hover { box-shadow: var(--sh); transform: translateY(-3px); }
.price-popular {
  border-color: var(--accent); border-width: 2px;
  box-shadow: var(--sh-blue), var(--sh-sm);
}
.price-popular-badge {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: .62rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .28rem 1rem; border-radius: 0 0 10px 10px;
  font-family: 'DM Mono', monospace; white-space: nowrap;
}
.price-cat { font-size: .82rem; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.price-from { font-size: .68rem; color: var(--t3); margin-top: .5rem; font-family: 'DM Mono', monospace; }
.price-n { font-size: 2.6rem; font-weight: 800; color: var(--text); letter-spacing: -.05em; line-height: 1; }
.price-popular .price-n { color: var(--accent); }

.price-inc {
  list-style: none; display: flex; flex-direction: column;
  gap: .55rem; flex: 1; border-top: 1px solid var(--bdr); padding-top: 1rem;
}
.price-inc li { font-size: .82rem; color: var(--t2); padding-left: 1.3rem; position: relative; font-weight: 300; }
.price-inc li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; font-size: .78rem; }

.price-btn { width: 100%; justify-content: center; margin-top: .5rem; font-size: .85rem; }

.price-note {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--amber-lt); border: 1px solid rgba(217,119,6,.2);
  border-radius: 14px; padding: 1.2rem 1.5rem;
  color: var(--amber);
}
.price-note svg { flex-shrink: 0; margin-top: 1px; }
.price-note p { font-size: .84rem; color: #92400e; line-height: 1.75; font-weight: 300; }
.price-note p strong { color: #78350f; font-weight: 600; }
.price-note p a { color: var(--accent); font-weight: 600; text-decoration: none; }
.price-note p a:hover { text-decoration: underline; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq { background: var(--bg-2); }

.faq-list { max-width: 760px; display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: #fff; border: 1px solid var(--bdr);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--sh-xs);
}
.faq-item[open] { border-color: var(--accent-lt); }

.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.3rem 1.5rem;
  font-size: .95rem; font-weight: 600; color: var(--text);
  cursor: pointer; list-style: none; user-select: none;
  letter-spacing: -.01em;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--accent); }
.faq-ico {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-2); color: var(--t3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 300; flex-shrink: 0;
  transition: background .2s, color .2s, transform .25s;
}
.faq-item[open] .faq-ico { background: var(--accent-bg); color: var(--accent); transform: rotate(45deg); }
.faq-a { padding: 0 1.5rem 1.3rem; border-top: 1px solid var(--bdr); }
.faq-a p { font-size: .875rem; color: var(--t2); line-height: 1.85; font-weight: 300; padding-top: 1rem; }

/* ── Insights / Blog ────────────────────────────────────────── */
.insights { background: var(--bg); }

.ins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ins-card {
  background: #fff; border: 1px solid var(--bdr);
  border-radius: 20px; padding: 2rem;
  box-shadow: var(--sh-xs);
  display: flex; flex-direction: column; gap: .8rem;
  transition: box-shadow .2s, transform .2s;
}
.ins-card:hover { box-shadow: var(--sh); transform: translateY(-3px); }
.ins-cat {
  font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); font-family: 'DM Mono', monospace;
}
.ins-card h3 { font-size: .98rem; font-weight: 700; color: var(--text); line-height: 1.45; letter-spacing: -.02em; flex: 1; }
.ins-card p { font-size: .83rem; color: var(--t3); line-height: 1.75; font-weight: 300; }
.ins-link { font-size: .82rem; color: var(--accent); font-weight: 600; text-decoration: none; margin-top: auto; transition: gap .2s; display: inline-flex; gap: 4px; align-items: center; }
.ins-link:hover { gap: 8px; }

/* ── Our Apps ───────────────────────────────────────────────── */
.apps { background: var(--bg-2); }
.app-spotlight {
  background: #fff; border: 1px solid var(--bdr); border-radius: 24px;
  padding: 2.5rem; box-shadow: var(--sh-xs);
  display: flex; flex-direction: column; gap: 1.1rem;
  max-width: 720px;
}
.app-spotlight + .app-spotlight { margin-top: 1.5rem; }
.apps-all { margin-top: 2rem; }
.app-spotlight-top { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.app-spotlight-icon {
  width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
  background: var(--accent-bg); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.app-spotlight h3 { font-size: 1.3rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.app-spotlight-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--amber); background: var(--amber-lt); padding: .3rem .7rem; border-radius: 100px;
  font-family: 'DM Mono', monospace;
}
.app-spotlight-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.app-spotlight p { font-size: .92rem; color: var(--t3); line-height: 1.85; font-weight: 300; }
.app-spotlight-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: .4rem; }

/* ── App Handbook Pages ───────────────────────────────────────── */
.app-jumplinks { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.app-jumplink {
  font-size: .76rem; font-weight: 600; color: var(--accent);
  background: var(--accent-bg); border: 1px solid var(--accent-lt);
  padding: .4rem .9rem; border-radius: 100px; text-decoration: none;
  font-family: 'DM Mono', monospace; transition: background .2s, border-color .2s;
}
.app-jumplink:hover { background: var(--accent-lt); }

/* .app-section uses the shared section padding */

.app-steps { display: flex; flex-direction: column; }
.app-step { display: grid; grid-template-columns: 44px 1fr; gap: 1.2rem; padding-block: 1.4rem; border-top: 1px solid var(--bdr); }
.app-step:first-child { border-top: none; padding-top: 0; }
.app-step-num { font-size: 1.5rem; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.app-step h3 { font-size: 1.02rem; font-weight: 700; color: var(--text); margin-bottom: .35rem; letter-spacing: -.01em; }
.app-step p { font-size: .88rem; color: var(--t3); line-height: 1.8; font-weight: 300; }
.app-step code { font-family: 'DM Mono', monospace; background: var(--bg-2); padding: .15rem .45rem; border-radius: 4px; font-size: .85em; color: var(--text); }

.app-status-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.app-status-card { background: #fff; border: 1px solid var(--bdr); border-left: 4px solid var(--_c); border-radius: 14px; padding: 1.4rem 1.6rem; box-shadow: var(--sh-xs); }
.app-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: .25rem .7rem; border-radius: 100px; background: var(--_bg); color: var(--_c);
  margin-bottom: .7rem; font-family: 'DM Mono', monospace;
}
.app-status-card p { font-size: .86rem; color: var(--t3); line-height: 1.75; font-weight: 300; }
.app-status-card.active { --_c: var(--green); --_bg: var(--green-lt); }
.app-status-card.suspended { --_c: var(--amber); --_bg: var(--amber-lt); }
.app-status-card.revoked { --_c: var(--red-dk); --_bg: var(--red-lt); }
.app-status-card.expired { --_c: var(--t3); --_bg: var(--bg-2); }

.app-policy-list { display: flex; flex-direction: column; gap: 1.4rem; max-width: 720px; }
.app-policy-item { display: grid; grid-template-columns: 32px 1fr; gap: 1rem; }
.app-policy-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--accent-bg); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; flex-shrink: 0; }
.app-policy-item h3 { font-size: .98rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.app-policy-item p { font-size: .87rem; color: var(--t3); line-height: 1.8; font-weight: 300; }

.app-table-wrap { overflow-x: auto; border: 1px solid var(--bdr); border-radius: 14px; background: #fff; box-shadow: var(--sh-xs); }
.app-table { border-collapse: collapse; width: 100%; min-width: 600px; font-size: .85rem; }
.app-table th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--t3); font-weight: 700; padding: 1rem 1.3rem; border-bottom: 1px solid var(--bdr); background: var(--bg-2); font-family: 'DM Mono', monospace; }
.app-table td { padding: 1rem 1.3rem; border-bottom: 1px solid var(--bdr); vertical-align: top; color: var(--t3); font-weight: 300; }
.app-table tr:last-child td { border-bottom: none; }
.app-table td.msg { font-family: 'DM Mono', monospace; font-size: .8rem; color: var(--text); white-space: nowrap; font-weight: 500; }

.app-callout { background: #fff; border: 1px solid var(--bdr); border-radius: 18px; padding: 2rem 2.2rem; box-shadow: var(--sh-xs); max-width: 720px; }
.app-callout p { font-size: .9rem; color: var(--t3); line-height: 1.85; font-weight: 300; margin-bottom: 1rem; }
.app-callout ul { display: flex; flex-direction: column; gap: .5rem; margin: 0 0 1.2rem; }
.app-callout li { list-style: none; padding-left: 1.1rem; position: relative; font-size: .88rem; color: var(--t3); }
.app-callout li::before { content: '—'; position: absolute; left: 0; color: var(--accent); }
.app-callout-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.2rem; }

.price-card.sample { border-style: dashed; }
.price-card.sample .price-n { color: var(--t4); }

@media (max-width: 720px) {
  .app-status-grid { grid-template-columns: 1fr; }
  .app-section { padding: 4rem 5%; }
}

/* ── CTA Band ───────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #7c3aed 100%);
  padding: 8rem 6%; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); font-weight: 800; color: #fff; letter-spacing: -.04em; line-height: 1.1; margin-bottom: 1.2rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.cta-band p { font-size: 1.05rem; color: rgba(255,255,255,.75); max-width: 500px; margin: 0 auto 2.5rem; font-weight: 300; line-height: 1.85; }
.cta-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin-bottom: 3rem; }
.chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85); font-size: .82rem;
  padding: .45rem 1.1rem; border-radius: 100px;
}

/* ── Contact ────────────────────────────────────────────────── */
.contact { background: var(--bg-2); }

.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 6rem; align-items: start; }
.c-form { display: flex; flex-direction: column; gap: 1.1rem; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fg { display: flex; flex-direction: column; gap: .45rem; }
.fg label { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--t3); font-family: 'DM Mono', monospace; }
.fg input, .fg textarea, .fg select {
  background: #fff; border: 1.5px solid var(--bdr2);
  border-radius: 12px; padding: .85rem 1.1rem;
  font-family: 'Sora', sans-serif; font-size: .9rem;
  color: var(--text); outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.fg select option { background: #fff; color: var(--text); }
.fg input::placeholder, .fg textarea::placeholder { color: var(--t5); }
.fg input:focus, .fg textarea:focus, .fg select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.fg textarea { resize: vertical; min-height: 140px; }
.fg input.error, .fg textarea.error { border-color: #ef4444; box-shadow: 0 0 0 3px #fee2e2; }
.fg .error-msg { font-size: .65rem; color: #ef4444; font-family: 'DM Mono', monospace; display: none; }
.fg.has-error .error-msg { display: block; }

.btn-submit {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff;
  padding: .9rem 2rem; border-radius: 100px; border: none;
  font-family: 'Sora', sans-serif; font-size: .9rem; font-weight: 600;
  cursor: pointer; width: fit-content;
  transition: background .2s, transform .15s, box-shadow .2s, opacity .2s;
}
.btn-submit:hover:not(:disabled) { background: #1d4ed8; transform: translateY(-2px); box-shadow: var(--sh-blue); }
.btn-submit:disabled { opacity: .6; }

.form-success { display: none; flex-direction: column; gap: 1rem; padding: 2.5rem; background: var(--green-lt); border: 1px solid rgba(5,150,105,.25); border-radius: 16px; }
.form-success.show { display: flex; }
.form-success .success-icon { font-size: 2rem; }
.form-success h3 { font-size: 1.1rem; font-weight: 700; color: var(--green-dk); }
.form-success p { font-size: .875rem; color: var(--green-dk); line-height: 1.8; margin: 0; opacity: .85; }
.form-success a { color: var(--accent); font-weight: 600; }

.c-aside h3 { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: .8rem; letter-spacing: -.03em; }
.c-aside > p { font-size: .875rem; color: var(--t3); line-height: 1.85; font-weight: 300; margin-bottom: 1.8rem; }

.c-link {
  display: flex; align-items: center; gap: 14px;
  padding: 1rem 1.3rem;
  background: #fff; border: 1px solid var(--bdr);
  border-radius: 14px; margin-bottom: .75rem;
  text-decoration: none; box-shadow: var(--sh-xs);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.c-link:hover { border-color: var(--accent-lt); box-shadow: var(--sh); transform: translateY(-2px); }
.c-ico {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent-bg); border: 1px solid var(--accent-lt);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.wa-ico { background: var(--green-lt); border-color: rgba(5,150,105,.3); color: var(--green); }
.c-lbl { font-size: .65rem; color: var(--t4); font-family: 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .2rem; }
.c-val { font-size: .9rem; color: var(--t2); font-weight: 500; }

.c-promise {
  margin-top: 2rem; padding: 1.4rem;
  background: var(--accent-bg); border: 1px solid var(--accent-lt);
  border-radius: 14px; font-size: .84rem; color: var(--t2); line-height: 1.8; font-weight: 300;
}
.c-promise strong { color: var(--text); font-weight: 600; }

/* ── Cookie ─────────────────────────────────────────────────── */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 700;
  background: rgba(15,23,42,.97);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1rem 6%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.cookie-bar.visible { transform: translateY(0); }
.cookie-bar p { font-size: .82rem; color: rgba(255,255,255,.45); margin: 0; }
.cookie-bar a { color: #60a5fa; text-decoration: none; }
.cookie-bar a:hover { text-decoration: underline; }
.cookie-accept { background: var(--accent); color: #fff; border: none; padding: .5rem 1.3rem; border-radius: 100px; font-family: 'Sora', sans-serif; font-size: .82rem; font-weight: 600; cursor: pointer; transition: background .2s; white-space: nowrap; flex-shrink: 0; }
.cookie-accept:hover { background: #1d4ed8; }

/* ── Footer ─────────────────────────────────────────────────── */
footer { background: var(--bg-dark); padding: 5rem 6% 0; }
.footer-main { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 4rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-brand .f-logo img { height: 30px; display: block; margin-bottom: 1.2rem; }
.footer-brand p { font-size: .84rem; color: rgba(255,255,255,.3); line-height: 1.85; font-weight: 300; max-width: 280px; margin-bottom: 1.8rem; }
.footer-passive { font-size: .75rem !important; color: rgba(255,255,255,.18) !important; }
.footer-passive a { color: rgba(255,255,255,.35) !important; text-decoration: none; }
.footer-passive a:hover { color: rgba(255,255,255,.6) !important; }
.footer-social { display: flex; gap: .6rem; margin-bottom: 1.5rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.35); text-decoration: none;
  font-size: .8rem; font-weight: 700; font-family: 'DM Mono', monospace;
  transition: background .2s, border-color .2s, color .2s;
}
.footer-social a:hover { background: rgba(59,130,246,.15); border-color: rgba(59,130,246,.3); color: #60a5fa; }
.footer-col h4 { font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.18); margin-bottom: 1.4rem; font-family: 'DM Mono', monospace; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.footer-col ul li a { font-size: .84rem; color: rgba(255,255,255,.3); text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: rgba(255,255,255,.7); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: 1.5rem 0 2rem; }
.f-copy { font-size: .75rem; color: rgba(255,255,255,.18); }
.f-wa { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; color: rgba(255,255,255,.3); text-decoration: none; transition: color .2s; }
.f-wa:hover { color: var(--wa); }

/* ── WhatsApp Float ─────────────────────────────────────────── */
.wa-float { position: fixed; bottom: 2rem; right: 2rem; z-index: 800; display: flex; align-items: center; gap: .8rem; flex-direction: row-reverse; }
.wa-btn {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  position: relative;
  transition: transform .2s, box-shadow .2s; flex-shrink: 0;
}
.wa-btn:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(37,211,102,.55); }
.wa-btn::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--wa);
  animation: waPulse 2.5s ease-out infinite; z-index: -1;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .5; } 70% { transform: scale(1.75); opacity: 0; } 100% { transform: scale(1.75); opacity: 0; } }
.wa-tooltip {
  background: var(--bg-dark); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.8); font-size: .78rem;
  padding: .45rem 1rem; border-radius: 8px;
  white-space: nowrap; opacity: 0; transform: translateX(8px);
  transition: opacity .25s, transform .25s; pointer-events: none;
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: translateX(0); }

/* ── Portfolio Page ─────────────────────────────────────────── */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 4rem; }
.proj-card { background: #fff; border: 1px solid var(--bdr); border-radius: 22px; overflow: hidden; box-shadow: var(--sh-xs); transition: box-shadow .3s, transform .3s, border-color .3s; cursor: pointer; }
.proj-card:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); border-color: var(--accent-lt); }
.proj-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.proj-thumb { width: 100%; aspect-ratio: 16/9; background: var(--bg-2); display: flex; align-items: center; justify-content: center; font-size: 4rem; position: relative; overflow: hidden; }
.proj-thumb-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--accent-bg), transparent); }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-view-hint {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,.55); color: #fff;
  font-size: .78rem; font-weight: 600; letter-spacing: .03em;
  opacity: 0; transition: opacity .25s;
}
.proj-card:hover .proj-view-hint, .proj-card:focus-visible .proj-view-hint { opacity: 1; }
.proj-body { padding: 2rem; }
.proj-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.proj-tag { font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--accent-bg); border: 1px solid var(--accent-lt); padding: .2rem .65rem; border-radius: 4px; font-family: 'DM Mono', monospace; }
.proj-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: .6rem; letter-spacing: -.022em; }
.proj-body p { font-size: .84rem; color: var(--t3); line-height: 1.8; font-weight: 300; margin-bottom: 1.5rem; }
.proj-meta { display: flex; justify-content: space-between; align-items: center; }
.proj-status { display: flex; align-items: center; gap: 6px; font-size: .7rem; color: var(--t4); font-family: 'DM Mono', monospace; }
.proj-status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: badgePulse 2s infinite; }
.proj-link { font-size: .8rem; color: var(--accent); text-decoration: none; display: flex; align-items: center; gap: 5px; font-weight: 600; transition: gap .2s; }
.proj-link:hover { gap: 9px; }
.cta-section { background: var(--bg-2); text-align: center; }
.cta-section h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--text); margin-bottom: 1rem; letter-spacing: -.03em; }
.cta-section p { font-size: 1rem; color: var(--t3); max-width: 460px; margin: 0 auto 2rem; line-height: 1.85; font-weight: 300; }

/* ── Project Detail Modal ─────────────────────────────────────── */
.pf-modal-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(15,23,42,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 5vh 5%;
  opacity: 0; transition: opacity .25s ease;
}
.pf-modal-overlay.open { opacity: 1; }
.pf-modal-overlay[hidden] { display: none; }
.pf-modal {
  position: relative; background: #fff; border-radius: 24px; overflow: hidden;
  width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto;
  box-shadow: var(--sh-lg);
  transform: translateY(24px) scale(.97); transition: transform .3s ease;
}
.pf-modal-overlay.open .pf-modal { transform: translateY(0) scale(1); }
.pf-modal .proj-thumb { aspect-ratio: 21/9; font-size: 3.5rem; border-radius: 0; }
.pf-modal-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.92); color: var(--text);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-sm); transition: background .2s, transform .2s;
}
.pf-modal-close:hover { background: #fff; transform: scale(1.08); }
.pf-modal-body { padding: 2rem 2.25rem 2.25rem; }
.pf-modal-body h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.025em; color: var(--text); margin-bottom: .75rem; }
.pf-modal-body > p { font-size: .92rem; color: var(--t3); line-height: 1.85; font-weight: 300; margin-bottom: 1.5rem; }
.pf-modal-extra h4 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 1.5rem 0 .6rem; font-family: 'DM Mono', monospace; }
.pf-modal-extra h4:first-child { margin-top: 0; }
.pf-modal-extra p { font-size: .9rem; color: var(--t2); line-height: 1.8; font-weight: 300; }
.pf-modal-extra ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.pf-modal-extra ul li { font-size: .88rem; color: var(--t2); line-height: 1.6; padding-left: 1.3rem; position: relative; }
.pf-modal-extra ul li::before {
  content: ''; position: absolute; left: 0; top: .55rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.pf-modal-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--bdr); }
.pf-modal-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 640px) {
  .pf-modal-meta { flex-direction: column; align-items: flex-start; }
}

/* ── Scroll Reveal ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); }

/* If GSAP fails to load (blocked CDN, offline, ad blocker), content
   that's only ever revealed by JS must not stay hidden forever. */
html.force-reveal .reveal,
html.force-reveal .hero-badge,
html.force-reveal .hero-h1,
html.force-reveal .hero-sub,
html.force-reveal .hero-actions,
html.force-reveal .hero-trust,
html.force-reveal .hero-scroll,
html.force-reveal .hero-h1 .ln span {
  opacity: 1 !important;
  transform: none !important;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .proc-steps { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .proc-connector { display: none; }
}

/* ── Founder Bio ─────────────────────────────────────────────── */
.founder-bio {
  display: flex; gap: 3rem; align-items: flex-start;
  background: var(--bg-2); border: 1px solid var(--bdr);
  border-radius: 20px; padding: 2.8rem 3rem; margin-top: 4rem;
}
.fb-photo {
  width: 120px; height: 120px; border-radius: 16px;
  overflow: hidden; flex-shrink: 0;
  background: var(--bg-3); border: 1px solid var(--bdr);
}
.fb-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-name { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: .25rem; }
.fb-title { font-size: .82rem; color: var(--accent); font-weight: 600; letter-spacing: .04em; margin-bottom: 1rem; font-family: 'DM Mono', monospace; }
.fb-bio { font-size: .93rem; color: var(--t2); line-height: 1.85; max-width: 680px; }
.fb-links { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin-top: 1.2rem; }
.fb-links a { font-size: .84rem; color: var(--accent); text-decoration: none; font-weight: 500; }
.fb-links a:hover { text-decoration: underline; }

/* ── Blog Article Layout ─────────────────────────────────────── */
.blog-hero {
  background: var(--bg); border-bottom: 1px solid var(--bdr);
  padding: clamp(8rem, 12vw, 10rem) 6% 4rem;          /* same top spacing as .page-top */
}
.blog-hero-inner { max-width: 860px; }                 /* left edge on the 6% gutter, like the homepage */
.blog-back {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--t3); text-decoration: none;
  font-family: 'DM Mono', monospace; margin-bottom: 1.5rem;
  transition: color .2s;
}
.blog-back:hover { color: var(--accent); }
.blog-cat {
  display: inline-block; background: var(--accent-lt); color: var(--accent);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 100px; margin-bottom: 1.2rem;
  font-family: 'DM Mono', monospace;
}
.blog-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; color: var(--text);    /* = .s-title */
  line-height: 1.1; letter-spacing: -.038em; margin-bottom: 1.2rem;
}
.blog-hero h1 span { color: var(--t3); }
.blog-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .4rem;
  font-size: .82rem; color: var(--t3); font-family: 'DM Mono', monospace;
}
.blog-meta-sep { color: var(--t5); }

.blog-article {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 4rem; align-items: start;
  max-width: none; margin: 0;
  padding: 4rem 6%;
}
.blog-body { max-width: 720px; }
.blog-lead {
  font-size: 1.1rem; color: var(--t2); line-height: 1.85;
  border-left: 3px solid var(--accent); padding-left: 1.2rem;
  margin-bottom: 2rem;
}
.blog-body p { font-size: 1rem; color: var(--t2); line-height: 1.85; font-weight: 300; margin-bottom: 1.4rem; }
.blog-body h2 {
  font-size: 1.22rem; font-weight: 700; color: var(--text);
  margin: 2.5rem 0 .9rem; letter-spacing: -.02em;
}
.blog-hr { border: none; border-top: 1px solid var(--bdr); margin: 2.5rem 0; }
.blog-body em { font-style: italic; }
.blog-body strong { font-weight: 600; color: var(--text); }

.blog-cta-box {
  background: var(--accent); border-radius: 16px;
  padding: 2.2rem 2.5rem; margin-top: 2.5rem;
}
.blog-cta-box h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: .5rem; }
.blog-cta-box p { font-size: .92rem; color: rgba(255,255,255,.82); line-height: 1.75; margin-bottom: 1.4rem; }
.blog-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.blog-cta-box .btn-primary { background: #fff; color: var(--accent); border-color: #fff; }
.blog-cta-box .btn-primary:hover { background: rgba(255,255,255,.9); }
.blog-cta-box .btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.blog-cta-box .btn-ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.blog-sidebar { position: sticky; top: 7rem; display: flex; flex-direction: column; gap: 1.2rem; }
.blog-sidebar-card {
  background: var(--bg-2); border: 1px solid var(--bdr);
  border-radius: 14px; padding: 1.6rem 1.8rem;
}
.blog-sidebar-card h4 { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--t4); font-family: 'DM Mono', monospace; margin-bottom: .85rem; }
.blog-sidebar-card p { font-size: .85rem; color: var(--t3); line-height: 1.7; margin-bottom: .9rem; }
.blog-sidebar-card a { color: var(--t2); text-decoration: none; font-size: .85rem; }
.blog-sidebar-card a:hover { color: var(--accent); }
.blog-sidebar-link { color: var(--accent) !important; font-weight: 600; font-size: .84rem !important; }
.blog-sidebar-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.blog-sidebar-list li { font-size: .84rem; color: var(--t3); padding-left: 1rem; position: relative; }
.blog-sidebar-list li::before { content: '·'; position: absolute; left: 0; color: var(--accent); }

@media (max-width: 900px) {
  .hero-inner { gap: 2rem; }
  .hero-visual { width: clamp(280px, 44%, 420px); }
  .vis-float-1 { left: -10px; }
  .vis-float-2 { right: -8px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .cs-cols { grid-template-columns: 1fr; }
  .cs-results { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .portfolio-grid { grid-template-columns: 1fr; }
  section { padding: 5.5rem 6%; }
  .founder-bio { flex-direction: column; gap: 1.6rem; padding: 2rem; }
  .blog-article { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
}

@media (max-width: 640px) {
  .hero { min-height: auto; padding-top: 7.5rem; padding-bottom: 5rem; }
  .hero-inner { flex-direction: column; align-items: stretch; gap: 2.4rem; }
  .hero-content { max-width: none; }
  .hero-visual { width: min(100%, 500px); align-self: center; }
  .vis-float { padding: .6rem .75rem; }
  .vis-float-1 { bottom: -14px; left: -5px; }
  .vis-float-2 { top: -14px; right: -5px; }
  .vf-val { font-size: .76rem; }
  .vf-lbl { font-size: .58rem; }
  .svc-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .ins-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .proc-steps { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
  section { padding: 4.5rem 5%; }
  .footer-main { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: .75rem; }
  .wa-float { bottom: 1.5rem; right: 1.5rem; }
  .wa-float .wa-tooltip { display: none; }
  .cs-results { grid-template-columns: 1fr 1fr; }
  .tb-list { gap: .4rem; justify-content: center; }
  .tb-sep { display: none; }
  .hero-trust { gap: .6rem; }
  .proc-steps { gap: 1rem; }
  .cta-band { padding: 5rem 5%; }
  .blog-hero { padding: 7.5rem 5% 3rem; }
  .blog-article { padding: 3rem 5%; }
  .fb-photo { width: 80px; height: 80px; border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .vis-orbit-a, .vis-orbit-b { animation: none !important; }
  .vis-card, .vis-float { transition: none !important; }
}

.footer-social a svg { width: 16px; height: 16px; display: block; }
.f-copy a { color: inherit; text-decoration: underline; }
.f-copy a:hover { color: rgba(255,255,255,.5); }

/* ── Clickable prototypes (portfolio) ───────────────────────── */
.protos { background: var(--bg-2); }
.proto-tabs { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.5rem; }
.proto-group { font-family: 'DM Mono', monospace; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--t4); margin-right: .25rem; }
.proto-tab + .proto-group { margin-left: 1rem; }
.proto-tab {
  font-family: inherit; font-size: .85rem; font-weight: 600; color: var(--t2);
  background: #fff; border: 1px solid var(--bdr2); border-radius: 999px;
  padding: .65rem 1.2rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.proto-tab:hover { border-color: var(--accent); color: var(--accent); }
.proto-tab[aria-selected="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.proto-tab:focus-visible, .proto-devices button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Device switcher */
.proto-devices, .proto-view { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--bdr2); border-radius: 12px; }
.proto-devices[hidden], .proto-view[hidden] { display: none; }
.proto-devices button, .proto-view button { font-family: inherit; font-size: .8rem; font-weight: 600; color: var(--t3); background: transparent; border: 0; border-radius: 9px; padding: .5rem .9rem; cursor: pointer; }
.proto-devices button[aria-pressed="true"], .proto-view button[aria-pressed="true"] { background: var(--accent-bg); color: var(--accent); }

/* Stage: phone sits beside the info; tablet and desktop sit above it */
.proto-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.proto-stage[data-device="phone"] { grid-template-columns: auto 1fr; gap: 4rem; }
.proto-device { background: #0b0f19; box-shadow: var(--sh-lg), inset 0 0 0 2px #2a3040; display: flex; flex-direction: column; margin: 0 auto; max-width: 100%; }
.proto-device iframe { flex: 1; width: 100%; min-height: 0; border: 0; background: #fff; display: block; }
.proto-stage[data-device="phone"] .proto-device { width: 340px; height: 700px; border-radius: 46px; padding: 12px; }
.proto-stage[data-device="phone"] .proto-device iframe { border-radius: 36px; }
.proto-stage[data-device="tablet"] .proto-device { width: 760px; height: 700px; border-radius: 30px; padding: 16px; }
.proto-stage[data-device="tablet"] .proto-device iframe { border-radius: 16px; }
.proto-stage[data-device="desktop"] .proto-device { width: 100%; height: 660px; border-radius: 14px; overflow: hidden; }

/* Window chrome on desktop: a browser bar for web systems and websites, a title bar for desktop apps */
.proto-urlbar { display: none; align-items: center; gap: .9rem; height: 40px; padding: 0 14px; background: #1b2232; flex: none; }
.proto-stage[data-device="desktop"] .proto-urlbar { display: flex; }
.proto-dots { display: flex; gap: 6px; }
.proto-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a4458; }
.proto-url {
  flex: 1; max-width: 420px; height: 24px; border-radius: 6px; background: #0b0f19; color: #94a3b8;
  font-family: 'DM Mono', monospace; font-size: .72rem; display: flex; align-items: center; padding: 0 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.proto-win { display: none; margin-left: auto; gap: 18px; color: #94a3b8; font-size: .85rem; }
.proto-win i { font-style: normal; }
.proto-stage[data-kind="desktop"] .proto-dots { display: none; }
.proto-stage[data-kind="desktop"] .proto-url { background: transparent; max-width: none; font-family: inherit; font-size: .8rem; color: #cbd5e1; padding: 0; }
.proto-stage[data-kind="desktop"] .proto-win { display: flex; }

/* Info panel: two columns under a wide device */
.proto-stage:not([data-device="phone"]) .proto-info:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
.proto-stage:not([data-device="phone"]) .proto-info > .proto-kicker,
.proto-stage:not([data-device="phone"]) .proto-info > h3,
.proto-stage:not([data-device="phone"]) .proto-info > p { grid-column: 1; }
.proto-stage:not([data-device="phone"]) .proto-try { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
.proto-stage:not([data-device="phone"]) .proto-actions { grid-column: 1 / -1; margin-top: 1.5rem; }

.proto-info h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); margin-bottom: .4rem; }
.proto-kicker { font-family: 'DM Mono', monospace; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .9rem; }
.proto-info > p { font-size: .95rem; color: var(--t3); line-height: 1.8; font-weight: 300; max-width: 480px; }
.proto-try { list-style: none; margin: 1.6rem 0 2rem; display: grid; gap: .7rem; max-width: 480px; align-content: start; }
.proto-try li { display: flex; gap: .75rem; font-size: .88rem; color: var(--t2); line-height: 1.6; }
.proto-try li::before { content: '→'; color: var(--accent); font-weight: 700; flex: none; }
.proto-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.proto-note { margin-top: 1.5rem; font-size: .75rem; color: var(--t4); font-family: 'DM Mono', monospace; }
@media (max-width: 900px) {
  .proto-stage[data-device="phone"] { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .proto-stage[data-device="desktop"] .proto-device { height: 600px; }
  .proto-stage:not([data-device="phone"]) .proto-info:not([hidden]) { display: block; }
  .proto-stage:not([data-device="phone"]) .proto-try { margin-top: 1.6rem; }
  .proto-tab + .proto-group { margin-left: 0; flex-basis: 100%; margin-top: .5rem; }
}
@media (max-width: 420px) {
  .proto-stage[data-device="phone"] .proto-device { width: 100%; max-width: 340px; height: 640px; border-radius: 40px; padding: 10px; }
  .proto-stage[data-device="phone"] .proto-device iframe { border-radius: 31px; }
  .proto-stage[data-device="tablet"] .proto-device { padding: 10px; border-radius: 22px; height: 600px; }
}

/* ── Portfolio filters ──────────────────────────────────────── */
.pf-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2.5rem; }
.pf-filter {
  font-family: inherit; font-size: .82rem; font-weight: 600; color: var(--t2);
  background: #fff; border: 1px solid var(--bdr2); border-radius: 999px;
  padding: .55rem 1.1rem; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.pf-filter:hover { color: var(--accent); border-color: var(--accent); }
.pf-filter[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.pf-filter:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.pf-filter span { opacity: .55; margin-left: .3rem; font-weight: 500; }
.portfolio-grid .proj-card[hidden] { display: none; }
.pf-filters + .portfolio-grid { margin-top: 2rem; }
.pf-search-wrap { display: grid; grid-template-columns: 1fr; gap: .45rem; max-width: 520px; margin-top: 1.25rem; }
.pf-search-wrap label { color: var(--t3); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pf-search-wrap input {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--bdr2); border-radius: 10px;
  background: #fff; color: var(--text); font: inherit; font-size: .9rem;
}
.pf-search-wrap input::placeholder { color: var(--t4); }
.pf-search-wrap input:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-color: transparent; }
.pf-result-count, .pf-no-results { color: var(--t3); font-size: .82rem; }
.pf-result-count { min-height: 1.2em; }
.pf-no-results { margin-top: 2rem; padding: 1.25rem; border: 1px solid var(--bdr2); border-radius: 12px; background: #fff; }
.pf-search-wrap + .portfolio-grid { margin-top: 1rem; }
.form-privacy-note { color: var(--t4); font-size: .75rem; line-height: 1.6; }

/* ── APK downloads (filled in by js/main.js from the downloads repo) ── */
[data-apk][hidden], [data-apk-show][hidden] { display: none !important; }
.apk-card { background: #fff; border: 1px solid var(--bdr); border-radius: 18px; padding: 1.6rem; margin-bottom: 2.5rem; box-shadow: var(--sh-sm); max-width: 820px; }
.apk-card-main { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.apk-card-main > div:nth-child(2) { flex: 1; min-width: 180px; }
.apk-card-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-bg); display: grid; place-items: center; font-size: 1.6rem; flex: none; }
.apk-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.apk-meta { font-size: .82rem; color: var(--t3); margin-top: .2rem; font-family: 'DM Mono', monospace; }
.apk-steps { margin: 1.3rem 0 0 1.2rem; display: grid; gap: .5rem; font-size: .88rem; color: var(--t2); line-height: 1.6; }
.apk-note { margin-top: 1rem; font-size: .7rem; color: var(--t4); font-family: 'DM Mono', monospace; word-break: break-all; }
.apk-note:empty { display: none; }

/* ── Prototype controls, notice and real screenshots ─────────── */
.proto-controls { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.proto-controls:not(:has(> :not([hidden]))) { display: none; }
.proto-view button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.proto-view span { opacity: .6; font-weight: 500; }

.proto-flag {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin-bottom: 1.5rem; max-width: 100%;
  padding: .7rem 1rem; border-radius: 12px; background: var(--amber-lt); border: 1px solid #f6d58a;
  font-size: .82rem; color: #78350f; line-height: 1.5;
}
.proto-flag strong { font-weight: 700; }
.proto-flag a, .proto-flag button { color: #92400e; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.proto-flag button { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }
.proto-flag a[hidden] { display: none; }
.proto-flag-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); flex: none; animation: protoBlink 1.6s ease-in-out infinite; }
.proto-flag.is-shots { background: var(--green-lt); border-color: #a7e3c5; color: var(--green-dk); }
.proto-flag.is-shots a, .proto-flag.is-shots button { color: var(--green-dk); }
.proto-flag.is-shots .proto-flag-dot { background: var(--green); }
.proto-flag a.proto-flag-dl, .proto-flag.is-shots a.proto-flag-dl {
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .95rem; border-radius: 999px;
  background: var(--green); color: #fff; text-decoration: none; box-shadow: 0 4px 14px rgba(5,150,105,.35);
  animation: protoDlPulse 2.2s ease-in-out infinite; transition: background .2s, transform .2s;
}
.proto-flag a.proto-flag-dl:hover { background: var(--green-dk); transform: translateY(-1px); }
.proto-flag a.proto-flag-dl[hidden] { display: none; }
@keyframes protoDlPulse { 0%,100% { box-shadow: 0 4px 14px rgba(5,150,105,.35), 0 0 0 0 rgba(5,150,105,.45); } 50% { box-shadow: 0 4px 14px rgba(5,150,105,.35), 0 0 0 7px rgba(5,150,105,0); } }
@keyframes protoBlink { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(217,119,6,.45); } 50% { opacity: .25; box-shadow: 0 0 0 6px rgba(217,119,6,0); } }
@media (prefers-reduced-motion: reduce) { .proto-flag-dot, .proto-flag a.proto-flag-dl { animation: none; } }

.proto-gallery { display: none; position: relative; flex: 1; min-height: 0; background: #0b0f19; }
.proto-stage[data-view="shots"] .proto-gallery { display: block; }
.proto-stage[data-view="shots"] .proto-device iframe { display: none; }
.proto-stage[data-device="phone"] .proto-gallery { border-radius: 36px; overflow: hidden; }
.proto-gallery img { width: 100%; height: 100%; object-fit: contain; object-position: top; display: block; background: #fff; }
.proto-shot-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(15,23,42,.72); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.proto-shot-nav.prev { left: 8px; } .proto-shot-nav.next { right: 8px; }
.proto-shot-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.proto-shot-cap {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); max-width: calc(100% - 24px);
  background: rgba(15,23,42,.8); color: #fff; font-size: .72rem; padding: .35rem .75rem; border-radius: 999px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* ── Case studies (work/*.html) ──────────────────────────────── */
.cs-hero .blog-hero-inner { max-width: 960px; }       /* left-aligned like every page */
.cs-lede { font-size: 1.05rem; line-height: 1.85; color: var(--t2); font-weight: 300; max-width: 680px; margin-bottom: 2rem; }
.cs-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--bdr); border: 1px solid var(--bdr); border-radius: 14px; overflow: hidden; margin-bottom: .4rem; }
.cs-facts div { background: #fff; padding: 1rem 1.1rem; }
.cs-facts dt { font-family: 'DM Mono', monospace; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--t4); margin-bottom: .35rem; }
.cs-facts dd { font-size: .88rem; font-weight: 600; color: var(--text); line-height: 1.45; }

.cs-section { background: var(--bg); }
.cs-alt { background: var(--bg-2); border-block: 1px solid var(--bdr); }
.cs-wrap { max-width: none; }                           /* full width inside the 6% gutters, like the homepage */
.cs-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem 4rem; align-items: start; }
.cs-prose p { font-size: 1rem; line-height: 1.85; color: var(--t2); font-weight: 300; margin-bottom: 1rem; }
.cs-prose a, .cs-step a, .cs-aside a, .cs-stack a { color: var(--accent); font-weight: 500; }
.cs-list { list-style: none; display: flex; flex-direction: column; gap: .7rem; margin: .4rem 0 1.2rem; }
.cs-list li { position: relative; padding-left: 1.5rem; font-size: .94rem; line-height: 1.65; color: var(--t2); }
.cs-list li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cs-list strong { color: var(--text); font-weight: 600; }

.cs-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.cs-step { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; background: #fff; border: 1px solid var(--bdr); border-radius: 16px; padding: 1.4rem; box-shadow: var(--sh-xs); }
.cs-step-num { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-bg); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; }
.cs-step h3 { font-size: 1.02rem; font-weight: 700; color: var(--text); margin: .45rem 0 .5rem; letter-spacing: -.01em; }
.cs-step p { font-size: .87rem; line-height: 1.75; color: var(--t3); font-weight: 300; }

.cs-try { display: grid; grid-template-columns: 1fr auto; gap: 3rem 5rem; align-items: center; }
.cs-try-actions, .cs-cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.cs-try-actions [hidden] { display: none; }
.cs-cta-actions { justify-content: center; margin-top: 0; }
.cs-phone { width: 340px; height: 700px; max-width: 100%; border-radius: 46px; padding: 12px; background: #0b0f19; box-shadow: var(--sh-lg), inset 0 0 0 2px #2a3040; }
.cs-phone iframe { width: 100%; height: 100%; border: 0; border-radius: 36px; background: #fff; display: block; }

.cs-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.cs-card { background: #fff; border: 1px solid var(--bdr); border-radius: 16px; padding: 1.6rem; }
.cs-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: .6rem; letter-spacing: -.01em; }
.cs-card p { font-size: .9rem; line-height: 1.8; color: var(--t3); font-weight: 300; }
.cs-aside { margin-top: 2rem; max-width: 760px; font-size: .92rem; line-height: 1.85; color: var(--t2); font-weight: 300; }

.cs-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--bdr); border: 1px solid var(--bdr); border-radius: 16px; overflow: hidden; }
.cs-stack div { background: #fff; padding: 1.3rem 1.4rem; }
.cs-stack h3 { font-family: 'DM Mono', monospace; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.cs-stack p { font-size: .9rem; line-height: 1.65; color: var(--t2); }

@media (max-width: 960px) {
  .cs-facts { grid-template-columns: repeat(2, 1fr); }
  .cs-split, .cs-try { grid-template-columns: 1fr; }
  .cs-steps, .cs-stack { grid-template-columns: repeat(2, 1fr); }
  .cs-phone { margin: 0 auto; }
}
@media (max-width: 640px) {
  .cs-steps, .cs-cards, .cs-stack { grid-template-columns: 1fr; }
  .cs-phone { height: 620px; }
}

/* Case study: desktop/web prototypes sit full width in a window frame */
.cs-try-wide { grid-template-columns: 1fr; gap: 2.5rem; }
.cs-try-wide .cs-try-text { max-width: 720px; }
.cs-window { width: 100%; height: 680px; border-radius: 14px; overflow: hidden; background: #0b0f19; box-shadow: var(--sh-lg), inset 0 0 0 2px #2a3040; display: flex; flex-direction: column; }
.cs-window-bar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; flex: none; }
.cs-window-bar .cs-dots { display: flex; gap: 6px; }
.cs-window-bar .cs-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a4458; }
.cs-window-url { flex: 1; max-width: 520px; font-family: 'DM Mono', monospace; font-size: .74rem; color: #cbd5e1; background: #111827; border-radius: 6px; padding: .35rem .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-window iframe { flex: 1; width: 100%; min-height: 0; border: 0; background: #fff; display: block; }
@media (max-width: 640px) { .cs-window { height: 600px; } }

/* Case study: strip of real screenshots */
.cs-shots-wrap { margin-top: 4rem; }
.cs-shots-title { font-size: 1.15rem; font-weight: 700; color: var(--text); letter-spacing: -.01em; margin-bottom: .4rem; }
.cs-shots-sub { font-size: .9rem; color: var(--t3); font-weight: 300; margin-bottom: 1.4rem; }
.cs-shots { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; }
.cs-shots:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.cs-shots figure { flex: none; width: 200px; scroll-snap-align: start; }
.cs-shots img { width: 100%; height: auto; display: block; border-radius: 18px; border: 1px solid var(--bdr2); box-shadow: var(--sh-sm); }
.cs-shots figcaption { font-size: .78rem; color: var(--t3); margin-top: .6rem; text-align: center; }
/* Desktop-shaped screenshots (websites) */
.cs-shots--wide figure { width: min(560px, 82vw); }
.cs-shots--wide img { border-radius: 12px; }

/* Case study header image, for projects shown by screenshot instead of the 3D devices */
.cs-hero-shot { margin: 2.2rem 0 0; }
.cs-hero-shot img { width: 100%; height: auto; display: block; border-radius: 16px; border: 1px solid var(--bdr2); box-shadow: var(--sh-lg); }
.cs-hero-shot figcaption { font-size: .78rem; color: var(--t3); margin-top: .7rem; text-align: center; }

/* ── Hero 3D scene (js/hero3d.js) ─────────────────────────────
   The canvas box is empty until WebGL draws; then .has-3d swaps the
   laptop mockup out. Without WebGL the mockup simply stays. */
.hero-3d { display: none; }
.hero-visual.has-3d { width: clamp(340px, 50%, 620px); }
.hero-visual.has-3d .hero-3d { display: block; position: relative; width: 100%; aspect-ratio: 1 / 1.02; }
.hero-visual.has-3d .hero-3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.hero-visual.has-3d .vis-card { display: none; }
.hero-visual.has-3d::before { display: none; }

/* Small screens: the hero visual is normally hidden; hero3d.js adds
   .mobile-3d to show a lighter 3D scene under the headline instead. */
@media (max-width: 900px) {
  .hero-inner { flex-wrap: wrap; }
  .hero-visual.mobile-3d { display: block; width: 100%; max-width: 460px; margin: 1.5rem auto 0; }
  .hero-visual.mobile-3d.has-3d { width: 100%; }
  .hero-visual.mobile-3d .vis-card, .hero-visual.mobile-3d .vis-float { display: none; }
}

/* ── 3D devices (js/devices3d.js) ─────────────────────────────── */
/* While the scene loads: a soft laptop + phone shimmer instead of the image. */
.hero-visual.d3-loading { width: clamp(340px, 50%, 620px); }
.hero-visual.d3-loading .vis-card, .hero-visual.d3-loading .vis-float { display: none; }
.hero-visual.d3-loading::before { display: none; }
.hero-visual.d3-loading .hero-3d { display: block; position: relative; width: 100%; aspect-ratio: 1 / 1.02; }
.d3-loading .hero-3d::before, .d3-loading .hero-3d::after, .cs-3d.d3-loading::before, .cs-3d.d3-loading::after {
  content: ''; position: absolute; border-radius: 18px;
  background: linear-gradient(110deg, #e8eefb 30%, #f8faff 50%, #e8eefb 70%); background-size: 200% 100%;
  animation: d3shimmer 1.4s linear infinite;
}
.d3-loading .hero-3d::before, .cs-3d.d3-loading::before { left: 8%; top: 24%; width: 58%; height: 44%; }      /* laptop */
.d3-loading .hero-3d::after, .cs-3d.d3-loading::after { left: 70%; top: 30%; width: 18%; height: 42%; border-radius: 22px; } /* phone */
@keyframes d3shimmer { to { background-position: -200% 0; } }

.hero-3d, .cs-3d { position: relative; }
.cs-3d { width: 100%; height: clamp(300px, 40vw, 460px); margin-top: 2.2rem; }
.cs-3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.d3-night, .d3-night canvas { border-radius: 28px; }
.d3-night { background: #0b1222; overflow: hidden; }

/* The app on the phone: name, real or prototype, and links. */
.d3-bubble {
  position: absolute; left: 0; top: 0; z-index: 3; display: flex; flex-direction: column; gap: .15rem;
  min-width: 170px; padding: .7rem .9rem; border-radius: 14px; border: 1px solid var(--bdr);
  background: rgba(255,255,255,.93); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--sh); font-size: .78rem; color: var(--t2); transition: opacity .3s; will-change: transform;
}
.d3-tag { align-self: flex-start; font: 600 .6rem/1.6 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; padding: .1rem .5rem; border-radius: 99px; background: var(--green-lt); color: var(--green-dk); }
.d3-tag[data-kind="prototype"] { background: var(--amber-lt); color: #92400e; }
.d3-name { font-size: .95rem; color: var(--text); letter-spacing: -.01em; }
.d3-by { color: var(--t3); font-size: .72rem; }
.d3-actions { display: flex; gap: .8rem; margin-top: .35rem; }
.d3-actions a { font-weight: 600; font-size: .74rem; text-decoration: none; color: var(--accent); white-space: nowrap; }
.d3-actions a:hover { text-decoration: underline; }
.d3-actions .d3-wa { color: #128c7e; }
.d3-actions a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.d3-swap > * { animation: d3fade .45s ease; }
@keyframes d3fade { from { opacity: 0; transform: translateY(4px); } }

/* "It's live" hint under the scene; fades after the first interaction. */
.d3-hint {
  position: absolute; left: 50%; bottom: 3%; z-index: 3; transform: translateX(-50%);
  display: flex; align-items: center; gap: .55rem; padding: .45rem .95rem; border-radius: 99px;
  background: rgba(15,23,42,.86); color: #fff; font-size: .75rem; font-weight: 500; white-space: nowrap;
  pointer-events: none; transition: opacity .6s, transform .6s;
}
.d3-hint-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: d3ping 1.6s infinite; }
@keyframes d3ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 100% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } }
.d3-hint-out { opacity: 0; transform: translate(-50%, 8px); }
@media (prefers-reduced-motion: reduce) { .d3-hint-dot, .d3-loading .hero-3d::before, .d3-loading .hero-3d::after { animation: none; } }

/* ── Prototype frames: realistic hardware + "it's live" hint ───── */
.proto-device { position: relative; }
/* Phone: black glass bezel inside a titanium edge, side buttons, camera pill. */
.proto-stage[data-device="phone"] .proto-device {
  background: #05070c;
  box-shadow:
    0 0 0 2px #2b303a, 0 0 0 4px #a3aab5, 0 0 0 5px #6b7280,
    0 50px 90px -30px rgba(15,23,42,.55), 0 20px 40px -20px rgba(15,23,42,.35);
}
.proto-stage[data-device="phone"] .proto-device::before {        /* camera pill */
  content: ''; position: absolute; top: 22px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%);
  border-radius: 20px; background: #000; z-index: 3; pointer-events: none;
}
.proto-stage[data-device="phone"] .proto-device::after {         /* side buttons */
  content: ''; position: absolute; left: -7px; top: 150px; width: 3px; height: 54px; border-radius: 2px;
  background: #8b929d; box-shadow: 0 70px 0 #8b929d, calc(340px + 8px) 30px 0 #8b929d; pointer-events: none;
}
/* Tablet: thinner aluminium edge and a camera dot. */
.proto-stage[data-device="tablet"] .proto-device {
  background: #05070c;
  box-shadow: 0 0 0 2px #2b303a, 0 0 0 4px #b8bec8, 0 0 0 5px #7c838e, 0 50px 90px -30px rgba(15,23,42,.5);
}
.proto-stage[data-device="tablet"] .proto-device::before {
  content: ''; position: absolute; top: 6px; left: 50%; width: 6px; height: 6px; transform: translateX(-50%);
  border-radius: 50%; background: #1f2633; box-shadow: inset 0 0 0 1.5px #0b0f19; pointer-events: none;
}
/* Desktop: a real browser window with coloured window buttons. */
.proto-stage[data-device="desktop"] .proto-device { box-shadow: 0 0 0 1px rgba(15,23,42,.12), 0 40px 80px -30px rgba(15,23,42,.45); }
.proto-stage[data-kind="web"] .proto-dots i:nth-child(1) { background: #ff5f57; }
.proto-stage[data-kind="web"] .proto-dots i:nth-child(2) { background: #febc2e; }
.proto-stage[data-kind="web"] .proto-dots i:nth-child(3) { background: #28c840; }

/* Glass glare across the screen (phone and tablet). */
.proto-glare { display: none; position: absolute; inset: 12px; border-radius: 36px; z-index: 2; pointer-events: none;
  background: linear-gradient(125deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.04) 28%, rgba(255,255,255,0) 42%); }
.proto-stage[data-device="phone"] .proto-glare { display: block; }
.proto-stage[data-device="tablet"] .proto-glare { display: block; inset: 16px; border-radius: 16px; }
.proto-stage[data-view="shots"] .proto-glare, .proto-stage[data-view="shots"] .proto-tap { display: none; }

/* "Live app" hint: a pulsing tap target and a label, over the screen until used. */
.proto-tap {
  position: absolute; left: 50%; top: calc(100% + 14px); z-index: 4; transform: translateX(-50%);
  display: flex; align-items: center; gap: .6rem; pointer-events: none; white-space: nowrap;
  transition: opacity .5s, transform .5s;
}
.proto-tap-ring { width: 22px; height: 22px; border-radius: 50%; background: rgba(37,99,235,.9); box-shadow: 0 0 0 0 rgba(37,99,235,.5); animation: protoPing 1.8s ease-out infinite; }
.proto-tap-ring::after { content: ''; display: block; width: 14px; height: 14px; margin: 15px; border-radius: 50%; background: #fff; }
.proto-tap-label { padding: .4rem .85rem; border-radius: 99px; background: rgba(15,23,42,.88); color: #fff; font-size: .74rem; font-weight: 600; white-space: nowrap; }
@keyframes protoPing { 0% { box-shadow: 0 0 0 0 rgba(37,99,235,.5); } 100% { box-shadow: 0 0 0 14px rgba(37,99,235,0); } }
.proto-stage.is-used .proto-tap { opacity: 0; transform: translate(-50%, 10px); }
@media (prefers-reduced-motion: reduce) { .proto-tap-ring { animation: none; } }
@media (max-width: 420px) { .proto-stage[data-device="phone"] .proto-device::after { display: none; } .proto-glare { inset: 10px; border-radius: 31px; } }
.proto-stage .proto-device { margin-bottom: 52px; }                /* room for the "Live app" pill */
.proto-stage[data-view="shots"] .proto-device { margin-bottom: 0; }
.proto-stage[data-device="desktop"] .proto-device { overflow: visible; }
.proto-stage[data-device="desktop"] .proto-urlbar { border-radius: 14px 14px 0 0; }
.proto-stage[data-device="desktop"] .proto-device iframe, .proto-stage[data-device="desktop"] .proto-gallery { border-radius: 0 0 14px 14px; overflow: hidden; }

/* Paper plane after the contact form sends (js/main.js flyPaperPlane). */
.paper-plane { position: fixed; z-index: 9999; pointer-events: none; transform-style: preserve-3d; perspective: 600px; filter: drop-shadow(0 10px 14px rgba(37,99,235,.3)); }
@media (max-width: 900px) {
  .d3-bubble { min-width: 0; padding: .45rem .6rem; gap: .05rem; border-radius: 11px; }
  .d3-name { font-size: .8rem; }
  .d3-by { display: none; }
  .d3-actions { gap: .6rem; margin-top: .2rem; }
  .d3-actions a { font-size: .68rem; }
  .d3-hint { font-size: .7rem; padding: .35rem .75rem; }
}
/* The decorative rings belong to the image mockup; hide them once the 3D scene shows. */
.hero-visual.has-3d .vis-orbit, .hero-visual.d3-loading .vis-orbit { display: none; }

/* Section titles: words rise out of a mask and sharpen (js/main.js §10). */
.s-title.st-ready .st-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.s-title.st-ready .st-in {
  display: inline-block; transform: translateY(110%); opacity: 0; filter: blur(6px);
  transition: transform .9s cubic-bezier(.16, 1, .3, 1), opacity .7s ease, filter .8s ease;
  transition-delay: calc(var(--i) * 55ms);
}
.s-title.st-on .st-in { transform: none; opacity: 1; filter: none; }
html.force-reveal .s-title .st-in { transform: none !important; opacity: 1 !important; filter: none !important; }

/* ══ UI polish ════════════════════════════════════════════════ */

/* 1 · Nav: links never wrap; the menu button takes over before they get squeezed. */
.nav-links { gap: clamp(1.1rem, 2.2vw, 2.5rem); }
.nav-links a { white-space: nowrap; }
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* 3 · Readable small grey text (WCAG AA on white). */
:root { --t4: #6b7280; }

/* 4 · One button system: same height, shape, weight, hover lift and press. */
.btn-primary, .btn-ghost, .btn-submit, .btn-glow, .btn-white {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: .85rem 1.8rem; border-radius: 100px;
  font-family: inherit; font-size: .9rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, translate .2s;
}
.btn-glow { background: var(--accent); color: #fff; border: 0; }
.btn-white { background: #fff; color: var(--accent); border: 0; }
.btn-primary:hover, .btn-submit:hover, .btn-glow:hover { background: #1d4ed8; box-shadow: var(--sh-blue); }
.btn-white:hover { box-shadow: 0 12px 32px rgba(15,23,42,.22); }
.btn-primary:hover, .btn-ghost:hover, .btn-submit:hover, .btn-glow:hover, .btn-white:hover, .nav-cta:hover { transform: none; translate: 0 -2px; }
.btn-primary:active, .btn-ghost:active, .btn-submit:active, .btn-glow:active, .btn-white:active, .nav-cta:active { translate: 0 0; scale: .98; }
.btn-primary:focus-visible, .btn-ghost:focus-visible, .btn-submit:focus-visible, .btn-glow:focus-visible, .btn-white:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
.btn-white:focus-visible { outline-color: #fff; }
/* Text links with an arrow: same size and the same small slide on hover. */
.svc-link, .ins-link, .proj-link { font-size: .82rem; font-weight: 600; transition: gap .2s, color .2s; }

/* 5 · Homepage rhythm: sections alternate white / pale blue, with a hairline between. */
#faq { background: var(--bg); }
#insights { background: var(--bg-2); }
#apps { background: var(--bg); }
.services, .case-study, #insights, .contact { box-shadow: inset 0 1px 0 var(--bdr), inset 0 -1px 0 var(--bdr); }

/* 6 · Cards: one hover everywhere. `translate` keeps working on cards GSAP has
   already revealed (GSAP writes an inline transform). */
.stat-card, .test-card, .svc-card, .proc-step, .price-card, .ins-card, .proj-card, .cs-step, .cs-card {
  transition: translate .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
}
:is(.stat-card, .test-card, .svc-card, .proc-step, .price-card, .ins-card, .proj-card, .cs-step, .cs-card):hover {
  transform: none; translate: 0 -4px; box-shadow: var(--sh-lg);
}
:is(.stat-card, .test-card, .svc-card, .proc-step, .price-card:not(.price-popular), .ins-card, .proj-card, .cs-step, .cs-card):hover {
  border-color: var(--accent-lt);
}
@media (prefers-reduced-motion: reduce) {
  :is(.stat-card, .test-card, .svc-card, .proc-step, .price-card, .ins-card, .proj-card, .cs-step, .cs-card):hover,
  .btn-primary:hover, .btn-ghost:hover, .btn-submit:hover, .btn-glow:hover, .btn-white:hover { translate: none; }
}

/* 7 · Portfolio: case-study badge and "Show all" button. */
.proj-case-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: .3rem .7rem; border-radius: 99px; background: rgba(255,255,255,.94); color: var(--accent);
  font: 600 .66rem/1.4 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: var(--sh-sm);
}
.proj-thumb { position: relative; }
.pf-more { display: flex; justify-content: center; margin-top: 2.5rem; }
.pf-more[hidden] { display: none; }

/* 8 · Footer call-to-action strip (top of every footer). */
.footer-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap;
  padding: 1.8rem 2.2rem; margin-bottom: 4rem; border-radius: 22px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #7c3aed 100%);
  box-shadow: 0 20px 50px -20px rgba(37,99,235,.55);
}
.footer-cta-copy { color: rgba(255,255,255,.85); font-size: 1rem; line-height: 1.6; max-width: 560px; }
.footer-cta-copy strong { color: #fff; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.footer-cta-actions { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.footer-cta-wa { color: #fff; font-size: .85rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); padding: .3rem 0; }
.footer-cta-wa:hover { border-bottom-color: #fff; }
/* 3 · Footer text was too faint on the navy background. */
.footer-brand p { color: rgba(255,255,255,.6); }
@media (max-width: 640px) { .footer-cta { padding: 1.5rem; } }
.footer-col h4 { color: rgba(255,255,255,.5); }
.footer-col ul li a, .f-wa, .footer-passive a { color: rgba(255,255,255,.62) !important; }
.footer-col ul li a:hover, .f-wa:hover { color: #fff !important; }
.f-copy, .footer-passive { color: rgba(255,255,255,.45) !important; }
.footer-social a { color: rgba(255,255,255,.62); }

/* 9 · Phone action bar (js/main.js §22a): replaces the floating WhatsApp button on phones. */
.mobile-bar { display: none; }
@media (max-width: 640px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 820;
    display: grid; grid-template-columns: 1fr 1.25fr; gap: .6rem;
    padding: .65rem .9rem calc(.65rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--bdr); box-shadow: 0 -8px 24px rgba(15,23,42,.08);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px;
    border-radius: 14px; font-size: .88rem; font-weight: 600; text-decoration: none;
  }
  .mobile-bar-wa { background: #e8f8ee; color: #128c7e; }
  .mobile-bar-cta { background: var(--accent); color: #fff; }
  .mobile-bar a:active { scale: .98; }
  body.has-mobile-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  body.has-mobile-bar .wa-float { display: none; }
  body.has-mobile-bar .cookie-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* 10 · Tap targets: at least 44px on touch screens. */
@media (pointer: coarse) {
  .pf-filter, .proto-tab, .proto-devices button, .proto-view button { min-height: 44px; }
  .footer-col ul li a { display: inline-block; padding: .55rem 0; }
  .footer-social a { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
  .nav-hamburger { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .proj-link, .svc-link, .ins-link { min-height: 44px; display: inline-flex; align-items: center; }
  .blog-back, .d3-actions a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ── App store (apps.html) ───────────────────────────────────── */
.store-hero { background: var(--bg-2); padding-bottom: 3rem; }
.store-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2.2rem; }
.store-tab {
  font-family: inherit; font-size: .82rem; font-weight: 600; color: var(--t2);
  background: #fff; border: 1px solid var(--bdr2); border-radius: 999px;
  padding: .55rem 1.1rem; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem;
  transition: background .2s, color .2s, border-color .2s;
}
.store-tab svg { width: 15px; height: 15px; }
.store-tab:hover { color: var(--accent); border-color: var(--accent); }
.store-tab[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.store-tab:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.store-tab span { opacity: .55; font-weight: 500; }
.store-hero .pf-search-wrap { margin-top: 1.25rem; }

.store-body { padding-top: 3rem; }
.store-row + .store-row { margin-top: 4rem; }
.store-row[hidden], .store-app[hidden] { display: none; }
.store-row-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.store-row-hd h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.store-row-hd p { font-size: .88rem; color: var(--t3); font-weight: 300; }

/* Featured app */
.store-feature {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch;
  background: #fff; border: 1px solid var(--bdr); border-radius: 24px; overflow: hidden; box-shadow: var(--sh-sm);
}
.store-feature-img { background: #0d3b22; min-height: 100%; }
.store-feature-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-feature-body { padding: 2.2rem; display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
.store-feature-body > p { font-size: .95rem; color: var(--t3); line-height: 1.8; font-weight: 300; }

/* App tiles */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.4rem; }
.store-app {
  background: #fff; border: 1px solid var(--bdr); border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--sh-xs); transition: box-shadow .2s, translate .2s;
}
.store-app:hover { box-shadow: var(--sh-sm); translate: 0 -2px; }
.store-app-shot { aspect-ratio: 16/9; background: var(--bg-2); overflow: hidden; }
.store-app-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-app-body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.store-app-body > p { font-size: .86rem; color: var(--t3); line-height: 1.7; font-weight: 300; flex: 1; }

.store-id { display: flex; align-items: center; gap: .9rem; }
.store-icon {
  width: 56px; height: 56px; border-radius: 14px; flex: none; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--bdr); display: grid; place-items: center; font-size: 1.6rem;
}
.store-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-feature .store-icon { width: 72px; height: 72px; border-radius: 18px; }
.store-id h3 { font-size: 1.08rem; font-weight: 800; color: var(--text); letter-spacing: -.015em; line-height: 1.2; }
.store-feature .store-id h3 { font-size: 1.5rem; }
.store-dev { font-size: .76rem; color: var(--accent); font-weight: 600; }
.store-cat { font-size: .74rem; color: var(--t3); }

.store-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.store-chip {
  font-size: .68rem; font-weight: 700; letter-spacing: .03em; color: var(--t2);
  background: var(--bg-2); border: 1px solid var(--bdr); border-radius: 999px; padding: .25rem .6rem;
  display: inline-flex; align-items: center; gap: .3rem;
}
.store-chip.is-dl { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.store-chip.is-demo { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.store-meta { font-size: .74rem; color: var(--t3); font-family: 'DM Mono', monospace; min-height: 1.1em; }
.store-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.store-actions .btn-primary, .store-actions .btn-ghost { padding: .7rem 1.2rem; font-size: .85rem; }
.store-actions [hidden] { display: none; }
.store-more { font-size: .84rem; font-weight: 600; color: var(--accent); }
.store-more:hover { text-decoration: underline; }

.store-empty {
  padding: 2rem; border: 1px dashed var(--bdr2); border-radius: 18px; background: #fff;
  display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; justify-content: space-between;
}
.store-empty p { font-size: .92rem; color: var(--t3); max-width: 560px; line-height: 1.7; }
.store-empty strong { color: var(--text); }

/* Install help */
.store-help { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; counter-reset: step; }
.store-help li {
  list-style: none; background: #fff; border: 1px solid var(--bdr); border-radius: 16px; padding: 1.3rem 1.4rem;
  font-size: .88rem; color: var(--t3); line-height: 1.7; counter-increment: step;
}
.store-help li::before {
  content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-bg); color: var(--accent); font-weight: 800; font-size: .8rem; margin-bottom: .7rem;
}
.store-help strong { color: var(--text); font-weight: 600; }
.store-note { margin-top: 1.4rem; font-size: .84rem; color: var(--t3); line-height: 1.7; max-width: 760px; }

@media (max-width: 800px) {
  .store-feature { grid-template-columns: 1fr; }
  .store-feature-img { aspect-ratio: 16/9; }
  .store-feature-body { padding: 1.5rem; }
}
@media (max-width: 400px) {
  .store-grid { grid-template-columns: 1fr; }
}
