/* =============================================================
   PROGRESS — progress.ec — Outsourcing Finance · AI Native
   Archetype: 04 Glassmorphism Modern (adapted fintech/AI palette)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #f3f6fb;
  --bg-panel: #ffffff;
  --glass: rgba(255, 255, 255, 0.55);
  --glass-2: rgba(255, 255, 255, 0.32);
  --glass-border: rgba(255, 255, 255, 0.6);

  --ink: #0f172a;
  --ink-soft: #3f4b63;
  --ink-mute: #6b7690;

  --accent: #374572;       /* Progress navy — primary brand color */
  --accent-ink: #1f2847;   /* deep navy — hover / emphasis text */
  --accent-2: #167a34;     /* accessible brand green (AA on white/bg) */
  --brand-green: #6cff69;  /* raw logo green — decorative use only, not text */
  --mint: #167a34;         /* growth/success — same accessible brand green */
  --amber: #d97706;        /* rating stars — semantic, not brand */

  --line: rgba(15, 23, 42, 0.1);
  --line-soft: rgba(15, 23, 42, 0.06);

  --gradient-1: #aab6dc;  /* soft navy bloom */
  --gradient-2: #b9f5ae;  /* soft green bloom */
  --gradient-3: #d7ddf1;  /* pale navy-neutral bloom */

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 70px -24px rgba(55, 69, 114, 0.28);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --display: "Space Grotesk", "Inter Display", Inter, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; font-family: var(--display); }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: #fff; }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 500;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.kicker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(22, 122, 52, 0.18);
  flex: none;
}
.eyebrow-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}

.section { padding-block: clamp(4rem, 8vw, 7.5rem); position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-top: 0.75rem; }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; margin-top: 1rem; max-width: 56ch; }
.section-head.center .section-sub { margin-inline: auto; }

/* =============================================================
   4. Typography components
   ============================================================= */
em { font-style: normal; color: var(--accent); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .35s var(--ease-out);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); background: var(--accent-ink); }
.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
@supports not (backdrop-filter: blur(1px)) { .btn-ghost { background: rgba(255,255,255,0.85); } }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn-block { width: 100%; }
.btn-sm { padding: .6rem 1.1rem; font-size: 0.85rem; }

.glass-card {
  background: rgba(255,255,255,0.75); /* solid fallback */
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
@supports (backdrop-filter: blur(20px)) {
  .glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }
}

.nav-underline {
  position: relative;
  padding-bottom: 2px;
}
.nav-underline::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--accent);
  transition: right .35s var(--ease-out);
}
.nav-underline:hover::after, .nav-underline:focus-visible::after { right: 0; }

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-block: 0.9rem;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: .55rem .6rem .55rem 1.1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease-out), background .3s var(--ease-out);
}
@supports (backdrop-filter: blur(20px)) {
  .nav-inner { background: rgba(255,255,255,0.55); backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%); }
}
.nav.is-scrolled .nav-inner { box-shadow: var(--shadow-md); }

.nav-logo {
  display: flex; align-items: center; gap: .6rem;
}
.nav-logo-img { height: 22px; width: auto; }
.nav-logo-tag {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.06em;
  color: var(--accent-2); text-transform: uppercase;
  padding: .18rem .45rem; border-radius: 999px;
  background: rgba(22,122,52,0.12);
}
.nav-links {
  display: none; align-items: center; gap: 1.6rem;
  font-size: 0.9rem; font-weight: 500; color: var(--ink-soft);
}
.nav-cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(55,69,114,0.08);
}
.nav-toggle svg { width: 20px; height: 20px; }

