/* ==========================================================================
   Agentic AI @ KFUPM — site stylesheet
   Single source of truth for the whole site. Edit design tokens below.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — KFUPM green family */
  --brand-50:  #e9f4ee;
  --brand-100: #cfe8d9;
  --brand-300: #6fbf95;
  --brand-500: #046a38;
  --brand-600: #035a2f;
  --brand-700: #024424;
  --teal-500:  #0e8f8a;
  --gold-500:  #b8860b;

  /* Semantic — light theme (default) */
  --bg:           #ffffff;
  --bg-soft:      #f4f8f5;
  --bg-inset:     #eef4f0;
  --surface:      #ffffff;
  --surface-2:    #f8fbf9;
  --border:       #e0e8e3;
  --border-strong:#c9d6ce;
  --text:         #0d1a13;
  --text-2:       #34473c;
  --muted:        #5d6f65;
  --brand:        var(--brand-500);
  --brand-hover:  var(--brand-600);
  --brand-ink:    var(--brand-700);
  --brand-soft:   var(--brand-50);
  --accent:       var(--teal-500);
  --gold:         var(--gold-500);
  --on-brand:     #ffffff;

  --shadow-sm: 0 1px 2px rgba(6, 32, 20, .06), 0 1px 3px rgba(6, 32, 20, .05);
  --shadow-md: 0 4px 12px rgba(6, 32, 20, .07), 0 2px 4px rgba(6, 32, 20, .04);
  --shadow-lg: 0 18px 40px rgba(6, 32, 20, .12), 0 4px 10px rgba(6, 32, 20, .06);

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans Arabic", sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --wrap: 1160px;
  --wrap-narrow: 760px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --nav-h: 68px;
  --section-y: clamp(3.5rem, 7vw, 6.5rem);
}

html[data-theme="dark"] {
  --bg:           #08120e;
  --bg-soft:      #0c1a14;
  --bg-inset:     #0f211a;
  --surface:      #10201a;
  --surface-2:    #142720;
  --border:       #1e352b;
  --border-strong:#2b4a3c;
  --text:         #e9f2ec;
  --text-2:       #c2d4c9;
  --muted:        #93a99c;
  --brand:        #4cc98c;
  --brand-hover:  #6fd9a4;
  --brand-ink:    #b7ecd0;
  --brand-soft:   rgba(76, 201, 140, .12);
  --accent:       #3fc7bd;
  --gold:         #d9ad3c;
  --on-brand:     #04150d;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, .45);
  --shadow-lg: 0 20px 46px rgba(0, 0, 0, .55);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); letter-spacing: -0.01em; }
h4 { font-size: 1.02rem; letter-spacing: 0; }

p { margin: 0 0 1.1em; color: var(--text-2); }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 3px; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.35em; color: var(--text-2); }
li { margin-bottom: .5em; }
li:last-child { margin-bottom: 0; }

strong { color: var(--text); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }

