/* =========================================================
   EXCELSOFT — MAIN STYLESHEET
   A clean, light, single-accent design system.
   Organised by section — search for the "== NAME ==" labels.
   ========================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Colour */
  --color-bg: #ffffff;
  --color-bg-soft: #f5f6fb;
  --color-bg-dark: #11131c;
  --color-bg-dark-soft: #1a1d29;
  --color-ink: #14161f;
  --color-ink-muted: #5b6273;
  --color-ink-soft: #8a90a0;
  --color-line: #e7e9f1;
  --color-line-dark: rgba(255, 255, 255, 0.1);
  --color-accent: #3450ff;
  --color-accent-dark: #2438c9;
  --color-accent-light: #5a72ff;
  --color-accent-soft: #ecefff;
  --color-white: #ffffff;
  --color-success: #18804f;
  --color-success-soft: #e9f7f0;
  --color-error: #c8342f;
  --color-error-soft: #fdedec;

  /* Type */
  --font-display: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-label: "Manrope", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(20, 22, 31, 0.08);
  --shadow-md: 0 10px 28px rgba(20, 22, 31, 0.09);
  --shadow-lg: 0 24px 64px rgba(20, 22, 31, 0.16);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.16s var(--ease);
  --t-base: 0.26s var(--ease);

  /* Layout */
  --container-w: 1180px;
  --header-h: 76px;
}

/* ---------- 2. RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

input,
textarea,
button {
  font-size: 1rem;
}

/* Accessible focus ring everywhere */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.35rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p.lead {
  font-size: 1.15rem;
  color: var(--color-ink-muted);
}

.eyebrow {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-block;
}

.muted { color: var(--color-ink-muted); }

/* ---------- 4. LAYOUT UTILITIES ---------- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--space-7) 0;
}

.section--soft { background: var(--color-bg-soft); }

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-5);
}

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

.section-head h2 { margin-top: 0.6rem; }
.section-head p { margin-top: 0.9rem; }

/* ---------- 5. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(52, 80, 255, 0.28);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(52, 80, 255, 0.34);
}

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

.btn-ghost:hover {
  border-color: var(--color-ink);
  transform: translateY(-2px);
}

.btn-on-dark {
  background: var(--color-white);
  color: var(--color-accent);
}

.btn-on-dark:hover {
  background: var(--color-accent-soft);
  transform: translateY(-2px);
}

.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.65; cursor: not-allowed; transform: none !important; }

/* ---------- 6. HEADER / NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-line);
  box-shadow: 0 4px 24px rgba(20, 22, 31, 0.05);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-links {
  display: flex;
  gap: var(--space-4);
}

.nav-links a {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-ink-muted);
  padding: 0.4rem 0;
  position: relative;
  transition: color var(--t-fast);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--t-fast);
}

.nav-links a:hover { color: var(--color-ink); }
.nav-links a:hover::after { width: 100%; }

.nav-links a.active { color: var(--color-ink); }
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
  color: var(--color-ink);
}

.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- 7. MOBILE NAV ---------- */
@media (max-width: 860px) {
  .nav-links,
  .main-nav > .btn {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
  }

  .main-nav {
    gap: 0;
  }

  .nav-toggle { display: inline-flex; }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-line);
    padding: 0.5rem 1.5rem 1rem;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--t-base), opacity var(--t-base);
    box-shadow: var(--shadow-md);
  }

  .nav-links a { width: 100%; padding: 0.85rem 0; }
  .nav-links a::after { display: none; }
  .nav-links .btn { margin-top: 0.5rem; }

  body.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .main-nav > a.btn { display: none; }
}

@media (min-width: 861px) {
  .nav-links .btn-mobile-only { display: none; }
}

/* ---------- 8. HERO ---------- */
.hero {
  padding: var(--space-6) 0 var(--space-7);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-6);
  align-items: center;
}

.hero-copy h1 { margin-top: 1rem; }

