/* ==========================================================================
   Digifyhub — site styles
   Palette taken from the Digifyhub logo: deep navy, blue/cyan, teal/green,
   with yellow-orange used sparingly as an accent.
   ========================================================================== */

:root {
  --navy-950: #020b1f;
  --navy-900: #04122e;
  --navy: #061a40;
  --navy-700: #0b2a5b;
  --navy-600: #143a73;
  --blue: #1668ff;
  --blue-600: #0f55db;
  --cyan: #00b8f5;
  --cyan-300: #6fdcff;
  --teal: #14c9a0;
  --green: #7be495;
  --amber: #ffb703;
  --orange: #ff8a00;

  --ink: #0b1b33;
  --body: #3d4b63;
  --muted: #64728a;
  --line: #e3e9f3;
  --surface: #ffffff;
  --surface-2: #f4f7fc;
  --surface-3: #eaf1fb;

  --grad-brand: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 55%, var(--teal) 100%);
  --grad-accent: linear-gradient(135deg, var(--amber), var(--orange));
  --grad-navy: radial-gradient(1200px 600px at 85% -10%, rgba(0, 184, 245, .22), transparent 60%),
               radial-gradient(900px 500px at -10% 110%, rgba(20, 201, 160, .18), transparent 60%),
               linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 100%);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(6, 26, 64, .06), 0 2px 8px rgba(6, 26, 64, .05);
  --shadow: 0 10px 30px -10px rgba(6, 26, 64, .18), 0 4px 10px -4px rgba(6, 26, 64, .08);
  --shadow-lg: 0 30px 60px -20px rgba(6, 26, 64, .35);

  --font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 76px;
  --gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #0b47b8; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.25rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--cyan-300); color: var(--navy); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { left: 8px; }

.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tight { padding: clamp(48px, 6vw, 72px) 0; }
.section-alt { background: var(--surface-2); }
.section-dark { background: var(--grad-navy); color: #c9d6ee; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head p { font-size: 1.125rem; color: var(--muted); }
.section-dark .section-head p { color: #a9bad8; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .8125rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--grad-accent); }
.section-dark .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--cyan-300); }
.text-grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-accent { color: var(--amber); }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 14px; --pad-x: 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  font: 600 1rem/1.2 var(--font-body);
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { --pad-y: 10px; --pad-x: 18px; font-size: .9375rem; }
.btn-lg { --pad-y: 16px; --pad-x: 30px; font-size: 1.0625rem; }
.btn-primary { background: var(--grad-brand); background-size: 160% 100%; color: #fff; box-shadow: 0 10px 24px -8px rgba(22, 104, 255, .55); }
.btn-primary:hover { color: #fff; background-position: 100% 0; box-shadow: 0 14px 30px -8px rgba(0, 184, 245, .6); }
.btn-accent { background: var(--grad-accent); color: var(--navy); box-shadow: 0 10px 24px -8px rgba(255, 138, 0, .55); }
.btn-accent:hover { color: var(--navy); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .14); border-color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { color: var(--blue); border-color: var(--blue); }
.btn[disabled] { opacity: .75; cursor: progress; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 26, 64, .92);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-scrolled { background: rgba(4, 18, 46, .97); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand img { width: 168px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: #c9d6ee; font-weight: 500; font-size: .9375rem; text-decoration: none;
  transition: color .2s, background-color .2s;
}
.site-nav ul a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.site-nav ul a[aria-current="page"] { color: #fff; background: rgba(0, 184, 245, .16); box-shadow: inset 0 0 0 1px rgba(0, 184, 245, .35); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .08); cursor: pointer; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 28px;
    background: var(--navy-900);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .6);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s ease, transform .25s ease; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav ul a { padding: 14px 16px; font-size: 1.0625rem; border-radius: 12px; }
  .nav-cta { --pad-y: 14px; font-size: 1rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--grad-navy); color: #c9d6ee;
  padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 10vw, 128px);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(4, 18, 46, .96) 0%, rgba(4, 18, 46, .78) 45%, rgba(4, 18, 46, .35) 100%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: -1; pointer-events: none; }
.hero-orb.one { width: 420px; height: 420px; background: var(--blue); top: -140px; right: 10%; animation: float 14s ease-in-out infinite; }
.hero-orb.two { width: 320px; height: 320px; background: var(--teal); bottom: -160px; left: 35%; opacity: .35; animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, 24px); } }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .line { display: block; }
.hero-lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 560px; color: #c9d6ee; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: .9375rem; color: #a9bad8; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23061a40' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; flex: none; }

