/* Dzynova Digitals — Design System */

/* Inter self-hosted (latin + latin-ext), font-display: swap */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-500.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-600.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/inter-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-800.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #0a1628;
  --navy-2: #10203a;
  --navy-3: #16294a;
  --accent: #2dd4bf;
  --accent-2: #14b8a6;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --on-accent: #0a1628;
  --text: #e6edf7;
  --text-muted: #94a3b8;
  --bg: #0a1628;
  --bg-alt: #0d1b31;
  --card: #12203a;
  --border: rgba(148, 163, 184, 0.15);
  --white: #ffffff;
  --danger: #f87171;
  --header-bg: rgba(10, 22, 40, 0.85);
  --menu-bg: #0a1628;
  --shadow-color: rgba(0, 0, 0, 0.45);
  --selection-bg: rgba(45, 212, 191, 0.35);
  --focus-ring: rgba(45, 212, 191, 0.65);
  --glow-1: rgba(45, 212, 191, 0.1);
  --glow-2: rgba(56, 130, 246, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

[data-theme="light"] {
  --navy: #101c33;
  --navy-2: #f7f1e6;
  --navy-3: #efe6d6;
  --accent: #0f766e;
  --accent-2: #115e59;
  --accent-soft: rgba(15, 118, 110, 0.1);
  --on-accent: #ffffff;
  --text: #24304a;
  --text-muted: #5a6a85;
  --bg: #faf6ef;
  --bg-alt: #f1ebdf;
  --card: #fffdf8;
  --border: rgba(16, 28, 51, 0.12);
  --white: #101c33;
  --danger: #dc2626;
  --header-bg: rgba(250, 246, 239, 0.88);
  --menu-bg: #faf6ef;
  --shadow-color: rgba(16, 28, 51, 0.12);
  --selection-bg: rgba(15, 118, 110, 0.25);
  --focus-ring: rgba(15, 118, 110, 0.65);
  --glow-1: rgba(15, 118, 110, 0.12);
  --glow-2: rgba(15, 118, 110, 0.07);
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--selection-bg);
  color: var(--text);
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 640px;
}

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 { margin-bottom: 14px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-family: var(--font);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  transform: translate(var(--btn-x, 0px), var(--btn-y, 0px));
}

.btn-primary:hover {
  background: var(--accent-2);
  transform: translate(var(--btn-x, 0px), calc(var(--btn-y, 0px) - 2px));
  box-shadow: 0 10px 30px var(--shadow-color), 0 4px 14px var(--focus-ring);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: -0.03em;
}

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: var(--on-accent);
  border-bottom: none;
}

.nav-links .btn { padding: 10px 22px; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(20deg) scale(1.05);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero ---------- */

.hero {
  padding: 110px 0 96px;
  background:
    radial-gradient(ellipse 700px 400px at 80% 20%, var(--glow-1), transparent),
    radial-gradient(ellipse 500px 350px at 10% 80%, var(--glow-2), transparent);
}

.hero h1 { margin-bottom: 22px; max-width: 800px; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { max-width: 620px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.hero-stat strong {
  display: block;
  font-size: 1.7rem;
  color: var(--white);
  font-weight: 700;
}

.hero-stat span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Grids & Cards ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.25s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -12px var(--shadow-color);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.card h3 { margin-bottom: 10px; }
.card h2 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
.card p { color: var(--text-muted); font-size: 0.97rem; }

.card-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
}

.related {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.related a {
  color: var(--accent);
  font-weight: 600;
}

.related a:hover { text-decoration: underline; }

/* ---------- Problem list ---------- */

.problem-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.problem-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.problem-item .x {
  color: var(--danger);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.problem-item p { color: var(--text-muted); font-size: 0.97rem; }
.problem-item strong { color: var(--white); display: block; margin-bottom: 4px; font-size: 1rem; }

/* ---------- Process ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.process-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}

.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.process-step h3 { margin-bottom: 10px; }
.process-step p { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Approach / Why ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.check-list { display: grid; gap: 16px; margin-top: 28px; }

.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-muted);
}

.check-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.check-list li strong { color: var(--white); }

/* ---------- FAQ ---------- */

.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--card);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 600;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-q::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
}

.faq-item.open .faq-a {
  max-height: 480px;
}

.faq-a p {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--navy-2), var(--navy-3));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 500px 250px at 50% 0%, var(--glow-1), transparent);
  pointer-events: none;
}

