/* ==========================================================
   BITSTEPS — Main Stylesheet
   Direction: sober IT consulting — slate, steel blue, paper
   Type: IBM Plex Sans / IBM Plex Mono (workflow data only)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* token system */
  --navy: #23425f;        /* primary: headings, buttons */
  --navy-dark: #1a324a;
  --steel: #3f7cac;       /* accent: links, labels, hovers */
  --steel-soft: rgba(63, 124, 172, 0.09);
  --slate: #2b3d52;       /* dark bands: footer, cta, stats */
  --status: #4c9a7a;      /* muted green: completed steps only */
  --paper: #f6f8fa;
  --line: #e2e8ee;
  --line-dark: rgba(255, 255, 255, 0.12);
  --text: #2a3038;
  --muted: #5f6b78;
  --text-inverse: #d5dde6;
  --muted-inverse: #9aa8b6;
  --white: #fff;

  /* legacy aliases kept for inline styles on pages */
  --primary: #23425f;
  --primary-mid: #3f7cac;
  --primary-soft: #3f7cac;
  --accent: #3f7cac;
  --accent-dark: #2e5f86;
  --light-bg: #f6f8fa;
  --text-light: #5f6b78;
  --border: #e2e8ee;

  --shadow: 0 2px 12px rgba(35, 66, 95, 0.06);
  --shadow-lg: 0 12px 32px rgba(35, 66, 95, 0.12);
  --radius: 8px;

  --font-body: 'IBM Plex Sans', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.mono { font-family: var(--font-mono); }

/* Sections linked from nav should clear the sticky navbar */
[id] {
  scroll-margin-top: 100px;
}

section {
  padding: 76px 0;
}

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- TOP BAR ---- */
.topbar {
  background: var(--slate);
  color: var(--text-inverse);
  padding: 8px 0;
  font-size: 13px;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-contact {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.topbar a,
.topbar span {
  color: var(--muted-inverse);
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar a:hover {
  color: var(--white);
}

/* ---- NAVBAR ---- */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
}

.navbar .logo img {
  height: 54px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 26px;
}

.nav-links a {
  font-weight: 500;
  font-size: 14.5px;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  display: block;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-body);
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}

.btn:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

/* on light backgrounds */
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

/* light hero variant */
.btn-outline-light-bg {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}

.btn-outline-light-bg:hover {
  border-color: var(--navy);
}

/* ---- SECTION HEADINGS ---- */
.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 8px;
  font-size: 16.5px;
}

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

/* ---- HERO ---- */
.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 82px 0 74px;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  background: var(--steel-soft);
  border: 1px solid rgba(63, 124, 172, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--steel);
}

.hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 30px;
}

.hero .btn { margin-right: 12px; margin-bottom: 12px; }

/* legacy hero stats (kept for safety, restyled) */
.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero-stat strong {
  display: block;
  font-size: 28px;
  color: var(--navy);
}

.hero-stat span {
  color: var(--muted);
  font-size: 13px;
}

/* ---- PROCESS PANEL / WORKFLOW TRACE (signature) ---- */
.console {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.console-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.console-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.console-dot:first-child { background: var(--status); }

.console-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: 0.04em;
}

.console-body { padding: 22px 24px; }

.trace-caption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.trace-steps {
  list-style: none;
}

.trace-steps li {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 0 0 18px 0;
}

.trace-steps li:last-child { padding-bottom: 0; }

/* rail */
.trace-steps li::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.trace-steps li:last-child::before { display: none; }

.t-node {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border-radius: 50%;
  border: 2px solid #b3bfca;
  background: var(--white);
  position: relative;
  z-index: 1;
}

.t-body strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.t-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.03em;
}

/* animated run-through */
.trace[data-animate] .trace-steps li {
  opacity: 0.35;
  transition: opacity .45s ease;
}

.trace[data-animate].run .trace-steps li {
  opacity: 1;
}

