/* =========================================================================
   here4data.com — Design System
   Style: Bold Minimalist (Swiss) · enterprise AI & ML
   Shared across all pages.
   ========================================================================= */

:root {
  /* Color tokens */
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --bg-alt-2: #eef0f4;
  --ink: #0d0d0d;
  --ink-soft: #3a3d44;
  --ink-mute: #6b7280;
  --line: #e4e6eb;
  --line-strong: #cfd2da;
  --accent: #2563eb;
  --accent-ink: #1d4ed8;
  --accent-soft: #eff3ff;
  --white: #ffffff;

  /* Type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Fluid type scale */
  --fs-eyebrow: 0.8125rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.05rem, 0.95rem + 0.5vw, 1.375rem);
  --fs-h3: clamp(1.15rem, 1rem + 0.6vw, 1.375rem);
  --fs-h2: clamp(1.9rem, 1.3rem + 2.6vw, 3.25rem);
  --fs-h1: clamp(2.6rem, 1.3rem + 5.6vw, 5.75rem);
  --fs-metric: clamp(2.8rem, 1.6rem + 4.8vw, 5rem);

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

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1200px;
  --maxw-narrow: 820px;
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

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

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.container.narrow { max-width: var(--maxw-narrow); }

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--ink); color: #fff; padding: 0.75rem 1.25rem;
  border-radius: 8px; z-index: 200; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.975rem;
  padding: 0.85rem 1.4rem; border-radius: 10px; cursor: pointer;
  border: 1.5px solid transparent; transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.6); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-ghost:hover svg { transform: translateX(3px); }
.btn-white { background: #fff; color: var(--accent-ink); }
.btn-white:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
header#site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
header#site-header.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.9); }

.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }

.wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 0.5rem;
}
.wordmark .dot { color: var(--accent); }
.wordmark svg { width: 26px; height: 26px; }

.nav-links { display: flex; align-items: center; gap: 0.35rem; }
.nav-links a {
  font-size: 0.95rem; font-weight: 500; color: var(--ink-soft);
  padding: 0.5rem 0.8rem; border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-alt); }
.nav-links a[aria-current="page"] { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 0.9rem; }

.lang-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.lang-toggle button {
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600;
  padding: 0.4rem 0.65rem; background: transparent; color: var(--ink-mute); border: 0; cursor: pointer;
  transition: all 0.2s var(--ease);
}
.lang-toggle button.active { background: var(--ink); color: #fff; }

.hamburger {
  display: none; background: transparent; border: 1px solid var(--line-strong);
  border-radius: 9px; width: 44px; height: 44px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: all 0.3s var(--ease); }
.hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: all 0.3s var(--ease);
}
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }
.hamburger[aria-expanded="true"] span { background: transparent; }
.hamburger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 90;
  background: var(--bg); padding: var(--sp-4) clamp(1.25rem, 4vw, 2.5rem);
  display: flex; flex-direction: column; gap: 0.4rem;
  transform: translateX(100%); transition: transform 0.35s var(--ease);
  visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--line); color: var(--ink);
}
.mobile-menu .btn { margin-top: var(--sp-3); }

/* ---------- Sections ---------- */
section { position: relative; }
.section-pad { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: var(--sp-5); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); margin-top: var(--sp-2); }
.section-head p { color: var(--ink-mute); font-size: var(--fs-lead); margin-top: var(--sp-2); }

/* ---------- Hero (home) ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: var(--fs-h1); margin: var(--sp-3) 0 var(--sp-3); }
.hero h1 .accent { color: var(--accent); }
.hero-sub { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 40ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: var(--sp-4); }
.hero-meta { display: flex; gap: var(--sp-4); margin-top: var(--sp-5); flex-wrap: wrap; }
.hero-meta div { border-left: 2px solid var(--accent); padding-left: 0.85rem; }
.hero-meta strong { font-family: var(--font-display); font-size: 1.35rem; display: block; }
.hero-meta span { font-size: 0.85rem; color: var(--ink-mute); }

.hero-visual {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--bg-alt)); padding: 1.5rem; box-shadow: 0 30px 60px -40px rgba(13, 13, 13, 0.25);
}
.hero-visual .viz-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.hero-visual .viz-head span { font-size: 0.78rem; color: var(--ink-mute); font-weight: 500; letter-spacing: 0.04em; }
.hero-visual .viz-dots { display: flex; gap: 5px; }
.hero-visual .viz-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: block; }
.hero-visual .viz-dots i:first-child { background: var(--accent); }

/* ---------- Page hero (internal) ---------- */
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 1.4rem + 4.5vw, 4.5rem); margin: var(--sp-2) 0 var(--sp-3); }
.page-hero .lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 60ch; }
.page-hero .hero-ctas { margin-top: var(--sp-4); }