.hero-copy p.lead {
  margin-top: 1.4rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

.hero-note {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-label);
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

.hero-note svg { width: 16px; height: 16px; color: var(--color-accent); }

/* Signature element: the code card */
.code-card {
  background: var(--color-bg-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  position: relative;
}

.code-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% -10%, rgba(90, 114, 255, 0.35), transparent 55%);
  pointer-events: none;
}

.code-card-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--color-line-dark);
}

.code-card-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.code-card-dot:nth-child(1) { background: #ff5f57; }
.code-card-dot:nth-child(2) { background: #febc2e; }
.code-card-dot:nth-child(3) { background: #28c840; }

.code-card-file {
  margin-left: 0.5rem;
  font-size: 0.78rem;
  color: var(--color-ink-soft);
  font-family: var(--font-label);
}

.code-card-body {
  padding: 1.6rem 1.5rem 2rem;
  font-size: 0.92rem;
  line-height: 1.85;
}

.code-line {
  white-space: pre;
  opacity: 1;
}

.code-line .c-key { color: #8aa0ff; }
.code-line .c-prop { color: #e7e9f1; }
.code-line .c-str { color: #6fe3a8; }
.code-line .c-com { color: #5b6379; }
.code-line .c-result { color: #6fe3a8; font-family: var(--font-label); }

.code-cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: var(--color-accent-light);
  margin-left: 2px;
  vertical-align: -2px;
}

@media (prefers-reduced-motion: no-preference) {
  .code-line {
    opacity: 0;
    animation: codeLineIn 0.5s var(--ease) forwards;
  }
  .code-line:nth-child(1) { animation-delay: 0.15s; }
  .code-line:nth-child(2) { animation-delay: 0.38s; }
  .code-line:nth-child(3) { animation-delay: 0.5s; }
  .code-line:nth-child(4) { animation-delay: 0.62s; }
  .code-line:nth-child(5) { animation-delay: 0.74s; }
  .code-line:nth-child(6) { animation-delay: 0.86s; }
  .code-line:nth-child(7) { animation-delay: 0.98s; }
  .code-line:nth-child(8) { animation-delay: 1.1s; }
  .code-line:nth-child(9) { animation-delay: 1.35s; }

  .code-cursor {
    animation: blink 1s step-end infinite;
  }
}

@keyframes codeLineIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* ---------- 9. PROCESS (numbered — real sequence) ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  position: relative;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--color-line);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
}

.process-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--color-accent);
  background: var(--color-bg);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

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

/* ---------- 10. VALUE STRIP ("Why Excelsoft") ---------- */
.value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
}

.value-item {
  padding: var(--space-4) var(--space-4);
  border-left: 1px solid var(--color-line);
}

.value-item:first-child { border-left: none; }

.value-item-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.value-item-icon svg { width: 21px; height: 21px; }

.value-item h4 { margin-bottom: 0.4rem; }
.value-item p { color: var(--color-ink-muted); font-size: 0.94rem; }

/* ---------- 11. CTA BANNER ---------- */
.cta-banner {
  background: var(--color-accent);
  background-image: radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.14), transparent 40%),
    radial-gradient(circle at 88% 82%, rgba(255, 255, 255, 0.12), transparent 45%);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  color: var(--color-white);
}

.cta-banner h2 { color: var(--color-white); }

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0.9rem auto 0;
}

.cta-banner .btn { margin-top: var(--space-3); }

