/* ===== LOCAL INTER (variable woff2, weights 400–800) ===== */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter/inter-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter/inter-greek-ext.woff2") format("woff2");
  unicode-range: U+1F00-1FFF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter/inter-greek.woff2") format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter/inter-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/inter/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== THEME TOKENS ===== */
:root {
  --cv-navy: #071a3a;
  --cv-navy-2: #0b2a5b;
  --cv-blue: #0a5cff;
  --cv-cyan: #22c7f0;
  --cv-text: #12203a;
  --cv-muted: #5d6b82;
  --cv-soft: #f3f6fb;
  --cv-line: #e3e9f3;
  --cv-radius: 10px;

  /* map theme onto Bootstrap */
  --bs-primary: var(--cv-blue);
  --bs-primary-rgb: 10, 92, 255;
  --bs-body-font-family: "Inter", system-ui, sans-serif;
  --bs-body-color: var(--cv-text);
  --bs-link-color: var(--cv-blue);
}

/* ===== GLOBAL TYPOGRAPHY (fluid, responsive) ===== */
body {
  font-family: var(--bs-body-font-family);
  color: var(--cv-text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; color: var(--cv-navy); }
h1 { font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.25rem); }
h3 { font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem); line-height: 1.3; }
p  { font-size: 1.05rem; line-height: 1.7; color: var(--cv-muted); }

