/* =========================================================
   Code Ministry — design system
   Modular, framework-agnostic CSS. Dark mode only.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --cm-bg: #08122f;
  --cm-bg-deep: #060d24;
  --cm-card: #0f1d45;
  --cm-card-2: #122352;
  --cm-line: rgba(148, 163, 184, 0.16);
  --cm-line-strong: rgba(148, 163, 184, 0.3);
  --cm-accent: #f6a21a;
  --cm-accent-soft: rgba(246, 162, 26, 0.12);
  --cm-white: #f8fafc;
  --cm-gray: #94a3b8;
  --cm-success: #34d399;

  --cm-font-head: "Sora", system-ui, sans-serif;
  --cm-font-body: "Inter", system-ui, sans-serif;
  --cm-font-mono: "JetBrains Mono", ui-monospace, monospace;

  --cm-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --cm-shadow-accent: 0 20px 50px -25px rgba(246, 162, 26, 0.45);

  /* angular language borrowed from the CM monogram */
  --cm-cut: 14px;
  --cm-cut-sm: 8px;

  --cm-max: 1200px;
  --cm-gutter: clamp(1.25rem, 4vw, 3rem);
  --cm-section: clamp(5rem, 11vw, 9.5rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

html, body { margin: 0; background: #08122f; overflow-x: hidden; }

.cm {
  background: var(--cm-bg);
  color: var(--cm-white);
  font-family: var(--cm-font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.cm img { max-width: 100%; display: block; }
.cm a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--cm-font-head);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

::selection { background: var(--cm-accent); color: #08122f; }

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

.cm-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--cm-accent);
  color: #08122f;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}
.cm-skip:focus { left: 1rem; top: 1rem; }

.cm-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- 3. Layout primitives ---------- */
.cm-shell {
  width: 100%;
  max-width: var(--cm-max);
  margin-inline: auto;
  padding-inline: var(--cm-gutter);
}

.cm-section { padding-block: var(--cm-section); position: relative; }

.cm-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cm-line-strong), transparent);
  border: 0;
  margin: 0;
}

.cm-eyebrow {
  font-family: var(--cm-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cm-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.cm-eyebrow::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--cm-accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.cm-h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.cm-lead {
  color: var(--cm-gray);
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  max-width: 58ch;
}

.cm-head { display: grid; gap: 1.1rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

/* angular clipped surface — the monogram's cut corner */
.cm-cut {
  clip-path: polygon(var(--cm-cut) 0, 100% 0, 100% calc(100% - var(--cm-cut)), calc(100% - var(--cm-cut)) 100%, 0 100%, 0 var(--cm-cut));
}

/* ---------- 4. Buttons ---------- */
.cm-btn {
  --btn-bg: transparent;
  --btn-fg: var(--cm-white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  min-height: 48px;
  font-family: var(--cm-font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--cm-line-strong);
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease,
    border-color 0.25s ease, box-shadow 0.35s ease, color 0.25s ease;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.cm-btn:hover { border-color: var(--cm-line-strong); }

.cm-btn--primary {
  --btn-bg: var(--cm-accent);
  --btn-fg: #08122f;
  border-color: var(--cm-accent);
}
.cm-btn--primary:hover { box-shadow: var(--cm-shadow-accent); }

.cm-btn--ghost:hover { background: rgba(248, 250, 252, 0.06); }

.cm-btn--sm { padding: 0.6rem 1.1rem; min-height: 42px; font-size: 0.85rem; }

.cm-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--cm-font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cm-accent);
}
.cm-link-arrow span { transition: transform 0.25s ease; }
.cm-link-arrow:hover span { transform: translateX(5px); }

/* ---------- 5. Navigation ---------- */
.cm-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.cm-nav.is-scrolled {
  background: rgba(8, 18, 47, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--cm-line);
}
.cm-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 74px;
}

.cm-brand { display: inline-flex; align-items: center; gap: 0.7rem; min-width: 0; }
.cm-brand img { width: 50px; height: 50px; }
.cm-brand__name {
  font-family: var(--cm-font-head);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.cm-brand__name em { font-style: normal; color: var(--cm-accent); }

.cm-nav__links { display: none; align-items: center; gap: 0.35rem; }
.cm-nav__links a {
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
  color: var(--cm-gray);
  transition: color 0.2s ease;
  position: relative;
}
.cm-nav__links a::after {
  content: "";
  position: absolute;
  left: 0.8rem; right: 0.8rem; bottom: 0.25rem;
  height: 1px;
  background: var(--cm-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.cm-nav__links a:hover { color: var(--cm-white); }
.cm-nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.cm-nav__cta { display: none; }

.cm-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--cm-line);
  cursor: pointer;
}
.cm-burger span {
  display: block; height: 1.5px; width: 100%;
  background: var(--cm-white);
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.cm-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.cm-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cm-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.cm-mobilemenu {
  display: grid;
  gap: 0.25rem;
  padding: 0 var(--cm-gutter) 1.75rem;
  background: rgba(8, 18, 47, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--cm-line);
}
.cm-mobilemenu[hidden] { display: none; }
.cm-mobilemenu a {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--cm-line);
  font-family: var(--cm-font-head);
  font-size: 1.05rem;
  color: var(--cm-white);
}
.cm-mobilemenu .cm-btn { margin-top: 1.1rem; }

@media (min-width: 1024px) {
  .cm-nav__links, .cm-nav__cta { display: inline-flex; }
  .cm-burger { display: none; }
}

/* ---------- 6. Hero ---------- */
.cm-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: 8rem 4rem;
  overflow: hidden;
  isolation: isolate;
}
.cm-hero__bg { position: absolute; inset: 0; z-index: -2; }
.cm-blueprint {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.09) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 40%, #000 25%, transparent 78%);
  animation: cm-drift 34s linear infinite;
}
@keyframes cm-drift {
  to { background-position: 64px 64px, 64px 64px; }
}
.cm-spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(246, 162, 26, 0.14), transparent 65%);
  transition: background 0.25s ease-out;
}
.cm-particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cm-particles i {
  position: absolute;
  width: 3px; height: 3px;
  background: var(--cm-accent);
  opacity: 0.5;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  animation: cm-float linear infinite;
}
@keyframes cm-float {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  12% { opacity: 0.55; }
  100% { transform: translateY(-160px) scale(0.4); opacity: 0; }
}