code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .1em .4em;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand);
  color: var(--on-brand);
  padding: .7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; text-decoration: none; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.narrow { max-width: var(--wrap-narrow); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.center { text-align: center; }
.center p { margin-inline: auto; }
.stack > * + * { margin-top: 1.1rem; }
.mt-lg { margin-top: clamp(2rem, 4vw, 3rem); }
.mt-md { margin-top: 1.6rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.center .eyebrow { justify-content: center; }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 68ch; }
.section-head { max-width: 70ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.center.section-head, .section-head.center { margin-inline: auto; }

/* --------------------------------------------------------------------------
   4. Buttons & pills
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  padding: .85rem 1.35rem;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease,
              border-color .18s ease, box-shadow .18s ease, color .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--brand-hover); color: var(--on-brand); box-shadow: var(--shadow-lg); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.btn--onbrand { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--onbrand:hover { background: #fff; color: var(--brand-700); border-color: #fff; }

.btn--solid-light { background: #fff; color: var(--brand-700); }
.btn--solid-light:hover { background: var(--brand-50); color: var(--brand-700); }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.center .btn-row { justify-content: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
  padding: .32rem .75rem;
  border-radius: 100px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  border: 1px solid var(--border);
}
html[data-theme="dark"] .pill { color: var(--brand); }
.pill--muted { background: var(--bg-inset); color: var(--muted); }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header { background: var(--bg); }
}
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--nav-h);
}

.brand { display: flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 38px; height: 38px;
  flex: none;
  object-fit: contain;
  transition: transform .2s ease;
}
.brand:hover .brand__mark { transform: scale(1.06); }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -.02em;
  color: var(--text);
}
.brand__sub { font-size: .7rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: .15rem; }
.nav__link {
  display: block;
  padding: .5rem .7rem;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 550;
  color: var(--text-2);
  white-space: nowrap;
}
.nav__link:hover { background: var(--bg-inset); color: var(--text); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }

.nav__item { position: relative; }
.nav__toggle-sub {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font: inherit;
  font-size: .92rem;
  font-weight: 550;
  color: var(--text-2);
  background: none;
  border: 0;
  padding: .5rem .7rem;
  border-radius: 8px;
  cursor: pointer;
}
.nav__toggle-sub:hover { background: var(--bg-inset); color: var(--text); }
.nav__toggle-sub .chev { transition: transform .2s ease; }
.nav__item.is-open > .nav__toggle-sub .chev { transform: rotate(180deg); }
.nav__item.has-current > .nav__toggle-sub { color: var(--brand); background: var(--brand-soft); }

.nav__sub {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 268px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  display: none;
  z-index: 120;
}
.nav__item.is-open > .nav__sub { display: block; }
@media (hover: hover) and (min-width: 981px) {
  .nav__item:hover > .nav__sub, .nav__item:focus-within > .nav__sub { display: block; }
}
.nav__sub a {
  display: block;
  padding: .55rem .7rem;
  border-radius: 9px;
  color: var(--text);
  font-size: .92rem;
  font-weight: 550;
}
.nav__sub a:hover { background: var(--brand-soft); color: var(--brand-ink); text-decoration: none; }
html[data-theme="dark"] .nav__sub a:hover { color: var(--brand); }
.nav__sub a span { display: block; font-size: .78rem; font-weight: 450; color: var(--muted); margin-top: .1rem; }

.nav__actions { display: flex; align-items: center; gap: .5rem; }
.nav__mobile-cta { display: none; }
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  flex: none;
}
.icon-btn:hover { background: var(--bg-inset); color: var(--brand); border-color: var(--border-strong); }
.nav__burger { display: none; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (max-width: 980px) {
  .nav__burger { display: grid; }
  .nav__cta { display: none; }
  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: .8rem clamp(1.1rem, 4vw, 2rem) 1.4rem;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__link, .nav__toggle-sub { padding: .7rem .6rem; font-size: 1rem; width: 100%; }
  .nav__toggle-sub { justify-content: space-between; }
  .nav__sub {
    position: static;
    display: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--border);
    border-radius: 0;
    margin: .2rem 0 .5rem .6rem;
    padding: 0 0 0 .4rem;
    min-width: 0;
  }
  .nav__mobile-cta { display: inline-flex; margin-top: .7rem; justify-content: center; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  pointer-events: none;
}
.hero::before {
  width: 46vw; height: 46vw;
  top: -18vw; right: -12vw;
  background: radial-gradient(circle, var(--brand-300), transparent 68%);
}
.hero::after {
  width: 34vw; height: 34vw;
  bottom: -16vw; left: -10vw;
  background: radial-gradient(circle, var(--accent), transparent 68%);
  opacity: .28;
}
html[data-theme="dark"] .hero::before { opacity: .22; }
html[data-theme="dark"] .hero::after { opacity: .16; }
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 20%, transparent 78%);
  opacity: .55;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero__inner { max-width: 900px; }
.hero.center .hero__inner { margin-inline: auto; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .8rem;
  font-weight: 600;
  padding: .4rem .5rem .4rem .85rem;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--text-2);
  margin-bottom: 1.4rem;
}
.hero__badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.hero__badge .tag {
  white-space: nowrap;
  background: var(--brand-soft);
  color: var(--brand-ink);
  border-radius: 100px;
  padding: .15rem .6rem;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
html[data-theme="dark"] .hero__badge .tag { color: var(--brand); }

/* Theme-aware logo swap (dark wordmark on light, light wordmark on dark) */
.logo-dark { display: none; }
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: block; }

.hero__logo { margin: 0 0 1.1rem; }
.hero__logo img {
  width: min(540px, 94%);
  height: auto;
  margin-inline: auto;
}

.hero h1 { margin-bottom: .35em; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--brand) 10%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.slogan {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .9rem;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text);
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}
.hero.center .slogan { justify-content: center; }
.slogan li { display: inline-flex; align-items: center; gap: .9rem; margin: 0; }
.slogan li::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .55;
}
.slogan li:last-child::after { display: none; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: clamp(2.2rem, 4vw, 3.2rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.hero.center .hero__meta { justify-content: center; }
.hero__meta div { min-width: 130px; }
.hero__meta dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 650; }
.hero__meta dd { margin: .25rem 0 0; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--text); }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.6rem, 6vw, 4.4rem);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.page-hero::after {
  content: "";
  position: absolute;
  width: 40vw; height: 40vw;
  top: -22vw; right: -10vw;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .3;
  background: radial-gradient(circle, var(--brand-300), transparent 70%);
  pointer-events: none;
}
html[data-theme="dark"] .page-hero::after { opacity: .14; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: .4em; }
.breadcrumbs { font-size: .84rem; color: var(--muted); margin-bottom: 1.1rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs span { margin-inline: .45rem; opacity: .6; }

/* --------------------------------------------------------------------------
   7. Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 2.4vw, 1.75rem);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card h3, .card h4 { margin-bottom: .5rem; }
.card p { font-size: .95rem; }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card--soft { background: var(--surface-2); }
.card--flat { box-shadow: none; }
.card--accent { border-top: 3px solid var(--brand); }

a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; }
a.card .card__more { color: var(--brand); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .35rem; margin-top: .9rem; }
a.card:hover .card__more { gap: .6rem; }
.card__more svg { transition: transform .2s ease; }

.card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 1rem;
}
.card__num {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--brand);
  display: block;
  margin-bottom: .6rem;
}

/* Pillar cards (Explore. Share. Connect. Build.) */
.pillar { position: relative; padding-top: 1.6rem; }
.pillar__word {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: .5rem;
}
.pillar__word::after {
  content: ".";
  color: var(--brand);
}
.pillar__index {
  position: absolute;
  top: .9rem; right: 1.2rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted);
  opacity: .7;
}

