/*
Theme Name: DM Ninjas
Author: DM Ninjas
Description: A fast, conversion-focused custom WordPress theme for the DM Ninjas digital marketing agency.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: dm-ninjas
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, custom-menu, featured-images, blog, full-width-template, accessibility-ready
*/

:root {
  --ink: #080b0a;
  --ink-soft: #111714;
  --ink-raised: #18201b;
  --paper: #f4f6ef;
  --paper-muted: #aeb9b1;
  --line: rgba(244, 246, 239, 0.13);
  --line-dark: rgba(8, 11, 10, 0.14);
  --lime: #caff4a;
  --lime-strong: #b7ef2e;
  --sky: #67ddff;
  --orange: #ff8052;
  --danger: #ff625c;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  --container: 1200px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.04;
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

h3,
h4 {
  letter-spacing: -0.035em;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 4px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed !important;
  z-index: 100000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

.site-shell {
  overflow: clip;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(84px, 10vw, 148px) 0;
}

.section--light {
  background: var(--paper);
  color: var(--ink);
}

.section--raised {
  background: var(--ink-soft);
}

.section-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section--light .section-label,
.section--light .eyebrow {
  color: #477000;
}

.section-label::before,
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: clamp(32px, 7vw, 100px);
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 76px);
}

.section-heading h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.6rem, 6.8vw, 6.7rem);
}

.section-heading p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--paper-muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.section--light .section-heading p {
  color: #48534c;
}

.text-lime {
  color: var(--lime);
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--paper);
}

.section--light .text-outline {
  -webkit-text-stroke-color: var(--ink);
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button::after {
  content: "↗";
  font-size: 1.1em;
}

.button:hover {
  transform: translateY(-3px);
  background: var(--paper);
}

.button--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--paper);
}

.button--ghost:hover {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.button--dark {
  background: var(--ink);
  color: var(--paper);
}

.button--dark:hover {
  background: var(--ink-raised);
}

/* Header */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(8, 11, 10, 0.78);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(8, 11, 10, 0.94);
}

.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 32px;
}

.site-branding {
  flex: 0 0 auto;
}

.custom-logo-link,
.brand-mark {
  display: inline-flex;
  align-items: center;
  color: var(--paper);
  text-decoration: none;
}

.custom-logo {
  max-width: 196px;
  max-height: 52px;
  width: auto;
}

.brand-mark svg {
  width: 176px;
  height: auto;
}

.primary-navigation {
  margin-left: auto;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation a {
  display: block;
  padding: 10px 0;
  color: #d6ddd8;
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item > a {
  color: var(--lime);
}

.header-cta {
  min-height: 46px;
  padding: 10px 18px;
  font-size: 0.88rem;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 19px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-lines::before { top: -6px; }
.menu-toggle-lines::after { top: 6px; }

.menu-toggle[aria-expanded="true"] .menu-toggle-lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(920px, calc(100svh - 78px));
  display: flex;
  align-items: center;
  padding: clamp(76px, 10vw, 130px) 0 84px;
  background:
    radial-gradient(circle at 82% 22%, rgba(202, 255, 74, 0.13), transparent 27%),
    radial-gradient(circle at 70% 84%, rgba(103, 221, 255, 0.11), transparent 30%),
    var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 84%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.86fr);
  gap: clamp(52px, 7vw, 100px);
  align-items: center;
}

.hero h1 {
  max-width: 810px;
  margin: 0 0 30px;
  font-size: clamp(3.55rem, 8vw, 8.25rem);
}

.hero-title-accent {
  display: block;
  color: var(--lime);
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 34px;
  color: #bdc7c0;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 42px;
  color: #d8dfda;
  font-size: 0.84rem;
  font-weight: 800;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero-proof span::before {
  content: "✓";
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(202, 255, 74, 0.4);
  border-radius: 50%;
  color: var(--lime);
  font-size: 0.7rem;
}

.hero-console {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(202, 255, 74, 0.2);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(24, 32, 27, 0.95), rgba(9, 13, 11, 0.88));
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.hero-console::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 11% -7% -7% 22%;
  border-radius: inherit;
  background: var(--lime);
  opacity: 0.09;
  filter: blur(34px);
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 4px 18px;
  color: #96a299;
  font: 700 0.72rem/1 var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.console-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
}

.console-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(202, 255, 74, 0.09);
}

.console-chart {
  position: relative;
  height: 200px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    rgba(0, 0, 0, 0.18);
  background-size: 44px 44px;
}