.cm-hero__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
  align-items: center;
  width: 100%;
}
@media (min-width: 1024px) {
  .cm-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

.cm-hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 4.9rem);
  margin-block: 1.4rem 1.5rem;
}
.cm-hero h1 em { font-style: normal; color: var(--cm-accent); }
.cm-hero p.cm-lead { max-width: 52ch; }
.cm-hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.2rem; }
.cm-hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  margin-top: 2.6rem;
  font-family: var(--cm-font-mono);
  font-size: 0.75rem;
  color: var(--cm-gray);
  letter-spacing: 0.05em;
}
.cm-hero__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.cm-dot {
  width: 7px; height: 7px; background: var(--cm-success);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  animation: cm-pulse 2.4s ease-in-out infinite;
}
@keyframes cm-pulse { 50% { opacity: 0.25; transform: scale(0.7); } }

/* ---------- 7. Dashboard mock ---------- */
.cm-dash {
  background: linear-gradient(180deg, var(--cm-card-2), var(--cm-card));
  border: 1px solid var(--cm-line);
  box-shadow: var(--cm-shadow);
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
  --cm-cut: 22px;
}
.cm-dash__bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--cm-line);
  font-family: var(--cm-font-mono);
  font-size: 0.7rem;
  color: var(--cm-gray);
}
.cm-dash__bar b { width: 8px; height: 8px; background: var(--cm-line-strong); display: block; }
.cm-dash__bar b:first-child { background: var(--cm-accent); }
.cm-dash__bar span { margin-left: auto; }