.trace[data-animate].run .trace-steps li .t-node {
  border-color: var(--status);
  background: var(--status);
  box-shadow: 0 0 0 3px rgba(76, 154, 122, 0.15);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.trace[data-animate].run .trace-steps li:last-child .t-node {
  border-color: var(--steel);
  background: var(--steel);
  box-shadow: 0 0 0 3px rgba(63, 124, 172, 0.18);
}

/* stagger: supports up to 8 steps */
.trace[data-animate].run .trace-steps li:nth-child(1),
.trace[data-animate].run .trace-steps li:nth-child(1) .t-node { transition-delay: .15s; }
.trace[data-animate].run .trace-steps li:nth-child(2),
.trace[data-animate].run .trace-steps li:nth-child(2) .t-node { transition-delay: .5s; }
.trace[data-animate].run .trace-steps li:nth-child(3),
.trace[data-animate].run .trace-steps li:nth-child(3) .t-node { transition-delay: .85s; }
.trace[data-animate].run .trace-steps li:nth-child(4),
.trace[data-animate].run .trace-steps li:nth-child(4) .t-node { transition-delay: 1.2s; }
.trace[data-animate].run .trace-steps li:nth-child(5),
.trace[data-animate].run .trace-steps li:nth-child(5) .t-node { transition-delay: 1.55s; }
.trace[data-animate].run .trace-steps li:nth-child(6),
.trace[data-animate].run .trace-steps li:nth-child(6) .t-node { transition-delay: 1.9s; }
.trace[data-animate].run .trace-steps li:nth-child(7),
.trace[data-animate].run .trace-steps li:nth-child(7) .t-node { transition-delay: 2.25s; }
.trace[data-animate].run .trace-steps li:nth-child(8),
.trace[data-animate].run .trace-steps li:nth-child(8) .t-node { transition-delay: 2.6s; }

@media (prefers-reduced-motion: reduce) {
  .trace[data-animate] .trace-steps li { opacity: 1; transition: none; }
  .trace[data-animate] .trace-steps li .t-node,
  .trace[data-animate].run .trace-steps li .t-node {
    transition: none;
    animation: none;
    border-color: var(--status);
    background: var(--status);
    box-shadow: none;
  }
}

/* legacy variant class kept as alias (traces are light by default now) */
.trace-light {}

/* ---- READOUT STRIP (key figures) ---- */
.readout {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.readout .container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 56px;
  justify-content: center;
}

.readout-item {
  font-size: 13.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.readout-item b {
  color: var(--navy);
  font-weight: 700;
  font-size: 17px;
  margin-right: 8px;
}

.readout-item b i {
  font-style: normal;
  color: var(--steel);
}

/* ---- PAGE BANNER ---- */
.page-banner {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}

.page-banner h1 {
  font-size: clamp(28px, 3.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.breadcrumb {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 8px;
}

.breadcrumb a { color: var(--steel); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- SOLUTIONS STRIP / CARDS ---- */
.solutions-strip {
  background: var(--paper);
}

.solution-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.solution-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.solution-card:hover {
  border-color: var(--steel);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.solution-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--steel-soft);
  color: var(--steel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}

.solution-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.solution-card p {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--steel);
}

.card-link:hover { color: var(--accent-dark); }

/* ---- SERVICES GRID (home) ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--steel);
}

.service-card img {
  height: 170px;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}

.service-card-body { padding: 22px; }

.service-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card-body ul {
  list-style: none;
}

.service-card-body li {
  font-size: 14px;
  color: var(--muted);
  padding: 4px 0 4px 18px;
  position: relative;
}

.service-card-body li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--steel);
  font-weight: 700;
}

/* ---- AI SECTION ---- */
.ai-section {
  background: var(--slate);
  color: var(--white);
}

.ai-section .section-title { color: var(--white); }
.ai-section .section-subtitle { color: var(--text-inverse); }
.ai-section .section-label { color: #8fc1e3; }

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 44px;
}

.ai-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 28px;
}

.ai-card-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9fd4b8;
  border: 1px solid rgba(159, 212, 184, 0.35);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.ai-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.ai-card > p {
  color: var(--text-inverse);
  font-size: 15px;
  margin-bottom: 16px;
}

.ai-card ul { list-style: none; }

.ai-card li {
  font-size: 14px;
  color: var(--text-inverse);
  padding: 5px 0 5px 20px;
  position: relative;
}

.ai-card li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #8fc1e3;
  font-weight: 700;
}

/* ---- AI PAGE ---- */
.ai-topic {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.ai-topic:last-child { border-bottom: 0; }

.ai-topic-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--steel-soft);
  color: var(--steel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.ai-topic h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.ai-topic p {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 10px;
}

.ai-topic ul { list-style: none; }

.ai-topic li {
  font-size: 14.5px;
  color: var(--text);
  padding: 4px 0 4px 20px;
  position: relative;
}

.ai-topic li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--steel);
  font-weight: 700;
}

/* ---- KNOWLEDGE BASE ---- */
.kb-intro {
  max-width: 720px;
}

.kb-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.kb-toc a {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 16px;
  transition: border-color .2s, color .2s, background .2s;
}

.kb-toc a:hover {
  border-color: var(--steel);
  color: var(--steel);
}

.kb-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 36px;
  margin-bottom: 30px;
  transition: border-color .2s;
}