.mobile-panel {
  position: fixed; inset: 0;
  z-index: 99;
  background: rgba(243, 246, 251, 0.98);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 1.4rem;
  padding: 6.5rem 1.75rem 2rem;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.mobile-panel.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-panel a { font-family: var(--display); font-size: 1.5rem; font-weight: 600; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* =============================================================
   7. Sections — Hero
   ============================================================= */
.hero {
  position: relative;
  padding-top: clamp(8.5rem, 14vw, 11rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
  overflow: clip;
}
.hero-mesh {
  position: absolute; inset: -10% -10% 0 -10%;
  z-index: -1;
  background:
    radial-gradient(at 18% 22%, var(--gradient-1) 0%, transparent 52%),
    radial-gradient(at 82% 18%, var(--gradient-2) 0%, transparent 52%),
    radial-gradient(at 50% 85%, var(--gradient-3) 0%, transparent 55%);
  filter: blur(70px) saturate(150%);
  opacity: 0.55;
  animation: meshDrift 26s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.16) rotate(8deg); }
}
.hero-grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}
.hero-title {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  max-width: 15ch;
  margin-top: 1.1rem;
}
.hero-sub {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 46ch;
  margin-top: 1.3rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.4rem 2rem;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero-meta-item { font-size: 0.85rem; color: var(--ink-mute); }
.hero-meta-item strong { color: var(--ink); font-family: var(--display); font-weight: 600; }

/* Floating dashboard mockup — the "product" of the archetype */
.hero-visual { position: relative; }
.dash-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 40px 60px rgba(15, 23, 42, 0.18));
  animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.dash-head-label { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-mute); letter-spacing: 0.05em; }
.dash-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.05em;
  padding: .3rem .6rem; border-radius: 999px;
  background: linear-gradient(135deg, rgba(55,69,114,0.14), rgba(108,255,105,0.14));
  color: var(--accent-ink);
}
.dash-badge .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 0 rgba(22,122,52,0.5);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(22,122,52,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(22,122,52,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,122,52,0); }
}
.dash-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-bottom: 1rem; }
.dash-kpi { padding: .85rem .9rem; border-radius: var(--radius-sm); background: rgba(255,255,255,0.55); border: 1px solid var(--line-soft); }
.dash-kpi-label { font-size: 0.68rem; color: var(--ink-mute); font-family: var(--mono); }
.dash-kpi-value { font-family: var(--display); font-size: 1.3rem; font-weight: 700; margin-top: .2rem; }
.dash-kpi-value.up { color: var(--mint); }
.dash-chart {
  height: 90px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--line-soft);
  padding: .7rem .8rem .3rem;
  display: flex; align-items: flex-end; gap: 5px;
}
.dash-chart span {
  flex: 1; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.85;
  animation: barGrow 2.6s var(--ease-soft) infinite alternate;
}
@keyframes barGrow { from { transform: scaleY(0.82); } to { transform: scaleY(1); } }
.dash-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; font-size: 0.72rem; color: var(--ink-mute); font-family: var(--mono); }
.dash-decor {
  position: absolute; z-index: -1;
  border-radius: var(--radius-md);
  filter: blur(2px);
}
.dash-decor-1 {
  top: -8%; right: -8%; width: 46%; aspect-ratio: 1.6;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  animation: floatY 8s ease-in-out infinite reverse;
}
.dash-decor-2 {
  bottom: -10%; left: -6%; width: 40%; aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(108,255,105,0.14), rgba(55,69,114,0.14));
  animation: floatY 9s ease-in-out infinite;
}

/* =============================================================
   8. Stats strip
   ============================================================= */
.stats {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem;
  padding: 1.6rem;
}
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 1rem .6rem; }
.stat-value {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { color: var(--ink-mute); font-size: 0.82rem; margin-top: .4rem; max-width: 20ch; margin-inline: auto; }

/* =============================================================
   9. Manifiesto / AI Native pillars
   ============================================================= */
.manifesto-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .manifesto-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }
.manifesto-text p { color: var(--ink-soft); margin-top: 1rem; max-width: 48ch; }
.manifesto-list { margin-top: 1.6rem; display: grid; gap: .6rem; }
.manifesto-list li { display: flex; gap: .6rem; font-size: 0.92rem; color: var(--ink-soft); align-items: baseline; }
.manifesto-list li::before { content: "→"; color: var(--accent); font-weight: 700; flex: none; }