/* ---------- 12. SERVICE CARDS ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(52, 80, 255, 0.25);
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

.service-icon svg { width: 23px; height: 23px; }

.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--color-ink-muted); font-size: 0.95rem; }

/* ---------- 13. MISSION / STORY ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-6);
  align-items: start;
}

.mission-figure {
  background: var(--color-bg-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  color: var(--color-white);
}

.mission-figure .stat {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-accent-light);
}

.mission-figure .stat-label {
  font-family: var(--font-label);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.3rem;
}

.mission-figure .stat-block + .stat-block {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-line-dark);
}

.mission-copy p { color: var(--color-ink-muted); margin-bottom: 1.1rem; font-size: 1.02rem; }
.mission-copy p:last-child { margin-bottom: 0; }

/* ---------- 14. TESTIMONIALS ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  position: relative;
}

.testimonial-quote-mark {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-accent-soft);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.testimonial-card blockquote {
  margin: 0 0 var(--space-3);
  font-size: 1.02rem;
  font-style: italic;
  color: var(--color-ink);
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-top: 1px solid var(--color-line);
  padding-top: var(--space-3);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  flex-shrink: 0;
}

.testimonial-name { font-family: var(--font-label); font-weight: 700; font-size: 0.94rem; }
.testimonial-role { color: var(--color-ink-muted); font-size: 0.85rem; }

.testimonials-note {
  margin-top: var(--space-3);
  font-size: 0.88rem;
  color: var(--color-ink-soft);
}

/* ---------- 15. CONTACT PAGE ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-5);
  align-items: start;
}

.contact-form-panel {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.form-row {
  margin-bottom: var(--space-3);
}

.form-row-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

label {
  display: block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.86rem;
  margin-bottom: 0.45rem;
  color: var(--color-ink);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-bg-soft);
  color: var(--color-ink);
  transition: border-color var(--t-fast), background var(--t-fast);
  font-family: var(--font-body);
}

input::placeholder,
textarea::placeholder { color: var(--color-ink-soft); }

input:focus,
textarea:focus {
  border-color: var(--color-accent);
  background: var(--color-bg);
}

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

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

.form-privacy-note {
  font-size: 0.82rem;
  color: var(--color-ink-soft);
  max-width: 320px;
}

.form-privacy-note a { color: var(--color-accent); text-decoration: underline; }

.form-status {
  margin-top: var(--space-2);
  font-family: var(--font-label);
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
}

.form-status svg { width: 18px; height: 18px; flex-shrink: 0; }
.form-status.is-visible { display: flex; }
.form-status.is-success { background: var(--color-success-soft); color: var(--color-success); }
.form-status.is-error { background: var(--color-error-soft); color: var(--color-error); }

.contact-info-card {
  background: var(--color-bg-dark);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.contact-info-card h3 { color: var(--color-white); margin-bottom: var(--space-3); }

.info-row {
  display: flex;
  gap: 0.9rem;
  padding: var(--space-2) 0;
  border-top: 1px solid var(--color-line-dark);
}

.info-row:first-of-type { border-top: none; padding-top: 0; }

.info-row-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-row-icon svg { width: 18px; height: 18px; }

.info-row-label {
  font-family: var(--font-label);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.info-row-value { font-size: 0.96rem; line-height: 1.5; }
.info-row-value a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); }

.directions-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-3);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-accent-light);
}

.directions-link svg { width: 16px; height: 16px; }

/* ---------- 16. PAGE HEADER (About / Contact / Legal) ---------- */
.page-header {
  padding: var(--space-6) 0 var(--space-5);
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-line);
}

.page-header h1 { margin-top: 0.7rem; }
.page-header p.lead { margin-top: 1rem; max-width: 600px; }

/* ---------- 17. LEGAL / ARTICLE PAGES ---------- */
.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.legal-updated {
  font-family: var(--font-label);
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  margin-top: 0.6rem;
}

.legal-disclaimer {
  background: var(--color-accent-soft);
  border: 1px solid rgba(52, 80, 255, 0.18);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  font-size: 0.92rem;
  color: var(--color-ink);
  margin: var(--space-4) 0;
}

.legal-wrap h2 {
  font-size: 1.3rem;
  margin-top: var(--space-5);
  margin-bottom: 0.8rem;
}

.legal-wrap h2:first-of-type { margin-top: var(--space-4); }

.legal-wrap p,
.legal-wrap li {
  color: var(--color-ink-muted);
  margin-bottom: 0.9rem;
  font-size: 0.98rem;
}

.legal-wrap ul {
  list-style: disc;
  padding-left: 1.3rem;
}

