/* =========================================================
   The Digital Tank — Main Stylesheet
   ========================================================= */
:root {
  --navy: #0a1026;
  --navy-2: #0e1633;
  --navy-3: #151f44;
  --ink: #0b1020;
  --text: #3d4560;
  --muted: #6b7390;
  --blue: #1a56f0;
  --blue-2: #3b73ff;
  --blue-soft: #eaf0ff;
  --line: #e6e9f2;
  --bg-soft: #f5f7fc;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(16, 32, 90, .18);
  --shadow-lg: 0 24px 60px -20px rgba(16, 40, 120, .28);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 100px; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #fff; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ic { flex-shrink: 0; }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; border: 1.5px solid transparent; cursor: pointer; transition: .25s; font-family: inherit; line-height: 1.2; }
.btn-lg { padding: 15px 24px; font-size: 15px; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--blue); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(26, 86, 240, .6); }
.btn-primary { background: linear-gradient(90deg, var(--blue), var(--blue-2)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(59, 115, 255, .8); }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-ghost .play { display: inline-flex; color: var(--blue); }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn .ic { transition: transform .25s; }
.btn:hover .ic { transform: translateX(3px); }

.eyebrow { display: inline-block; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(10,16,38,.25); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: auto; }
.brand-word { font-weight: 800; font-size: 17px; line-height: .95; color: var(--ink); letter-spacing: -.02em; }
.brand-tag { border-left: 1px solid var(--line); padding-left: 16px; margin-left: 6px; font-size: 13px; line-height: 1.4; color: var(--ink); font-weight: 500; }
.brand-tag em { font-style: normal; color: var(--blue); }
.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav > a, .has-drop > a { font-size: 14.5px; font-weight: 500; color: var(--ink); position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 8px 0; }
.main-nav > a:not(.btn)::after, .has-drop > a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--blue); transition: width .25s; }
.main-nav > a:not(.btn):hover::after, .main-nav > a.active::after, .has-drop > a.active::after, .has-drop:hover > a::after { width: 100%; }
.main-nav a.active { color: var(--blue); }
.nav-cta { margin-left: 8px; color: #fff !important; padding: 11px 20px !important; }
.has-drop { position: relative; }
.dropdown { position: absolute; top: 100%; left: -20px; min-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; }
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 8px; }
.dropdown a:hover { background: var(--bg-soft); }
.dropdown strong { display: block; color: var(--ink); font-size: 14px; }
.dropdown small { color: var(--muted); font-size: 12px; }
.dd-ic { width: 36px; height: 36px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; }