/* Feature list with checks */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: .7rem;
  color: var(--text-2);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: var(--brand-soft);
  border: 1px solid var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23046a38' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: .78rem;
  background-position: center;
  background-repeat: no-repeat;
}
html[data-theme="dark"] .checklist li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234cc98c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

/* Two-column split */
.split {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3.4rem);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}
.split--sticky > :first-child { position: sticky; top: calc(var(--nav-h) + 2rem); }
@media (max-width: 900px) { .split--sticky > :first-child { position: static; } }

/* Definition blocks */
.def-grid { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.def-grid > div { padding: 1.2rem clamp(1.1rem, 2.2vw, 1.6rem); border-bottom: 1px solid var(--border); }
.def-grid > div:last-child { border-bottom: 0; }
.def-grid dt, .def-grid h4 { font-family: var(--font-display); font-weight: 650; color: var(--text); margin: 0 0 .3rem; }
.def-grid dd, .def-grid p { margin: 0; font-size: .95rem; color: var(--text-2); }

/* Timeline / agenda */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: .6rem; bottom: .6rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand), var(--border));
  border-radius: 2px;
}
.timeline li { position: relative; padding-left: 2.1rem; padding-bottom: 1.4rem; margin: 0; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0; top: .5rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--brand);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline .t-when {
  display: block;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}
