/* =====================================================
   GC ASSESSORIA JURÍDICA
   Deep Navy + Steel Blue + Cream — Editorial / Legal
   ===================================================== */

:root {
  /* Surfaces — deep navy (from the presentation header) */
  --bg: #0f1d30;          /* main background — deep navy */
  --bg-2: #0a1623;        /* alt sections, footer (sunken) */
  --bg-3: #16283f;        /* slightly lighter — for inputs */
  --surface: #15273d;     /* cards (elevated) */
  --surface-2: #1d3552;   /* hover (lifted further) */
  --border: rgba(220, 230, 245, 0.09);
  --border-strong: rgba(220, 230, 245, 0.18);

  /* Text */
  --text: #eef2f8;
  --text-muted: #93a6c0;
  --text-faint: #5c6e88;

  /* Accent — steel blue */
  --blue: #5b93d6;
  --blue-soft: #7eaee2;
  --blue-dark: #4377b8;
  --on-blue: #0a1623;

  /* Layout */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --container: 1240px;
}

/* Custom scrollbar — flat steel-blue on deep navy, NO arrows */
html { scrollbar-color: #5b93d6 #0a1623; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px !important; height: 10px !important; background: #0a1623 !important; }
::-webkit-scrollbar-track { background: #0a1623 !important; border: none !important; box-shadow: none !important; }
::-webkit-scrollbar-thumb {
  background: #5b93d6 !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}
::-webkit-scrollbar-thumb:hover { background: #7eaee2 !important; }
::-webkit-scrollbar-button,
::-webkit-scrollbar-button:single-button,
::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment,
::-webkit-scrollbar-button:vertical:start:decrement,
::-webkit-scrollbar-button:vertical:end:increment,
::-webkit-scrollbar-button:horizontal:start:decrement,
::-webkit-scrollbar-button:horizontal:end:increment {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}
::-webkit-scrollbar-corner { background: #0a1623 !important; }

* { box-sizing: border-box; }
*::selection { background: var(--blue); color: var(--on-blue); }

html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body {
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(91, 147, 214, .07), transparent 70%),
    var(--bg);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.06;
}
h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.12;
}

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

.accent { color: var(--blue); font-style: italic; }

/* Progress */
.progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0; z-index: 9999;
  background: var(--blue);
  transition: width .15s ease;
}

/* =====================================================
   Navbar
   ===================================================== */
.navbar {
  position: fixed; top: 0; left: 0;
  width: 100%; z-index: 100;
  background: rgba(15, 29, 48, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background .25s, border-color .25s;
}
.navbar .nav-inner {
  width: min(var(--container), 92%);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0;
}
.navbar.scrolled {
  background: rgba(10, 22, 35, 0.94);
  border-bottom: 1px solid var(--border-strong);
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: .7rem; }
.logo-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
  color: var(--blue);
  flex-shrink: 0;
}
.logo-text {
  display: flex; flex-direction: column;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .16em;
  line-height: 1.15;
  color: var(--text);
  text-transform: uppercase;
}
.logo-sub {
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .3em;
  color: var(--text-muted);
}

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  position: relative;
  padding: .65rem 1rem;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); }
.nav a::after {
  content: '';
  position: absolute;
  left: 1rem; right: 1rem;
  bottom: .25rem;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }

.actions { display: flex; align-items: center; gap: .6rem; }

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .6rem;
  padding: .95rem 1.5rem;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s, background .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn.primary {
  background: var(--blue); color: var(--on-blue);
  box-shadow: 0 10px 26px -12px rgba(91, 147, 214, .8);
}
.btn.primary:hover {
  background: var(--blue-soft);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(91, 147, 214, .9);
}
.btn.ghost {
  background: rgba(238, 242, 248, .04);
  color: var(--text);
  border: 1px solid rgba(238, 242, 248, .16);
}
.btn.ghost:hover {
  background: rgba(238, 242, 248, .08);
  border-color: rgba(238, 242, 248, .3);
  transform: translateY(-2px);
}
.btn.sm { padding: .58rem 1rem; font-size: .78rem; }
.btn.lg { padding: 1.15rem 2rem; font-size: .95rem; }
.btn.lang-btn {
  padding: .52rem .85rem;
  font-size: .74rem;
  letter-spacing: .02em;
  gap: .4rem;
  border-radius: 4px;
}
.btn.lang-btn span { font-weight: 700; }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* =====================================================
   Hero
   ===================================================== */