.hero-visual { position: relative; }
.hero-photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08);
  aspect-ratio: 1000 / 793;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4, 18, 46, .55)); }
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .96); color: var(--ink);
  font: 600 .875rem/1.2 var(--font-body);
  box-shadow: var(--shadow);
  animation: bob 6s ease-in-out infinite;
}
.chip small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }
.chip .chip-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; }
.chip .chip-ico svg { width: 20px; height: 20px; }
.chip.c1 { left: -24px; top: 12%; }
.chip.c2 { right: -18px; top: 46%; animation-delay: -2s; }
.chip.c3 { left: 8%; bottom: -22px; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.ico-blue { background: var(--grad-brand); }
.ico-amber { background: var(--grad-accent); }
.ico-teal { background: linear-gradient(135deg, var(--teal), var(--green)); }

.trust-strip { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: clamp(48px, 7vw, 80px); padding-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 28px; }
.trust-strip span { display: inline-flex; align-items: center; gap: 10px; color: #a9bad8; font-weight: 500; font-size: .9375rem; }
.trust-strip svg { width: 22px; height: 22px; color: var(--cyan); }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--grad-navy); color: #c9d6ee; padding: clamp(48px, 7vw, 88px) 0; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.25rem); }
.page-hero p.lead { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); max-width: 600px; margin-bottom: 28px; }
.page-hero .banner { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .08); background: var(--navy-700); }
.page-hero .banner img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumbs { font-size: .875rem; margin-bottom: 18px; color: #8ea3c7; }
.breadcrumbs a { color: #c9d6ee; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 32px); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card p:last-child { margin-bottom: 0; }
a.card, .card-link { text-decoration: none; color: inherit; }
.card-hover:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(22, 104, 255, .25); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--surface-3); color: var(--blue);
}
.card .icon svg { width: 26px; height: 26px; }
.card-hover:hover .icon { background: var(--grad-brand); color: #fff; }
.card h3 { margin-bottom: 10px; }
.card .link-arrow { margin-top: 14px; }
.section-dark .card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); box-shadow: none; color: #c9d6ee; }
.section-dark .card .icon { background: rgba(0, 184, 245, .14); color: var(--cyan-300); }

.challenge { display: flex; gap: 16px; align-items: flex-start; }
.challenge .num { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 800 1.125rem/1 var(--font-head); color: var(--navy); background: var(--grad-accent); }

.audience-card { overflow: hidden; padding: 0; }
.audience-card .top { padding: 28px 28px 0; }
.audience-card .msg { margin: 18px 28px 28px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: .9375rem; border-left: 4px solid var(--teal); }
.tag { align-self: flex-start; display: inline-block; font: 600 .75rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: var(--surface-3); color: #0d4fc9; margin-bottom: 14px; }
.tag-amber { background: #fff4d6; color: #8a5a00; }
.tag-teal { background: #dbf7ef; color: #0b7a61; }

/* split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 36px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231668ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat; }
.check-list strong { color: var(--ink); }
.section-dark .check-list li::before { background-color: rgba(0, 184, 245, .16); }
.section-dark .check-list strong { color: #fff; }

/* process steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.steps li::before { content: "0" counter(step); display: block; font: 800 2.25rem/1 var(--font-head); margin-bottom: 14px; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps li h3 { font-size: 1.125rem; }
.steps li p { margin: 0; font-size: .96875rem; }
.section-dark .steps li { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }

/* service detail blocks */
.service-block { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 56px); padding: clamp(32px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.service-block:first-child { border-top: 0; padding-top: 0; }
.service-block .icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; margin-bottom: 18px; box-shadow: 0 12px 24px -10px rgba(22, 104, 255, .6); }
.service-block .icon svg { width: 30px; height: 30px; }
.service-block h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.deliverables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pill { padding: 7px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .875rem; color: var(--ink); }

.note {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius);
  background: #fff8e6; border: 1px solid #ffe3a3; color: #5c4100; font-size: .96875rem;
}
.note svg { width: 22px; height: 22px; flex: none; color: var(--orange); margin-top: 2px; }
.note p { margin: 0; }

/* blog / hub cards */
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-card .thumb { aspect-ratio: 16 / 9; display: grid; place-items: center; background: var(--grad-navy); color: #fff; position: relative; overflow: hidden; }
.post-card .thumb svg { width: 56px; height: 56px; color: var(--cyan-300); position: relative; }
.post-card .thumb::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: var(--blue); filter: blur(50px); opacity: .45; right: -40px; top: -60px; }
.post-card .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .meta { font-size: .8125rem; color: var(--muted); margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; }
.filter-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter-row button { font: 600 .9375rem/1 var(--font-body); padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: all .2s; }
.filter-row button:hover { border-color: var(--blue); color: var(--blue); }
.filter-row button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* guides (entrepreneur hub) */
.guide-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.guide { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: clamp(24px, 3vw, 36px); }
.guide .badge { width: 72px; height: 72px; border-radius: 20px; display: grid; place-items: center; background: var(--grad-navy); color: var(--amber); }
.guide .badge svg { width: 32px; height: 32px; }
.guide + .guide { margin-top: 20px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); cursor: pointer; transition: background-color .2s; }
.checklist label:hover { background: var(--surface-3); }
.checklist input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--teal); flex: none; }
.checklist input:checked + span { text-decoration: line-through; color: var(--muted); }
.progress { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; margin: 18px 0 8px; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--green)); transition: width .3s ease; }