.text-gradient {
  background: linear-gradient(110deg, #7de8ff 0%, var(--cv-cyan) 45%, #9fd4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cv-blue);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  opacity: .7;
  flex: none;
}

/* ===== BUTTONS ===== */
.btn { font-weight: 600; border-radius: 8px; padding: .8rem 1.4rem; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { --bs-btn-bg: var(--cv-blue); --bs-btn-border-color: var(--cv-blue); --bs-btn-hover-bg: #0848c9; --bs-btn-hover-border-color: #0848c9; box-shadow: 0 8px 20px rgba(10, 92, 255, .22); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(10, 92, 255, .3); }
.btn-outline-light {
  border-width: 1px;
  border-color: rgba(255,255,255,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(255,255,255,.04);
}
.btn-outline-light:hover { color: var(--cv-navy); background: #fff; border-color: #fff; }

/* ===== NAV ===== */
.site-nav.navbar {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  padding-top: .55rem;
  padding-bottom: .55rem;
  min-height: 64px;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-nav.navbar.is-scrolled {
  background: rgba(255, 255, 255, .97) !important;
  border-bottom-color: rgba(227, 233, 243, .95);
  box-shadow: 0 8px 22px rgba(7, 26, 58, .06);
  padding-top: .4rem;
  padding-bottom: .4rem;
}
.navbar-brand {
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--cv-navy);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-right: .75rem;
  transition: opacity .2s ease, transform .2s ease;
}
.navbar-brand:hover { opacity: .88; transform: translateY(-1px); }
.navbar-brand img { height: 36px; width: auto; display: block; }
.footer-brand img { height: 40px; width: auto; display: block; }
@media (max-width: 575.98px) {
  .navbar-brand img { height: 32px; }
  .footer-brand img { height: 34px; }
}
.site-nav .navbar-nav {
  flex-wrap: nowrap;
  align-items: center;
}
.nav-link {
  position: relative;
  font-size: .86rem;
  font-weight: 550;
  letter-spacing: .01em;
  color: #2a3a56;
  white-space: nowrap;
  padding: .4rem .55rem !important;
  transition: color .2s ease, box-shadow .25s ease;
  box-shadow: inset 0 0 0 0 transparent;
}
.nav-link .bi {
  font-size: .95rem;
  line-height: 1;
  vertical-align: -0.08em;
  opacity: .78;
  transition: opacity .2s ease, color .2s ease;
}
.nav-link:hover,
.nav-link:focus { color: var(--cv-blue); }
.nav-link:hover .bi,
.nav-link.active .bi { opacity: 1; }
/* Underline via box-shadow so it never fights Bootstrap's dropdown caret ::after */
.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  box-shadow: inset 0 -2px 0 0 var(--cv-blue);
}
.nav-link.active { color: var(--cv-blue); font-weight: 650; }
.nav-cta {
  padding: .48rem .95rem !important;
  font-size: .84rem;
  letter-spacing: .02em;
  box-shadow: 0 6px 14px rgba(10, 92, 255, .16);
  white-space: nowrap;
}
.nav-cta .bi {
  font-size: .95rem;
  vertical-align: -0.08em;
}

/* Mid desktop: hide nav icons so the bar never wraps/grows */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-nav .nav-link .bi { display: none; }
  .site-nav .nav-link { padding: .4rem .45rem !important; font-size: .82rem; }
  .site-nav .nav-cta .bi { display: none; }
}
.navbar-toggler { border: 0; padding: .65rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(10,92,255,.18); }
.navbar-toggler-icon {
  width: 1.5rem;
  height: 1.1rem;
  position: relative;
  background-image: none !important;
  border-top: 2px solid var(--cv-navy);
  transition: border-color .2s ease;
}
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cv-navy);
  transition: top .2s ease, transform .2s ease;
}
.navbar-toggler-icon::before { top: .34rem; }
.navbar-toggler-icon::after { top: .76rem; }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon { border-top-color: transparent; }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before { top: .42rem; transform: rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after { top: .42rem; transform: rotate(-45deg); }
.dropdown-menu {
  margin-top: 0 !important;
  padding: .5rem;
  border: 1px solid rgba(227, 233, 243, .95);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(7, 26, 58, .1);
}

/* Desktop: CSS-only hover (no JS show/hide) */
@media (min-width: 992px) {
  .site-nav .nav-item.dropdown {
    position: relative;
  }
  /* Invisible hit area between toggle and menu */
  .site-nav .nav-item.dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: .75rem;
    z-index: 1000;
  }
  .site-nav .nav-item.dropdown > .dropdown-menu {
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    top: calc(100% + .35rem);
    transform: translateY(.2rem);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  }
  .site-nav .nav-item.dropdown:hover > .dropdown-menu,
  .site-nav .nav-item.dropdown:focus-within > .dropdown-menu,
  .site-nav .nav-item.dropdown > .dropdown-menu.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .site-nav .nav-item.dropdown:hover > .dropdown-toggle,
  .site-nav .nav-item.dropdown:focus-within > .dropdown-toggle {
    color: var(--cv-blue);
    box-shadow: inset 0 -2px 0 0 var(--cv-blue);
  }
}
.dropdown-item {
  border-radius: 8px;
  padding: .55rem .75rem;
  font-size: .88rem;
  color: #2a3a56;
  transition: background-color .15s ease, color .15s ease, padding-left .15s ease;
}
.dropdown-item:hover,
.dropdown-item:focus {
  background: #eef3ff;
  color: var(--cv-navy);
  padding-left: .95rem;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(2.75rem, 5vw, 4.5rem) 0 clamp(3.25rem, 6vw, 5rem);
  min-height: min(58vh, 560px);
  display: flex;
  align-items: center;
  background: #061530;
}
.hero-media {
  position: absolute;
  inset: -3% -2%;
  background:
    url("../images/corevia-hero-team.png") 72% center / cover no-repeat;
  transform: scale(1.03);
  animation: cv-hero-drift 24s ease-in-out alternate infinite;
  z-index: 0;
  filter: saturate(1.05) contrast(1.02);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* left text scrim — keeps copy crisp, team visible on right */
    linear-gradient(100deg,
      rgba(6, 21, 48, .94) 0%,
      rgba(7, 26, 58, .88) 28%,
      rgba(7, 26, 58, .55) 48%,
      rgba(7, 26, 58, .22) 68%,
      rgba(7, 26, 58, .08) 100%),
    /* top edge polish */
    linear-gradient(180deg, rgba(6, 21, 48, .45) 0%, transparent 28%),
    /* bottom depth into next section */
    linear-gradient(180deg, transparent 55%, rgba(6, 21, 48, .55) 100%);
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 70% at 18% 55%, rgba(10, 92, 255, .22), transparent 62%),
    radial-gradient(ellipse 40% 50% at 78% 35%, rgba(34, 199, 240, .12), transparent 60%);
  mix-blend-mode: screen;
  opacity: .85;
}
.hero-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.04),
    inset 40px 0 80px rgba(6, 21, 48, .35),
    inset 0 -80px 100px rgba(6, 21, 48, .28);
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.5rem;
  background: linear-gradient(180deg, transparent, #fff);
  z-index: 3;
  pointer-events: none;
}
.hero .container { z-index: 4; width: 100%; }
.hero-panel {
  position: relative;
  max-width: 34rem;
  padding: 1.15rem 1.25rem 1.25rem;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(8, 24, 52, .55), rgba(8, 24, 52, .28));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, .2),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
}
.hero-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--cv-cyan), var(--cv-blue));
  opacity: .9;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.85rem, 1.35rem + 2vw, 2.85rem);
  letter-spacing: -0.04em;
  text-wrap: balance;
  text-shadow: 0 10px 36px rgba(0,0,0,.28);
}
.hero p {
  color: #d9e5f8;
  max-width: 34rem;
  font-size: clamp(1.02rem, .95rem + .35vw, 1.12rem);
  line-height: 1.75;
  text-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.hero .eyebrow { color: rgba(255,255,255,.88); }
.hero .eyebrow::before { background: var(--cv-cyan); opacity: .95; }
.hero-actions .btn { min-width: 10.5rem; padding: .7rem 1.15rem; }
.hero-content .hero-panel {
  animation: cv-rise .9s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes cv-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cv-hero-drift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1%, -.6%, 0); }
}

