/* ==========================================================================
   Trendivyx — site styles
   ========================================================================== */

:root {
  --navy-950: #051327;
  --navy-900: #071A33;
  --navy-800: #0B2A55;
  --navy-700: #133A6E;
  --navy-600: #1F4D8A;
  --teal-600: #0B8580;
  --teal-500: #0E9F9A;
  --teal-400: #2CC5BD;
  --teal-300: #5EEAD4;
  --teal-50:  #EAFBF8;
  --amber-500: #F2A33A;
  --amber-50: #FFF6E8;
  --rose-500: #E5566F;

  --ink: #0F1B2D;
  --ink-2: #33435A;
  --muted: #5B6B82;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --bg: #FFFFFF;
  --bg-soft: #F5F8FB;
  --bg-tint: #EEF4FA;

  --font-head: "Plus Jakarta Sans", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 1px 3px rgba(15, 27, 45, .05);
  --shadow: 0 10px 30px -12px rgba(11, 42, 85, .18), 0 2px 6px rgba(11, 42, 85, .05);
  --shadow-lg: 0 30px 60px -20px rgba(11, 42, 85, .30);

  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--navy-800); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--teal-300); color: var(--navy-900); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Icons ---------- */
.ico {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico-sm { width: 18px; height: 18px; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-600);
  margin-bottom: 20px;
}
.icon-badge.navy { background: var(--bg-tint); color: var(--navy-700); }
.icon-badge.amber { background: var(--amber-50); color: #B86E0A; }
.icon-badge.rose { background: #FDECEF; color: var(--rose-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .97rem;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s, border-color .2s;
  white-space: nowrap; line-height: 1.2;
}
.btn .ico { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-primary { background: var(--navy-800); color: #fff; box-shadow: 0 8px 20px -8px rgba(11, 42, 85, .55); }
.btn-primary:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); }
.btn-accent { background: var(--teal-500); color: #fff; box-shadow: 0 8px 20px -8px rgba(14, 159, 154, .6); }
.btn-accent:hover { background: var(--teal-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--navy-800); color: var(--navy-800); background: #fff; }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: var(--teal-50); color: var(--navy-900); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--teal-600);
}
.link-arrow .ico { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover .ico { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the fixed mobile menu. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.nav-open .site-header::before { background: #fff; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 24px -16px rgba(11,42,85,.25); }
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-800); flex: none; }
.brand img { width: 36px; height: 36px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.38rem; letter-spacing: -0.03em; color: var(--navy-800); }
.brand-name em { font-style: normal; color: var(--teal-500); }
.brand:hover { color: var(--navy-800); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink-2);
  background: none; border: 0; cursor: pointer;
}
.nav-link:hover, .nav-link[aria-current="page"], .nav-link.is-active { color: var(--navy-800); background: var(--bg-tint); }
.nav-link .ico { width: 16px; height: 16px; transition: transform .2s; }
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%;
  width: 320px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .18s, transform .18s var(--ease), visibility .18s;
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto 0; height: 12px; }
.has-dropdown:hover .dropdown,
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-dropdown:hover .nav-link .ico,
.has-dropdown.is-open .nav-link .ico { transform: rotate(180deg); }
.dropdown a {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; border-radius: 10px; color: var(--ink-2);
}
.dropdown a:hover { background: var(--bg-soft); }
.dropdown a .ico { color: var(--teal-500); margin-top: 2px; }
.dropdown strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: .95rem; }
.dropdown span { display: block; font-size: .85rem; color: var(--muted); line-height: 1.4; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; padding: 0; position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--navy-800); border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 20px 24px 32px; background: #fff; overflow-y: auto;
    transform: translateX(100%); visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s;
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
  .dropdown {
    position: static; width: auto; transform: none; box-shadow: none; border: 0;
    padding: 0 0 0 8px; display: none; opacity: 1; visibility: visible;
  }
  .has-dropdown:hover .dropdown { transform: none; }
  .has-dropdown.is-open .dropdown { display: block; transform: none; }
  .nav-cta { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-sm { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section.tint { background: linear-gradient(180deg, var(--bg-tint), #fff); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.center .eyebrow::before { display: none; }
.lead { font-size: 1.15rem; color: var(--muted); line-height: 1.7; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.wide-left { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 960px) { .split, .split.wide-left { grid-template-columns: 1fr; gap: 40px; } }
@media (min-width: 961px) and (max-width: 1100px) { .split > .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .link-arrow { margin-top: 8px; }
.card-num {
  font-family: var(--font-head); font-weight: 800; font-size: .85rem; color: var(--teal-500);
  letter-spacing: .06em; margin-bottom: 14px; display: block;
}
.card.dark { background: var(--navy-900); border-color: var(--navy-800); }
.card.dark h3 { color: #fff; }
.card.dark p { color: #A9BAD3; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.check-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B8580' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.check-list.compact { gap: 8px; font-size: .95rem; }
.check-list.on-dark li, .on-dark .check-list li { color: #D2DDEC; }
.check-list.on-dark li::before, .on-dark .check-list li::before { background-color: rgba(94, 234, 212, .14); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: var(--bg-tint); color: var(--navy-700);
}
.pill.teal { background: var(--teal-50); color: var(--teal-600); }
.pill.amber { background: var(--amber-50); color: #9A5B06; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 112px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(44, 197, 189, .18), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(31, 77, 138, .10), transparent 60%),
    #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(11, 42, 85, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 42, 85, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--navy-700), var(--teal-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 560px; margin-bottom: 32px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; margin-bottom: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: .87rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.hero-badge b {
  background: var(--teal-500); color: #fff; font-size: .74rem; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 999px; text-transform: uppercase;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 36px; font-size: .9rem; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .ico { width: 18px; height: 18px; color: var(--teal-500); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 56px 0 80px; } }

/* Hero visual: agent workflow mockup */
.workflow-ui {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 20px;
}
.wf-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.wf-dots { display: flex; gap: 6px; }
.wf-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: block; }
.wf-title { font-family: var(--font-head); font-weight: 700; font-size: .86rem; color: var(--ink); }
.wf-status { font-size: .76rem; font-weight: 700; color: var(--teal-600); background: var(--teal-50); padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.wf-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.wf-steps { display: grid; gap: 10px; }
.wf-step {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center;
  padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-soft);
}
.wf-step .icon-badge { width: 40px; height: 40px; border-radius: 11px; margin: 0; }
.wf-step .icon-badge .ico { width: 20px; height: 20px; }
.wf-step strong { display: block; font-family: var(--font-head); font-size: .92rem; color: var(--ink); line-height: 1.3; }
.wf-step small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.wf-tag { font-size: .72rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.wf-tag.ok { color: var(--teal-600); border-color: #BDEBE5; background: var(--teal-50); }
.wf-tag.review { color: #9A5B06; border-color: #F6DDB4; background: var(--amber-50); }
.wf-extract {
  margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--navy-900); color: #CFE0F5;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .8rem; line-height: 1.7;
}
.wf-extract .k { color: var(--teal-300); }
.wf-extract .s { color: #FFD59A; }
.float-card {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 12px 14px; display: flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 600; color: var(--ink);
}
.float-card .ico { color: var(--teal-500); width: 20px; height: 20px; }
.float-card.one { left: -28px; bottom: -22px; }
.float-card.two { right: -20px; top: -18px; }
@media (max-width: 1100px) { .float-card.one { left: 8px; } .float-card.two { right: 8px; } }
@media (max-width: 520px) { .float-card { display: none; } .wf-step { grid-template-columns: 40px 1fr; } .wf-step .wf-tag { display: none; } }

/* ---------- Sector strip ---------- */
.strip { border-block: 1px solid var(--line); background: #fff; }
.strip .container { display: flex; align-items: center; gap: 32px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.strip-label { font-size: .85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.strip-items { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.strip-items span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: var(--navy-700); }
.strip-items .ico { width: 20px; height: 20px; color: var(--teal-500); }

/* ---------- Industry panels ---------- */
.industry {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 44px;
  color: #D2DDEC; min-height: 100%;
  display: flex; flex-direction: column;
}
.industry h3 { color: #fff; font-size: 1.6rem; }
.industry p { color: #B7C6DB; }
.industry.edu { background: linear-gradient(150deg, #0B2A55 0%, #133A6E 60%, #1F4D8A 100%); }
.industry.health { background: linear-gradient(150deg, #06343F 0%, #0B5C63 55%, #0E8580 100%); }
.industry .icon-badge { background: rgba(255,255,255,.1); color: var(--teal-300); }
.industry .btn { margin-top: auto; align-self: flex-start; }
.industry .check-list { margin-bottom: 28px; }
.industry::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 40px rgba(255,255,255,.025), 0 0 0 80px rgba(255,255,255,.02);
}

/* ---------- Process ---------- */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process::before {
  content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 16px);
}
.process-step { position: relative; text-align: center; padding: 0 8px; }
.process-step .num {
  width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  background: #fff; border: 2px solid var(--teal-400); color: var(--navy-800);
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
}
.process-step p { color: var(--muted); font-size: .95rem; }
.process-step .time { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--teal-600); background: var(--teal-50); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process::before { display: none; }
}
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ---------- Dark band ---------- */
.band-dark {
  position: relative; overflow: hidden;
  background: radial-gradient(800px 400px at 90% 0%, rgba(44,197,189,.18), transparent 60%), var(--navy-900);
  color: #C5D3E6;
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lead { color: #A9BAD3; }
.band-dark .eyebrow { color: var(--teal-300); }
.trust-item { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.trust-item .icon-badge { margin: 0; background: rgba(94,234,212,.1); color: var(--teal-300); width: 46px; height: 46px; flex: none; }
.trust-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.trust-item p { margin: 0; font-size: .93rem; color: #A9BAD3; }

/* ---------- Academy promo ---------- */
.academy-promo {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; overflow: hidden;
  border-radius: 28px; background: linear-gradient(135deg, #FFF6E8 0%, #EAFBF8 100%);
  border: 1px solid #F1E3CB;
}
.academy-promo .copy { padding: 56px; }
.academy-promo .visual {
  position: relative; padding: 40px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--navy-800), var(--teal-600));
}
.skill-stack { display: grid; gap: 12px; width: 100%; max-width: 340px; }
.skill-stack div {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
}
.skill-stack .bar { flex: none; width: 90px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.18); overflow: hidden; }
.skill-stack .bar i { display: block; height: 100%; border-radius: 6px; background: var(--teal-300); }
@media (max-width: 900px) { .academy-promo { grid-template-columns: 1fr; } .academy-promo .copy { padding: 36px 28px; } }

/* ---------- Region ---------- */
.region-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.region-list div {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 700; color: var(--ink);
}
.region-list .code {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--bg-tint); color: var(--navy-700); font-size: .8rem; letter-spacing: .04em;
}
.region-list small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .8rem; }
@media (max-width: 680px) { .region-list { grid-template-columns: 1fr 1fr; } }

/* ---------- CTA ---------- */
.cta-box {
  position: relative; overflow: hidden; border-radius: 28px; padding: 64px;
  background: linear-gradient(120deg, var(--navy-800) 0%, var(--navy-700) 45%, var(--teal-600) 100%);
  color: #D7E3F2; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-box h2 { color: #fff; margin-bottom: 10px; }
.cta-box p { margin: 0; color: #C3D3E8; font-size: 1.08rem; }
.cta-box::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(94,234,212,.35), transparent 65%);
}
.cta-box > * { position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-box { grid-template-columns: 1fr; padding: 40px 28px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; padding: 72px 0 80px;
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(44,197,189,.16), transparent 60%),
    linear-gradient(180deg, var(--bg-tint), #fff);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); max-width: 860px; }
.page-hero .lead { max-width: 720px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--navy-800); }
.crumbs span[aria-hidden] { color: var(--line-2); }

/* ---------- Capability detail ---------- */
.capability { padding: 64px 0; border-top: 1px solid var(--line); }
.capability:first-child { border-top: 0; padding-top: 0; }
.capability .split { align-items: start; }
.cap-panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.cap-panel h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 16px; }
.cap-panel + .cap-panel { margin-top: 16px; }
.usecase { padding: 14px 0; border-top: 1px dashed var(--line-2); }
.usecase:first-of-type { border-top: 0; padding-top: 0; }
.usecase strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: .98rem; }
.usecase span { font-size: .92rem; color: var(--muted); }

/* ---------- Stats / facts (qualitative) ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.facts div { padding: 28px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts strong { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--navy-800); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 6px; }
.facts span { color: var(--muted); font-size: .92rem; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(3) { border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts div { border-left: 0; border-top: 1px solid var(--line); } .facts div:first-child { border-top: 0; } }

/* ---------- Programs (Academy) ---------- */
.program { display: flex; flex-direction: column; }
.program .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.program ul { margin-top: auto; }
.program .who { font-size: .85rem; font-weight: 700; color: var(--teal-600); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }

/* ---------- Jobs ---------- */
.job {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  padding: 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.job:hover { border-color: var(--teal-400); box-shadow: var(--shadow); }
.job h3 { margin: 0 0 6px; font-size: 1.1rem; }
.job .pill-row { gap: 6px; }
.jobs { display: grid; gap: 12px; }
@media (max-width: 640px) { .job { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px;
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--navy-700); font-weight: 600; transition: transform .2s;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 28px 22px; } }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field label .req { color: var(--rose-500); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .97rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(14,159,154,.14); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--rose-500); }
.field .err { display: none; color: var(--rose-500); font-size: .82rem; margin-top: 5px; }
.field.has-error .err { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--teal-500); flex: none; }
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.form-success {
  display: none; padding: 16px 18px; border-radius: 12px; background: var(--teal-50); color: var(--teal-600);
  font-weight: 600; margin-top: 18px; border: 1px solid #BDEBE5;
}
.form-success.show { display: block; }

.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-top: 1px solid var(--line); }
.contact-item:first-of-type { border-top: 0; }
.contact-item .icon-badge { margin: 0; width: 46px; height: 46px; flex: none; }
.contact-item h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-item p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin-bottom: .4em; }
.notice { padding: 16px 20px; border-radius: 12px; background: var(--amber-50); border: 1px solid #F6DDB4; color: #7A4A06; font-size: .93rem; margin-bottom: 32px; }

/* ---------- Values / team ---------- */
.value { padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.value h3 { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.value h3 .ico { color: var(--teal-500); }
.value p { color: var(--muted); margin: 0; }
.quote {
  font-family: var(--font-head); font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 700; line-height: 1.4;
  color: var(--navy-800); letter-spacing: -0.015em; margin: 0;
}
.quote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--teal-400); margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #93A5BF; padding: 80px 0 0; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #B4C3D8; }
.site-footer a:hover { color: var(--teal-300); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .ico { width: 18px; height: 18px; color: var(--teal-300); margin-top: 3px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: .86rem; color: #7487A3;
}
.footer-bottom nav { display: flex; gap: 20px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 80px 24px; }
.notfound .code {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 14vw, 9rem); line-height: 1;
  background: linear-gradient(100deg, var(--navy-700), var(--teal-400)); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 8px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; } .mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
