/* ============================================================
   HUB Consultoria Contábil
   Corporate-premium consulting. Brand-locked palette.
   Light base + deliberate navy color-block sections.
   Visual pattern matched to brand reference; animation-rich.
   ============================================================ */

:root {
  --navy: #071327;
  --navy-2: #0a1a33;
  --blue: #1D4ED8;
  --accent: #2962FF;
  --accent-soft: #6f9bff;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FA;
  --text: #0F172A;
  --text-muted: #64748B;
  --border: #E5E7EB;

  --r-card: 20px;
  --r-img: 24px;
  --r-btn: 999px;

  --shadow-card: 0 10px 40px rgba(7, 19, 39, 0.08);
  --shadow-hero: 0 24px 80px rgba(7, 19, 39, 0.18);
  --shadow-soft: 0 4px 18px rgba(7, 19, 39, 0.06);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1320px;
  --pad-x: clamp(20px, 5vw, 32px);
  --section-y: clamp(72px, 10vw, 120px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0; z-index: 300; }
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ----------------------------- Typography ----------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 22px;
}
.eyebrow-light { color: #9bb8ff; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex: none; }
.eyebrow-light .eyebrow-dot { background: var(--accent-soft); box-shadow: 0 0 10px rgba(41, 98, 255, 0.8); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
}
.display-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.2vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.accent-em { font-style: italic; color: var(--blue); font-weight: 600; }
.accent-em-light { font-style: italic; color: #cdddff; font-weight: 600; }
.section-dark .accent-em, .hero .accent-em { color: var(--accent-soft); }

.section-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-muted); max-width: 52ch; margin-top: 22px; }
.section-head { max-width: 820px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 16px; line-height: 1;
  padding: 17px 28px; border-radius: var(--r-btn);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn i { font-size: 17px; transition: transform 0.25s var(--ease); }
.btn:hover i { transform: translate(3px, -3px); }

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 28px rgba(29, 78, 216, 0.32); }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(41, 98, 255, 0.42); }
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.42); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.9); transform: translateY(-2px); }

.btn-ghost { background: var(--bg); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--border); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--navy); box-shadow: 0 12px 30px rgba(7, 19, 39, 0.28); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(7, 19, 39, 0.4); background: #f3f6ff; }
.btn-light:active { transform: translateY(0) scale(0.98); }
.btn-lg { padding: 20px 38px; font-size: 17px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: 80px;
  display: flex; align-items: center; color: #fff;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), height 0.35s var(--ease);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header .nav-list a { color: rgba(255, 255, 255, 0.82); }
.site-header .nav-list a:hover { color: #fff; }

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--border), 0 8px 30px rgba(7, 19, 39, 0.06);
  color: var(--text); height: 70px;
}
.site-header.scrolled .nav-list a { color: var(--text-muted); }
.site-header.scrolled .nav-list a:hover { color: var(--navy); }
.site-header.scrolled .logo-img { background-color: var(--navy); }
.site-header.scrolled .logo-sub { color: var(--text-muted); border-color: var(--border); }
.site-header.scrolled .nav-toggle { color: var(--navy); }

/* Logo (real brand asset recolored via CSS mask) */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-img {
  display: block; height: 30px; width: 80px; flex: none;
  background-color: #fff;
  -webkit-mask: url("../img/logo-hub.png") left center / contain no-repeat;
          mask: url("../img/logo-hub.png") left center / contain no-repeat;
  transition: background-color 0.35s var(--ease);
}
.logo-sub {
  font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  line-height: 1.25; color: rgba(255, 255, 255, 0.72);
  padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-list a { font-size: 15.5px; font-weight: 600; transition: color 0.2s ease; }
.nav-cta { padding: 13px 22px; font-size: 15px; }
.nav-toggle { display: none; font-size: 28px; color: #fff; line-height: 1; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; background: var(--navy); color: #fff;
  padding-top: clamp(116px, 15vh, 150px);
  padding-bottom: clamp(120px, 16vh, 180px);
  min-height: clamp(620px, 88vh, 860px);
  display: flex; align-items: center; overflow: hidden;
}
.hero-glow {
  position: absolute; top: -15%; right: -8%;
  width: 58vw; height: 58vw; max-width: 780px; max-height: 780px;
  background: radial-gradient(circle, rgba(41, 98, 255, 0.24), transparent 62%);
  pointer-events: none; z-index: 0;
}
.section-dark .hero-glow { top: auto; right: auto; bottom: -28%; left: -12%; }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.85rem, 6.4vw, 4.9rem);
  line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 26px;
}
.hero-title span { display: block; }
.hero-title .accent-em { padding-bottom: 0.06em; }
.hero-desc { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: rgba(255, 255, 255, 0.78); max-width: 46ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-visual { position: relative; }
.hero-image-frame {
  position: relative; border-radius: var(--r-img); overflow: hidden;
  box-shadow: var(--shadow-hero); border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 4 / 3.3;
}
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 19, 39, 0.15) 0%, rgba(7, 19, 39, 0.05) 40%, rgba(7, 19, 39, 0.62) 100%); }