/* portfolio */
.case { padding: 0; overflow: hidden; display: grid; grid-template-columns: 1fr; }
.case .case-head { padding: 26px 28px; background: var(--grad-navy); color: #c9d6ee; position: relative; }
.case .case-head h3 { color: #fff; margin: 0; }
.case .case-body { padding: 26px 28px; }
.case dl { margin: 0; display: grid; gap: 14px; }
.case dt { font: 700 .75rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 4px; }
.case dd { margin: 0; }
.demo-label { position: absolute; top: 18px; right: 18px; font: 700 .6875rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--amber); color: var(--navy); }
.dashboard {
  border-radius: var(--radius-lg); background: var(--grad-navy); padding: 22px; box-shadow: var(--shadow-lg);
  display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); color: #c9d6ee; position: relative;
}
.dashboard .tile { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 14px; }
.dashboard .tile b { display: block; font: 800 1.25rem/1.2 var(--font-head); color: #fff; }
.dashboard .tile small { color: #8ea3c7; font-size: .75rem; }
.dashboard .chart { grid-column: 1 / -1; height: 150px; display: flex; align-items: flex-end; gap: 8px; padding: 14px; }
.dashboard .chart i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--grad-brand); opacity: .9; }
.dashboard .chart i:nth-child(3n) { background: linear-gradient(180deg, var(--teal), var(--green)); }

/* FAQ */
.faq-list { display: grid; gap: 14px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: box-shadow .2s, border-color .2s; }
.faq-list details[open] { border-color: rgba(22, 104, 255, .3); box-shadow: var(--shadow); }
.faq-list summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; position: relative; font: 700 1.0625rem/1.4 var(--font-head); color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231668ff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .25s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .answer { padding: 0 24px 22px; }
.faq-list .answer p:last-child { margin: 0; }