.pillars-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .pillars-grid { grid-template-columns: repeat(2, 1fr); } }
.pillar-card { padding: 1.6rem; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(55,69,114,0.14), rgba(108,255,105,0.14));
  color: var(--accent);
  margin-bottom: 1rem;
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar-card h3 { font-size: 1.05rem; }
.pillar-card p { color: var(--ink-soft); font-size: 0.9rem; margin-top: .5rem; }

/* =============================================================
   10. Services — glass bento
   ============================================================= */
.services-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.service-card {
  padding: 1.6rem;
  display: flex; flex-direction: column; gap: .8rem;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
}
.service-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-lg); border-color: rgba(55,69,114,0.35); }
.service-card.is-highlight {
  background: linear-gradient(160deg, rgba(55,69,114,0.1), rgba(108,255,105,0.08));
  border-color: rgba(55,69,114,0.25);
}
.service-icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--glass-border);
  color: var(--accent);
}
.service-icon svg { width: 21px; height: 21px; }
.service-card h3 { font-size: 1rem; }
.service-card p { color: var(--ink-soft); font-size: 0.87rem; line-height: 1.55; }
.service-tag {
  align-self: flex-start;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.05em;
  color: var(--accent-2); text-transform: uppercase;
  padding: .18rem .5rem; border-radius: 999px;
  background: rgba(22,122,52,0.12);
}

/* =============================================================
   11. Industries marquee-ish strip
   ============================================================= */
.industries-track {
  display: flex; flex-wrap: wrap; gap: .8rem;
}
.industry-chip {
  padding: .8rem 1.3rem;
  border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.industry-chip:hover { color: var(--accent-ink); border-color: var(--accent); transform: translateY(-3px); }

/* =============================================================
   12. Process
   ============================================================= */
.process-grid { display: grid; gap: 1.2rem; counter-reset: step; }
@media (min-width: 860px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }
.process-card { padding: 1.8rem; position: relative; }
.process-n {
  font-family: var(--display); font-weight: 700; font-size: 2.4rem;
  color: var(--accent);
  opacity: 0.85;
}
.process-card h3 { margin-top: .6rem; font-size: 1.1rem; }
.process-card p { color: var(--ink-soft); font-size: 0.9rem; margin-top: .5rem; }

/* =============================================================
   13. Testimonials
   ============================================================= */
.testi-grid { display: grid; gap: 1.2rem; }
@media (min-width: 860px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
.testi-card { padding: 1.8rem; display: flex; flex-direction: column; gap: 1.1rem; }
.testi-stars { color: var(--amber); font-size: 0.85rem; letter-spacing: 0.1em; }
.testi-quote { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.6; }
.testi-who { display: flex; align-items: center; gap: .7rem; margin-top: auto; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem;
  color: #fff;
  background: var(--accent);
  flex: none;
}
.testi-name { font-weight: 600; font-size: 0.9rem; }
.testi-role { color: var(--ink-mute); font-size: 0.78rem; }

/* =============================================================
   14. About / trayectoria
   ============================================================= */
.about-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1fr; align-items: center; } }
.about-text p { color: var(--ink-soft); margin-top: 1rem; max-width: 52ch; }
.about-badges { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.about-badge {
  padding: .55rem 1rem; border-radius: 999px;
  font-size: 0.82rem; color: var(--ink-soft);
}
.about-panel { padding: 2rem; }
.about-timeline { display: grid; gap: 1.2rem; }
.about-timeline-item { display: flex; gap: 1rem; }
.about-timeline-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); margin-top: 6px; flex: none;
  box-shadow: 0 0 0 4px rgba(55,69,114,0.14);
}
.about-timeline-item h4 { font-size: 0.95rem; font-family: var(--display); }
.about-timeline-item p { color: var(--ink-soft); font-size: 0.85rem; margin-top: .2rem; }

/* =============================================================
   15. FAQ accordion
   ============================================================= */