#header {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  overflow: hidden;
  background: var(--bg);
}
#header-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  transform: scale(1.05);
  filter: saturate(.55) contrast(1.05) brightness(.5);
  opacity: .85;
}
.overlay-grad {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(72% 62% at 50% 38%, transparent 0%, rgba(15, 29, 48, .25) 58%, rgba(15, 29, 48, .72) 86%, var(--bg) 100%),
    linear-gradient(180deg, rgba(10, 22, 35, .45) 0%, transparent 28%, transparent 58%, rgba(15, 29, 48, .85) 94%, var(--bg) 100%);
}

.hero {
  position: relative; z-index: 2;
  display: grid; place-items: center;
  min-height: 100vh; min-height: 100svh;
  text-align: center;
  padding: 8rem 1.2rem 6rem;
}
.hero-inner { max-width: 1000px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .5rem 1.05rem;
  border-radius: 999px;
  background: rgba(238, 242, 248, .04);
  border: 1px solid rgba(238, 242, 248, .14);
  font-size: .67rem; font-weight: 600;
  letter-spacing: .24em;
  color: var(--text);
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--blue);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.hero h1 {
  font-family: 'Times New Roman', Times, Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.7rem, 6.6vw, 5.2rem);
  margin: 0;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: .015em;
}
.hero h1 .line-1 {
  display: block;
  white-space: nowrap;
  font-weight: 400;
  color: var(--text);
  margin-bottom: .15rem;
}
.hero h1 .line-2 {
  display: block;
  font-weight: 400;
}
.hero-sub {
  margin: 6rem auto 0;
  color: var(--text);
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  max-width: 640px;
  font-weight: 400;
}
.hero-sub strong {
  color: var(--text);
  font-weight: 600;
  background: linear-gradient(180deg, transparent 62%, rgba(91, 147, 214, .28) 62%, rgba(91, 147, 214, .28) 92%, transparent 92%);
  padding: 0 .14em;
}