/* Breadcrumb */
.crumb { font-size: 0.85rem; color: var(--ink-mute); display: flex; gap: 0.5rem; align-items: center; }
.crumb a:hover { color: var(--accent); }
.crumb .sep { color: var(--line-strong); }

/* ---------- Logos strip ---------- */
.logos { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.logos-inner { padding-block: var(--sp-4); }
.logos p { text-align: center; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; margin-bottom: var(--sp-3); }
.logos-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sp-3); align-items: center; }
.logo-item {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  color: var(--ink-mute); opacity: 0.62; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  filter: grayscale(1); transition: opacity 0.25s var(--ease);
}
.logo-item:hover { opacity: 1; }
.logo-item svg { width: 22px; height: 22px; }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.service { background: var(--bg); padding: clamp(1.5rem, 3vw, 2.25rem); transition: background 0.25s var(--ease); position: relative; }
.service:hover { background: var(--bg-alt); }
.service .ic {
  width: 46px; height: 46px; border-radius: 11px; border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-3);
  color: var(--accent); transition: all 0.25s var(--ease); background: #fff;
}
.service:hover .ic { background: var(--accent); color: #fff; border-color: var(--accent); }
.service .ic svg { width: 23px; height: 23px; }
.service h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.service p { color: var(--ink-mute); font-size: 0.975rem; }
.service .num { position: absolute; top: 1.5rem; right: 1.5rem; font-family: var(--font-display); font-size: 0.8rem; color: var(--line-strong); font-weight: 600; }

/* Service detail rows (servicios page) */
.svc-detail { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: var(--sp-5); border-bottom: 1px solid var(--line); }
.svc-detail:last-child { border-bottom: 0; }
.svc-detail.reverse .svc-media { order: -1; }
.svc-detail .svc-body h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: var(--sp-2); }
.svc-detail .svc-body p { color: var(--ink-mute); margin-bottom: var(--sp-3); }
.svc-detail ul.ticks { display: grid; gap: 0.6rem; }
.svc-detail ul.ticks li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--ink-soft); font-size: 0.975rem; }
.svc-detail ul.ticks li svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.svc-media {
  border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, #fff, var(--bg-alt));
  padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: 0 30px 60px -44px rgba(13, 13, 13, 0.28);
}
.svc-media .mono-label { font-family: var(--font-display); font-size: 0.78rem; color: var(--ink-mute); letter-spacing: 0.06em; }