/* ---------- Lead form ---------- */
.form-section { position: relative; }
.form-shell { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.form-card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(22px, 3.4vw, 40px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.section-dark .form-card { color: var(--body); }
.form-card h2, .form-card h3 { color: var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9375rem; color: var(--ink); margin-bottom: 8px; }
.field label span[aria-hidden] { color: #d6336c; }
.optional { color: var(--muted); font-weight: 400; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-body); color: var(--ink);
  padding: 13px 14px; border-radius: 12px; border: 1.5px solid #d3dcea; background: #fbfcfe;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364728a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 42px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b7c4d9; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(22, 104, 255, .15); }
.field [aria-invalid="true"] { border-color: #d6336c; background: #fff7f9; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(214, 51, 108, .15); }
.field-error { color: #c2255c; font-size: .875rem; margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.field-hint { font-size: .8125rem; color: var(--muted); margin: 6px 0 0; text-align: right; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: .9375rem !important; color: var(--body) !important; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; }
.form-note { margin: 0; font-size: .875rem; color: var(--muted); }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
.is-submitting .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin-top: 18px; border-radius: 14px; }
.form-status:empty { display: none; }
.form-status:focus { outline: none; }
.form-status .msg { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; font-size: .96875rem; }
.form-status .msg p { margin: 0; }
.form-status .msg svg { width: 24px; height: 24px; flex: none; }
.form-status .msg.error { background: #fff0f4; border: 1px solid #ffc9d8; color: #7d1235; }
.form-status .msg.error svg { color: #d6336c; }
.form-success { text-align: center; padding: clamp(28px, 5vw, 48px) 10px; }
.form-success .tick { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal), var(--green)); color: #fff; box-shadow: 0 16px 30px -12px rgba(20, 201, 160, .7); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.form-success .tick svg { width: 38px; height: 38px; }
.form-success .ref { display: inline-block; font: 600 .9375rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); color: var(--navy); margin: 4px 0 18px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.contact-cards { display: grid; gap: 14px; margin-top: 28px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #fff; text-decoration: none; transition: background-color .2s, transform .2s, border-color .2s; }
.contact-card:hover { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(0, 184, 245, .5); transform: translateX(4px); }
.contact-card .ci { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.contact-card .ci svg { width: 22px; height: 22px; }
.contact-card .ci .fill { fill: currentColor; }
.contact-card small { display: block; color: #8ea3c7; font-size: .8125rem; }
.contact-card b { font-weight: 600; word-break: break-word; }
.light .contact-card { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.light .contact-card:hover { color: var(--ink); background: var(--surface); border-color: var(--blue); }
.light .contact-card small { color: var(--muted); }
.ci-wa { background: #25d366; color: #fff; }
.ci-wa svg { fill: currentColor; }

.map-placeholder { border-radius: var(--radius-lg); border: 1.5px dashed #b7c4d9; padding: 28px; text-align: center; background: var(--surface-2); }
.map-placeholder svg { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--blue); }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 clamp(64px, 9vw, 112px); background: transparent; }
.section-alt + .cta-band { background: var(--surface-2); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-lg); color: #c9d6ee;
  background: radial-gradient(600px 300px at 100% 0%, rgba(0, 184, 245, .35), transparent 60%),
              radial-gradient(500px 300px at 0% 100%, rgba(20, 201, 160, .25), transparent 60%),
              var(--navy);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 10px; }
.cta-inner p { margin: 0; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #a9bad8; padding: clamp(56px, 7vw, 80px) 0 0; font-size: .96875rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 48px; }
.footer-brand img { width: 170px; margin-bottom: 16px; }
.footer-brand p:first-of-type { color: #fff; font-weight: 600; font-family: var(--font-head); }
.footer-title { color: #fff; font-size: 1rem; letter-spacing: 0; margin-bottom: 16px; }
.footer-links, .footer-contact { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #a9bad8; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer a.btn { color: #fff; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; word-break: break-word; }
.footer-contact svg { width: 18px; height: 18px; flex: none; color: var(--cyan); }
.footer-contact svg.fill { fill: currentColor; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); transition: background-color .2s, transform .2s; }
.social a:hover { background: var(--blue); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .875rem; }
.footer-bottom p { margin: 0; }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: .4em; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-visible > :nth-child(2) { transition-delay: .08s; }
.js .reveal-stagger.is-visible > :nth-child(3) { transition-delay: .16s; }
.js .reveal-stagger.is-visible > :nth-child(4) { transition-delay: .24s; }
.js .reveal-stagger.is-visible > :nth-child(5) { transition-delay: .32s; }
.js .reveal-stagger.is-visible > :nth-child(6) { transition-delay: .4s; }

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

/* ---------- Responsive: tablet ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-block { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 900px) {
  .hero-grid, .page-hero-grid, .split, .form-shell { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual { max-width: 560px; margin: 8px auto 0; width: 100%; }
  .chip.c1 { left: -8px; }
  .chip.c2 { right: -8px; }
  .page-hero .banner { max-width: 620px; }
}

/* ---------- Responsive: mobile ---------- */
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { font-size: 1rem; }
  .brand img { width: 140px; }
  .grid-2, .grid-3, .grid-4, .steps, .deliverables { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn, .page-hero .btn { width: 100%; }
  .chip { padding: 8px 10px; font-size: .8125rem; }
  .chip .chip-ico { width: 30px; height: 30px; }
  .chip.c2 { top: auto; bottom: 22%; }
  .trust-strip { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .guide { grid-template-columns: 1fr; gap: 16px; }
  .guide .badge { width: 56px; height: 56px; border-radius: 16px; }
  .dashboard { grid-template-columns: 1fr 1fr; }
  .dashboard .tile:nth-child(3) { display: none; }
  .form-actions .btn { width: 100%; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .faq-list summary { padding: 18px 56px 18px 18px; font-size: 1rem; }
  .faq-list .answer { padding: 0 18px 18px; }
}

/* contact card icon tints */
.contact-card .ci.ico-blue, .contact-card .ci.ico-teal { color: #fff; }

/* eyebrow colour inside section heads (overrides .section-head p) */
.section-head .eyebrow { color: var(--blue); }
.section-dark .section-head .eyebrow { color: var(--cyan-300); }
.card .link-arrow { color: var(--blue-600); }
.post-card .meta .link-arrow { margin-top: 0; }
.post-card .meta a { text-decoration: none; font-weight: 600; }
.section-dark + .cta-band, .page-hero + .cta-band { padding-top: clamp(64px, 9vw, 112px); }
a.pill { text-decoration: none; transition: border-color .2s, color .2s; }
a.pill:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 640px) { .post-card .thumb { aspect-ratio: 16 / 7; } }

/* Keyword kicker inside H1s: looks like the eyebrow label, read by search engines as part of the heading */
h1 > .eyebrow { display: flex; width: fit-content; letter-spacing: .12em; line-height: 1.3; }
.hero h1 > .eyebrow { margin-bottom: 18px; }
.page-hero .center h1 > .eyebrow { margin-left: auto; margin-right: auto; }
/* footer secondary text: meets WCAG AA contrast on the dark background */
.site-footer .muted { color: #9fb1cf; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