.cm-dash__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.cm-widget {
  background: rgba(8, 18, 47, 0.6);
  border: 1px solid var(--cm-line);
  padding: 0.85rem 0.95rem;
  --cm-cut: 10px;
  min-width: 0;
}
.cm-widget h4 {
  font-family: var(--cm-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cm-gray);
  font-weight: 500;
  margin-bottom: 0.55rem;
}
.cm-widget__value {
  font-family: var(--cm-font-head);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.cm-widget__delta { font-size: 0.72rem; color: var(--cm-success); font-family: var(--cm-font-mono); }

.cm-spark { display: flex; align-items: flex-end; gap: 4px; height: 52px; margin-top: 0.6rem; }
.cm-spark i {
  flex: 1;
  height: 100%;
  min-width: 3px;
  background: linear-gradient(180deg, var(--cm-accent), rgba(246, 162, 26, 0.15));
  animation: cm-bar 2.6s ease-in-out infinite;
  transform-origin: bottom;
}
@keyframes cm-bar { 0%, 100% { transform: scaleY(0.55); } 50% { transform: scaleY(1); } }

.cm-code {
  font-family: var(--cm-font-mono);
  font-size: 0.72rem;
  line-height: 1.85;
  color: var(--cm-gray);
  overflow: hidden;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.cm-code .k { color: #7dd3fc; }
.cm-code .s { color: var(--cm-success); }
.cm-code .c { color: rgba(148, 163, 184, 0.55); }
.cm-caret { color: var(--cm-accent); animation: cm-blink 1s steps(2) infinite; }
@keyframes cm-blink { 50% { opacity: 0; } }

.cm-deploy { display: grid; gap: 0.5rem; }
.cm-deploy__line { display: flex; justify-content: space-between; font-family: var(--cm-font-mono); font-size: 0.68rem; color: var(--cm-gray); }
.cm-progress { height: 4px; background: rgba(148, 163, 184, 0.18); overflow: hidden; }
.cm-progress i { display: block; height: 100%; background: var(--cm-accent); width: 0; }
.cm-progress--live i { animation: cm-fill 4s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
@keyframes cm-fill { 0% { width: 4%; } 70% { width: 92%; } 100% { width: 100%; opacity: 0.4; } }

.cm-toast {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--cm-font-mono); font-size: 0.68rem; color: var(--cm-white);
  border-left: 2px solid var(--cm-success);
  padding-left: 0.6rem;
  animation: cm-slidein 0.6s ease both;
}
@keyframes cm-slidein { from { opacity: 0; transform: translateX(12px); } }

/* ---------- 8. Solutions ---------- */
.cm-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .cm-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cm-card {
  position: relative;
  background: var(--cm-card);
  border: 1px solid var(--cm-line);
  padding: 1.6rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, background 0.3s ease, box-shadow 0.4s ease;
  --cm-cut: 16px;
}
.cm-card:hover {
  border-color: rgba(246, 162, 26, 0.5);
  background: var(--cm-card-2);
  box-shadow: var(--cm-shadow);
}

.cm-solution { display: grid; gap: 0.85rem; align-content: start; }
.cm-solution__icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--cm-accent-soft);
  border: 1px solid rgba(246, 162, 26, 0.28);
  color: var(--cm-accent);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.cm-solution h3 { font-size: 1.2rem; }
.cm-solution p { color: var(--cm-gray); font-size: 0.94rem; }

.cm-solution__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  opacity: 0;
}
.cm-solution__more > div { overflow: hidden; }
.cm-card:hover .cm-solution__more,
.cm-card:focus-within .cm-solution__more { grid-template-rows: 1fr; opacity: 1; }

.cm-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; padding-top: 0.9rem; }
.cm-tag {
  font-family: var(--cm-font-mono);
  font-size: 0.68rem;
  padding: 0.25rem 0.55rem;
  color: var(--cm-gray);
  border: 1px solid var(--cm-line);
  background: rgba(8, 18, 47, 0.55);
}
.cm-benefit {
  font-size: 0.85rem; color: var(--cm-gray);
  display: flex; gap: 0.55rem; margin-top: 0.85rem;
}
.cm-benefit b { color: var(--cm-success); font-weight: 500; }

/* ---------- 9. Projects ---------- */
.cm-project {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  background: var(--cm-card);
  border: 1px solid var(--cm-line);
  padding: clamp(1.5rem, 4vw, 3rem);
  --cm-cut: 26px;
}
@media (min-width: 900px) { .cm-project { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; } }

.cm-status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--cm-font-mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cm-accent);
  border: 1px solid rgba(246, 162, 26, 0.35);
  background: var(--cm-accent-soft);
  padding: 0.35rem 0.7rem;
}
.cm-status i { width: 6px; height: 6px; background: var(--cm-accent); animation: cm-pulse 1.8s infinite; }