/* Animated growth chart overlay */
.hero-chart { position: absolute; left: 9%; right: 8%; bottom: 9%; height: 58%; z-index: 2; }
.hero-bars { position: absolute; inset: 0 18% 0 0; display: flex; align-items: flex-end; gap: clamp(8px, 1.5vw, 18px); }
.hero-bar {
  flex: 1; height: var(--h); border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, rgba(120, 160, 255, 0.95), rgba(29, 78, 216, 0.5));
  box-shadow: 0 0 26px rgba(41, 98, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: scaleY(0); transform-origin: bottom;
}
.hero-arrow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-arrow path { fill: none; stroke: #eaf1ff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 7px rgba(120, 160, 255, 0.95)); }
.hero-arrow-line, .hero-arrow-head { stroke-dasharray: 1; stroke-dashoffset: 1; }

body.is-loaded .hero-bar { animation: barGrow 0.9s var(--ease) forwards; animation-delay: calc(0.35s + var(--i) * 0.1s); }
body.is-loaded .hero-arrow-line { animation: drawLine 1.1s var(--ease) 0.55s forwards; }
body.is-loaded .hero-arrow-head { animation: drawLine 0.4s var(--ease) 1.55s forwards; }
@keyframes barGrow { to { transform: scaleY(1); } }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* Hero load-in choreography */
.anim-up, .anim-fade { opacity: 0; }
.anim-up { transform: translateY(26px); }
.anim-fade { transform: scale(0.97); }
body.is-loaded .anim-up,
body.is-loaded .anim-fade {
  opacity: 1; transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--d) * 0.12s);
}

/* ============================================================
   METRICS (floating card overlapping hero)
   ============================================================ */
.metrics { position: relative; z-index: 5; }
.metrics-card {
  margin-top: clamp(-130px, -10vw, -78px);
  background: #fff; border-radius: var(--r-img); box-shadow: var(--shadow-hero);
  padding: clamp(26px, 3vw, 40px) clamp(18px, 2.5vw, 40px);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.metric { display: flex; align-items: center; gap: 16px; padding-inline: clamp(16px, 2vw, 32px); border-left: 1px solid var(--border); }
.metric:first-child { border-left: none; }
.metric-icon { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: rgba(41, 98, 255, 0.1); color: var(--blue); font-size: 27px; }
.metric-value { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 2.6vw, 2.4rem); color: var(--navy); line-height: 1; letter-spacing: -0.01em; }
.metric-label { display: block; font-size: 14px; font-weight: 600; color: var(--text-muted); margin-top: 5px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.about-text { font-size: 1.05rem; color: var(--text-muted); margin-top: 16px; max-width: 50ch; margin-bottom: 34px; }
.about-image-frame { border-radius: var(--r-img); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 16 / 10.5; }
.about-image-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   SERVICES / DIFERENCIAIS
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 26px); }
.service-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 36px 32px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: transparent; }
.service-icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 15px;
  background: linear-gradient(145deg, rgba(41, 98, 255, 0.12), rgba(29, 78, 216, 0.07));
  color: var(--blue); font-size: 29px; margin-bottom: 22px;
  transition: transform 0.3s var(--ease);
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-3deg); }
.service-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin-bottom: 8px; letter-spacing: -0.01em; }
.service-card p { font-size: 16px; color: var(--text-muted); }