.console-chart svg {
  position: absolute;
  inset: 10% 4% 0;
  width: 92%;
  height: 84%;
  overflow: visible;
}

.chart-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-chart 2.4s 0.3s ease forwards;
}

@keyframes draw-chart {
  to { stroke-dashoffset: 0; }
}

.console-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.console-metric {
  padding: 15px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.console-metric small {
  display: block;
  min-height: 34px;
  color: #86938a;
  font-size: 0.7rem;
  font-weight: 750;
  line-height: 1.25;
}

.console-metric strong {
  display: block;
  margin-top: 8px;
  color: var(--paper);
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
}

.console-feed {
  margin-top: 10px;
  padding: 18px;
  border-radius: 17px;
  background: var(--lime);
  color: var(--ink);
  font: 800 0.78rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink-soft);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 25s linear infinite;
}

.ticker-list {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 18px 17px;
  list-style: none;
  color: #cbd3cd;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ticker-list li::after {
  content: "✦";
  margin-left: 34px;
  color: var(--lime);
}

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

/* Services */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.problem-card {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: #ebeee6;
  color: var(--ink);
  text-decoration: none;
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.problem-card:hover {
  z-index: 2;
  transform: translateY(-8px) rotate(-0.5deg);
  background: #fff;
  box-shadow: 0 24px 60px rgba(8, 11, 10, 0.14);
}

.problem-card:nth-child(2),
.problem-card:nth-child(5) {
  background: var(--lime);
}

.problem-card:nth-child(3),
.problem-card:nth-child(6) {
  background: #d9f5ff;
}

.problem-number {
  display: flex;
  justify-content: space-between;
  color: #657069;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.problem-card h3 {
  margin: 54px 0 18px;
  font-size: clamp(1.6rem, 2.7vw, 2.55rem);
}

.problem-card p {
  color: #455149;
}

.problem-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 26px;
}

.problem-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(8, 11, 10, 0.2);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
}

.problem-arrow {
  position: absolute;
  top: 30px;
  right: 30px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(8, 11, 10, 0.2);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: transform 180ms ease, background 180ms ease;
}

.problem-card:hover .problem-arrow {
  transform: rotate(45deg);
  background: var(--ink);
  color: var(--paper);
}

/* AI section */
.ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(46px, 8vw, 110px);
  align-items: center;
}

.ai-copy h2 {
  margin-bottom: 28px;
  font-size: clamp(2.7rem, 6vw, 6rem);
}

.ai-copy > p {
  max-width: 610px;
  color: var(--paper-muted);
  font-size: 1.08rem;
}

.ai-features {
  display: grid;
  gap: 0;
  margin-top: 38px;
}

.ai-feature {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.ai-feature:last-child {
  border-bottom: 1px solid var(--line);
}

.ai-feature span {
  color: var(--lime);
  font-weight: 900;
}

.ai-feature h3 {
  margin-bottom: 7px;
  font-size: 1.05rem;
}

.ai-feature p {
  margin-bottom: 0;
  color: #96a39a;
  font-size: 0.9rem;
}

.automation-board {
  position: relative;
  min-height: 610px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 70% 20%, rgba(103, 221, 255, 0.14), transparent 29%),
    #0d120f;
  box-shadow: var(--shadow);
}

.board-label {
  display: flex;
  justify-content: space-between;
  color: #738078;
  font: 800 0.72rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.automation-flow {
  position: relative;
  display: grid;
  gap: 38px;
  margin-top: 70px;
}

.automation-flow::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 35px;
  width: 1px;
  background: linear-gradient(var(--lime), var(--sky));
}

.automation-step {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(24, 32, 27, 0.94);
}

.step-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-left: 0;
  border-radius: 10px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 950;
}

.automation-step h3 {
  margin-bottom: 5px;
  font-size: 1rem;
}

.automation-step p {
  margin: 0;
  color: #87938b;
  font-size: 0.78rem;
}

.step-status {
  padding: 6px 9px;
  border: 1px solid rgba(202, 255, 74, 0.24);
  border-radius: 999px;
  color: var(--lime);
  font: 800 0.65rem/1 var(--font-sans);
  text-transform: uppercase;
}

.board-result {
  margin-top: 38px;
  padding: 22px;
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
}

.board-result strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.board-result span {
  color: #4f5c53;
  font-size: 0.84rem;
}

/* Work */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink-soft);
}

