/* =========================================================
   KC MINDS — Main Styles
   Imports theme.css for all CSS variables (dark + light)
   ========================================================= */

/* ---- theme variables (merged from theme.css so a missing file can never break the site) ---- */
/* =========================================================
   KC MINDS — Theme System (Dark + Light)
   Toggle via [data-theme="dark"] / [data-theme="light"] on <html>
   ========================================================= */

/* ---- DARK THEME (default) ---- */
:root,
[data-theme="dark"] {
  --bg:            #090c13;
  --bg-elevated:   #0d111a;
  --panel:         #121826;
  --panel-2:       #161d2e;
  --border:        rgba(237,239,244,0.09);
  --border-strong: rgba(237,239,244,0.16);

  --text-primary:  #edeff4;
  --text-secondary:#9aa3b8;
  --text-muted:    #626b80;

  --gold:          #c9a567;
  --gold-soft:     rgba(201,165,103,0.14);
  --gold-line:     rgba(201,165,103,0.35);

  --cyan:          #5eeed4;
  --cyan-soft:     rgba(94,238,212,0.12);
  --cyan-line:     rgba(94,238,212,0.35);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  /* Ambient glows */
  --glow-a: rgba(94,238,212,0.06);
  --glow-b: rgba(201,165,103,0.05);

  /* Grid overlay */
  --grid-line: rgba(237,239,244,0.02);

  /* Ticker */
  --ticker-bg: var(--bg-elevated);

  /* Hero gradient text */
  --hero-grad: linear-gradient(120deg, #5eeed4, #9fe9dd 45%, #c9a567);

  /* CTA band */
  --cta-bg: var(--bg-elevated);
  --cta-glow-a: rgba(94,238,212,0.08);
  --cta-glow-b: rgba(201,165,103,0.08);

  /* Stat strip */
  --stat-bg: var(--panel);
  --stat-num-color: var(--cyan);

  /* Feature visual */
  --feat-bg: var(--panel);

  /* Footer */
  --footer-bg: transparent;

  /* Toggle icon shown */
  --toggle-show: "☀";
  --toggle-label: "Switch to light mode";
}

/* ---- LIGHT THEME (reference palette from KC Minds Updated) ---- */
[data-theme="light"] {
  --bg:            #f8fafc;
  --bg-elevated:   #ffffff;
  --panel:         #ffffff;
  --panel-2:       #f1f5f9;
  --border:        rgba(15,23,42,0.12);
  --border-strong: rgba(15,23,42,0.20);

  --text-primary:  #0f172a;
  --text-secondary:#475569;
  --text-muted:    #64748b;

  /* Purple â€” reference --secondary-color: #7c3aed */
  --gold:          #7c3aed;
  --gold-soft:     rgba(124,58,237,0.08);
  --gold-line:     rgba(124,58,237,0.28);

  /* Cyan â€” reference --accent-color: #06b6d4 */
  --cyan:          #0891b2;
  --cyan-soft:     rgba(6,182,212,0.10);
  --cyan-line:     rgba(8,145,178,0.32);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --container: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --glow-a: rgba(6,182,212,0.07);
  --glow-b: rgba(124,58,237,0.05);
  --grid-line: rgba(15,23,42,0.04);
  --ticker-bg: #f1f5f9;

  --hero-grad: linear-gradient(120deg, #0891b2, #06b6d4 45%, #7c3aed);

  --cta-bg: #ffffff;
  --cta-glow-a: rgba(6,182,212,0.09);
  --cta-glow-b: rgba(124,58,237,0.07);

  --stat-bg: #ffffff;
  --stat-num-color: #0891b2;

  --feat-bg: #ffffff;
  --footer-bg: #f1f5f9;
}
/* ---- end theme ---- */

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin:0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  z-index: 0;
}

/* faint fixed grain/vignette + grid backdrop for terminal feel */
body::before{
  content:"";
  position: fixed; inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, var(--glow-a), transparent 60%),
    radial-gradient(ellipse 900px 600px at 100% 10%, var(--glow-b), transparent 55%),
    linear-gradient(var(--bg), var(--bg));
}
body::after{
  content:"";
  position: fixed; inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.5;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

h1,h2,h3,h4{
  font-family:'Space Grotesk', sans-serif;
  color: var(--text-primary);
  margin:0 0 .5em;
  letter-spacing: -0.01em;
  line-height: 1.12;
  font-weight: 600;
}

p{ margin:0 0 1em; color: var(--text-secondary); }
a{ color: inherit; text-decoration:none; }

.mono{
  font-family:'IBM Plex Mono', monospace;
  letter-spacing: 0.06em;
}

.eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom: 18px;
}
.eyebrow::before{
  content:"";
  width:7px; height:7px;
  border-radius:50%;
  background: var(--cyan);
  box-shadow: 0 0 10px 2px var(--cyan-soft);
  flex-shrink:0;
}
.eyebrow.gold{ color: var(--gold); }
.eyebrow.gold::before{ background: var(--gold); box-shadow: 0 0 10px 2px var(--gold-soft); }

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index:1;
}

