:root{
  --bg:#121417;
  --bg2:#15181c;
  --card:#171b21;
  --card2:#1b2028;
  --text:#f5f7fb;
  --muted:#b8c0cc;
  --line:rgba(255,255,255,.10);
  --accent:#68f7c8;
  --accent2:#45d3ff;
  --shadow: 0 14px 40px rgba(0,0,0,.45);
  --radius:18px;
  --max:1120px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: radial-gradient(1200px 700px at 80% -10%, rgba(104,247,200,.16), transparent 60%),
              radial-gradient(1000px 600px at 10% 10%, rgba(69,211,255,.10), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  line-height:1.45;
}
a{color:inherit;text-decoration:none}
.container{max-width:var(--max);margin:0 auto;padding:0 22px}
.topbar{
  position:sticky;top:0;z-index:50;
  /* Keep header harmoniously anthracite (avoid looking black) */
  background:rgba(18,20,23,.84);
  backdrop-filter: blur(14px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;
}
.brand{display:flex;align-items:center;gap:12px}
.brand img{height:34px;width:auto;max-width:220px}
.brand .name{font-weight:700;letter-spacing:.2px}
.navlinks{display:flex;gap:14px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.pill{
  border:1px solid var(--line);
  padding:9px 12px;border-radius:999px;
  color:var(--muted);
  font-size:13px;
  transition: all .18s ease;
  user-select:none;
}
.pill:hover{border-color:rgba(255,255,255,.22);color:var(--text);transform:translateY(-1px)}
.pill.primary{
  color:var(--text);
  border:1px solid rgba(255,255,255,.18);
  background:linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  font-weight:700;
}
.pill.primary:hover{transform:translateY(-1px) scale(1.01);border-color:rgba(255,255,255,.26);background:linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.08));}
.pill.ghost{background:rgba(255,255,255,.04)}

/* Mobile header: keep navigation compact and prevent wrapping */
@media (max-width: 560px){
  .nav{padding:10px 0;gap:10px}
  .brand img{height:28px;max-width:150px}
  .navlinks{
    flex:1;
    min-width:0;
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    gap:10px;
    padding:2px 0;
  }
  .navlinks::-webkit-scrollbar{display:none}
  .navlinks{scrollbar-width:none}
  .pill{white-space:nowrap;padding:8px 10px}

  /* Mobile: stack section title + subtitle to avoid wraps/push-right */
  .sectionHead{
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
  }
  .sectionTitle{
    width:100%;
    text-align:left;
    align-self:flex-start;
  }
  .sectionSub{
    max-width:none;
    white-space:normal;
    text-align:left;
    /* Mobile: tighten spacing between section title and subtitle */
  .sectionHead{gap:6px;margin:6px 0 8px}
}
}
.hero{padding:64px 0 26px}
.heroGrid{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:24px;
  align-items:stretch;
}
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
}
.heroCard{padding:28px}
.kicker{color:var(--muted);font-size:14px;letter-spacing:.2px}
.h1{font-size:42px;line-height:1.08;margin:10px 0 14px;letter-spacing:-.6px}
.lead{font-size:18px;color:var(--muted);max-width:60ch}
.subline{margin-top:2px;color:rgba(245,247,251,.92);font-size:14px;letter-spacing:.2px}
.ctaRow{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.stats{
  display:grid;grid-template-columns:repeat(2,1fr);gap:12px;
  padding:18px;
}
.stat{
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  background:rgba(255,255,255,.03);
}
.stat .k{font-size:12px;color:var(--muted)}
.stat .v{font-size:16px;font-weight:700;margin-top:6px}
.portrait{
  height:100%;
  overflow:hidden;
  display:flex;flex-direction:column;
}
.portrait img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:50% 50%;
  opacity:.88;
  filter:contrast(1.05) saturate(.9);
}
.section{padding:22px 0}
.sectionHead{
  display:flex;align-items:flex-end;justify-content:space-between;gap:16px;
  margin:6px 0 12px;
}
.sectionTitle{font-size:20px;margin:0}
.sectionSub{color:var(--muted);font-size:14px;margin:0;max-width:72ch}
.grid3{
  display:grid;grid-template-columns:repeat(3,1fr);gap:14px;
}
/* Full-width tiles inside 3-column grids (used for selected Signature Use Cases) */
.tile.span3{grid-column:1 / -1;}
/* Enforce full-width spanning for selected tiles (Cognitive Copilot Layer + SOS) */
.grid3 > .tile.span3{grid-column:1 / -1 !important; width:100%;}

.tile{position:relative;

  padding:16px;
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:16px;
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
  cursor:pointer;
  min-height:160px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.tile:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.05)}
.tile .t{font-weight:750;margin:0 0 6px}
.tile .d{color:var(--muted);margin:0;font-size:14px}
.badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.badge{
  font-size:12px;color:var(--muted);
  border:1px solid var(--line);
  border-radius:999px;
  padding:6px 10px;
  background:rgba(255,255,255,.02);
}
.split{
  display:grid;grid-template-columns: 1fr 1fr;gap:14px;
}
.listCard{padding:16px}
.ul{margin:10px 0 0;padding-left:18px;color:var(--muted)}
.ul li{margin:8px 0}
.footer{
  padding:26px 0 40px;
  /* Keep footer harmoniously anthracite (avoid looking black) */
  background:rgba(18,20,23,.35);
  border-top:1px solid var(--line);
  margin-top:26px;
  color:var(--muted);
  font-size:13px;
}
.footerRow{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}
small{color:var(--muted)}
/* Modal */
.modalBackdrop{
  position:fixed;inset:0;
  /* Less transparent backdrop for better readability */
  /* Anthracite (not black) and more opaque for readability */
  background:rgba(18,20,23,.92);
  display:none;
  align-items:center;justify-content:center;
  padding:22px;
  z-index:100;
}
.modalBackdrop.show{display:flex}
.modal{
  width:min(860px, 100%);
  max-height:min(86vh, 860px);
  overflow:auto;
  border-radius:22px;
  /* More opaque modal surface (keeps anthracite feel, improves contrast) */
  background:linear-gradient(180deg, rgba(23,27,33,.98), rgba(23,27,33,.95));
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 22px 70px rgba(0,0,0,.6);
}
.modalHeader{
  display:flex;justify-content:space-between;align-items:flex-start;gap:14px;
  padding:18px 18px 10px;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.modalTitle{margin:0;font-size:18px}
.modalClose{
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.07);
  color:var(--text);
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
}

