/* ============================================================
   We Automate — Base, components & sections
   ============================================================ */

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

/* Subtle data grid — evokes structured data. Toggleable. */
body[data-grid="on"]::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 35%, transparent 80%);
          mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 35%, transparent 80%);
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 560; line-height: 1.08; letter-spacing: -0.02em; color: var(--navy); margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; color: var(--navy); }

/* ---- Layout ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 10vw, 132px); }
.bg-alt { background: var(--bg-alt); }

/* ---- Eyebrow / pills ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); display: inline-block; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 500; line-height: 1;
  background: var(--card); border: 1px solid var(--line);
  color: var(--navy); box-shadow: var(--sh-sm);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pill .dot.green { background: var(--green); }

/* ---- Buttons ---- */
.btn {
  --pad-y: 15px; --pad-x: 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x); border-radius: var(--r-pill);
  font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
  cursor: pointer; border: 1px solid transparent; position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(79,70,229,0.28); }
.btn-primary:hover { background: var(--accent-600); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(79,70,229,0.34); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); border-color: rgba(30,58,92,0.24); transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-wa { background: var(--wa); color: #0a3d20; box-shadow: 0 6px 18px rgba(37,211,102,0.3); }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(37,211,102,0.36); filter: brightness(1.03); }
.btn-lg { --pad-y: 18px; --pad-x: 32px; font-size: 17px; }

/* ---- Cards ---- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--sh-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.card.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: rgba(30,58,92,0.16); }

/* ---- Section heading block ---- */
.heading { max-width: 760px; }
.heading h2 { font-size: clamp(30px, 4.2vw, 50px); margin-top: 16px; }
.heading .lead { margin-top: 20px; font-size: clamp(17px, 2vw, 20px); color: var(--muted); line-height: 1.55; }
.center { margin-inline: auto; text-align: center; }
.center .eyebrow { justify-content: center; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav[data-scrolled="true"] { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .brand-logo { width: 34px; height: 34px; flex: none; object-fit: contain; }
.brand .name { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--indigo); letter-spacing: -0.02em; }
.brand .name b { font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a.lnk { padding: 9px 14px; border-radius: var(--r-pill); font-size: 15px; color: var(--muted); font-weight: 500; transition: color .2s, background .2s; }
.nav-links a.lnk:hover { color: var(--navy); background: rgba(30,58,92,0.05); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(48px, 7vw, 86px); padding-bottom: clamp(56px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(36px, 5vw, 72px); align-items: center; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hero h1 { font-size: clamp(32px, 4.8vw, 58px); letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero h1 .navy-strong { color: var(--navy); }
.hero-sub { margin-top: 24px; font-size: clamp(17px, 2.1vw, 21px); line-height: 1.55; color: var(--muted); max-width: 540px; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust { margin-top: 30px; display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--faint); }
.hero-trust .av { display: flex; }
.hero-trust .av span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -8px; background: linear-gradient(135deg, var(--navy), var(--accent)); }
.hero-trust .av span:first-child { margin-left: 0; }

/* H1 variant switching */
.h1-variant { display: none; }
body[data-h1="dolor"]  .h1-variant.h1-dolor  { display: block; }
body[data-h1="orden"]  .h1-variant.h1-orden  { display: block; }
body[data-h1="verbal"] .h1-variant.h1-verbal { display: block; }

/* Hero visual — the automation animation */
.hero-visual { position: relative; }
.viz-frame {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden;
  aspect-ratio: 5 / 4;
}
.viz-frame .viz-head {
  position: absolute; top: 0; left: 0; right: 0; height: 46px; z-index: 3;
  display: flex; align-items: center; gap: 8px; padding: 0 18px;
  border-bottom: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--card) 90%, transparent);
}
.viz-frame .viz-head .lbl { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; color: var(--faint); text-transform: uppercase; }
.viz-frame .viz-head .state { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--muted); transition: color .4s; }
.viz-frame[data-state="orden"] .viz-head .state { color: var(--green); }
.viz-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.viz-svg .edge { fill: none; stroke: var(--faint); stroke-width: 1.4; opacity: 0.5; transition: stroke .1s; }
.viz-svg .node circle { fill: var(--navy); stroke: #fff; stroke-width: 2; }
.viz-svg .node.out circle { fill: var(--accent); }
.viz-svg .node .ndot { fill: #fff; opacity: 0.9; }
.viz-svg .node text { font-family: var(--sans); font-size: 11px; fill: #fff; font-weight: 500; }

.viz-caption { margin-top: 16px; font-size: 14px; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.viz-caption .k { font-weight: 600; color: var(--muted); }

/* ============================================================
   SÍNTOMAS
   ============================================================ */
.symptoms-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; }
.symptom { padding: 28px; }
.symptom .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-050); display: grid; place-items: center; margin-bottom: 18px; color: var(--accent); }
.symptom .ic svg { width: 22px; height: 22px; }
.symptom h3 { font-size: 20px; }
.symptom p { margin-top: 9px; font-size: 15.5px; color: var(--muted); line-height: 1.5; }
.symptom .num { position: absolute; }

.symptoms-foot {
  margin-top: 40px; padding: 30px 36px; border-radius: var(--r-lg);
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  box-shadow: var(--sh-md); flex-wrap: wrap;
}
.symptoms-foot p { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 27px); line-height: 1.25; color: #fff; max-width: 760px; }
.symptoms-foot p strong { color: #fff; background: linear-gradient(transparent 62%, rgba(79,70,229,0.55) 62%); }
.symptoms-foot .btn-primary { box-shadow: 0 8px 24px rgba(79,70,229,0.4); }

/* ============================================================
   ANALYTICS 360 — the memorable graphic moment
   ============================================================ */
.a360 { overflow: hidden; }
.a360-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.a360-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-sm); font-size: 14px; font-weight: 500; color: var(--navy); }
.a360-badge .ring { width: 28px; height: 28px; }

/* shared stage data */
.a360-stage { margin-top: 56px; }

/* ----- FLOW variant (default) ----- */
body[data-a360="flujo"] .a360-fases { display: none; }
body[data-a360="fases"] .a360-flow  { display: none; }

.flow-track {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-bottom: 8px;
}
.flow-phaseband { position: relative; display: grid; grid-template-columns: 3fr 1fr; gap: 16px; margin-bottom: 26px; }
.phase-label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; padding: 10px 16px; border-radius: var(--r-pill); }
.phase-label.p1 { color: var(--navy); background: rgba(30,58,92,0.07); }
.phase-label.p2 { color: var(--accent); background: var(--accent-050); }
.phase-label .ph-n { font-family: var(--serif); font-size: 16px; }

.flow-nodes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.flow-node {
  position: relative; text-align: left; cursor: pointer; background: var(--card);
  border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 20px 18px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
  font-family: var(--sans);
}
.flow-node:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: rgba(30,58,92,0.22); }
.flow-node .step { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.flow-node .nname { font-family: var(--serif); font-size: 21px; color: var(--navy); margin-top: 8px; }
.flow-node .ntease { margin-top: 7px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.flow-node .chev { position: absolute; top: 20px; right: 16px; color: var(--faint); transition: transform .3s, color .3s; }
.flow-node[aria-selected="true"] { border-color: var(--accent); background: var(--card); box-shadow: 0 10px 30px rgba(79,70,229,0.16); }
.flow-node[aria-selected="true"] .chev { transform: rotate(90deg); color: var(--accent); }
.flow-node[aria-selected="true"] .step { color: var(--accent); }
.flow-node .conn { position: absolute; top: 50%; right: -14px; width: 14px; height: 2px; background: var(--line); z-index: 2; }
.flow-node:last-child .conn { display: none; }

.flow-detail {
  margin-top: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); overflow: hidden;
}
.flow-detail-in { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; }
.fd-left { padding: 38px 40px; border-right: 1px solid var(--line-soft); }
.fd-left .fd-phase { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.fd-left h3 { font-size: clamp(26px, 3vw, 36px); margin-top: 12px; }
.fd-left .fd-desc { margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.fd-left .fd-note { margin-top: 22px; padding: 14px 18px; border-radius: var(--r-md); background: var(--bg-alt); font-size: 14.5px; color: var(--navy); border-left: 3px solid var(--accent); }
.fd-right { padding: 38px 40px; }
.fd-right ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.fd-right li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 16px; color: var(--ink); align-items: flex-start; }
.fd-right li:last-child { border-bottom: none; }
.fd-right li .tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-050); color: var(--accent); display: grid; place-items: center; margin-top: 1px; }
.fd-right li .tick svg { width: 13px; height: 13px; }
.fade-swap { animation: fadeSwap .45s var(--ease-out); }
@keyframes fadeSwap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-swap { animation: none; } }