.faq-list { display: grid; gap: .8rem; max-width: 780px; }
.faq-item { overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.3rem 1.5rem; text-align: left;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
}
.faq-q .plus { flex: none; width: 22px; height: 22px; position: relative; }
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; background: var(--accent);
  transition: transform .3s var(--ease-out);
}
.faq-q .plus::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-q .plus::after { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }
.faq-item.is-open .faq-q .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s var(--ease-out);
  padding-inline: 1.5rem;
}
.faq-a p { color: var(--ink-soft); font-size: 0.92rem; padding-bottom: 1.3rem; max-width: 62ch; }
.faq-item.is-open .faq-a { max-height: 260px; }

/* =============================================================
   16. Final CTA + contact form
   ============================================================= */
.cta-section { position: relative; overflow: clip; }
.cta-mesh {
  position: absolute; inset: -20% -10% -20% -10%; z-index: -1;
  background: radial-gradient(at 30% 30%, var(--gradient-2) 0%, transparent 55%),
              radial-gradient(at 75% 70%, var(--gradient-1) 0%, transparent 55%);
  filter: blur(90px); opacity: 0.5;
}
.cta-panel { padding: clamp(2rem, 5vw, 3.5rem); }
.cta-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .cta-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.cta-text p { color: var(--ink-soft); margin-top: 1rem; max-width: 46ch; }
.cta-contacts { margin-top: 1.8rem; display: grid; gap: .8rem; }
.cta-contact-link {
  display: flex; align-items: center; gap: .7rem;
  font-size: 0.92rem; color: var(--ink-soft);
  padding: .3rem 0;
}
.cta-contact-link svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.cta-contact-link:hover { color: var(--accent-ink); }

.form-grid { display: grid; gap: .9rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font: inherit; padding: .75rem .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  color: var(--ink);
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(55,69,114,0.14);
  outline: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.form-note { font-size: 0.76rem; color: var(--ink-mute); margin-top: .6rem; }
.form-success {
  display: none; align-items: center; gap: .6rem;
  padding: .9rem 1.1rem; border-radius: var(--radius-sm);
  background: rgba(22,122,52,0.1); color: var(--mint);
  font-size: 0.88rem; font-weight: 600; margin-top: 1rem;
}
.form-success.is-visible { display: flex; }
.form-success svg { width: 18px; height: 18px; flex: none; }

/* =============================================================
   17. Footer
   ============================================================= */
.footer { padding-block: 3.5rem 2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .6rem; }
.footer-logo-img { height: 26px; width: auto; }
.footer-tag { color: var(--ink-mute); font-size: 0.86rem; margin-top: .8rem; max-width: 30ch; }
.footer-col h4 { font-family: var(--display); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: .9rem; }
.footer-col ul { display: grid; gap: .55rem; }
.footer-col a { font-size: 0.88rem; color: var(--ink-soft); }
.footer-col a:hover { color: var(--accent-ink); }
.footer-social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--glass-border);
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  color: var(--ink-soft); text-transform: uppercase;
  transition: transform .3s var(--ease-out), color .3s var(--ease-out);
}
.footer-social a:hover { transform: translateY(-3px); color: var(--accent); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.78rem; color: var(--ink-mute);
}
.footer-bottom a { color: var(--ink-mute); }
.footer-bottom a:hover { color: var(--accent-ink); }

/* =============================================================
   18. Reveal on scroll
   ============================================================= */
/* Default: fully visible (works with no JS / no-js html class). */
.reveal { opacity: 1; transform: none; }
/* Only when JS confirmed running (html.js) do we hide-then-animate. */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }

/* =============================================================
   19. Responsive helpers
   ============================================================= */
@media (min-width: 540px)  { }
@media (min-width: 720px)  { }
@media (min-width: 960px)  { }
@media (min-width: 1280px) {
  .container { padding-inline: 2rem; }
}

/* =============================================================
   20. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh, .cta-mesh { animation: none; }
  .dash-card, .dash-decor-1, .dash-decor-2 { animation: none; }
  .dash-badge .pulse { animation: none; }
  .dash-chart span { animation: none; }
}