/* ---------- Approach / steps ---------- */
.approach { background: var(--ink); color: #fff; }
.approach .eyebrow { color: #7aa2ff; }
.approach .eyebrow::before { background: #7aa2ff; }
.approach .section-head h2 { color: #fff; }
.approach .section-head p { color: #a6acb8; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #262932; border: 1px solid #262932; border-radius: var(--radius); overflow: hidden; }
.step { background: #131519; padding: clamp(1.5rem, 3vw, 2.25rem); transition: background 0.25s var(--ease); }
.step:hover { background: #1a1d24; }
.step .snum { font-family: var(--font-display); font-size: 2.4rem; color: var(--accent); font-weight: 700; line-height: 1; }
.step h3 { color: #fff; font-size: var(--fs-h3); margin: 1rem 0 0.5rem; }
.step p { color: #9aa1ad; font-size: 0.95rem; }
.step-line { height: 2px; background: linear-gradient(90deg, var(--accent), transparent); margin: 0.85rem 0 0; width: 60%; }

/* ---------- Metrics ---------- */
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.metric { border-top: 2px solid var(--ink); padding-top: var(--sp-2); }
.metric .val { font-family: var(--font-display); font-size: var(--fs-metric); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.metric .val .suffix { color: var(--accent); }
.metric .lab { color: var(--ink-mute); font-size: 0.95rem; margin-top: 0.6rem; max-width: 22ch; }

/* ---------- Cases ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.case {
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem);
  display: flex; flex-direction: column; min-height: 300px; transition: all 0.25s var(--ease); background: var(--bg);
}
.case:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 24px 48px -34px rgba(13, 13, 13, 0.35); }
.case .tag { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 0.35rem 0.7rem; border-radius: 100px; align-self: flex-start; }
.case .outcome { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; margin: var(--sp-3) 0 0.5rem; }
.case p { color: var(--ink-mute); font-size: 0.95rem; }
.case .foot { margin-top: auto; padding-top: var(--sp-3); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--ink-soft); font-weight: 500; }
.case .foot svg { width: 16px; height: 16px; color: var(--accent); }

/* Case detail (casos page long form) */
.case-block { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: var(--sp-4); background: var(--bg); }
.case-block .cb-head { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line); }
.case-block .cb-head h3 { font-size: clamp(1.4rem, 3vw, 2rem); max-width: 24ch; }
.case-block .cb-body { padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.case-block .cb-body p { color: var(--ink-mute); margin-bottom: var(--sp-2); }
.cb-metrics { display: grid; gap: var(--sp-2); align-content: start; }
.cb-metrics .m { border-left: 3px solid var(--accent); padding-left: var(--sp-2); }
.cb-metrics .m strong { font-family: var(--font-display); font-size: 1.7rem; display: block; }
.cb-metrics .m span { font-size: 0.85rem; color: var(--ink-mute); }

/* ---------- Values / team ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.value { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); background: var(--bg); }
.value .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: var(--sp-3); }
.value .ic svg { width: 22px; height: 22px; }
.value h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.value p { color: var(--ink-mute); font-size: 0.95rem; }

/* ---------- Prose ---------- */
.prose { max-width: 68ch; }
.prose p { color: var(--ink-soft); margin-bottom: var(--sp-3); }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: var(--sp-5) 0 var(--sp-2); }
.prose h3 { font-size: var(--fs-h3); margin: var(--sp-3) 0 var(--sp-1); }
.prose ul { margin: 0 0 var(--sp-3) 1.2rem; list-style: disc; color: var(--ink-soft); }
.prose ul li { margin-bottom: 0.5rem; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.contact-info p { color: var(--ink-mute); margin-bottom: var(--sp-3); }
.contact-list { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.contact-list a, .contact-list div { display: flex; gap: 0.8rem; align-items: center; color: var(--ink-soft); }
.contact-list svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.contact-list a:hover { color: var(--accent); }

.form-card { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--bg); box-shadow: 0 30px 60px -44px rgba(13, 13, 13, 0.22); }
.field { margin-bottom: var(--sp-3); }
.field label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 0.8rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff;
  transition: border 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field.invalid input, .field.invalid textarea { border-color: #dc2626; }
.form-note { font-size: 0.85rem; color: var(--ink-mute); margin-top: 0.7rem; }
.form-note.ok { color: #059669; }
.form-note.err { color: #dc2626; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--maxw-narrow); margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: var(--sp-3) 0; }
.faq summary { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-mute); margin-top: var(--sp-2); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #fff; border-radius: var(--radius); padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px circle at 80% -20%, rgba(255, 255, 255, 0.18), transparent 60%); pointer-events: none; }
.cta-band h2 { font-size: var(--fs-h2); color: #fff; max-width: 18ch; margin: 0 auto var(--sp-3); position: relative; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 46ch; margin: 0 auto var(--sp-4); font-size: var(--fs-lead); position: relative; }
.cta-band .btn { position: relative; }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--sp-4); padding-block: var(--sp-6) var(--sp-4); }
.footer-brand .wordmark { font-size: 1.4rem; margin-bottom: var(--sp-2); }
.footer-brand p { color: var(--ink-mute); font-size: 0.95rem; max-width: 30ch; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: var(--sp-2); font-weight: 600; }
.footer-col a { display: block; padding: 0.35rem 0; color: var(--ink-soft); font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.newsletter label { display: block; font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.7rem; font-weight: 500; }
.newsletter form { display: flex; gap: 0.5rem; }
.newsletter input { flex: 1; min-width: 0; font-family: var(--font-body); font-size: 0.95rem; padding: 0.7rem 0.9rem; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--ink); }
.newsletter input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.newsletter button { padding: 0.7rem 1rem; }
.footer-bottom { border-top: 1px solid var(--line); padding-block: var(--sp-3); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-2); color: var(--ink-mute); font-size: 0.85rem; }
.footer-bottom .socials { display: flex; gap: 0.5rem; }
.footer-bottom .socials a { width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); transition: all 0.2s var(--ease); }
.footer-bottom .socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.footer-bottom .socials svg { width: 16px; height: 16px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* animated hero line draw */
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s var(--ease) forwards 0.3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rise { transform: translateY(6px); opacity: 0; animation: rise 0.6s var(--ease) forwards; }
@keyframes rise { to { transform: none; opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .case-block .cb-body { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-right .lang-toggle.desktop, .nav-right .btn.desktop { display: none; }
  .hamburger { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .cases-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .svc-detail { grid-template-columns: 1fr; gap: var(--sp-3); }
  .svc-detail.reverse .svc-media { order: 0; }
  .logos-row { grid-template-columns: repeat(3, 1fr); gap: var(--sp-4) var(--sp-2); }
}
@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: var(--sp-3); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .draw { stroke-dashoffset: 0; }
  .rise { opacity: 1; transform: none; }
}