section{ position: relative; z-index: 1; }

/* Prevent hero overflow:hidden from clipping the fixed header */
.hero{ isolation: auto; }

/* ---------- NAV ---------- */
header.site-header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 1000;
  background: rgba(9,12,19,0.88);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background .3s, border-color .3s;
  isolation: isolate;
}
[data-theme="light"] header.site-header{
  background: rgba(240,244,248,0.95);
  border-bottom-color: rgba(15,23,60,0.12);
  box-shadow: 0 1px 12px rgba(15,23,60,0.08);
}

/* ---------- THEME TOGGLE ---------- */
.theme-toggle{
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .25s var(--ease);
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
}
.theme-toggle:hover{ border-color: var(--cyan-line); color: var(--cyan); background: var(--cyan-soft); }
.nav-inner{
  max-width: var(--container);
  margin:0 auto;
  padding: 16px 32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:'Space Grotesk', sans-serif;
  font-weight:600;
  font-size: 19px;
  letter-spacing: 0.01em;
}
.brand-mark{
  width: 30px; height:30px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--panel-2), var(--bg-elevated));
  border: 1px solid var(--border-strong);
  display:flex; align-items:center; justify-content:center;
  position:relative;
}
.brand-mark svg{ width:16px; height:16px; }
.brand small{
  display:block;
  font-family:'IBM Plex Mono', monospace;
  font-weight:400;
  font-size:9.5px;
  letter-spacing:0.16em;
  color: var(--text-muted);
  margin-top:2px;
}