.cta-wrap {
  margin-top: 3.8rem;
  display: inline-flex; flex-wrap: wrap;
  gap: 1rem; justify-content: center;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--text-muted);
  font-size: .64rem; font-weight: 600;
  letter-spacing: .35em;
  z-index: 3;
  transition: color .2s;
}
.scroll-cue:hover { color: var(--blue); }
.scroll-cue svg {
  width: 20px; height: 20px;
  animation: bounce 2.4s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* =====================================================
   Marquee
   ===================================================== */
.marquee {
  background: var(--blue);
  color: var(--on-blue);
  padding: 1.05rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(10, 22, 35, .2);
  border-bottom: 1px solid rgba(10, 22, 35, .2);
  position: relative;
  z-index: 5;
}
.marquee-track {
  display: flex; gap: 2rem;
  align-items: center;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  animation: marquee 38s linear infinite;
}
.marquee-track .dot { font-size: .55rem; opacity: .55; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =====================================================
   Sections
   ===================================================== */
.section {
  position: relative;
  padding: clamp(5rem, 9vw, 8rem) 1.2rem;
  width: min(var(--container), 92%);
  margin: 0 auto;
}
.section.alt {
  background: var(--bg-2);
  margin: 0;
  width: 100%;
  padding-left: 0; padding-right: 0;
}
.section.alt .section-inner {
  width: min(var(--container), 92%);
  margin: 0 auto;
  padding: 0 1.2rem;
}

.heading {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 1.2rem;
  margin-bottom: 3.6rem;
}
.heading .eyebrow {
  font-size: .82rem; font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  font-family: 'Inter', sans-serif;
}
.heading h2 {
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
  margin: 0;
  text-wrap: balance;
  max-width: 900px;
}
.heading .lead {
  color: var(--text-muted);
  max-width: 660px;
  font-size: 1.08rem; line-height: 1.7;
  margin: 0;
}

/* =====================================================
   Stats
   ===================================================== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  width: min(var(--container), 92%);
  margin: 4rem auto 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  text-align: center;
  padding: 2.4rem 1rem;
  border-right: 1px solid var(--border);
  transition: background .25s;
}
.stat:last-child { border-right: none; }
.stat:hover { background: var(--bg-3); }
.stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  margin-top: .8rem;
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
}

/* =====================================================
   Pillars (About)
   ===================================================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2rem;
  text-align: center;
  transition: border-color .3s, background .3s, transform .3s, box-shadow .3s;
}
.pillar:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}
.pillar-icon {
  width: 54px; height: 54px;
  margin: 0 auto 1.4rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(91, 147, 214, .12);
  border: 1px solid rgba(91, 147, 214, .28);
  color: var(--blue);
}
.pillar-icon svg { width: 26px; height: 26px; }
.pillar h3 {
  font-size: 1.05rem;
  margin: 0 0 .7rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .14em;
}
.pillar p {
  color: var(--text-muted);
  font-size: .98rem;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* =====================================================
   Service cards (Empresas / Pessoa Física)
   ===================================================== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}
.svc {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem 1.8rem 2rem;
  transition: border-color .3s, background .3s, transform .3s, box-shadow .3s;
  overflow: hidden;
}
.svc::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--blue);
  opacity: .5;
  transition: opacity .3s, width .3s;
}
.svc:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}
.svc:hover::before { opacity: 1; width: 4px; }
.svc-head {
  display: flex; align-items: baseline; gap: .7rem;
  margin-bottom: .7rem;
}
.svc-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  flex-shrink: 0;
  line-height: 1.3;
}
.svc h3 {
  font-size: 1.06rem;
  margin: 0;
  color: var(--text);
  line-height: 1.25;
}
.svc p {
  color: var(--text-muted);
  font-size: .94rem;
  line-height: 1.62;
  margin: 0;
}

/* =====================================================
   Section emblems (animated line-art)
   ===================================================== */
.svc-emblem {
  position: relative;
  display: flex; justify-content: center;
  margin: -1.2rem auto 3rem;
}
.svc-emblem.reveal { transform: none; }  /* draw-in handles the entrance, no slide */
.svc-emblem::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  width: 280px; height: 170px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(91, 147, 214, .18), transparent 72%);
  filter: blur(6px);
  z-index: 0;
  animation: emblem-glow 6.5s ease-in-out infinite;
}
.svc-emblem .emblem {
  position: relative; z-index: 1;
  height: clamp(94px, 13vw, 128px);
  width: auto;
  color: var(--blue);
  overflow: visible;
}
.svc-emblem .soft { stroke-opacity: .4; }
.svc-emblem .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.svc-emblem.in-view .draw {
  animation: emblem-draw 1.3s cubic-bezier(.6, 0, .2, 1) forwards;
  animation-delay: var(--d, 0s);
}
.svc-emblem .fade { opacity: 0; }
.svc-emblem.in-view .fade {
  animation: emblem-fade .7s ease forwards;
  animation-delay: var(--d, 0s);
}
.svc-emblem .floaty {
  transform-box: fill-box;
  transform-origin: center;
  animation: emblem-float 6s ease-in-out infinite;
}
.svc-emblem .sway {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: emblem-sway 5.5s ease-in-out infinite;
}
.svc-emblem .travel {
  transform-box: fill-box;
  opacity: 0;
  animation: emblem-travel 4.5s ease-in-out infinite;
}
@keyframes emblem-draw { to { stroke-dashoffset: 0; } }
@keyframes emblem-fade { to { opacity: 1; } }
@keyframes emblem-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(-3deg); }
}
@keyframes emblem-sway {
  0%, 100% { transform: rotate(2.4deg); }
  50% { transform: rotate(-2.4deg); }
}
@keyframes emblem-travel {
  0% { transform: translateX(0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateX(148px); opacity: 0; }
}
@keyframes emblem-glow {
  0%, 100% { opacity: .4; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: .85; transform: translate(-50%, -50%) scale(1.06); }
}

/* =====================================================
   Process
   ===================================================== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  transition: border-color .3s, background .3s, transform .3s;
}
.step:hover {
  border-color: var(--blue);
  background: var(--surface-2);
  transform: translateY(-4px);
}
.step-head {
  display: flex; align-items: baseline; gap: .9rem;
  margin-bottom: .9rem;
}
.step-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--blue);
  flex-shrink: 0;
  line-height: 1;
}
.step h4 {
  font-size: 1.18rem;
  margin: 0;
  color: var(--text);
  line-height: 1.15;
}
.step p {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.62;
  margin: 0;
}
@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* =====================================================
   Team (Advogados)
   ===================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  max-width: 980px;
  margin: 0 auto;
}
.lawyer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.lawyer:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}
.lawyer-head {
  background: linear-gradient(180deg, var(--bg-2), var(--bg-3));
  padding: 1.8rem 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.lawyer-head h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  font-size: 1.45rem;
  margin: 0 0 .4rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.lawyer-oab {
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
}
.lawyer-body { padding: 1.6rem 2rem 2rem; }
.lawyer-body p {
  color: var(--text-muted);
  font-size: .96rem;
  line-height: 1.65;
  margin: 0 0 1.4rem;
}
.lawyer-tags {
  display: flex; flex-wrap: wrap; gap: .5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}
.lawyer-tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(91, 147, 214, .1);
  border: 1px solid rgba(91, 147, 214, .24);
  padding: .35rem .7rem;
  border-radius: 999px;
}
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; max-width: 520px; } }

/* =====================================================
   Contact
   ===================================================== */
.contact { text-align: center; }
.contact-actions {
  display: flex; justify-content: center;
  margin-bottom: 3.6rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
}
.contact-item {
  background: var(--surface);
  padding: 1.8rem 1.4rem;
  text-align: center;
}
.contact-label {
  font-size: .67rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .8rem;
  font-weight: 600;
}
.contact-item a, .contact-item span {
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .03em;
  transition: color .2s;
  word-break: break-word;
}
.contact-item a:hover { color: var(--blue); }
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
  padding: 5rem 1.2rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  margin-top: 0;
}
.footer-inner {
  width: min(var(--container), 92%);
  margin: 0 auto;
  display: grid; gap: 3rem;
  grid-template-columns: 2fr 1fr 1.4fr 1.4fr;
}
.footer .brand-col p {
  color: var(--text-muted);
  margin: 1.3rem 0 0;
  max-width: 340px; line-height: 1.7;
  font-size: .95rem;
}
.footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: .78rem; letter-spacing: .14em;
  color: var(--text);
  margin: 0 0 1.2rem; font-weight: 700;
  text-transform: uppercase;
}
.footer ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .65rem;
}
.footer a, .footer li span {
  color: var(--text-muted);
  transition: color .2s;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .04em;
}
.footer a:hover { color: var(--blue); }
.footer-bottom {
  width: min(var(--container), 92%);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  color: var(--text-faint); font-size: .82rem;
}
.footer-bottom .muted { color: var(--text-faint); }

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer .brand-col { grid-column: span 2; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer .brand-col { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* =====================================================
   Mobile nav
   ===================================================== */
.hamburger {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(238, 242, 248, .16);
  background: rgba(238, 242, 248, .04);
  color: var(--text); cursor: pointer; padding: 0;
  transition: background .2s, border-color .2s;
}
.hamburger:hover { background: rgba(238, 242, 248, .08); border-color: var(--blue); }
.hamburger svg { width: 20px; height: 20px; }
.hamburger .icon-close { display: none; }
.hamburger.open .icon-open { display: none; }
.hamburger.open .icon-close { display: inline-block; }

@media (max-width: 920px) {
  .navbar .nav-inner { padding: .7rem 0; }
  .nav {
    position: fixed;
    top: 68px; left: 50%;
    transform: translateX(-50%) translateY(-12px);
    width: min(94vw, 420px);
    background: rgba(10, 22, 35, 0.97);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: .55rem;
    flex-direction: column;
    gap: 0;
    opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.open {
    opacity: 1; pointer-events: auto; visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .nav a {
    padding: .9rem 1rem; font-size: .88rem;
    border-radius: 8px;
  }
  .hamburger { display: inline-flex; }
}

@media (max-width: 640px) {
  .actions .btn.primary { display: none; }
  .logo-text { font-size: .76rem; }
  .hero { padding: 7rem 1rem 5rem; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .hero h1 .line-1 { white-space: normal; }
  .section { padding: 4rem 1rem; }
  .heading { margin-bottom: 2.6rem; }
  .heading h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .marquee-track { font-size: .82rem; }
  .svc, .pillar { padding: 1.7rem 1.5rem; }
}

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  #header-video { display: none; }
  .marquee-track { animation: none; }
}