/* ===== SECTIONS ===== */
.section { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
.section-soft { background: var(--cv-soft); }

/* service / info cards */
.cv-card {
  background: #fff;
  border: 1px solid var(--cv-line);
  border-radius: var(--cv-radius);
  padding: 1.6rem;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cv-card:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 92, 255, .22);
  box-shadow: 0 16px 40px rgba(7, 26, 58, .08);
}
.cv-card .icon { font-size: 1.8rem; color: var(--cv-blue); display: block; margin-bottom: .85rem; }
.cv-card p { font-size: .9rem; margin-bottom: .85rem; }
.cv-card a { font-size: .9rem; font-weight: 600; text-decoration: none; }

/* process */
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--cv-blue); color: #fff; font-size: .8rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-bottom: .7rem; box-shadow: 0 6px 14px rgba(10, 92, 255, .25); }
.step h3 { font-size: .95rem; }
.step p { font-size: .85rem; margin: 0; }

/* feature icon blocks */
.feature .icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(160deg, #eef3ff, #e4ecff);
  color: var(--cv-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: .85rem;
  box-shadow: inset 0 0 0 1px rgba(10, 92, 255, .08);
}
.feature p { font-size: .9rem; }

/* AI band */
.ai-band {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #040f24;
  padding: clamp(4rem, 7vw, 6rem) 0;
}
.ai-band-media {
  position: absolute;
  inset: 0;
  background: url("../images/corevia-ai-network.png") 78% center / cover no-repeat;
  z-index: 0;
}
.ai-band-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(100deg,
      rgba(4, 15, 36, .94) 0%,
      rgba(4, 15, 36, .82) 34%,
      rgba(4, 15, 36, .42) 58%,
      rgba(4, 15, 36, .18) 100%),
    linear-gradient(180deg, rgba(4, 15, 36, .35) 0%, transparent 30%, rgba(4, 15, 36, .45) 100%);
}
.ai-band-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 60% at 82% 50%, rgba(34, 199, 240, .16), transparent 65%),
    radial-gradient(ellipse 40% 55% at 20% 60%, rgba(10, 92, 255, .18), transparent 60%);
  mix-blend-mode: screen;
}
.ai-band .container { z-index: 2; }
.ai-band h2 {
  color: #fff;
  letter-spacing: -0.03em;
  text-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.ai-band-copy p {
  color: #c8d7f0;
  max-width: 32rem;
  text-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.ai-band .eyebrow {
  color: rgba(125, 232, 255, .92);
}
.ai-band .eyebrow::before { background: var(--cv-cyan); }
.ai-band-panel {
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(8, 28, 58, .72), rgba(6, 20, 42, .48));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
}
.ai-band-panel-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(125, 232, 255, .85);
  margin: 0 0 .85rem;
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .42rem 0;
  font-size: .95rem;
  color: #dbe5f6;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.check-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.check-list i {
  color: var(--cv-cyan);
  margin-top: .12rem;
  flex: none;
  font-size: 1rem;
}