.kb-block:hover { border-color: var(--steel); }

.kb-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--steel);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.kb-block h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.kb-block .lead {
  margin-bottom: 24px;
}

.kb-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.kb-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.kb-note h4 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.kb-note ul { list-style: none; }

.kb-note li {
  font-size: 14px;
  color: var(--text);
  padding: 4px 0 4px 18px;
  position: relative;
}

.kb-note li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--steel);
  font-weight: 700;
}

.kb-note + .kb-note { margin-top: 18px; }

/* ---- SOLUTION BLOCKS (products page) ---- */
.solution-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 38px;
  margin: 34px 0;
  transition: border-color .2s;
}

.solution-block:hover { border-color: var(--steel); }

.solution-block-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.solution-block-head h2 {
  font-size: 23px;
  font-weight: 700;
  color: var(--navy);
}

.lead {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 20px;
}

.feature-columns {
  list-style: none;
  columns: 2;
  column-gap: 40px;
  margin-bottom: 20px;
}

.feature-columns li {
  font-size: 14.5px;
  color: var(--text);
  padding: 5px 0 5px 20px;
  position: relative;
  break-inside: avoid;
}

.feature-columns li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--steel);
  font-weight: 700;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.chip {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--navy);
  background: var(--steel-soft);
  border: 1px solid rgba(63, 124, 172, 0.2);
  border-radius: 20px;
  padding: 4px 12px;
}

/* ---- TECH GRID ---- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.tech-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.tech-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--steel);
}

.tech-item i {
  font-size: 24px;
  color: var(--steel);
  margin-bottom: 12px;
}

.tech-item h4 {
  font-size: 15.5px;
  color: var(--navy);
  margin-bottom: 5px;
}

.tech-item p {
  font-size: 13px;
  color: var(--muted);
}

/* ---- SERVICE ROWS (services page) ---- */
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.service-row:last-child { border-bottom: 0; }

.service-row img {
  border-radius: var(--radius);
  height: 260px;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}

.service-row.reverse img { order: 2; }

.service-row-content h2 {
  font-size: 23px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-row-content ul { list-style: none; }

.service-row-content li {
  font-size: 15px;
  color: var(--text);
  padding: 5px 0 5px 20px;
  position: relative;
}

.service-row-content li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--steel);
  font-weight: 700;
}

/* ---- ABOUT ---- */
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
}

.about-intro img {
  border-radius: var(--radius);
  filter: saturate(0.85);
  position: sticky;
  top: 110px;
}

.about-text p {
  margin-bottom: 14px;
  color: var(--text);
}

.skill-bars { margin-top: 28px; }

.skill-item { margin-bottom: 16px; }