.legal-wrap a { color: var(--color-accent); text-decoration: underline; }
.legal-wrap strong { color: var(--color-ink); }

/* ---------- 18. SIMPLE / UTILITY PAGES (404, thank-you) ---------- */
.simple-page {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-6) 1.5rem;
}

.simple-page-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-3);
}

.simple-page-icon svg { width: 34px; height: 34px; }

.simple-page p { color: var(--color-ink-muted); margin: 1rem 0 var(--space-4); max-width: 420px; margin-left: auto; margin-right: auto; }

/* ---------- 19. FOOTER ---------- */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.78);
  padding-top: var(--space-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}

.footer-brand .brand { color: var(--color-white); margin-bottom: 1rem; }

.footer-tagline {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 260px;
  margin-bottom: var(--space-3);
}

.footer-social {
  display: flex;
  gap: 0.7rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast);
}

.footer-social a:hover { background: var(--color-accent); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; color: var(--color-white); }

.footer-col h4 {
  font-family: var(--font-label);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-2);
}

.footer-col ul li { margin-bottom: 0.65rem; }

.footer-col a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--t-fast);
}

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

.footer-col address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.footer-bottom {
  border-top: 1px solid var(--color-line-dark);
  padding: var(--space-3) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- 20. CHAT WIDGET ("Leave us a message") ---------- */
.chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  transition: transform var(--t-fast), background var(--t-fast);
}

.chat-launcher:hover { transform: scale(1.06); background: var(--color-accent-dark); }
.chat-launcher svg { width: 26px; height: 26px; }
.chat-launcher .icon-close { display: none; }
body.chat-open .chat-launcher .icon-open { display: none; }
body.chat-open .chat-launcher .icon-close { display: block; }

.chat-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 140px);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--t-base), opacity var(--t-base), visibility var(--t-base);
}

body.chat-open .chat-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.chat-panel-head {
  background: var(--color-accent);
  color: var(--color-white);
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.chat-panel-head h4 { color: var(--color-white); margin-bottom: 0.25rem; }
.chat-panel-head p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); }

.chat-panel-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--color-white);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-panel-close svg { width: 16px; height: 16px; }

.chat-panel-body {
  padding: 1.2rem 1.3rem 1.4rem;
  overflow-y: auto;
}

.chat-panel-body .form-row { margin-bottom: 0.9rem; }
.chat-panel-body label { font-size: 0.82rem; }
.chat-panel-body textarea { min-height: 90px; }

/* ---------- 21. COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 1.2rem 1.5rem;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform var(--t-base);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner p { font-size: 0.9rem; max-width: 560px; }
.cookie-banner a { text-decoration: underline; color: var(--color-white); }

.cookie-actions { display: flex; gap: 0.7rem; flex-shrink: 0; }

.cookie-actions .btn-ghost {
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.25);
}

.cookie-actions .btn-ghost:hover { border-color: var(--color-white); color: var(--color-white); }

/* ---------- 22. AOS override (respect reduced motion handled in JS) ---------- */
[data-aos] { pointer-events: auto; }

/* ---------- 23. RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .code-card { order: 0; max-width: 480px; }

  .mission-grid { grid-template-columns: 1fr; }
  .mission-figure { order: 2; }

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

  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-4); }
  .process-grid::before { display: none; }

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

  .value-strip { grid-template-columns: 1fr; }
  .value-item { border-left: none; border-top: 1px solid var(--color-line); }
  .value-item:first-child { border-top: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: var(--space-4); }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .section { padding: var(--space-6) 0; }
  .card-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .form-row-group { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
  .cta-banner { padding: var(--space-5) var(--space-3); }
  .chat-panel { right: 16px; left: 16px; width: auto; bottom: 88px; }
  .chat-launcher { right: 16px; bottom: 16px; }
  .cookie-banner { flex-direction: column; text-align: center; padding: 1.2rem; }
}

/* ---------- 24. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