@media (max-width: 991.98px) {
  .ai-band-media { background-position: 65% center; }
  .ai-band-shade {
    background:
      linear-gradient(180deg, rgba(4,15,36,.82) 0%, rgba(4,15,36,.72) 40%, rgba(4,15,36,.88) 100%),
      linear-gradient(100deg, rgba(4,15,36,.7), rgba(4,15,36,.3));
  }
}

/* CTA */
.cta { background: linear-gradient(120deg, var(--cv-blue), #0860e8); color: #fff; padding: 2.75rem 0; }
.cta h3, .cta p { color: #fff; margin: 0; }
.cta .btn { background: #fff; color: var(--cv-blue); border-radius: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.12); }

/* footer */
.footer {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 10% 0%, rgba(34, 199, 240, .08), transparent 55%),
    linear-gradient(180deg, #081f45 0%, var(--cv-navy) 40%, #061530 100%);
  color: #b8c6e0;
  padding: 4.25rem 0 0;
  font-size: .88rem;
  overflow: hidden;
}
.footer-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--cv-cyan) 20%, var(--cv-blue) 55%, transparent 100%);
  opacity: .85;
}
.footer-brand { margin-bottom: 1rem; }
.footer-tagline {
  color: #9eb0cd;
  max-width: 18rem;
  font-size: .92rem;
  line-height: 1.65;
  margin: 0;
}
.footer h3 {
  color: #fff;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  position: relative;
  padding-bottom: .65rem;
}
.footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1.5rem;
  height: 1px;
  background: var(--cv-cyan);
  opacity: .7;
}
.footer a {
  color: #b8c6e0;
  text-decoration: none;
  display: block;
  padding: .28rem 0;
  transition: color .2s ease, transform .2s ease;
}
.footer a:hover { color: #fff; transform: translateX(2px); }
.footer-contact { display: grid; gap: .85rem; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  color: #c5d2e8;
  margin: 0;
  padding: 0;
  transform: none !important;
}
.footer-contact-item:hover { color: #fff; }
.footer-contact-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--cv-cyan);
  font-size: .95rem;
}
.footer-bottom {
  margin-top: 3rem;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 1.25rem;
  color: #8fa2c0;
  font-size: .82rem;
}
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a {
  display: inline;
  padding: 0;
  color: #8fa2c0;
  transform: none !important;
}
.footer-legal a:hover { color: #fff; }

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 767.98px) {
  .hero {
    min-height: auto;
    padding: 2.25rem 0 3rem;
  }
  .hero-media {
    background-position: 62% center;
    animation: none;
    transform: none;
  }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(6,21,48,.82) 0%, rgba(6,21,48,.78) 45%, rgba(6,21,48,.9) 100%),
      linear-gradient(100deg, rgba(6,21,48,.75) 0%, rgba(6,21,48,.3) 100%);
  }
  .hero-panel {
    max-width: none;
    padding: 1rem 1rem 1.1rem;
    background: linear-gradient(145deg, rgba(8, 24, 52, .78), rgba(8, 24, 52, .55));
  }
  .hero p { font-size: .98rem; }
  .hero::after { height: 2.5rem; }
  .section { padding: 2.75rem 0; }
  .ai-band { padding: 2.75rem 0; }
  .navbar .btn { margin-top: .75rem; }
  .hero-actions { gap: .65rem !important; }
  .hero-actions .btn { min-width: 0; width: 100%; padding: .7rem 1rem; }
  .page-hero { padding: 2.25rem 0; }
  .page-hero h1 { font-size: clamp(1.55rem, 1.2rem + 2vw, 2.1rem); }
}