.work-card-image {
  position: relative;
  min-height: 290px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 25%, rgba(202, 255, 74, 0.4), transparent 22%),
    linear-gradient(135deg, #243128, #0d110f);
}

.work-card:nth-child(2) .work-card-image {
  background:
    radial-gradient(circle at 20% 75%, rgba(103, 221, 255, 0.42), transparent 22%),
    linear-gradient(135deg, #17323c, #0b1113);
}

.work-card:nth-child(3) .work-card-image {
  background:
    radial-gradient(circle at 75% 75%, rgba(255, 128, 82, 0.45), transparent 22%),
    linear-gradient(135deg, #39251f, #120d0b);
}

.work-placeholder-mark {
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 2rem;
  transform: rotate(-8deg);
}

.work-card-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-card-body {
  padding: 26px;
}

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  color: #87948b;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-card h3 {
  margin-bottom: 13px;
  font-size: clamp(1.4rem, 2.1vw, 2rem);
}

.work-card p {
  color: #9ca79f;
}

.work-link {
  color: var(--lime);
  font-weight: 850;
}

/* Comparison */
.comparison-wrap {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
}

.comparison-head,
.comparison-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
}

.comparison-head > div,
.comparison-row > div {
  padding: 22px clamp(18px, 3vw, 36px);
}

.comparison-head {
  background: var(--ink);
  color: var(--paper);
  font-weight: 900;
}

.comparison-head > div:nth-child(2) {
  background: var(--lime);
  color: var(--ink);
}

.comparison-row {
  border-top: 1px solid var(--line-dark);
}

.comparison-row > div:nth-child(2) {
  background: rgba(202, 255, 74, 0.18);
  font-weight: 800;
}

.comparison-row > div:nth-child(3) {
  color: #647068;
}

.comparison-check {
  color: #346000;
  font-weight: 950;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-block: 1px solid var(--line);
}

.process-step {
  position: relative;
  padding: clamp(30px, 4vw, 50px) clamp(20px, 3vw, 38px);
  border-right: 1px solid var(--line);
}

.process-step:last-child {
  border-right: 0;
}

.process-number {
  display: block;
  margin-bottom: 70px;
  color: var(--lime);
  font: 900 0.78rem/1 var(--font-sans);
}

.process-step h3 {
  margin-bottom: 15px;
  font-size: 1.45rem;
}

.process-step p {
  margin: 0;
  color: #98a49b;
  font-size: 0.92rem;
}

/* Industries */
.industry-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.industry-cloud span {
  padding: clamp(14px, 2vw, 20px) clamp(18px, 2.8vw, 30px);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  background: #fff;
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease;
}

.industry-cloud span:nth-child(3n + 1):hover { background: var(--lime); }
.industry-cloud span:nth-child(3n + 2):hover { background: #d9f5ff; }
.industry-cloud span:nth-child(3n):hover { background: #ffe3d8; }
.industry-cloud span:hover { transform: translateY(-4px); }

/* Insights */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.post-card {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--ink-soft);
}

.post-card-meta {
  color: var(--lime);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.post-card h3 {
  margin: 48px 0 20px;
  font-size: clamp(1.4rem, 2.2vw, 2.05rem);
}

.post-card h3 a {
  text-decoration: none;
}

.post-card h3 a:hover {
  color: var(--lime);
}

.post-card p {
  color: #98a49b;
}

.post-card-link {
  margin-top: auto;
  color: var(--lime);
  font-weight: 850;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.52fr) minmax(0, 1fr);
  gap: clamp(50px, 8vw, 120px);
}

.faq-intro h2 {
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
}

.faq-intro p {
  color: #9ba69e;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 25px 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-weight: 850;
  text-align: left;
}

.faq-icon {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1px;
  background: var(--lime);
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 180ms ease;
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0);
}

.faq-answer {
  max-width: 760px;
  padding: 0 52px 25px 0;
  color: #98a49b;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* CTA */
.cta-band {
  padding: clamp(76px, 10vw, 130px) 0;
  background: var(--lime);
  color: var(--ink);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  align-items: end;
}

.cta-band h2 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 7vw, 7rem);
}

.cta-band p {
  max-width: 690px;
  margin-bottom: 0;
  color: #33411d;
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  padding: 70px 0 24px;
  background: #050706;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-brand p {
  max-width: 430px;
  margin-top: 24px;
  color: #8e9a91;
}