.cta-band::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 55%;
  left: -70%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(45, 212, 191, 0.1) 45%,
    rgba(45, 212, 191, 0.18) 50%,
    rgba(45, 212, 191, 0.1) 55%,
    transparent 100%
  );
  animation: cta-shimmer 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cta-shimmer {
  0% { left: -70%; }
  55%, 100% { left: 130%; }
}

.cta-band h2 { margin-bottom: 14px; position: relative; }
.cta-band p { color: var(--text-muted); max-width: 560px; margin: 0 auto; position: relative; }
.cta-band .btn-row { justify-content: center; position: relative; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 80px 0 64px;
  background: radial-gradient(ellipse 600px 300px at 70% 30%, var(--glow-1), transparent);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { margin-bottom: 16px; }

/* ---------- Service detail blocks ---------- */

.service-block {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child { border-bottom: none; }

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tag {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border);
}

.deliverables {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.deliverables li {
  display: flex;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.deliverables li::before {
  content: "→";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Case study / journey ---------- */

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.metric {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.metric strong {
  display: block;
  font-size: 1.9rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.metric span {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.timeline {
  border-left: 2px solid var(--border);
  margin-left: 12px;
  padding-left: 36px;
  display: grid;
  gap: 40px;
  margin-top: 48px;
}

.timeline-item { position: relative; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -45px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}

.timeline-item .when {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.timeline-item h3 { margin: 8px 0 10px; }
.timeline-item p { color: var(--text-muted); }

/* ---------- Blog ---------- */

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.post-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -12px var(--shadow-color);
}

.post-card .cat {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
}

.post-card h3 { margin-bottom: 12px; }
.post-card p { color: var(--text-muted); font-size: 0.96rem; flex: 1; }

.post-card .meta {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-card .card-link { margin-top: 14px; }

/* ---------- Articles ---------- */

.article-hero { padding: 64px 0 8px; }

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.crumbs a:hover { color: var(--accent); }

.page-hero .crumbs { margin-bottom: 18px; }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.article-meta .dot { opacity: 0.5; }

.article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 24px;
  font-size: 1.02rem;
}

.article-body > * + * { margin-top: 22px; }

.article-body h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  margin-top: 44px;
}

.article-body h3 { margin-top: 32px; }

.article-body p, .article-body li { color: var(--text); }

.article-body .lede {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.article-body ul, .article-body ol {
  list-style: revert;
  padding-left: 24px;
  display: grid;
  gap: 10px;
}

.article-body a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body .takeaway {
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.article-body .takeaway strong { color: var(--white); }

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 24px 72px;
}

.article-nav a {
  flex: 1 1 220px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s, transform 0.25s ease;
}

.article-nav a:hover { border-color: var(--accent); transform: translateY(-2px); }

.article-nav small {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.form-group label .req { color: var(--accent); }

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.97rem;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.checkbox-item:hover { border-color: var(--accent); }

.checkbox-item input {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.checkbox-item:has(input:checked) {
  border-color: var(--accent);
  color: var(--white);
  background: var(--accent-soft);
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-status {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}

.form-status.ok {
  display: block;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--accent);
}

.form-status.err {
  display: block;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: var(--danger);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .logo { display: inline-block; margin-bottom: 14px; }
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; max-width: 280px; }

.footer-col h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 18px;
}

.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.87rem;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Utilities ---------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--text-muted); }

/* ---------- Hero growth art + capabilities marquee ---------- */

.hero { position: relative; overflow: hidden; }
.hero .container { position: relative; z-index: 1; }

.hero-art {
  position: absolute;
  top: 50%;
  right: -48px;
  width: min(520px, 42%);
  transform: translateY(-50%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 34%);
  mask-image: linear-gradient(to right, transparent, #000 34%);
}

.hero-art svg { display: block; width: 100%; height: auto; }

.hero-art #heroBar stop:first-child {
  stop-color: var(--accent);
  stop-opacity: 0.06;
}

.hero-art #heroBar stop:last-child {
  stop-color: var(--accent);
  stop-opacity: 0.45;
}

.hero-art #heroLine stop:first-child {
  stop-color: var(--accent);
  stop-opacity: 0.3;
}

.hero-art #heroLine stop:last-child {
  stop-color: var(--accent);
  stop-opacity: 1;
}

.hero-bar {
  fill: url(#heroBar);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: hero-bar-grow 1.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-bar:nth-child(1) { animation-delay: 0.08s; }
.hero-bar:nth-child(2) { animation-delay: 0.16s; }
.hero-bar:nth-child(3) { animation-delay: 0.24s; }
.hero-bar:nth-child(4) { animation-delay: 0.32s; }
.hero-bar:nth-child(5) { animation-delay: 0.40s; }
.hero-bar:nth-child(6) { animation-delay: 0.48s; }

.hero-line {
  fill: none;
  stroke: url(#heroLine);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: hero-line-draw 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-line-glow {
  stroke-width: 9;
  opacity: 0.22;
}

.hero-dots circle {
  fill: var(--accent);
  opacity: 0;
  animation: hero-dot-in 0.45s ease both;
}

.hero-dots circle:nth-child(1) { animation-delay: 0.62s; }
.hero-dots circle:nth-child(2) { animation-delay: 0.76s; }
.hero-dots circle:nth-child(3) { animation-delay: 0.90s; }
.hero-dots circle:nth-child(4) { animation-delay: 1.04s; }
.hero-dots circle:nth-child(5) { animation-delay: 1.18s; }
.hero-dots circle:nth-child(6) { animation-delay: 1.32s; }

@keyframes hero-bar-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes hero-line-draw {
  from { stroke-dashoffset: 100; }
  to { stroke-dashoffset: 0; }
}

@keyframes hero-dot-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

.marquee {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

.marquee-list {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  margin: 0;
}

.marquee-list li {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.marquee-list li::after {
  content: "";
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
}

@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

@media (max-width: 960px) {
  .hero-art { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art,
  .hero-art * {
    animation-delay: 0ms !important;
    animation-duration: 0.01ms !important;
  }

  .marquee { overflow: visible; }

  .marquee-track {
    animation: none;
    width: 100%;
  }

  .marquee-list {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
    padding-right: 0;
  }

  .marquee-list[aria-hidden="true"] { display: none; }
}

/* ---------- Motion ---------- */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero .eyebrow,
.hero h1,
.hero .lead,
.hero .btn-row,
.hero .hero-stats {
  animation: rise-in 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero .eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.14s; }
.hero .lead { animation-delay: 0.24s; }
.hero .btn-row { animation-delay: 0.34s; }
.hero .hero-stats { animation-delay: 0.46s; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.theme-fade {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.26s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cta-band::after { display: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid-3, .grid-4, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .checkbox-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--menu-bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    gap: 6px;
    margin-left: 0;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links .btn {
    margin-top: 14px;
    text-align: center;
    border-bottom: none;
  }

  .grid-2, .grid-3, .grid-4, .process-grid,
  .problem-list, .form-grid, .deliverables,
  .checkbox-grid, .metric-grid, .footer-grid {
    grid-template-columns: 1fr;
  }

  .section { padding: 64px 0; }
  .hero { padding: 72px 0 64px; }
  .cta-band { padding: 48px 24px; }
}