/* ===== INNER PAGES ===== */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(2.25rem, 4vw, 3.25rem) 0;
  background: var(--cv-navy);
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../images/corevia-hero-team.png") 72% center / cover no-repeat;
  transform: scale(1.03);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(7,26,58,.95) 0%, rgba(11,42,91,.78) 55%, rgba(7,26,58,.55) 100%),
    linear-gradient(180deg, rgba(7,26,58,.15), transparent 40%, rgba(7,26,58,.35));
}
.page-hero .container > * {
  animation: cv-rise .75s cubic-bezier(.22, 1, .36, 1) both;
}
.page-hero .container > *:nth-child(2) { animation-delay: .08s; }
.page-hero .container > *:nth-child(3) { animation-delay: .16s; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 1.25rem + 2.4vw, 2.9rem);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.page-hero p {
  color: #d7e3f7;
  max-width: 38rem;
  margin: .9rem 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
}
.breadcrumb {
  --bs-breadcrumb-divider-color: rgba(159, 179, 214, .75);
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.breadcrumb a { color: #cfe0ff; text-decoration: none; transition: color .2s ease; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-item.active { color: rgba(255,255,255,.78); }
.dropdown-item:active { background: var(--cv-blue); color: #fff; }

.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: var(--cv-line); }
.tl-item { display: flex; gap: 1.25rem; padding-bottom: 1.75rem; position: relative; }
.tl-item .step-num { flex: none; margin: 0; }

.accordion { --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(10,92,255,.2); --bs-accordion-active-bg: #e9f0ff; --bs-accordion-active-color: var(--cv-navy); }
.accordion-header { font-size: 1rem; }
.accordion-button { font-weight: 600; }

.form-label { font-weight: 600; font-size: .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--cv-blue); box-shadow: 0 0 0 .2rem rgba(10,92,255,.15); }
.cv-card h3 { margin-bottom: .5rem; }
:focus-visible { outline: 2px solid var(--cv-blue); outline-offset: 2px; }

/* ===== LEGAL PAGES (Terms / Privacy) ===== */
.page-hero-legal { padding-bottom: clamp(2.75rem, 4vw, 3.5rem); }
.page-hero-legal p { max-width: 42rem; }

.legal-page {
  background:
    linear-gradient(180deg, #eef3fb 0%, var(--cv-soft) 18%, #fff 55%);
  padding: 0 0 clamp(3.5rem, 6vw, 5rem);
}

.legal-shell {
  --legal-pad: clamp(1rem, 2.5vw, 2.5rem);
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--legal-pad) !important;
  padding-right: var(--legal-pad) !important;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  padding-top: 2rem;
}

.legal-toc {
  position: sticky;
  top: 6.25rem;
  z-index: 2;
}

.legal-toc-inner {
  background: #fff;
  border: 1px solid var(--cv-line);
  border-radius: 14px;
  padding: 1.15rem 1rem 1.25rem;
  box-shadow: 0 12px 32px rgba(7, 26, 58, .05);
}

.legal-toc-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cv-blue);
  margin: 0 .35rem .85rem;
}

.legal-toc-nav {
  display: flex;
  flex-direction: column;
  max-height: min(58vh, 28rem);
  overflow: auto;
  padding-right: .15rem;
  scrollbar-width: thin;
}

.legal-toc-nav a {
  display: block;
  text-decoration: none;
  color: #44556f;
  font-size: .82rem;
  line-height: 1.35;
  padding: .45rem .55rem;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.legal-toc-nav a:hover {
  background: #f3f7ff;
  color: var(--cv-navy);
}

.legal-toc-nav a.is-active {
  background: #eef3ff;
  color: var(--cv-blue);
  border-left-color: var(--cv-blue);
  font-weight: 600;
}

.legal-toc-aside {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cv-line);
  font-size: .82rem;
  color: var(--cv-muted);
}