/* ----- TWO-PHASE variant ----- */
.fases-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: stretch; }
.fase-card { padding: 38px; position: relative; }
.fase-card .fase-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fase-card.p2 .fase-tag { color: var(--accent); }
.fase-card h3 { font-size: 30px; margin-top: 14px; }
.fase-card ul { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.fase-card li { display: flex; gap: 12px; font-size: 16px; color: var(--ink); align-items: flex-start; }
.fase-card li .tick { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-050); color: var(--accent); display: grid; place-items: center; margin-top: 2px; }
.fase-card li .tick svg { width: 12px; height: 12px; }
.fase-card .fase-foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.fase-arrow { display: grid; place-items: center; }
.fase-arrow .circ { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--sh-md); }
.a360-bonus {
  margin-top: 26px; padding: 22px 30px; border-radius: var(--r-lg);
  background: var(--accent-050); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  display: flex; align-items: center; gap: 16px; font-size: 16px; color: var(--navy);
}
.a360-bonus .tag { flex: none; padding: 6px 12px; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }

/* ============================================================
   SERVICIOS
   ============================================================ */
.serv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.serv { padding: 32px; display: flex; flex-direction: column; }
.serv .serv-ic { width: 50px; height: 50px; border-radius: 13px; background: var(--navy); color: #fff; display: grid; place-items: center; margin-bottom: 22px; }
.serv .serv-ic svg { width: 24px; height: 24px; }
.serv h3 { font-size: 23px; }
.serv .serv-desc { margin-top: 11px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.serv ul { list-style: none; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 12px; }
.serv li { display: flex; gap: 11px; font-size: 15px; color: var(--ink); align-items: flex-start; }
.serv li .tick { flex: none; color: var(--accent); margin-top: 2px; }
.serv li .tick svg { width: 16px; height: 16px; }

/* ============================================================
   PROCESO
   ============================================================ */
.proc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; position: relative; }
.proc-step { position: relative; padding-top: 30px; }
.proc-step .pn {
  width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--accent);
  color: var(--accent); display: grid; place-items: center; font-family: var(--serif); font-size: 20px; font-weight: 600;
  background: var(--bg); position: relative; z-index: 2;
}
.proc-step .pline { position: absolute; top: calc(30px + 23px); left: 46px; right: -20px; height: 1.5px; background: var(--line); z-index: 1; }
.proc-step:last-child .pline { display: none; }
.proc-step h3 { font-size: 20px; margin-top: 22px; }
.proc-step .pmeta { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }
.proc-step p { margin-top: 12px; font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ============================================================
   NOSOTROS
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.about-header { margin-bottom: 32px; }
.about-copy p { margin-top: 20px; font-size: 17px; color: var(--muted); line-height: 1.6; }
.about-copy p:first-of-type { margin-top: 0; }
.about-stats { display: flex; gap: 36px; margin-top: 36px; }
.about-stats .st .v { font-family: var(--serif); font-size: 40px; color: var(--navy); line-height: 1; }
.about-stats .st .l { margin-top: 8px; font-size: 14px; color: var(--muted); }
.stack-card { padding: 32px; }
.stack-card .stack-lbl { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tool {
  display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-radius: var(--r-md);
  background: var(--card-warm); border: 1px solid var(--line-soft); font-size: 13px; font-weight: 500; color: var(--navy); white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.tool:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); border-color: var(--line); }
.tool img { width: 22px; height: 22px; object-fit: contain; }
.stack-note { margin-top: 22px; font-size: 14px; color: var(--muted); font-style: italic; font-family: var(--serif); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap { max-width: 860px; margin: 52px auto 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 26px 8px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-family: var(--serif); font-size: clamp(18px, 2.1vw, 22px); color: var(--navy); font-weight: 540; }
.faq-q .fic { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--accent); transition: transform .35s var(--ease), background .3s, border-color .3s; }
.faq-item[data-open="true"] .fic { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.faq-a { overflow: hidden; height: 0; transition: height .4s var(--ease); }
.faq-a-in { padding: 0 8px 28px; font-size: 16.5px; color: var(--muted); line-height: 1.6; max-width: 700px; }
@media (prefers-reduced-motion: reduce) { .faq-a { transition: none; } }

/* ============================================================
   CONTACTO — navy close
   ============================================================ */
.contact { background: var(--navy); color: #fff; overflow: hidden; position: relative; }
.contact::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 80% 10%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse 90% 90% at 80% 10%, #000, transparent 70%);
}
.contact .wrap { position: relative; z-index: 2; }
.contact h2 { color: #fff; font-size: clamp(32px, 4.6vw, 56px); max-width: 800px; }
.contact .lead { color: rgba(255,255,255,0.72); margin-top: 22px; font-size: clamp(17px, 2vw, 20px); max-width: 560px; }
.contact-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.contact-or { color: rgba(255,255,255,0.5); font-size: 15px; }
.contact-reassure { margin-top: 22px; font-size: 14px; color: rgba(255,255,255,0.55); display: flex; align-items: center; gap: 8px; }
.contact-reassure .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(58,125,68,0.25); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding-block: 56px; }
.footer-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand .name { color: #fff; }
.footer .f-tag { margin-top: 14px; font-size: 14.5px; color: rgba(255,255,255,0.55); max-width: 280px; line-height: 1.5; }
.footer .f-col h4 { font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); font-weight: 600; margin-bottom: 16px; }
.footer .f-col a, .footer .f-col p { display: block; color: rgba(255,255,255,0.72); font-size: 15px; margin-bottom: 11px; transition: color .2s; }
.footer .f-col a:hover { color: #fff; }
.footer-bottom { margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,0.45); }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; } .reveal.d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
body[data-motion="off"] .reveal { opacity: 1; transform: none; transition: none; }
body[data-motion="off"] .fade-swap { animation: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; }
  .symptoms-grid { grid-template-columns: repeat(2, 1fr); }
  .serv-grid { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .proc-step .pline { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .flow-detail-in { grid-template-columns: 1fr; }
  .fd-left { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .fases-grid { grid-template-columns: 1fr; }
  .fase-arrow { transform: rotate(90deg); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-cta .btn-text { display: none; }
  .flow-nodes { grid-template-columns: 1fr 1fr; }
  .flow-phaseband { grid-template-columns: 1fr; gap: 8px; }
  .flow-node .conn { display: none; }
  .symptoms-foot { flex-direction: column; align-items: flex-start; }
  .about-stats { gap: 26px; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .section-pad { padding-block: 64px; }
}
@media (max-width: 460px) {
  .symptoms-grid { grid-template-columns: 1fr; }
  .flow-nodes { grid-template-columns: 1fr; }
  .proc-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile nav drawer */
.m-drawer { position: fixed; inset: 0; z-index: 80; background: rgba(15,29,46,0.4); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.m-drawer[data-open="true"] { opacity: 1; pointer-events: auto; }
.m-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(82vw, 340px); background: var(--bg); padding: 26px; box-shadow: var(--sh-lg); transform: translateX(100%); transition: transform .4s var(--ease); display: flex; flex-direction: column; gap: 6px; }
.m-drawer[data-open="true"] .m-drawer-panel { transform: none; }
.m-drawer a { padding: 16px 8px; font-size: 19px; font-family: var(--serif); color: var(--navy); border-bottom: 1px solid var(--line-soft); }
.m-drawer .btn { margin-top: 18px; }
.icon-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; color: var(--navy); }
@media (max-width: 940px) { .nav-links { display: none; } .icon-btn { display: inline-flex; } }