nav.nav-links{
  display:flex;
  align-items:center;
  gap: 40px;
}
nav.nav-links a{
  font-size: 14px;
  color: var(--text-secondary);
  position:relative;
  padding: 4px 0;
  transition: color .25s var(--ease);
}
nav.nav-links a:hover{ color: var(--text-primary); }
nav.nav-links a.active{ color: var(--text-primary); }
nav.nav-links a.active::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-6px;
  height:1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.nav-cta{
  display:flex; align-items:center; gap:22px;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight:600;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor:pointer;
  transition: all .3s var(--ease);
  white-space: nowrap;
}
.btn-primary{
  background: linear-gradient(120deg, var(--gold), #e2c48a);
  color: #0c0a06;
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(201,165,103,0.55); }

.btn-ghost{
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn-ghost:hover{ border-color: var(--cyan-line); color: var(--cyan); }

.btn-sm{ padding: 9px 18px; font-size:13px; }

.menu-toggle{
  display:none;
  width:38px; height:38px;
  border-radius:8px;
  border:1px solid var(--border-strong);
  background:transparent;
  color: var(--text-primary);
  align-items:center; justify-content:center;
  cursor:pointer;
}

/* ---------- HERO ---------- */
.hero{
  padding: 190px 0 90px;
  position:relative;
  overflow:hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items:center;
}
.hero h1{
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 600;
}
.hero h1 em{
  font-style: normal;
  background: var(--hero-grad);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero p.lead{
  font-size: 17px;
  max-width: 46ch;
  color: var(--text-secondary);
}
.hero-actions{
  display:flex;
  gap:16px;
  margin-top: 34px;
  flex-wrap:wrap;
}

.hero-visual{
  position:relative;
  aspect-ratio: 1/1;
  max-width: 480px;
  margin-left:auto;
}
.hero-visual svg{ width:100%; height:100%; overflow:visible; }

.node{ fill: var(--panel-2); stroke: var(--border-strong); }
.node-core{ fill: var(--bg-elevated); stroke: var(--gold-line); }
.link{ stroke: var(--border-strong); stroke-width:1; }
.pulse-dot{ fill: var(--cyan); }
.pulse-dot.gold{ fill: var(--gold); }

@keyframes dash-travel{
  to{ stroke-dashoffset: -200; }
}
.link-active{
  stroke: var(--cyan);
  stroke-opacity: .55;
  stroke-dasharray: 4 10;
  animation: dash-travel 6s linear infinite;
}

@keyframes pulse-ring{
  0%{ transform: scale(0.9); opacity:.9; }
  100%{ transform: scale(2.6); opacity:0; }
}
.pulse-ring{
  fill:none;
  stroke: var(--cyan);
  stroke-width:1.5;
  transform-origin: center;
  animation: pulse-ring 3.2s var(--ease) infinite;
}
.pulse-ring.gold{ stroke: var(--gold); animation-delay: 1.1s; }
.pulse-ring.delay{ animation-delay: 1.6s; }

/* ---------- TICKER ---------- */
.ticker-strip{
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  background: var(--bg-elevated);
  overflow:hidden;
  padding: 15px 0;
}
.ticker-track{
  display:flex;
  gap:64px;
  width:max-content;
  animation: ticker-scroll 32s linear infinite;
}
@keyframes ticker-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.ticker-item{
  font-family:'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing:.08em;
  color: var(--text-muted);
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}
.ticker-item .n{ color: var(--text-primary); font-weight:600; }
.ticker-item .dot{ width:4px; height:4px; border-radius:50%; background: var(--cyan); }

/* ---------- SECTION HEADERS ---------- */
.section{ padding: 120px 0; }
.section.tight{ padding: 90px 0; }
.section-head{
  max-width: 640px;
  margin-bottom: 64px;
}
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size: clamp(28px, 3.4vw, 40px); }

/* ---------- CARDS: pillars ---------- */
.grid-3{ display:grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-2{ display:grid; grid-template-columns: repeat(2,1fr); gap: 28px; }

.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  position:relative;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.card:hover{ border-color: var(--border-strong); transform: translateY(-4px); }
.card .icon-tile{
  width: 46px; height:46px;
  border-radius: 12px;
  background: var(--cyan-soft);
  border:1px solid var(--cyan-line);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:22px;
}
.card .icon-tile svg{ width:22px; height:22px; stroke: var(--cyan); }
.card.gold .icon-tile{ background: var(--gold-soft); border-color: var(--gold-line); }
.card.gold .icon-tile svg{ stroke: var(--gold); }
.card h3{ font-size: 19px; margin-bottom:10px; }
.card p{ font-size:14.5px; margin-bottom:16px; }
.card .learn{
  font-family:'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing:.06em;
  color: var(--text-primary);
  display:inline-flex; align-items:center; gap:6px;
}
.card .learn svg{ width:13px; height:13px; transition: transform .25s var(--ease); }
.card:hover .learn svg{ transform: translateX(4px); }

/* tag label instead of raw numbers, used where list isn't a strict sequence */
.tag-label{
  font-family:'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing:.14em;
  color: var(--text-muted);
  margin-bottom: 16px;
  display:block;
}

/* ---------- feature rows (image-less, text driven) ---------- */
.feature-row{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items:center;
  padding: 70px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child{ border-bottom:none; }
.feature-row.reverse{ grid-template-columns: 1.1fr 0.9fr; }
.feature-row.reverse .feature-visual{ order:2; }
.feature-index{
  font-family:'Space Grotesk', sans-serif;
  font-size: 15px;
  color: var(--text-muted);
}
.feature-row h3{ font-size: clamp(22px,2.6vw,30px); margin: 14px 0 16px; }

.feature-visual{
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
  position:relative;
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.feature-visual svg{ width: 78%; }

/* ---------- stat strip ---------- */
.stat-strip{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow:hidden;
}
.stat{
  background: var(--panel);
  padding: 36px 26px;
  text-align:center;
}
.stat .num{
  font-family:'Space Grotesk', sans-serif;
  font-size: 34px;
  font-weight:600;
  color: var(--text-primary);
}
.stat .num span{ color: var(--cyan); }
.stat .label{
  font-family:'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing:.1em;
  color: var(--text-muted);
  text-transform:uppercase;
  margin-top:8px;
}

/* ---------- CTA band ---------- */
.cta-band{
  position:relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  padding: 76px 56px;
  text-align:center;
  overflow:hidden;
  background:
    radial-gradient(ellipse 500px 260px at 20% 0%, var(--cta-glow-a), transparent 60%),
    radial-gradient(ellipse 500px 260px at 85% 100%, var(--cta-glow-b), transparent 60%),
    var(--cta-bg);
}
.cta-band h2{ font-size: clamp(26px,3.6vw,40px); max-width: 18ch; margin:0 auto 16px; }
.cta-band p{ max-width: 48ch; margin: 0 auto 30px; }
.cta-actions{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* ---------- FOOTER ---------- */
footer.site-footer{
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--footer-bg);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-grid p{ font-size:14px; max-width:32ch; }
.footer-col h4{
  font-family:'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color: var(--text-muted);
  margin-bottom:18px;
}
.footer-col a{
  display:block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom:12px;
  transition: color .2s;
}
.footer-col a:hover{ color: var(--cyan); }
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
  font-family:'IBM Plex Mono', monospace;
}
.footer-bottom .status{
  display:flex; align-items:center; gap:8px;
}
.footer-bottom .status .dot{
  width:6px; height:6px; border-radius:50%;
  background: var(--cyan);
  box-shadow: 0 0 8px 1px var(--cyan-soft);
}

/* ---------- LIGHT MODE OVERRIDES ---------- */
/* Body background */
[data-theme="light"] body::before{
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, var(--glow-a), transparent 60%),
    radial-gradient(ellipse 900px 600px at 100% 10%, var(--glow-b), transparent 55%),
    linear-gradient(var(--bg), var(--bg));
}
[data-theme="light"] body::after{ opacity: 0.7; }
/* Ticker */
[data-theme="light"] .ticker-strip{ background: #f1f5f9; border-color: #e2e8f0; }
[data-theme="light"] .ticker-item{ color: #475569; }
[data-theme="light"] .ticker-item .n{ color: #0f172a; font-weight: 700; }
[data-theme="light"] .ticker-item .dot{ background: #0891b2; }
/* Feature visuals */
[data-theme="light"] .feature-visual{
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(15,23,42,0.10), 0 1px 2px rgba(15,23,42,0.06);
}
/* Stat strip */
[data-theme="light"] .stat-strip{ background: #e2e8f0; }
[data-theme="light"] .stat{ background: #ffffff; }
[data-theme="light"] .stat .num{ color: #0f172a; }
[data-theme="light"] .stat .num span{ color: #0891b2; }
[data-theme="light"] .stat .label{ color: #64748b; }
/* Cards */
[data-theme="light"] .card{
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(15,23,42,0.10), 0 1px 2px rgba(15,23,42,0.06);
}
[data-theme="light"] .card:hover{
  border-color: rgba(8,145,178,0.32);
  box-shadow: 0 10px 15px -3px rgba(15,23,42,0.10), 0 4px 6px -2px rgba(15,23,42,0.05);
  transform: translateY(-4px);
}
[data-theme="light"] .card h3{ color: #0f172a; }
[data-theme="light"] .card p{ color: #475569; }
[data-theme="light"] .card .learn{ color: #0891b2; }
[data-theme="light"] .card .icon-tile{ background: rgba(6,182,212,0.10); border-color: rgba(8,145,178,0.32); }
[data-theme="light"] .card .icon-tile svg{ stroke: #0891b2; }
[data-theme="light"] .card.gold .icon-tile{ background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.28); }
[data-theme="light"] .card.gold .icon-tile svg{ stroke: #7c3aed; }
/* Vision cards */
[data-theme="light"] .vision-card{
  background: #ffffff; border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(15,23,42,0.10);
}
[data-theme="light"] .vision-card-visual{ background: #f1f5f9; border-color: #e2e8f0; }
/* Info cards */
[data-theme="light"] .info-card{
  background: #ffffff; border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(15,23,42,0.10);
}
/* Contact form */
[data-theme="light"] form.contact-form{
  background: #ffffff; border-color: #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(15,23,42,0.10);
}
[data-theme="light"] .field input,
[data-theme="light"] .field textarea{
  background: #f8fafc; border-color: #e2e8f0; color: #0f172a;
}
[data-theme="light"] .field input:focus,
[data-theme="light"] .field textarea:focus{ border-color: #0891b2; box-shadow: 0 0 0 3px rgba(6,182,212,0.10); }
[data-theme="light"] .field input::placeholder,
[data-theme="light"] .field textarea::placeholder{ color: #64748b; }
/* Map card */
[data-theme="light"] .map-card{ background: #f1f5f9; border-color: #e2e8f0; }
/* Footer */
[data-theme="light"] footer.site-footer{ background: #f1f5f9; border-top-color: #e2e8f0; }
[data-theme="light"] .footer-bottom{ border-top-color: #e2e8f0; color: #64748b; }
[data-theme="light"] .footer-col a{ color: #475569; }
[data-theme="light"] .footer-col a:hover{ color: #0891b2; }
[data-theme="light"] .footer-col h4{ color: #64748b; }
/* CTA band */
[data-theme="light"] .cta-band{
  background:
    radial-gradient(ellipse 500px 260px at 20% 0%, rgba(6,182,212,0.09), transparent 60%),
    radial-gradient(ellipse 500px 260px at 85% 100%, rgba(124,58,237,0.07), transparent 60%),
    #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(15,23,42,0.10);
}
/* Buttons */
[data-theme="light"] .btn-ghost{ border-color: #e2e8f0; color: #0f172a; }
[data-theme="light"] .btn-ghost:hover{ border-color: #0891b2; color: #0891b2; background: rgba(6,182,212,0.10); }
[data-theme="light"] .btn-primary{ background: linear-gradient(135deg, #7c3aed, #a855f7); color: #ffffff; }
[data-theme="light"] .btn-primary:hover{ box-shadow: 0 10px 15px -3px rgba(124,58,237,0.35); }
/* Nav â€” mobile drawer only gets background */
[data-theme="light"] nav.nav-links a{ color: #475569; }
[data-theme="light"] nav.nav-links a:hover{ color: #0f172a; }
[data-theme="light"] nav.nav-links a.active{ color: #0f172a; }
[data-theme="light"] nav.nav-links a.active::after{ background: linear-gradient(90deg, #0891b2, transparent); }
/* Brand mark */
[data-theme="light"] .brand-mark{ background: linear-gradient(140deg, #f1f5f9, #ffffff); border-color: #e2e8f0; }
/* Hero SVG nodes */
[data-theme="light"] .node{ fill: #f1f5f9; stroke: #cbd5e1; }
[data-theme="light"] .node-core{ fill: #ffffff; stroke: rgba(124,58,237,0.35); }
[data-theme="light"] .link{ stroke: #cbd5e1; }
[data-theme="light"] .link-active{ stroke: #0891b2; stroke-opacity: 0.8; }
[data-theme="light"] .pulse-dot{ fill: #0891b2; }
[data-theme="light"] .pulse-dot.gold{ fill: #7c3aed; }
[data-theme="light"] .pulse-ring{ stroke: #0891b2; }
[data-theme="light"] .pulse-ring.gold{ stroke: #7c3aed; }
/* Eyebrow */
[data-theme="light"] .eyebrow{ color: #0891b2; }
[data-theme="light"] .eyebrow::before{ background: #0891b2; box-shadow: 0 0 8px 2px rgba(6,182,212,0.10); }
[data-theme="light"] .eyebrow.gold{ color: #7c3aed; }
[data-theme="light"] .eyebrow.gold::before{ background: #7c3aed; box-shadow: 0 0 8px 2px rgba(124,58,237,0.08); }
/* Tag label */
[data-theme="light"] .tag-label{ color: #0891b2; }
/* Chips */
[data-theme="light"] .chip{ color: #0891b2; background: rgba(6,182,212,0.10); border-color: rgba(8,145,178,0.32); }
[data-theme="light"] .chip.gold{ color: #7c3aed; background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.28); }
/* Page hero */
[data-theme="light"] .page-hero{ border-bottom-color: #e2e8f0; }
/* Offering items */
[data-theme="light"] .offering-item{ border-bottom-color: #e2e8f0; }
[data-theme="light"] .offering-item:first-child{ border-top-color: #e2e8f0; }
/* Feature rows */
[data-theme="light"] .feature-row{ border-bottom-color: #e2e8f0; }
/* Info rows */
[data-theme="light"] .info-row{ border-top-color: #e2e8f0; }
[data-theme="light"] .info-row .ic{ background: rgba(6,182,212,0.10); border-color: rgba(8,145,178,0.32); }
[data-theme="light"] .info-row .ic svg{ stroke: #0891b2; }
/* Coord strip */
[data-theme="light"] .coord-strip{ border-color: #e2e8f0; color: #475569; background: #f1f5f9; }
[data-theme="light"] .coord-strip b{ color: #0891b2; }
/* Breadcrumb */
[data-theme="light"] .breadcrumb{ color: #64748b; }
[data-theme="light"] .breadcrumb a{ color: #64748b; }
[data-theme="light"] .breadcrumb a:hover{ color: #0891b2; }
/* Footer status dot */
[data-theme="light"] .footer-bottom .status .dot{ background: #0891b2; box-shadow: 0 0 6px 1px rgba(6,182,212,0.10); }
/* Section bg-elevated band */
[data-theme="light"] section[style*="bg-elevated"]{ background: #ffffff !important; }
/* ---------- reveal on scroll ---------- */
.reveal{
  opacity:0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in{ opacity:1; transform: translateY(0); }

/* ---------- page hero (interior pages) ---------- */
.page-hero{
  padding: 170px 0 70px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1{ font-size: clamp(34px,4.4vw,52px); max-width: 16ch; }
.page-hero p.lead{ max-width: 56ch; font-size:17px; }
.breadcrumb{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  color: var(--text-muted);
  letter-spacing:.08em;
  margin-bottom: 22px;
}
.breadcrumb a{ color: var(--text-muted); }
.breadcrumb a:hover{ color: var(--cyan); }

/* ---------- offerings list ---------- */
.offering-item{
  display:grid;
  grid-template-columns: 90px 1fr 200px;
  gap: 30px;
  align-items:start;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
}
.offering-item:first-child{ border-top:1px solid var(--border); }
.offering-index{
  font-family:'IBM Plex Mono', monospace;
  color: var(--text-muted);
  font-size: 13px;
  padding-top:4px;
}
.offering-item h3{ font-size: 21px; margin-bottom:10px; }
.offering-item p{ font-size:14.5px; max-width: 62ch; }
.offering-meta{
  display:flex; flex-direction:column; gap:8px;
  align-items:flex-end;
  padding-top:4px;
}
.chip{
  font-family:'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing:.08em;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid var(--cyan-line);
  padding: 5px 10px;
  border-radius: 999px;
  white-space:nowrap;
}
.chip.gold{ color: var(--gold); background: var(--gold-soft); border-color: var(--gold-line); }

/* ---------- about page pieces ---------- */
.vision-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:28px; }
.vision-card{
  padding: 38px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
}
.vision-card-visual{
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: var(--radius-md);
  background: var(--panel-2);
  border: 1px solid var(--border);
  overflow: hidden;
}
.vision-card-visual svg{ width: 90%; height: 90%; }

/* ---------- contact page ---------- */
.contact-grid{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items:start;
}
.info-card{
  border:1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 22px;
}
.info-card h4{
  font-family:'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.info-row{
  display:flex; align-items:flex-start; gap:14px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.info-row:first-of-type{ border-top:none; }
.info-row .ic{
  width:34px; height:34px; border-radius:9px;
  background: var(--cyan-soft); border:1px solid var(--cyan-line);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.info-row .ic svg{ width:16px; height:16px; stroke: var(--cyan); }
.info-row .t{ font-size: 15px; color: var(--text-primary); }
.info-row .s{ font-size: 12.5px; color: var(--text-muted); font-family:'IBM Plex Mono', monospace; }

.coord-strip{
  display:flex; gap:22px; flex-wrap:wrap;
  font-family:'IBM Plex Mono', monospace;
  font-size: 11.5px;
  color: var(--text-muted);
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: 6px;
}
.coord-strip b{ color: var(--cyan); font-weight:500; }

.map-card{
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
  position:relative;
  overflow:hidden;
}
.map-card svg{ width:100%; height:100%; }

form.contact-form{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap:20px; margin-bottom:20px; }
.field{ display:flex; flex-direction:column; gap:8px; }
.field.full{ grid-column: 1/-1; }
.field label{
  font-family:'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color: var(--text-muted);
}
.field input, .field textarea{
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--text-primary);
  font-family:'Inter', sans-serif;
  font-size: 14.5px;
  outline:none;
  transition: border-color .25s;
  width:100%;
}
.field input:focus, .field textarea:focus{ border-color: var(--cyan-line); }
.field textarea{ resize: vertical; min-height:120px; }
.form-foot{
  display:flex; align-items:center; justify-content:space-between;
  margin-top: 8px;
  flex-wrap:wrap; gap:16px;
}
.form-note{ font-size:12.5px; color: var(--text-muted); }
.form-status{
  font-family:'IBM Plex Mono', monospace;
  font-size: 12.5px;
  margin-top: 14px;
  display:none;
}
.form-status.ok{ color: var(--cyan); display:block; }
.form-status.err{ color:#e88; display:block; }

/* ---------- responsive ---------- */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-visual{ margin: 40px auto 0; max-width:360px; }
  .grid-3{ grid-template-columns:1fr; }
  .grid-2{ grid-template-columns:1fr; }
  .feature-row, .feature-row.reverse{ grid-template-columns:1fr; }
  .feature-row.reverse .feature-visual{ order:0; }
  .stat-strip{ grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .vision-grid{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
  .offering-item{ grid-template-columns:1fr; }
  .offering-meta{ align-items:flex-start; flex-direction:row; }
}
@media (max-width: 760px){
  [data-theme="light"] nav.nav-links{ background: #ffffff; }
  nav.nav-links{
    position: fixed;
    top: 66px; left:0; right:0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction:column;
    align-items:flex-start;
    padding: 24px 32px;
    gap: 20px;
    transform: translateY(-130%);
    transition: transform .35s var(--ease);
  }
  nav.nav-links.open{ transform: translateY(0); }
  .menu-toggle{ display:flex; }
  .nav-cta .btn-ghost{ display:none; }
  .form-row{ grid-template-columns:1fr; }
  .section{ padding: 80px 0; }
  .hero{ padding: 150px 0 60px; }
}


/* =========================================================
   KC MINDS - brand refresh (logo tile, banner background,
   map, contact additions)
   ========================================================= */

/* Logo tile (replaces the old SVG mark) */
.brand-mark{ width:34px; height:34px; padding:0; overflow:hidden; border-radius:9px; border:1px solid var(--border-strong); background:#101420; }
.brand-mark img{ display:block; width:100%; height:100%; object-fit:cover; }
[data-theme="light"] .brand-mark{ background:#101420; border-color:#101420; }

/* Banner background: dark navy with the grid and teal glow from the brand banner (dark theme) */
[data-theme="dark"] .hero,
[data-theme="dark"] .page-hero{
  background:
    radial-gradient(ellipse 620px 360px at 0% 100%, rgba(94,170,166,.28), transparent 65%),
    linear-gradient(rgba(237,239,244,.045) 1px, transparent 1px) 0 0/64px 64px,
    linear-gradient(90deg, rgba(237,239,244,.045) 1px, transparent 1px) 0 0/64px 64px,
    #101420;
  -webkit-mask-image: linear-gradient(#000 82%, transparent);
  mask-image: linear-gradient(#000 82%, transparent);
}
[data-theme="dark"] .page-hero{ border-bottom:none; }
[data-theme="dark"] .cta-band{
  background:
    radial-gradient(ellipse 520px 300px at 0% 100%, rgba(94,170,166,.30), transparent 65%),
    linear-gradient(rgba(237,239,244,.045) 1px, transparent 1px) 0 0/48px 48px,
    linear-gradient(90deg, rgba(237,239,244,.045) 1px, transparent 1px) 0 0/48px 48px,
    #101420;
}

/* Gold button (Book a Call) */
.btn-gold{ background: linear-gradient(135deg, #c9a567, #e0c48f); color:#101420; border:none; font-weight:600; }
.btn-gold:hover{ box-shadow:0 10px 24px -8px rgba(201,165,103,.55); transform: translateY(-1px); }
.cta-actions{ flex-wrap:wrap; }

/* Accessibility */
.skip-link{ position:absolute; left:-999px; top:8px; z-index:200; background:#101420; color:#fff; padding:10px 16px; border-radius:8px; }
.skip-link:focus{ left:12px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{ outline:2px solid var(--cyan); outline-offset:2px; }

/* Contact page */
.info-row .t a{ color: var(--text-primary); border-bottom:1px solid var(--cyan-line); }
.info-row .t a:hover{ color: var(--cyan); }
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-alt{ margin:16px 0 0; font-size:13.5px; color: var(--text-secondary); }
.form-alt a{ color: var(--cyan); border-bottom:1px solid var(--cyan-line); }

/* Esri Streets map (Leaflet, same library the portal uses) */
.esri-map{ aspect-ratio:16/10; min-height:280px; background:#e8e4dc; z-index:0; }
.esri-map .leaflet-container{ width:100%; height:100%; background:#e8e4dc; font-family:'Inter',sans-serif; }
.kc-pin{ position:relative; }
.kc-pin::before{ content:""; position:absolute; left:3px; top:3px; width:18px; height:18px; border-radius:50%; background:#101420; border:3px solid #5eeed4; box-shadow:0 2px 8px rgba(0,0,0,.45); }
.kc-pin::after{ content:""; position:absolute; left:-6px; top:-6px; width:36px; height:36px; border-radius:50%; border:2px solid #5eeed4; animation: pulse-ring 3.2s var(--ease) infinite; }
.map-open{ position:absolute; left:12px; bottom:28px; z-index:1001; font:500 12px 'IBM Plex Mono',monospace; background:#101420; color:#fff; padding:8px 12px; border-radius:8px; }
.map-open:hover{ color:#5eeed4; }
.map-fallback{ position:absolute; left:12px; right:12px; bottom:12px; z-index:1001; margin:0; padding:10px 12px; border-radius:8px; background:#101420; color:#fff; font-size:13px; }
@media (max-width:640px){ .esri-map{ aspect-ratio:4/3; } }

/* Contact: three ways to reach us */
.reach-tabs{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; padding:6px; margin-bottom:18px; background:var(--panel); border:1px solid var(--border); border-radius:14px; }
.reach-tabs button{ display:flex; align-items:center; justify-content:center; gap:8px; padding:13px 10px; border:1px solid transparent; border-radius:10px; background:transparent; color:var(--text-secondary); font:500 14px 'Inter',sans-serif; cursor:pointer; transition:.2s var(--ease); }
.reach-tabs button svg{ width:17px; height:17px; flex:none; }
.reach-tabs button:hover{ color:var(--text-primary); }
.reach-tabs button[aria-selected="true"]{ background:var(--bg-elevated); border-color:var(--cyan-line); color:var(--cyan); }
.reach-panel[hidden]{ display:none; }
.reach-card{ background:var(--panel); border:1px solid var(--border); border-radius:var(--radius-lg); padding:40px; text-align:center; }
.reach-ic{ width:54px; height:54px; margin:0 auto 18px; border-radius:14px; display:flex; align-items:center; justify-content:center; background:var(--cyan-soft); border:1px solid var(--cyan-line); color:var(--cyan); }
.reach-ic.gold{ background:var(--gold-soft); border-color:var(--gold-line); color:var(--gold); }
.reach-ic svg{ width:26px; height:26px; }
.reach-card h3{ margin:0 0 10px; font-size:24px; }
.reach-card p{ margin:0 auto 22px; max-width:46ch; color:var(--text-secondary); }
.reach-mail{ display:inline-block; margin-bottom:22px; padding:14px 22px; border:1px dashed var(--cyan-line); border-radius:10px; font:500 20px 'IBM Plex Mono',monospace; color:var(--text-primary); user-select:all; }
.reach-actions{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-bottom:18px; }
.reach-note{ font:12px 'IBM Plex Mono',monospace; color:var(--text-muted); }
.cal-embed{ margin:6px 0 16px; }
.cal-embed iframe{ width:100%; height:620px; border:1px solid var(--border); border-radius:12px; background:#fff; }
@media (max-width:640px){ .reach-tabs{ grid-template-columns:1fr; } .reach-card{ padding:28px 20px; } .reach-mail{ font-size:16px; } }

/* Logo spacing: give the mark room to breathe */
.brand{ gap:14px; }
.brand-mark{ width:42px; height:42px; border-radius:11px; flex:none; }
.brand small{ margin-top:5px; letter-spacing:.14em; }
.footer-col .brand{ gap:12px; }
.footer-col .brand-mark{ width:36px; height:36px; }

.esri-map a.map-open{ color:#fff; }
.esri-map a.map-open:hover{ color:#5eeed4; }

/* Home hero: fit the first screen (headline, visual and ticker all visible), content centred */
.hero{ min-height: calc(100vh - 58px); min-height: calc(100svh - 58px); display:flex; align-items:center; padding: 104px 0 36px; }
.hero > .wrap{ width:100%; }
.hero-grid{ grid-template-columns: 1.1fr .9fr; gap: 40px; }
.hero h1{ font-size: clamp(34px, 3.9vw, 56px); line-height:1.08; max-width: 12.5em; }
.hero p.lead{ max-width: 34em; }
.hero-visual{ max-width: 400px; margin-left:auto; margin-right:auto; }
@media (max-width:900px){ .hero{ min-height:0; padding:130px 0 50px; } }