.legal-toc-aside strong { color: var(--cv-navy); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.legal-toc-link {
  display: block;
  color: var(--cv-blue);
  text-decoration: none;
  font-weight: 600;
  padding: .2rem 0;
}
.legal-toc-link:hover { color: var(--cv-navy); }

.legal-body {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--cv-line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(7, 26, 58, .05);
  overflow: hidden;
}

.legal-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(105deg, #071a3a, #0b2a5b);
  color: #fff;
}

.legal-meta-k {
  display: block;
  font-size: .65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: .15rem;
}

.legal-meta-v {
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
}

.legal-intro {
  padding: 1.5rem 1.5rem 1.25rem;
  background: linear-gradient(180deg, #f7f9fd, #fff);
  border-bottom: 1px solid var(--cv-line);
}

.legal-intro p {
  max-width: none;
  margin-bottom: .85rem;
  color: #3d4d66;
  font-size: 1.05rem;
  line-height: 1.7;
}
.legal-intro p:last-child { margin-bottom: 0; }

.legal-content {
  padding: 1.25rem 1.5rem 2rem;
  columns: 1;
}

.legal-content h2 {
  scroll-margin-top: 6.5rem;
  font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem);
  margin: 2rem 0 .9rem;
  padding: .85rem 0 .85rem 1rem;
  border-left: 3px solid var(--cv-blue);
  background: linear-gradient(90deg, rgba(10, 92, 255, .06), transparent 70%);
  color: var(--cv-navy);
}

.legal-content h2:first-child { margin-top: .35rem; }

.legal-content h3 {
  font-size: 1.05rem;
  margin: 1.35rem 0 .55rem;
  color: var(--cv-navy);
}

.legal-content p,
.legal-content li {
  color: #4a5a72;
  line-height: 1.72;
  font-size: 1.02rem;
}

.legal-content p { margin-bottom: .85rem; max-width: none; }

.legal-content ul {
  padding-left: 1.15rem;
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem 1.5rem;
}

.legal-content li + li { margin-top: 0; }

.legal-content ul li {
  padding-left: .15rem;
}

@media (max-width: 991.98px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-top: 1.25rem;
  }
  .legal-toc { position: static; }
  .legal-toc-nav {
    max-height: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .15rem .5rem;
  }
  .legal-content ul { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
  .legal-toc-nav { grid-template-columns: 1fr; }
  .legal-intro,
  .legal-content { padding-left: 1.1rem; padding-right: 1.1rem; }
  .legal-meta-bar { padding: .95rem 1.1rem; }
}

@media (max-width: 991.98px) {
  .site-nav .navbar-nav { flex-wrap: wrap; }
  .navbar .navbar-collapse.collapse,
  .navbar .navbar-collapse.collapsing {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    width: min(88vw, 340px);
    height: calc(100vh - 64px) !important;
    height: calc(100dvh - 64px) !important;
    padding: 1.25rem;
    overflow-y: auto;
    background: #fff;
    border-left: 1px solid var(--cv-line);
    box-shadow: -1rem 0 2.5rem rgba(7,26,58,.14);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .28s ease, visibility .28s ease;
    z-index: 1040;
  }
  .navbar .navbar-collapse.show {
    transform: translateX(0);
    visibility: visible;
  }
  .navbar .navbar-nav {
    width: 100%;
    gap: 0 !important;
  }
  .navbar .nav-link {
    padding: .85rem .25rem !important;
    border-bottom: 1px solid var(--cv-line);
    box-shadow: none !important;
  }
  .navbar .nav-link.active {
    border-bottom: 1px solid var(--cv-line);
    color: var(--cv-blue);
  }
  .navbar .navbar-collapse .dropdown-menu {
    border: 0;
    padding: .25rem 0 .75rem 1rem;
    box-shadow: none;
  }
  .navbar .navbar-collapse > .btn {
    width: 100%;
    margin-top: 1rem !important;
    padding: .8rem 1rem;
  }
  .navbar-toggler { position: relative; z-index: 1050; }
}

@media (prefers-reduced-motion: reduce) {
  .navbar-toggler-icon,
  .navbar-toggler-icon::before,
  .navbar-toggler-icon::after,
  .navbar .navbar-collapse.collapse,
  .navbar .navbar-collapse.collapsing,
  .btn,
  .cv-card,
  .reveal,
  .hero-content > *,
  .hero-content .hero-panel,
  .page-hero .container > *,
  .hero-media {
    transition: none !important;
    animation: none !important;
  }
  .hero-media { transform: none; filter: none; }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .cv-card:hover { transform: none; }
  .footer a:hover { transform: none; }
}