.footer-heading {
  margin-bottom: 18px;
  color: #657168;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-menu,
.footer-contact {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu a,
.footer-contact a {
  color: #d2dad4;
  text-decoration: none;
}

.footer-menu a:hover,
.footer-contact a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #667168;
  font-size: 0.78rem;
}

.footer-bottom a:hover {
  color: var(--paper);
}

/* Inner pages */
.page-hero {
  padding: clamp(90px, 12vw, 170px) 0 clamp(70px, 9vw, 120px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 20%, rgba(202, 255, 74, 0.12), transparent 28%),
    var(--ink);
}

.page-hero h1 {
  max-width: 1000px;
  margin-bottom: 26px;
  font-size: clamp(3.2rem, 8vw, 8rem);
}

.page-hero p {
  max-width: 720px;
  color: #a4afa7;
  font-size: 1.12rem;
}

.content-area {
  background: var(--paper);
  color: var(--ink);
}

.entry-content {
  max-width: 840px;
  margin-inline: auto;
  padding: clamp(70px, 9vw, 120px) 0;
}

.entry-content > * + * {
  margin-top: 1.35em;
}

.entry-content h2 {
  margin-top: 1.5em;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.entry-content h3 {
  margin-top: 1.4em;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
}

.entry-content a {
  color: #477000;
  font-weight: 750;
}

.entry-content blockquote {
  margin: 2em 0;
  padding: 24px 30px;
  border-left: 5px solid var(--lime-strong);
  background: #e7eadf;
  font-size: 1.15rem;
}

.entry-content img {
  border-radius: var(--radius-md);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 80px 0 120px;
}

.pagination {
  grid-column: 1 / -1;
  margin-top: 30px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination .page-numbers {
  display: grid;
  min-width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  text-decoration: none;
}

.pagination .current,
.pagination a:hover {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found strong {
  display: block;
  color: var(--lime);
  font: 900 clamp(6rem, 18vw, 15rem)/0.8 var(--font-display);
}

.not-found h1 {
  margin: 34px 0 22px;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

/* Reveal */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 600ms ease, transform 600ms ease;
}

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

@media (max-width: 1020px) {
  .header-cta { display: none; }

  .menu-toggle { display: inline-flex; margin-left: auto; }

  .primary-navigation {
    position: fixed;
    inset: 78px 0 auto;
    max-height: calc(100svh - 78px);
    overflow-y: auto;
    padding: 24px 20px 38px;
    border-top: 1px solid var(--line);
    background: rgba(8, 11, 10, 0.99);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .primary-navigation.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-navigation ul {
    display: grid;
    gap: 0;
  }

  .primary-navigation a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }

  .hero-grid,
  .ai-grid {
    grid-template-columns: 1fr;
  }

  .hero-console {
    width: min(100%, 680px);
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .problem-grid,
  .work-grid,
  .post-grid,
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem-card:last-child,
  .work-card:last-child,
  .post-card:last-child {
    grid-column: 1 / -1;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step:nth-child(2) { border-right: 0; }
  .process-step:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

  .faq-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .faq-intro,
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--container)); }

  .section { padding: 78px 0; }

  .brand-mark svg { width: 155px; }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

  .hero h1 { font-size: clamp(3.1rem, 17vw, 5.4rem); }

  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }

  .hero-console { padding: 12px; border-radius: 24px; transform: none; }
  .console-chart { height: 160px; }
  .console-metrics { grid-template-columns: 1fr; }
  .console-metric small { min-height: 0; }

  .section-heading h2,
  .ai-copy h2 { font-size: clamp(2.6rem, 14vw, 4.4rem); }

  .problem-grid,
  .work-grid,
  .post-grid,
  .archive-grid,
  .faq-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .problem-card:last-child,
  .work-card:last-child,
  .post-card:last-child,
  .faq-intro,
  .footer-brand {
    grid-column: auto;
  }

  .problem-card { min-height: 330px; }

  .automation-board { min-height: 0; }

  .automation-step {
    grid-template-columns: 42px 1fr;
  }

  .step-status {
    grid-column: 2;
    justify-self: start;
  }

  .comparison-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
  }

  .comparison-head,
  .comparison-row {
    min-width: 700px;
  }

  .process-grid { grid-template-columns: 1fr; }

  .process-step,
  .process-step:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-step:last-child { border-bottom: 0; }
  .process-number { margin-bottom: 34px; }

  .cta-grid { grid-template-columns: 1fr; align-items: start; }
  .cta-grid .button { width: 100%; }

  .footer-bottom { flex-direction: column; }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