.timeline .t-what { font-family: var(--font-display); font-weight: 650; color: var(--text); }
.timeline p { font-size: .93rem; margin: .2rem 0 0; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
thead th {
  text-align: left;
  font-family: var(--font-display);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: .9rem 1.1rem;
  background: var(--bg-inset);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td { padding: .95rem 1.1rem; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
td strong { color: var(--text); }

/* Radar tiers */
.radar-tier { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 6px; }
.radar-tier::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tier-adopt  { color: #0b7a4b; background: rgba(11, 122, 75, .1); }
.tier-trial  { color: #0d7d8a; background: rgba(13, 125, 138, .1); }
.tier-assess { color: #96700a; background: rgba(150, 112, 10, .12); }
.tier-hold   { color: #9a3b2f; background: rgba(154, 59, 47, .1); }
html[data-theme="dark"] .tier-adopt  { color: #58d69b; background: rgba(88, 214, 155, .13); }
html[data-theme="dark"] .tier-trial  { color: #4fd0d9; background: rgba(79, 208, 217, .13); }
html[data-theme="dark"] .tier-assess { color: #e2bd52; background: rgba(226, 189, 82, .13); }
html[data-theme="dark"] .tier-hold   { color: #ef8a7a; background: rgba(239, 138, 122, .13); }

/* Stat row */
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
}
.stat__value { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em; color: var(--brand); line-height: 1.1; }
.stat__label { font-size: .88rem; color: var(--muted); margin-top: .3rem; }

/* Callouts */
.callout {
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 1.1rem 1.3rem;
}
.callout h4 { margin-bottom: .35rem; }
.callout p { font-size: .95rem; }
.callout--gold { border-left-color: var(--gold); }

/* Quote */
.quote {
  border: 0;
  margin: 0;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--bg-inset);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.45;
  color: var(--text);
  letter-spacing: -.01em;
}
.quote footer { margin-top: .9rem; font-family: var(--font-sans); font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, var(--brand-700) 0%, var(--brand-500) 55%, #0a7a6f 100%);
  color: #fff;
  padding-block: clamp(3rem, 6vw, 4.6rem);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 20%, #000, transparent 75%);
  pointer-events: none;
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .86); }
.cta-band .eyebrow { color: rgba(255, 255, 255, .8); }
.cta-band a:not(.btn) { color: #fff; text-decoration: underline; }

/* Accordion (FAQ) */
.faq { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer;
  padding: 1.1rem clamp(1.1rem, 2.2vw, 1.5rem);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1rem;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--brand);
  flex: none;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { background: var(--surface-2); }
.faq .faq__body { padding: 0 clamp(1.1rem, 2.2vw, 1.5rem) 1.3rem; }
.faq .faq__body p { font-size: .95rem; }

/* Placeholder marker — search for "ph" spans to find everything to fill in */
.ph {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .82em;
  font-weight: 600;
  color: #8a5b00;
  background: rgba(226, 176, 44, .14);
  border: 1px dashed rgba(184, 134, 11, .65);
  border-radius: 6px;
  padding: .05em .45em;
  letter-spacing: -.01em;
}
html[data-theme="dark"] .ph {
  color: #e7c368;
  background: rgba(226, 176, 44, .1);
  border-color: rgba(226, 176, 44, .45);
}

/* Contact cards */
.contact-card { display: flex; gap: 1rem; align-items: flex-start; }
.contact-card .card__icon { margin-bottom: 0; flex: none; }

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding-block: clamp(2.6rem, 5vw, 3.6rem) 1.6rem;
  font-size: .93rem;
}
.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(240px, 1.5fr) repeat(auto-fit, minmax(150px, 1fr));
  padding-bottom: 2rem;
}
.footer__grid p { font-size: .92rem; color: var(--muted); }
.footer__col h4 {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .9rem;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: .5rem; }
.footer__col a { color: var(--text-2); }
.footer__col a:hover { color: var(--brand); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: .85rem;
}
.footer__slogan { font-family: var(--font-display); font-weight: 600; color: var(--brand); letter-spacing: -.01em; }

/* --------------------------------------------------------------------------
   9. Motion
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1); }
.reveal:nth-child(2) { transition-delay: .07s; }
.reveal:nth-child(3) { transition-delay: .14s; }
.reveal:nth-child(4) { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   10. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .nav__actions, .cta-band, .site-footer { display: none; }
  body { font-size: 12pt; }
  .card, .table-wrap { break-inside: avoid; }
}
