/* ================================================================
   Tessera Website — Brand Stylesheet
   Palette matches Tessera Management Console & Keycloak theme
   ================================================================ */

:root {
  --navy:          #1a1f36;
  --navy-dark:     #1E3C78;
  --accent:        #7b8cde;
  --accent-hover:  #6272cc;
  --accent-active: #5362ba;
  --body-bg:       #f5f6fa;
  --card-bg:       #ffffff;
  --text-primary:  #1a1f36;
  --text-muted:    #6b7280;
  --border:        #e3e6ef;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--body-bg);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  line-height: 1.65;
}

/* ---- Navbar ---- */
.tessera-nav {
  background: var(--navy);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.tessera-nav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff !important;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}

.tessera-nav .navbar-brand img {
  height: 30px;
  width: 30px;
}

.tessera-nav .navbar-brand .brand-sub {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.tessera-nav .nav-link {
  color: #aabfe8 !important;
  font-size: 0.865rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem !important;
  border-radius: 0.3rem;
  transition: color 0.15s, background 0.15s;
}

.tessera-nav .nav-link:hover {
  color: #fff !important;
  background: rgba(123,140,222,0.15);
}

.tessera-nav .nav-link.active {
  color: var(--accent) !important;
  background: rgba(123,140,222,0.12);
}

.tessera-nav .navbar-toggler {
  border-color: rgba(170,191,232,0.4);
  padding: 0.25rem 0.5rem;
}

.tessera-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(170,191,232,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---- Hero ---- */
.hero {
  background-color: var(--navy);
  background-image:
    radial-gradient(circle at 18% 22%, rgba(123,140,222,0.13) 0%, transparent 52%),
    radial-gradient(circle at 82% 78%, rgba(123,140,222,0.09) 0%, transparent 52%),
    radial-gradient(rgba(123,140,222,0.09) 1px, transparent 1px);
  background-size: auto, auto, 28px 28px;
  color: #fff;
  padding: 5.5rem 0 4.5rem;
  text-align: center;
}

.hero-logo {
  width: 76px;
  height: 76px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.45));
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.3rem;
  line-height: 1;
}

.hero .hero-tagline {
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}

.hero .hero-subtitle {
  font-size: 1.05rem;
  color: #aabfe8;
  max-width: 580px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

.hero-narrow {
  padding: 3rem 0 2.5rem;
}

.hero-narrow h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-narrow .hero-tagline {
  font-size: 0.875rem;
}

/* ---- Buttons ---- */
.btn-tessera {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.7rem 1.6rem;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s, box-shadow 0.15s;
  line-height: 1.4;
}

.btn-tessera:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(123,140,222,0.28);
  text-decoration: none;
}

.btn-tessera-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.38);
  padding: 0.7rem 1.6rem;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.15s, background 0.15s;
  line-height: 1.4;
}

.btn-tessera-outline:hover {
  border-color: var(--accent);
  background: rgba(123,140,222,0.14);
  color: #fff;
  text-decoration: none;
}

/* ---- Sections ---- */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--card-bg);
  padding: 4.5rem 0;
}

.section-dark {
  background: var(--navy);
  color: #fff;
  padding: 3.5rem 0;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.section-dark .section-title { color: #fff; }

.section-lead {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 640px;
  line-height: 1.7;
}

.section-dark .section-lead { color: #aabfe8; }

.text-accent { color: var(--accent) !important; }

/* ---- Feature cards ---- */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: 0 6px 20px rgba(26,31,54,0.10);
  transform: translateY(-2px);
}

.feature-card .card-icon {
  font-size: 1.85rem;
  color: var(--accent);
  margin-bottom: 0.85rem;
  display: block;
}

.feature-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---- Product cards ---- */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(26,31,54,0.12);
}

.product-card .product-icon {
  font-size: 2.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-card .product-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 1rem;
}

.product-card ul.feature-list {
  padding-left: 0;
  margin: 0 0 1.25rem;
  list-style: none;
}

.product-card ul.feature-list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.2rem 0;
  padding-left: 1.4rem;
  position: relative;
}