.cm-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
@media (min-width: 520px) { .cm-modules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cm-module {
  border: 1px solid var(--cm-line);
  background: rgba(8, 18, 47, 0.5);
  padding: 0.75rem 0.8rem;
  font-size: 0.82rem;
  color: var(--cm-white);
  display: grid; gap: 0.35rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.cm-module:hover { border-color: rgba(246, 162, 26, 0.45); transform: translateY(-3px); }
.cm-module small { font-family: var(--cm-font-mono); font-size: 0.62rem; color: var(--cm-gray); }

.cm-soon {
  border: 1px dashed var(--cm-line-strong);
  padding: 1.25rem;
  display: grid; gap: 0.35rem;
  color: var(--cm-gray);
}
.cm-soon h3 { font-size: 1rem; color: var(--cm-white); }

/* ---------- 10. Process ---------- */
.cm-timeline { display: grid; gap: 0; position: relative; }
.cm-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1.25rem;
  padding-bottom: 2rem;
  position: relative;
}
.cm-step::before {
  content: "";
  position: absolute;
  left: 27px; top: 44px; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--cm-line-strong), transparent);
}
.cm-step:last-child { padding-bottom: 0; }
.cm-step:last-child::before { display: none; }
.cm-step__num {
  width: 56px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--cm-line);
  font-family: var(--cm-font-mono); font-size: 0.75rem; color: var(--cm-accent);
  background: var(--cm-card);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.cm-step:hover .cm-step__num { background: var(--cm-accent); color: #08122f; transform: translateX(4px); }
.cm-step h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.cm-step p { color: var(--cm-gray); font-size: 0.92rem; }

/* ---------- 11. Trust ---------- */
.cm-trust { display: grid; gap: 1.25rem; }
.cm-trust__item {
  display: grid; gap: 0.4rem;
  border-left: 2px solid var(--cm-line);
  padding-left: 1.1rem;
  transition: border-color 0.3s ease, padding-left 0.3s ease;
}
.cm-trust__item:hover { border-left-color: var(--cm-accent); padding-left: 1.4rem; }
.cm-trust__item h3 { font-size: 1.02rem; }
.cm-trust__item p { color: var(--cm-gray); font-size: 0.9rem; }
@media (min-width: 760px) { .cm-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; } }