.skill-label {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.skill-track {
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--navy), var(--steel));
  border-radius: 3px;
  transition: width 1.1s ease;
}

/* ---- PHILOSOPHY ---- */
.philosophy-section {
  background: var(--paper);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.philosophy-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .2s, transform .2s;
}

.philosophy-card:hover {
  border-color: var(--steel);
  transform: translateY(-3px);
}

.philosophy-card h4 {
  font-size: 16.5px;
  color: var(--navy);
  margin-bottom: 8px;
}

.philosophy-card p {
  font-size: 14px;
  color: var(--muted);
}

/* ---- STATS ---- */
.stats-section {
  background: var(--slate);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item .number {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  color: var(--white);
}

.stat-item p {
  color: var(--muted-inverse);
  font-size: 14px;
  margin-top: 6px;
}

/* ---- CTA ---- */
.cta-section {
  background: var(--slate);
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-section p { color: var(--text-inverse); }

.cta-section .btn-primary {
  background: var(--steel);
}

.cta-section .btn-primary:hover {
  background: var(--accent-dark);
}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.contact-info h2,
.contact-form h2 {
  font-size: 25px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.contact-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--steel-soft);
  color: var(--steel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.contact-detail-text strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.contact-detail-text span,
.contact-detail-text a {
  color: var(--text);
  font-size: 15px;
}

.contact-detail-text a:hover { color: var(--steel); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--paper);
  transition: border-color .2s, background .2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--steel);
  background: var(--white);
}

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

.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--white);
  border: 0;
  border-radius: 6px;
  padding: 13px 32px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background .2s;
}

.form-submit:hover:not(:disabled) { background: var(--navy-dark); }

.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-submit:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

.btn-spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(76, 154, 122, 0.1);
  border: 1px solid rgba(76, 154, 122, 0.4);
  border-radius: 6px;
  color: #37725a;
  font-size: 14.5px;
}

#contactStatus {
  font-size: 14.5px;
  color: var(--navy);
  font-weight: 500;
}

.map-section {
  padding-bottom: 76px;
}

.map-section iframe {
  width: 100%;
  height: 380px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---- SOCIAL LINKS ---- */
.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background .2s, color .2s;
}

.social-links a:hover {
  background: var(--steel);
  color: var(--white);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--slate);
  color: var(--text-inverse);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-brand img { height: 34px; }

.footer-brand strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}

.footer-logo p {
  font-size: 14px;
  color: var(--muted-inverse);
  margin-bottom: 18px;
}

.footer h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links { list-style: none; }

.footer-links li { padding: 4px 0; }

.footer-links a {
  color: var(--muted-inverse);
  font-size: 14px;
  transition: color .2s;
}

.footer-links a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted-inverse);
  margin-bottom: 10px;
}

.footer-contact-item .ico { flex: 0 0 auto; }

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted-inverse);
}

/* ---- SCROLL TOP ---- */
#scrollTop {
  display: none;
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 0;
  background: var(--navy);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 900;
  transition: background .2s;
}

#scrollTop:hover { background: var(--steel); }

/* ---- RECAPTCHA ---- */
.grecaptcha-badge { visibility: hidden; }

.recaptcha-terms {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--muted);
}

.recaptcha-terms a {
  color: inherit;
  text-decoration: underline;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .solution-cards, .services-grid, .philosophy-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ai-grid, .kb-grid { grid-template-columns: 1fr; }
  .about-intro, .contact-grid { grid-template-columns: 1fr; }
  .about-intro img { position: static; }
  .service-row { grid-template-columns: 1fr; gap: 24px; }
  .service-row.reverse img { order: 0; }
  .feature-columns { columns: 1; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }

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

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 12px 24px;
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  section { padding: 56px 0; }
  .hero { padding: 60px 0 52px; }
  .solution-cards, .services-grid, .philosophy-grid, .tech-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .kb-block, .solution-block { padding: 26px 22px; }
  .topbar { display: none; }
  .ai-topic { grid-template-columns: 1fr; gap: 12px; }
}