/* ---------- Toast ---------- */
.toast { position: fixed; top: 104px; right: 24px; z-index: 200; background: var(--navy); color: #fff; padding: 14px 44px 14px 18px; border-radius: 10px; box-shadow: var(--shadow-lg); max-width: 380px; font-size: 14px; animation: slideIn .4s; }
.toast-success { border-left: 4px solid #22c55e; }
.toast-error { border-left: 4px solid #ef4444; }
.toast button { position: absolute; right: 10px; top: 8px; background: none; border: 0; color: #fff; font-size: 20px; cursor: pointer; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }

/* ---------- Hero ---------- */
.hero { padding: 60px 0 80px; background: radial-gradient(800px 400px at 85% 10%, #f0f4ff 0%, transparent 70%), #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 26px; }
.hl { color: var(--blue); }
.lead { font-size: 17px; color: var(--text); max-width: 440px; margin-bottom: 34px; }

/* Growth system diagram */
.gsys { position: relative; padding-top: 30px; }
.gsys-label { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .12em; color: var(--ink); font-weight: 600; margin-bottom: 26px; }
.gsys-label .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.gsys-body { position: relative; height: 560px; }
.gsys-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; animation: fadeIn 1.4s .3s both; }
.gsys-lines path { fill: none; stroke: #c9d3ec; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.pulse-dot { fill: var(--blue); animation: pulse 2s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pulse { 50% { transform: scale(1.8); opacity: .5; } }
.gsys-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; text-align: center; }
.gsys-steps li { display: flex; flex-direction: column; align-items: center; padding: 0 4px; }
.g-ic { width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--blue); margin-bottom: 14px; transition: .3s; position: relative; z-index: 1; }
.gsys-steps li:hover .g-ic { background: var(--blue); color: #fff; transform: translateY(-4px); }
.g-n { color: var(--blue); font-weight: 700; font-size: 12px; }
.gsys-steps strong { color: var(--ink); font-size: 12.5px; line-height: 1.3; margin: 2px 0 6px; }
.gsys-steps small { font-size: 11px; color: var(--muted); line-height: 1.5; max-width: 120px; }
.gsys-core { position: absolute; left: 50%; top: 270px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; text-align: center; width: 200px; }
.core-ring { width: 150px; height: 150px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 20px 50px -10px rgba(26, 86, 240, .35); display: grid; place-items: center; margin-bottom: 10px; animation: float 5s ease-in-out infinite; }
.core { width: 112px; height: 112px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #dfe7ff 70%); color: var(--blue); display: grid; place-items: center; }
.gsys-core strong { color: var(--ink); font-size: 18px; }
.gsys-core small { font-size: 12px; color: var(--muted); max-width: 150px; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Trusted ---------- */
.trusted { background: var(--bg-soft); padding: 28px 0 36px; }
.trusted-title { text-align: center; font-size: 11px; letter-spacing: .14em; font-weight: 600; color: var(--ink); margin-bottom: 22px; }
.logo-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.client-logo { display: flex; align-items: center; gap: 10px; filter: grayscale(.2); opacity: .9; transition: .25s; }
.client-logo:hover { filter: none; opacity: 1; transform: translateY(-2px); }
.cl-mark { width: 30px; height: 30px; position: relative; display: inline-block; }
.cl-x { border: 2.5px solid var(--c); border-radius: 50%; }
.cl-x::before, .cl-x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 2.5px; background: var(--c); transform: translate(-50%, -50%) rotate(45deg); }
.cl-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.cl-k { background: linear-gradient(135deg, var(--c) 50%, #333 50%); clip-path: polygon(0 0, 40% 0, 40% 40%, 70% 0, 100% 0, 60% 50%, 100% 100%, 70% 100%, 40% 60%, 40% 100%, 0 100%); }
.cl-circle { border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 9px var(--c); }
.cl-cross { background: var(--c); clip-path: polygon(33% 0, 67% 0, 67% 33%, 100% 33%, 100% 67%, 67% 67%, 67% 100%, 33% 100%, 33% 67%, 0 67%, 0 33%, 33% 33%); }
.cl-dia { border: 2.5px solid var(--c); transform: rotate(45deg) scale(.75); }
.cl-name { font-weight: 800; font-size: 15px; line-height: 1; color: var(--ink); letter-spacing: .02em; }
.cl-name small { display: block; font-size: 8.5px; letter-spacing: .3em; font-weight: 600; color: var(--muted); margin-top: 3px; }
.client-more { font-size: 13px; color: var(--muted); }
.client-more:hover { color: var(--blue); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-soft { background: var(--bg-soft); }
.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(26px, 3vw, 36px); }
.sec-head p { max-width: 620px; margin: 0 auto; color: var(--muted); }
.sec-head.left { text-align: left; }

/* Service cards */
.cards-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; box-shadow: 0 4px 20px -12px rgba(16,32,90,.15); transition: .3s; display: flex; flex-direction: column; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cfdaff; }
.svc-ic { color: var(--blue); margin-bottom: 22px; display: inline-flex; }
.svc-card h3 { font-size: 18px; margin-bottom: 10px; }
.svc-card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; flex: 1; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 13px; font-weight: 600; }
.svc-card:hover .more .ic, .post-card:hover .more .ic { transform: translateX(4px); }
.more .ic { transition: .25s; }

/* Dark band */
.dark-band { background: radial-gradient(600px 300px at 90% 100%, rgba(26,86,240,.25), transparent 70%), var(--navy); color: #c9d0e6; padding: 70px 0; position: relative; overflow: hidden; }
.dark-band h2 { color: #fff; font-size: clamp(24px, 2.6vw, 30px); }
.impact-grid { display: grid; grid-template-columns: .8fr 1.4fr; gap: 50px; align-items: center; }
.link-light { color: #fff; font-weight: 600; font-size: 14px; display: inline-flex; gap: 8px; align-items: center; }
.link-light:hover { color: var(--blue-2); }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.stat-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 26px 14px; text-align: center; position: relative; transition: .3s; }
.stat-card:not(:last-child)::after { content: ''; position: absolute; right: -16px; top: 50px; width: 16px; border-top: 1px dashed rgba(255,255,255,.3); }
.stat-card:hover, .stat-card.is-hl { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.07); }
.st-ic { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; margin: 0 auto 16px; color: #fff; }
.stat-card strong { display: block; color: #fff; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.stat-card small { font-size: 12.5px; color: #aab3cf; }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; text-align: center; }
.process::before { content: ''; position: absolute; top: 20px; left: 12.5%; right: 12.5%; border-top: 1.5px dashed #c9d3ec; }
.process li { position: relative; }
.p-n { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; margin: 0 auto 18px; box-shadow: 0 0 0 6px #fff, 0 0 0 7px #d7e0fb; transition: .3s; position: relative; }
.process li:hover .p-n { transform: scale(1.12); }
.process h3 { font-size: 17px; margin-bottom: 8px; }
.process p { font-size: 13.5px; color: var(--muted); max-width: 210px; margin: 0 auto; }

/* CTA */
.cta-wrap { padding: 0 0 0; position: relative; }
.cta-wrap::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: var(--navy); z-index: -1; }
.cta-box { background: linear-gradient(120deg, #0b1437 0%, #0d1a4d 60%, #122a7a 100%); border-radius: 18px 18px 0 0; padding: 50px 60px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; position: relative; overflow: hidden; color: #c9d0e6; }
.cta-lines { position: absolute; right: 0; top: 0; width: 60%; height: 100%; opacity: .35; }
.cta-lines path { fill: none; stroke: #3b73ff; stroke-width: .6; }
.cta-text, .cta-action { position: relative; }
.cta-box h2 { color: #fff; font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 14px; }
.cta-box p { margin: 0; color: #fff; }
.cta-action { text-align: center; }
.cta-action .btn { min-width: 260px; justify-content: center; margin-bottom: 18px; }
.cta-action p { font-size: 14px; color: #c9d0e6; }
.cta-action a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.site-footer { background: var(--navy); color: #aab3cf; padding: 50px 0 26px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.6fr; gap: 30px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-light .brand-word { color: #fff; }
.f-brand p { margin: 16px 0; font-size: 13px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 16px; }
.site-footer a { display: block; margin-bottom: 10px; transition: .2s; }
.site-footer a:hover { color: #fff; }
.socials { display: flex; gap: 14px; }
.socials a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); color: #fff; margin: 0; }
.socials a:hover { background: var(--blue); border-color: var(--blue); }
.news-form { display: flex; margin-top: 16px; }
.news-form input[type=email] { flex: 1; min-width: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-right: 0; border-radius: 8px 0 0 8px; padding: 13px 14px; color: #fff; font-family: inherit; font-size: 13px; outline: none; }
.news-form input[type=email]:focus { border-color: var(--blue-2); }
.news-form button { background: var(--blue); color: #fff; border: 0; width: 50px; border-radius: 0 8px 8px 0; cursor: pointer; display: grid; place-items: center; transition: .2s; }
.news-form button:hover { background: var(--blue-2); }
.form-msg { font-size: 13px; margin-top: 10px; min-height: 18px; }
.form-msg.ok { color: #4ade80; }
.form-msg.err { color: #f87171; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; font-size: 12.5px; flex-wrap: wrap; gap: 12px; }
.fb-links { display: flex; gap: 40px; }
.fb-links a { margin: 0; }
.wa-float { position: fixed; right: 22px; bottom: 22px; width: 54px; height: 54px; border-radius: 50%; background: #22c55e; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(34,197,94,.6); z-index: 90; transition: .25s; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Inner pages ---------- */
.page-hero { padding: 70px 0 60px; background: radial-gradient(700px 300px at 80% 0%, #eef3ff, transparent 70%), #fff; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(32px, 4.2vw, 50px); letter-spacing: -.03em; max-width: 780px; }
.page-hero p { font-size: 17px; max-width: 640px; color: var(--muted); }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--blue); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.check-list .ic { color: #fff; background: var(--blue); border-radius: 50%; padding: 3px; margin-top: 2px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: var(--shadow); }
.panel-blue { background: linear-gradient(140deg, var(--navy), #13236a); color: #c9d0e6; border: 0; }
.panel-blue h3 { color: #fff; }

.value-card { padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: .3s; }
.value-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.value-card .svc-ic { width: 52px; height: 52px; border-radius: 12px; background: var(--blue-soft); display: grid; place-items: center; margin-bottom: 18px; }
.value-card h3 { font-size: 17px; }
.value-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* Truth section (traffic ≠ growth) */
.truth-grid { display: grid; grid-template-columns: .8fr 1.5fr; gap: 50px; align-items: center; }
.eq { display: flex; align-items: center; gap: 16px; }
.eq-op { color: #fff; font-size: 26px; font-weight: 300; }
.mini-chart { flex: 1; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 16px; }
.mini-chart h4 { color: #fff; font-size: 13px; margin-bottom: 10px; }
.mini-chart svg { width: 100%; height: 70px; }
.mini-chart svg path { fill: none; stroke: var(--blue-2); stroke-width: 2.5; stroke-linecap: round; }
.mini-chart .v { text-align: center; font-size: 13px; margin-top: 8px; color: #fff; }
.up { color: #4ade80 !important; } .down { color: #f87171 !important; }
.truth-foot { text-align: center; color: #fff; margin-top: 26px; }
.truth-foot span { color: var(--blue-2); }

/* Spend → Growth flow */
.flow { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.flow-step { text-align: center; flex: 1; position: relative; }
.flow-step:not(:last-child)::after { content: ''; position: absolute; top: 38px; left: calc(50% + 44px); right: calc(-50% + 44px); border-top: 1.5px dotted rgba(255,255,255,.35); }
.flow-ic { width: 76px; height: 76px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; margin: 0 auto 16px; color: #fff; }
.flow-step.glow .flow-ic { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 40px 6px rgba(59,115,255,.6); }
.flow-step strong { display: block; color: #fff; font-size: 13px; letter-spacing: .08em; }
.flow-step.glow strong { color: var(--blue-2); }
.flow-step small { font-size: 12px; color: #aab3cf; }

/* Stats light row */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-row > div { padding: 30px 20px; display: flex; gap: 16px; align-items: center; justify-content: center; }
.stats-row > div + div { border-left: 1px solid var(--line); }
.stats-row .ic { color: var(--blue); }
.stats-row strong { font-size: 30px; color: var(--ink); display: block; line-height: 1; }
.stats-row small { color: var(--text); font-size: 13px; }
.pbadge { font-weight: 800; font-size: 22px; color: var(--c); display: inline-grid; place-items: center; min-width: 30px; }
.pbadge:last-child { background: var(--c); color: #fff; border-radius: 6px; font-size: 16px; padding: 3px 6px; }

/* Case studies */
.case-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: .3s; }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-top { background: linear-gradient(135deg, var(--navy), #16307f); padding: 28px; color: #fff; position: relative; overflow: hidden; }
.case-top::after { content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 0 0 30px rgba(255,255,255,.03); }
.case-top .tag { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #9fb6ff; }
.case-top .big { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-top: 10px; }
.case-top small { color: #c9d0e6; }
.case-body { padding: 26px 28px; flex: 1; display: flex; flex-direction: column; }
.case-body h3 { font-size: 18px; }
.case-body p { color: var(--muted); font-size: 14px; flex: 1; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0; }
.metric { background: var(--bg-soft); border-radius: 14px; padding: 24px; text-align: center; }
.metric strong { display: block; font-size: 34px; color: var(--blue); letter-spacing: -.02em; }
.metric small { color: var(--muted); }

/* Filters / posts */
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink); transition: .2s; background: #fff; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.post-card { border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: #fff; display: flex; flex-direction: column; transition: .3s; }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.post-meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.badge { background: var(--blue-soft); color: var(--blue); font-weight: 600; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; }
.post-card h3 { font-size: 19px; }
.post-card p { font-size: 14px; color: var(--muted); flex: 1; }
.article { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.8; }
.article h2 { font-size: 24px; margin-top: 1.6em; }
.article ul { padding-left: 22px; }
.article li { margin-bottom: 6px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Jobs */
.job { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; background: #fff; transition: .25s; }
.job:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.job h3 { font-size: 18px; margin-bottom: 6px; }
.job-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.job-meta span { display: inline-flex; align-items: center; gap: 6px; }
.job details { margin-top: 10px; font-size: 14px; }
.job summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: 13px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 15px; background: #fff; color: var(--ink); transition: .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.field .err { color: #dc2626; font-size: 12.5px; margin-top: 5px; display: block; }
.pill-choice { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-choice label { cursor: pointer; margin: 0; position: relative; }
.pill-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; border: 0; pointer-events: none; }
.pill-choice input:focus-visible + span { outline: 3px solid var(--blue-soft); border-color: var(--blue); }
.pill-choice span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 500; transition: .2s; }
.pill-choice input:checked + span { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.alert { padding: 16px 20px; border-radius: 12px; margin-bottom: 24px; font-size: 15px; }
.alert-ok { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.alert-err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info .ci { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.contact-info small { display: block; color: #9fb6ff; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.contact-info a, .contact-info span { color: #fff; font-weight: 500; }

.legal { max-width: 800px; }
.legal h2 { font-size: 22px; margin-top: 1.6em; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } * { animation: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .brand-tag { display: none; }
  .main-nav { gap: 24px; }
  .cards-5 { grid-template-columns: repeat(3, 1fr); }
  .hero-grid, .impact-grid, .truth-grid { grid-template-columns: 1fr; }
  .gsys { max-width: 680px; margin: 0 auto; width: 100%; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 92px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 20px 24px; transform: translateY(-10px); opacity: 0; visibility: hidden; transition: transform .25s, opacity .25s, visibility .25s; overflow-y: auto; overscroll-behavior: contain; }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav > a, .has-drop > a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .has-drop > a { display: flex; }
  .main-nav > a:not(.btn)::after, .has-drop > a::after { display: none; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 10px; min-width: 0; }
  .nav-cta { margin: 20px 0 0; justify-content: center; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .stat-card::after { display: none; }
  .cards-4, .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .f-brand, .f-news { grid-column: 1 / -1; }
  .cta-box { grid-template-columns: 1fr; padding: 40px 30px; text-align: center; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stats-row > div:nth-child(3) { border-left: 0; }
  .stats-row > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .eq { flex-wrap: wrap; }
  .mini-chart { flex-basis: 100%; }
  .eq-op { width: 100%; text-align: center; }
}
@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .nav-wrap { height: 76px; }
  .main-nav { top: 76px; }
  .toast { top: 86px; right: 16px; left: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 36px 0 60px; }
  .gsys-lines { display: none; }
  .gsys-body { height: auto; }
  .gsys-core { position: static; transform: none; margin: 36px auto 0; }
  .gsys-steps { grid-template-columns: 1fr; gap: 0; text-align: left; }
  .gsys-steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
  .gsys-steps .g-ic { width: 52px; height: 52px; grid-row: span 3; margin: 0; }
  .gsys-steps small { max-width: none; }
  .cards-5, .cards-4, .cards-3 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .process::before { display: none; }
  .logo-row { justify-content: center; gap: 22px 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: 1fr; }
  .flow { flex-wrap: wrap; }
  .flow-step { flex-basis: 45%; margin-bottom: 20px; }
  .flow-step::after { display: none; }
  .job { flex-direction: column; align-items: flex-start; }
  .panel { padding: 24px; }
  .fb-links { gap: 20px; }
  .cta-action .btn { min-width: 0; width: 100%; }
}

/* fixes */
.site-footer .brand { display: flex; margin-bottom: 0; }
.pbadges { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
@media (max-width: 900px) {
  /* header uses backdrop-filter, so position the mobile menu relative to it */
  .main-nav { position: absolute; inset: auto; top: 100%; left: 0; right: 0; height: calc(100vh - 92px); height: calc(100dvh - 92px); box-shadow: 0 20px 30px -20px rgba(10,16,38,.2); }
}
@media (max-width: 680px) {
  .main-nav { height: calc(100vh - 76px); height: calc(100dvh - 76px); }
}

/* =========================================================
   MOBILE RESPONSIVE REFINEMENTS
   (grid/flex children may shrink, long content wraps, touch-friendly sizes)
   ========================================================= */
.split > *, .form-grid > *, .hero-grid > *, .impact-grid > *, .truth-grid > *, .cta-box > *, .footer-grid > * { min-width: 0; }
.field select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.article, .legal, .post-card h3, .case-body h3, .job h3 { overflow-wrap: anywhere; }
.article img, .article video, .article iframe, .article svg { max-width: 100%; height: auto; }
.article table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article pre { max-width: 100%; overflow-x: auto; }
.pbadges { flex-wrap: wrap; white-space: normal; }
.hero h1, .page-hero h1, .sec-head h2, .cta-box h2, .dark-band h2 { text-wrap: balance; }

@media (max-width: 900px) {
  /* touch targets */
  .nav-toggle { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -8px; }
  .btn { min-height: 44px; }
  .chip { padding: 11px 18px; }
  .socials a { width: 40px; height: 40px; }
  .site-footer .footer-grid > div > a { padding: 4px 0; }
  .site-footer .footer-grid > div > a.brand { padding: 0; }
  .news-form button { width: 56px; }
  /* 16px inputs stop iOS Safari from zooming the page when a field is focused */
  input, select, textarea, .field input, .field select, .field textarea, .news-form input[type=email] { font-size: 16px !important; }
  .stats-row > div { padding: 26px 14px; gap: 14px; }
  .job { padding: 22px; }
}

@media (max-width: 680px) {
  .section { padding: 56px 0; }
  .sec-head { margin-bottom: 34px; }
  .page-hero { padding: 44px 0 40px; }
  .page-hero p, .lead { font-size: 16px; }
  .cta-box { padding: 36px 22px; border-radius: 16px 16px 0 0; }
  .dark-band { padding: 54px 0; }
  .impact-grid, .truth-grid { gap: 32px; }

  /* stats row: compact 2-column grid that never overflows */
  .stats-row > div { padding: 22px 10px; gap: 10px; flex-direction: column; text-align: center; justify-content: center; }
  .stats-row .ic { width: 30px; height: 30px; }
  .stats-row strong { font-size: 26px; }
  .stats-row small { font-size: 12.5px; }
  .pbadges { justify-content: center; gap: 6px; }

  .form-grid .btn { width: 100%; justify-content: center; }
  .btn-row { gap: 10px; }
  .hero .btn-row .btn, .page-hero .btn-row .btn, .cta-box .btn-row .btn { flex: 1 1 100%; justify-content: center; }
  .case-top .big { font-size: 38px; }
  .case-body, .case-top { padding-left: 22px; padding-right: 22px; }
  .metric { padding: 20px; }
  .metric strong { font-size: 30px; }
  .post-card { padding: 22px; }
  .article { font-size: 16px; line-height: 1.75; }
  .article h2 { font-size: 21px; }
  .filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 2px 16px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters .chip { flex: 0 0 auto; }
  .job-meta { gap: 8px 14px; }
  .job .btn { width: 100%; justify-content: center; }
  .contact-info li { gap: 12px; }
  .contact-info a, .contact-info span { overflow-wrap: anywhere; }
  .footer-bottom { flex-direction: column; padding-bottom: 64px; }   /* room for the WhatsApp button */
  .fb-links { flex-wrap: wrap; gap: 8px 22px; }
  .wa-float { width: 48px; height: 48px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .wa-float svg { width: 24px; height: 24px; }
  .toast { max-width: none; }
}

@media (max-width: 420px) {
  .container { padding: 0 14px; }
  .hero h1 { font-size: 34px; }
  .page-hero h1 { font-size: 30px; }
  .filters { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .brand-mark { width: 34px; }
  .brand-word { font-size: 15px; }
  .brand { gap: 9px; }
  .process { grid-template-columns: 1fr; }
  .process p { max-width: 300px; }
  .stat-cards { gap: 10px; }
  .stat-card { padding: 20px 8px; }
  .stat-card strong { font-size: 22px; }
  .stat-card small { font-size: 11.5px; }
  .flow-step { flex-basis: 100%; }
  .panel { padding: 20px; }
  .eq-op { font-size: 22px; }
}

@media (hover: none) {
  /* no sticky hover states on touch screens */
  .svc-card:hover, .post-card:hover, .case-card:hover, .value-card:hover, .btn-dark:hover, .btn-primary:hover, .client-logo:hover { transform: none; }
}