/* ---------- 12. Tech ecosystem ---------- */
.cm-tech { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.cm-chip {
  font-family: var(--cm-font-mono);
  font-size: 0.8rem;
  color: var(--cm-gray);
  border: 1px solid var(--cm-line);
  background: var(--cm-card);
  padding: 0.6rem 1rem;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  animation: cm-bob 6s ease-in-out infinite;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  will-change: transform;
}
.cm-chip:hover { color: var(--cm-white); border-color: rgba(246, 162, 26, 0.5); }
@keyframes cm-bob { 50% { transform: translateY(-7px); } }

/* ---------- 13. Stats ---------- */
.cm-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--cm-line); border: 1px solid var(--cm-line); }
@media (min-width: 900px) { .cm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cm-stat { background: var(--cm-bg); padding: 1.6rem 1.25rem; display: grid; gap: 0.3rem; }
.cm-stat b {
  font-family: var(--cm-font-head);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}
.cm-stat span { font-family: var(--cm-font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cm-gray); }

/* ---------- 14. About ---------- */
.cm-about { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .cm-about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.cm-about p + p { margin-top: 1.1rem; }
.cm-quote {
  border-left: 2px solid var(--cm-accent);
  padding-left: 1.4rem;
  font-family: var(--cm-font-head);
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  line-height: 1.35;
  letter-spacing: -0.03em;
}

/* ---------- 15. Contact ---------- */
.cm-form { display: grid; gap: 1.1rem; }
@media (min-width: 700px) { .cm-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cm-field--full { grid-column: 1 / -1; } }
.cm-field { display: grid; gap: 0.45rem; min-width: 0; }
.cm-field label { font-family: var(--cm-font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cm-gray); }
.cm-field input,
.cm-field select,
.cm-field textarea {
  width: 100%;
  background: rgba(8, 18, 47, 0.7);
  border: 1px solid var(--cm-line);
  color: var(--cm-white);
  font-family: var(--cm-font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.25s ease, background 0.25s ease;
  appearance: none;
  border-radius: 0;
}
.cm-field textarea { min-height: 130px; resize: vertical; }
.cm-field select { background-image: linear-gradient(45deg, transparent 50%, var(--cm-gray) 50%), linear-gradient(135deg, var(--cm-gray) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.cm-field input::placeholder, .cm-field textarea::placeholder { color: rgba(148, 163, 184, 0.6); }
.cm-field input:focus, .cm-field select:focus, .cm-field textarea:focus { border-color: var(--cm-accent); outline: none; background: rgba(15, 29, 69, 0.85); }
.cm-form__note { font-size: 0.8rem; color: var(--cm-gray); }
.cm-form__status { font-family: var(--cm-font-mono); font-size: 0.8rem; color: var(--cm-success); min-height: 1.2em; }

.cm-contact { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 1000px) { .cm-contact { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }

/* ---------- 16. Footer ---------- */
.cm-footer { border-top: 1px solid var(--cm-line); padding-block: 3.5rem 2rem; }
.cm-footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .cm-footer__grid { grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr)); } }
.cm-footer h4 { font-family: var(--cm-font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cm-gray); font-weight: 500; margin-bottom: 1rem; }
.cm-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.cm-footer a { color: var(--cm-gray); font-size: 0.9rem; transition: color 0.2s ease; }
.cm-footer a:hover { color: var(--cm-accent); }
.cm-footer__bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--cm-line);
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between;
  font-size: 0.8rem; color: var(--cm-gray);
}

/* ---------- 17. Floating WhatsApp CTA ---------- */
.cm-whatsapp {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem 0.85rem 0.9rem;
  background: linear-gradient(180deg, #1f8f4f, #16713e);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: 0 18px 38px -20px rgba(0, 0, 0, 0.8), 0 16px 28px -20px rgba(34, 197, 94, 0.55);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, filter 0.25s ease;
}
.cm-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.9), 0 18px 32px -20px rgba(34, 197, 94, 0.65);
}
.cm-whatsapp:focus-visible {
  outline-color: #fff;
  outline-offset: 4px;
}
.cm-whatsapp__icon {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  flex: 0 0 auto;
}
.cm-whatsapp__label {
  font-family: var(--cm-font-head);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .cm-whatsapp {
    padding: 0.8rem;
    gap: 0;
  }
  .cm-whatsapp__label {
    display: none;
  }
}

/* ---------- 18. Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
  .cm-chip, .cm-spark i, .cm-particles i { animation: none !important; }
}

/* ---------- Interactive robot ---------- */
.cm-bot { display: grid; gap: 0.5rem; justify-items: center; background: none; border: 0; padding: 0; }
.cm-bot__stage { position: relative; display: grid; place-items: center; width: 100%; }
.cm-bot__glow {
  position: absolute; inset: 12% 8% 20%;
  background: radial-gradient(circle at 50% 42%, rgba(246,162,26,0.20), transparent 62%);
  filter: blur(28px);
}
.cm-bot__svg { position: relative; width: 100%; max-width: 420px; height: auto; overflow: visible; }
.cm-bot__svg [data-bot-head] {
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: 160px 200px;
  animation: cm-bot-float 6s ease-in-out infinite;
}
.cm-bot__svg [data-bot-eyes] { transition: transform 160ms ease-out; }
@keyframes cm-bot-float { 50% { translate: 0 -6px; } }
.cm-bot__pulse { animation: cm-pulse 2s ease-in-out infinite; transform-origin: 160px 52px; }
.cm-bot__blink { opacity: 0; animation: cm-bot-blink 6.5s steps(1) infinite; }
@keyframes cm-bot-blink { 0%, 94%, 100% { opacity: 0; } 96% { opacity: 1; } }
.cm-bot__base { filter: drop-shadow(0 22px 30px rgba(0,0,0,0.55)); }

.cm-bot__say {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--cm-font-mono); font-size: 0.74rem;
  color: var(--cm-gray); letter-spacing: 0.04em;
  margin: 0;
}
@media (prefers-reduced-motion: reduce) {
  .cm-bot__pulse, .cm-bot__blink, .cm-bot__svg [data-bot-head] { animation: none; }
}