/* ============================================================
   DARK COLOR BLOCKS (growth / technology)
   ============================================================ */
.section-dark { background: var(--navy); color: #fff; position: relative; overflow: hidden; padding-block: var(--section-y); }
.section-dark .section-title { color: #fff; }
.growth-grid, .tech-grid { position: relative; z-index: 1; display: grid; align-items: center; gap: clamp(32px, 5vw, 72px); }
.growth-grid { grid-template-columns: 1.1fr 0.9fr; }
.tech-grid { grid-template-columns: 0.95fr 1.05fr; }
.growth-desc { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, 0.78); max-width: 44ch; margin-top: 24px; }
.growth-benefits { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 34px; }
.growth-benefits li { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; }
.growth-benefits i { color: var(--accent-soft); font-size: 22px; }
.growth-visual img { border-radius: var(--r-img); filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45)); }

.tech-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, 0.78); margin-top: 22px; max-width: 46ch; }
.tech-features { display: grid; gap: 16px; margin-top: 32px; }
.tech-features li { display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 600; }
.tech-features i { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: var(--accent-soft); font-size: 22px; }
.tech-image-frame { border-radius: var(--r-img); overflow: hidden; box-shadow: var(--shadow-hero); border: 1px solid rgba(255, 255, 255, 0.1); }
.tech-image-frame img { width: 100%; display: block; }

/* ============================================================
   SEGMENTS (carousel)
   ============================================================ */
.carousel-nav { display: flex; gap: 12px; }
.carousel-btn {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--r-btn);
  border: 1px solid var(--border); background: var(--bg); color: var(--navy); font-size: 22px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.carousel-btn:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.segments-track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-block: 14px;
  padding-inline: max(var(--pad-x), calc((100vw - var(--container)) / 2 + var(--pad-x)));
  scrollbar-width: none;
}
.segments-track::-webkit-scrollbar { display: none; }
.segment-card {
  scroll-snap-align: start; flex: 0 0 clamp(260px, 30vw, 340px);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-card); padding: 34px 30px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.segment-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: transparent; }
.segment-icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 16px; background: var(--navy); color: var(--accent-soft); font-size: 31px; margin-bottom: 20px; }
.segment-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 23px; margin-bottom: 9px; letter-spacing: -0.01em; }
.segment-card p { font-size: 15.5px; color: var(--text-muted); }

/* ============================================================
   CASES
   ============================================================ */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 26px); }
.case-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-card); padding: 38px 34px; display: flex; flex-direction: column; gap: 18px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.case-metric { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 3.4vw, 3rem); line-height: 1; color: var(--blue); letter-spacing: -0.01em; }
.case-quote { font-size: 18px; color: var(--text); line-height: 1.5; }
.case-author { margin-top: auto; display: flex; flex-direction: column; padding-top: 14px; border-top: 1px solid var(--border); }
.case-author strong { font-size: 16px; font-weight: 700; }
.case-author span { font-size: 14px; color: var(--text-muted); }

/* ============================================================
   METHODOLOGY (timeline)
   ============================================================ */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 28px); position: relative; }