/* Prevent awkward wraps for the About section subtitle on wide screens */
@media (min-width: 980px){
  #about .sectionSub{
    max-width:none;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
}
.modalBody{padding:14px 18px 20px;color:rgba(245,247,251,.88)}
.modalBody h3{color:var(--text);font-size:14px;margin:18px 0 8px}
.modalBody p{margin:8px 0}
.modalBody ul{margin:8px 0 0;padding-left:18px}
hr.sep{border:none;border-top:1px solid rgba(255,255,255,.12);margin:18px 0}
@media (max-width: 920px){
  #about .sectionSub{color:rgba(245,247,251,0.70)}
  #about .card.listCard .d{color:var(--muted)}

  html, body{overflow-x:hidden;}
  .heroGrid{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
  align-items:stretch;
}
  .h1{font-size:36px}
  .grid3{grid-template-columns:1fr}
  .split{grid-template-columns:1fr}
  /* Portrait must remain visible on mobile */
  .portrait{display:flex;aspect-ratio:1 / 1;height:auto;}
  .portrait img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:50% 50%;
  opacity:.88;
  filter:contrast(1.05) saturate(.9);
}
}
.tileIcon{position:absolute;top:14px;right:14px;opacity:.92;pointer-events:none}
.tileIcon svg{width:22px;height:22px;stroke:rgba(255,255,255,.92);fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* UC5: prevent icon/title overlap + add TM styling without changing overall tile design */
.uc5-tile{z-index:1;}
.uc5-tile .t{padding-right:46px;}
.tm{font-size:0.72em; vertical-align:super; line-height:0;}

.ul.iconList{list-style:none;padding-left:0}
.ul.iconList li{display:flex;gap:10px;align-items:flex-start;margin:10px 0}
.liIcon{margin-top:2px;opacity:.9}
.liIcon svg{width:18px;height:18px;stroke:rgba(255,255,255,.88);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* Tracking consent (only shown when analytics is configured) */
.consentBar{position:fixed;left:0;right:0;bottom:0;z-index:999;background:rgba(16,16,18,.92);backdrop-filter:blur(10px);border-top:1px solid rgba(255,255,255,.08)}
.consentBar .container{padding:10px 0}
.consentRow{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.consentText{font-size:12.5px;line-height:1.35;color:rgba(255,255,255,.85);max-width:64ch}
.consentActions{display:flex;gap:10px;align-items:center}
@media (max-width:560px){.consentText{max-width:none}}


/* Playbook triggers (subtle, non-dominant) */
.playbook-trigger-row{margin-top:6px;}
.playbook-trigger,
.playbook-trigger-inline{
  font-size:12px;
  font-weight:400;
  opacity:0.75;
  text-decoration:underline;
}
.playbook-trigger:hover,
.playbook-trigger-inline:hover{opacity:1;}

/* Playbook modal (overlay) */
.playbook-overlay{
  display:none;
  position:fixed;
  inset:0;
  background: linear-gradient(180deg, rgba(18,20,23,0.92), rgba(21,24,28,0.92));
  z-index:9999;
  padding:24px;
}
.playbook-overlay.is-open{display:flex; align-items:center; justify-content:center;}

.playbook-modal-card{
  width:min(820px, 100%);
  max-height:90vh;
  overflow:auto;
  background:rgba(18,20,24,0.98);
  border:1px solid rgba(255,255,255,0.10);
  border-radius:16px;
  box-shadow:0 16px 60px rgba(0,0,0,0.6);
  padding:18px 18px 20px 18px;
}

.playbook-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,0.08);
  margin-bottom:14px;
}
.playbook-modal-title{
  font-weight:700;
  font-size:16px;
}
.playbook-modal-close{
  background:transparent;
  border:1px solid rgba(255,255,255,0.18);
  color:inherit;
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  cursor:pointer;
  opacity:0.85;
}
.playbook-modal-close:hover{opacity:1;}

.playbook-modal-body p{margin:0 0 10px 0;}
.playbook-modal-body ul{margin:0 0 10px 18px;}
.playbook-modal-body li{margin:0 0 6px 0;}

.playbook-no-scroll{overflow:hidden !important;}

/* Prevent wrap for Signature Use Cases subtext */
.signature-use-cases-subtext,
.signature-subtext {
  white-space: nowrap;
}


/* Tone down About section text to match overall palette */
#about .d{color:var(--muted)}
#about .sectionSub{color:rgba(245,247,251,0.75)}

@media (max-width: 920px){
  #usecases .grid2{grid-template-columns:1fr;}
  #usecases .grid2 .card{margin-bottom:12px;}
}

@media (max-width: 920px){
  #usecases .grid2{grid-template-columns:1fr; gap:12px;}
}