.product-card ul.feature-list li::before {
  content: '\f26c';
  font-family: 'bootstrap-icons';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 0.75rem;
  top: 0.28rem;
}

/* ---- Standards strip ---- */
.standards-strip {
  background: var(--navy-dark, #1E3C78);
  padding: 2rem 0;
  text-align: center;
}

.standards-strip .strip-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #aabfe8;
  margin-bottom: 1rem;
  font-weight: 600;
}

.standard-badge {
  display: inline-block;
  background: rgba(123,140,222,0.16);
  border: 1px solid rgba(123,140,222,0.32);
  color: var(--accent);
  border-radius: 4px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0.25rem;
  transition: background 0.15s;
}

.standard-badge:hover {
  background: rgba(123,140,222,0.28);
}

/* ---- Step flow (3-step) ---- */
.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.75rem;
  text-align: center;
  height: 100%;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-card h5 {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.step-connector {
  color: var(--accent);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2.5rem;
}

/* ---- Architecture diagram ---- */
.arch-diagram {
  background: #0d1117;
  color: #c9d1d9;
  border-radius: 0.6rem;
  padding: 1.75rem 2rem;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.83rem;
  line-height: 1.8;
  overflow-x: auto;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07);
}

.arch-accent { color: var(--accent); }
.arch-label  { color: #f0c674; }
.arch-dim    { color: #6b7280; }

/* ---- Two-column pipeline ---- */
.pipeline-col {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.75rem;
  height: 100%;
}

.pipeline-col h5 {
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.35rem 0.9rem;
  border-radius: 0.3rem;
  display: inline-block;
  margin-bottom: 1.25rem;
  letter-spacing: 0.04em;
}

.pipeline-col.h2l h5 { background: #fef3c7; color: #92400e; }
.pipeline-col.l2h h5 { background: #dbeafe; color: #1e40af; }

.pipeline-step {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.pipeline-step .step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.45rem;
}

.pipeline-step .step-text strong {
  display: block;
  font-size: 0.825rem;
  color: var(--text-primary);
}

.pipeline-step .step-text small {
  color: var(--text-muted);
}

/* ---- Classification level bars ---- */
.class-levels {
  max-width: 500px;
}

.class-level {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.6rem;
}

.class-level .level-bar {
  border-radius: 4px;
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.cl-u  .level-bar { background: #059669; width: 28%; }
.cl-r  .level-bar { background: #2563eb; width: 42%; }
.cl-c  .level-bar { background: #7c3aed; width: 58%; }
.cl-s  .level-bar { background: #dc2626; width: 74%; }
.cl-ts .level-bar { background: #7f1d1d; width: 90%; }

.class-level .level-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---- Tags ---- */
.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 0.3rem;
  font-size: 0.775rem;
  font-weight: 600;
  margin: 0.15rem;
}

.tag-red    { background: #fee2e2; color: #991b1b; }
.tag-blue   { background: #dbeafe; color: #1e40af; }
.tag-green  { background: #d1fae5; color: #065f46; }
.tag-gray   { background: #f3f4f6; color: #374151; }
.tag-purple { background: #ede9fe; color: #5b21b6; }
.tag-amber  { background: #fef3c7; color: #92400e; }

/* ---- Concept sidebar / anchor nav ---- */
.concept-nav {
  position: sticky;
  top: 80px;
}

.concept-nav a {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.concept-nav a:hover,
.concept-nav a.active {
  color: var(--accent);
  border-left-color: var(--accent);
}

/* ---- Highlight box ---- */
.highlight-box {
  background: rgba(123,140,222,0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.9rem;
}

.highlight-box strong { color: var(--text-primary); }

/* ---- Enforcement diagram ---- */
.enforcement-flow {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.ef-node {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  text-align: center;
  min-width: 110px;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.ef-node .ef-icon {
  font-size: 1.2rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.25rem;
}

.ef-node strong { font-size: 0.8rem; }

.ef-arrow {
  color: var(--accent);
  font-size: 1.25rem;
  flex-shrink: 0;
  padding: 0 0.25rem;
}

.ef-node.ef-guard {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy-dark);
}

.ef-node.ef-guard .ef-icon { color: var(--accent); }
.ef-node.ef-guard strong   { color: #fff; }

/* ---- Standards table ---- */
.standards-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--card-bg);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.standards-table th {
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 1.1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.standards-table td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.standards-table tr:last-child td { border-bottom: none; }
.standards-table tr:hover td     { background: #f8f9fc; }

.standards-table td:first-child {
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-primary);
}

.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-impl { background: #d1fae5; color: #065f46; }
.status-part { background: #fef3c7; color: #92400e; }
.status-road { background: #ede9fe; color: #5b21b6; }

/* ---- Component grid ---- */
.component-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.component-item:last-child { border-bottom: none; }

.component-item .comp-icon {
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.component-item h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.component-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---- Security char list ---- */
.sec-char-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sec-char-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.sec-char-list li:last-child { border-bottom: none; }

.sec-char-list li i {
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ---- Footer ---- */
.footer {
  background: var(--navy);
  color: #aabfe8;
  padding: 2.75rem 0;
  font-size: 0.875rem;
}

.footer .brand-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}

.footer .brand-row img {
  height: 26px;
  width: 26px;
  opacity: 0.9;
}

.footer .brand-row span {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.footer p { margin: 0; }

.footer a {
  color: #aabfe8;
  text-decoration: none;
  transition: color 0.15s;
}

.footer a:hover { color: #fff; }

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.4rem; }

.footer-divider {
  border-color: rgba(170,191,232,0.15);
  margin: 1.5rem 0;
}

/* ---- Visual flow diagrams ---- */
.flow-diagram {
  background: #0d1117;
  border: 1px solid rgba(123,140,222,0.25);
  border-radius: 0.75rem;
  padding: 1.5rem;
  font-size: 0.85rem;
}

.flow-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.flow-node {
  background: rgba(123,140,222,0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  align-self: center;
}

.flow-arrow {
  color: var(--accent);
  font-weight: 700;
  align-self: center;
  white-space: nowrap;
}

.flow-box {
  border: 1px solid rgba(123,140,222,0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  flex: 1;
  min-width: 200px;
}

.flow-box-title {
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.flow-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.15rem 0;
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
}

.flow-item .badge-std {
  background: rgba(123,140,222,0.2);
  color: var(--accent);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.flow-step {
  color: rgba(255,255,255,0.75);
  padding: 0.12rem 0;
  font-size: 0.82rem;
}

.flow-step::before {
  content: "›";
  color: var(--accent);
  margin-right: 0.4rem;
}

.flow-outcomes {
  display: flex;
  gap: 1rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.outcome-allow { color: #4ade80; font-weight: 600; }
.outcome-deny  { color: #6b7280; }

.flow-divider {
  border: none;
  border-top: 1px solid rgba(123,140,222,0.2);
  margin: 1rem 0;
}

/* ---- Model comparison (perimeter vs data-centric) ---- */
.model-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: #0d1117;
  border: 1px solid rgba(123,140,222,0.25);
  border-radius: 0.75rem;
  padding: 1.25rem;
  font-size: 0.82rem;
}

.model-col-title {
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
}

.model-col-title.perimeter    { color: #f87171; }
.model-col-title.datacentric  { color: #4ade80; }

.model-row {
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.model-row:last-child { border-bottom: none; }

.model-label {
  font-size: 0.7rem;
  color: #6b7280;
  margin-bottom: 0.1rem;
}

.model-value      { color: rgba(255,255,255,0.8); }
.model-value.bad  { color: #f87171; }
.model-value.good { color: #4ade80; }

/* ---- Architecture stack ---- */
.arch-stack {
  background: #0d1117;
  border: 1px solid rgba(123,140,222,0.25);
  border-radius: 0.75rem;
  padding: 1.5rem;
  font-size: 0.82rem;
}

.arch-tier         { text-align: center; margin-bottom: 0.2rem; }
.arch-tier-label   { display: block; font-size: 0.68rem; text-transform: uppercase;
                     letter-spacing: 0.08em; color: #6b7280; margin-bottom: 0.4rem; }
.arch-chips        { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }

.arch-chip {
  background: rgba(123,140,222,0.12);
  border: 1px solid rgba(123,140,222,0.3);
  color: rgba(255,255,255,0.85);
  border-radius: 5px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
}

.arch-chip-primary {
  background: rgba(123,140,222,0.25);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.arch-down {
  text-align: center;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0.1rem 0;
}

.arch-down-label {
  display: block;
  font-size: 0.68rem;
  color: #6b7280;
  line-height: 1.4;
}

.arch-branch-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.arch-branch-box {
  border: 1px solid rgba(123,140,222,0.25);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.arch-branch-title {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.arch-branch-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.arch-branch-items li {
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  padding: 0.08rem 0;
}

.arch-branch-items li::before {
  content: "·";
  color: var(--accent);
  margin-right: 0.35rem;
}

/* ---- CDS topology ---- */
.cds-topology {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  background: #0d1117;
  border: 1px solid rgba(123,140,222,0.25);
  border-radius: 0.75rem;
  overflow: hidden;
  font-size: 0.8rem;
}

.cds-domain          { padding: 1.25rem 1rem; }
.cds-domain.hs       { border-right: 1px solid rgba(123,140,222,0.2); }
.cds-domain.ls       { border-left:  1px solid rgba(123,140,222,0.2); }

.cds-domain-title        { font-weight: 700; font-size: 0.78rem; text-transform: uppercase;
                           letter-spacing: 0.06em; margin-bottom: 0.2rem; }
.cds-domain-title.hs     { color: #f87171; }
.cds-domain-title.ls     { color: #60a5fa; }

.cds-ceiling { font-size: 0.7rem; color: #6b7280; margin-bottom: 0.75rem; }

.cds-node {
  background: rgba(123,140,222,0.1);
  border: 1px solid rgba(123,140,222,0.25);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
  color: rgba(255,255,255,0.85);
  text-align: center;
  margin-bottom: 0.25rem;
}

.cds-proxy { background: rgba(123,140,222,0.2); border-color: var(--accent);
             color: var(--accent); font-weight: 600; }

.cds-steps        { list-style: none; padding: 0; margin: 0.25rem 0; }
.cds-steps li     { color: rgba(255,255,255,0.6); font-size: 0.73rem; padding: 0.08rem 0; }
.cds-steps li::before { content: "›"; color: var(--accent); margin-right: 0.3rem; }

.cds-down { text-align: center; color: var(--accent); font-size: 0.95rem; margin: 0.2rem 0; }

.cds-guard-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem;
  background: rgba(123,140,222,0.07);
  min-width: 120px;
}

.cds-guard-box {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 8px;
  padding: 0.4rem 1rem;
  text-align: center;
  margin-bottom: 0.6rem;
}

.cds-guard-steps     { list-style: none; padding: 0; margin: 0 0 0.6rem; width: 100%; }
.cds-guard-steps li  { color: rgba(255,255,255,0.6); font-size: 0.72rem; text-align: center;
                       padding: 0.08rem 0; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .tessera-nav .navbar-collapse { padding-top: 0.75rem; }
}

@media (max-width: 767px) {
  .hero { padding: 4rem 0 3.25rem; }
  .hero h1 { font-size: 2.4rem; }
  .hero-narrow h1 { font-size: 1.6rem; }
  .section, .section-alt { padding: 3rem 0; }
  .step-connector { display: none; }
  .model-compare   { grid-template-columns: 1fr; }
  .arch-branch-row { grid-template-columns: 1fr; }
  .cds-topology    { grid-template-columns: 1fr; }
  .cds-domain.hs   { border-right: none; border-bottom: 1px solid rgba(123,140,222,0.2); }
  .cds-domain.ls   { border-left: none;  border-top: 1px solid rgba(123,140,222,0.2); }
  .cds-guard-col   { border-top: 1px solid rgba(123,140,222,0.2);
                     border-bottom: 1px solid rgba(123,140,222,0.2); }
}