.timeline::before { content: ""; position: absolute; top: 26px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--blue), rgba(29, 78, 216, 0.12)); }
.timeline-step { position: relative; padding-top: 70px; }
.timeline-num { position: absolute; top: 0; left: 0; width: 54px; height: 54px; display: grid; place-items: center; border-radius: var(--r-btn); background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 20px; box-shadow: 0 8px 22px rgba(7, 19, 39, 0.25); }
.timeline-step h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.timeline-step p { font-size: 15.5px; color: var(--text-muted); }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2vw, 26px); }
.blog-card { display: flex; flex-direction: column; }
.blog-thumb { display: block; border-radius: var(--r-img); overflow: hidden; aspect-ratio: 3 / 2; position: relative; box-shadow: var(--shadow-soft); }
.blog-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 19, 39, 0.05), rgba(7, 19, 39, 0.45)); mix-blend-mode: multiply; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.blog-card:hover .blog-thumb img { transform: scale(1.06); }
.blog-cat { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); margin: 20px 0 10px; }
.blog-card h3 { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; flex: 1; }
.blog-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 15px; font-weight: 700; color: var(--navy); transition: gap 0.25s var(--ease), color 0.25s var(--ease); }
.blog-card:hover .blog-link { gap: 12px; color: var(--blue); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color: #fff; text-align: center; padding-block: clamp(80px, 11vw, 130px); position: relative; overflow: hidden; }
.cta-banner .hero-glow { top: 50%; left: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 60%); }
.cta-inner { position: relative; z-index: 1; max-width: 820px; margin-inline: auto; }
.cta-title { margin-bottom: 22px; }
.cta-desc { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: rgba(255, 255, 255, 0.85); max-width: 54ch; margin: 0 auto 40px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.7); padding-top: clamp(64px, 8vw, 96px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: clamp(28px, 4vw, 56px); padding-bottom: 56px; }
.logo-footer .logo-img { background-color: #fff; height: 32px; width: 86px; }
.logo-footer .logo-sub { color: rgba(255, 255, 255, 0.72); border-color: rgba(255, 255, 255, 0.24); }
.footer-tag { margin: 22px 0 24px; font-size: 15.5px; max-width: 34ch; color: rgba(255, 255, 255, 0.68); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-btn); border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; font-size: 20px; transition: background 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease); }
.footer-social a:hover { background: var(--accent); transform: translateY(-2px); border-color: transparent; }
.footer-col h4 { color: #fff; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px; font-weight: 700; }
.footer-col ul { display: grid; gap: 13px; }
.footer-col a { font-size: 15.5px; color: rgba(255, 255, 255, 0.68); transition: color 0.2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; }
.footer-legal { display: flex; gap: 26px; }
.footer-legal a:hover { color: #fff; }

/* ============================================================
   SCROLL REVEAL + stagger
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); will-change: opacity, transform; }
[data-reveal].is-visible { opacity: 1; transform: none; }
.services-grid .service-card:nth-child(2), .cases-grid .case-card:nth-child(2), .blog-grid .blog-card:nth-child(2), .timeline .timeline-step:nth-child(2) { transition-delay: 0.08s; }
.services-grid .service-card:nth-child(3), .blog-grid .blog-card:nth-child(3), .timeline .timeline-step:nth-child(3) { transition-delay: 0.16s; }
.services-grid .service-card:nth-child(4), .blog-grid .blog-card:nth-child(4), .cases-grid .case-card:nth-child(3), .timeline .timeline-step:nth-child(4) { transition-delay: 0.24s; }
.services-grid .service-card:nth-child(5), .timeline .timeline-step:nth-child(5) { transition-delay: 0.32s; }
.services-grid .service-card:nth-child(6) { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 0.92fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-list, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-list.open {
    display: flex; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0;
    background: #fff; padding: 16px var(--pad-x) 28px; gap: 4px;
    box-shadow: 0 20px 40px rgba(7, 19, 39, 0.12); border-top: 1px solid var(--border);
  }
  .nav-list.open li { width: 100%; }
  .nav-list.open a { display: block; padding: 14px 0; color: var(--navy); font-size: 17px; border-bottom: 1px solid var(--border); }

  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 520px; }
  .about-grid, .growth-grid, .tech-grid { grid-template-columns: 1fr; }
  .about-visual, .growth-visual, .tech-visual { max-width: 560px; }
  .growth-visual, .tech-visual { order: -1; }
  .services-grid, .cases-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }

  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { left: 26px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--blue), rgba(29, 78, 216, 0.12)); }
  .timeline-step { padding-top: 0; padding-left: 78px; padding-bottom: 34px; }
  .timeline-step:last-child { padding-bottom: 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .metrics-card { grid-template-columns: 1fr 1fr; gap: 26px 0; padding: 28px 22px; }
  .metric { border-left: none; padding-inline: 10px; }
  .metric:nth-child(even) { border-left: 1px solid var(--border); }
  .services-grid, .cases-grid, .blog-grid { grid-template-columns: 1fr; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { flex: 1; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  [data-reveal], .anim-up, .anim-fade { opacity: 1 !important; transform: none !important; }
  .hero-bar { transform: scaleY(1) !important; }
  .hero-arrow-line, .hero-arrow-head { stroke-dashoffset: 0 !important; }
  .segments-track { scroll-behavior: auto; }
}
