/*Module cards */


/* ============================================
   Module Detail Pages
   ============================================ */
/* Module Hero */
.section--module-hero {
  background: linear-gradient(135deg, hsl(220, 60%, 12%) 0%, hsl(220, 40%, 8%) 100%);
  padding: var(--space-2xl) 0 var(--space-xl);
  margin-top: calc(-1 * var(--nav-height));
  padding-top: calc(var(--nav-height) + var(--space-2xl));
}

.section--module-hero .section__label {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-left: 4px solid var(--module-accent, var(--accent));
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  color: var(--module-accent, var(--accent));
}

.section--module-hero .section__heading {
  max-width: 900px;
}

.section--module-hero .section__sub {
  max-width: 720px;
}

/*Section Module Variants */
.section__label--module {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-left: 3px solid var(--module-accent, var(--accent));
  background: rgba(255, 102, 0, 0.07);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--module-accent, var(--accent));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: var(--space-xs);
}

/* Sticky Section Navigation */
.section--nav-sticky {
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-sm) 0;
  position: sticky;
  top: var(--nav-height);
  z-index: 90;
  transition: all 0.3s ease;
}

/* Module Content Section */
.section--module-content {
  background: var(--bg-darkest);
  padding: var(--space-2xl) 0;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .section--nav-sticky {
    position: static;
  }
}
@media (max-width: 768px) {
  .card--module-link {
    min-height: 240px;
    padding: var(--space-md);
  }
  .module-card__icon-wrapper {
    width: 48px;
    height: 48px;
  }
  .module-card__icon-placeholder {
    width: 28px;
    height: 28px;
  }
  .module-card__icon {
    width: 28px;
    height: 28px;
  }
  .section--module-hero {
    padding-top: calc(var(--nav-height) + var(--space-lg));
    padding-bottom: var(--space-lg);
  }
}

/* ── Example boxes ──────────────────────────────────────────── */
.example-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  color: var(--text-muted);
}

.example-box strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.35rem;
}

.example-box ul {
  padding-left: 1rem;
  list-style: disc;
  margin-top: 0.25rem;
}

.example-box p {
  margin: 0.35rem 0 0;
}

/* ── Component list (CPE / service breakdown) ───────────────── */
.component-list {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .component-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
.component-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.component-item h4 {
  font-weight: 700;
  color: var(--text-primary);
}

.component-item p,
.component-item ul {
  color: var(--text-muted);
}

.component-item ul {
  padding-left: 1rem;
  list-style: disc;
}

/* ── Value-check grid ───────────────────────────────────────── */
.value-check {
  background: rgba(255, 102, 0, 0.05);
  border: 1px solid rgba(255, 102, 0, 0.18);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  color: var(--text-primary);
}

/* ── Comparison grid ────────────────────────────────────────── */
.comparison-side {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-side h4 {
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.comparison-side__divider {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-side__divider-label {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.6;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.comparison-side--other {
  background: rgba(255, 255, 255, 0.03);
}

.comparison-side--other h4 {
  color: var(--text-muted);
}

.comparison-side--wispgate {
  background: rgba(255, 102, 0, 0.06);
  border-color: rgba(255, 102, 0, 0.3);
}

.comparison-side--wispgate h4 {
  color: var(--accent);
}

.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0;
}

.comparison-list li {
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
}

.comparison-side--other .comparison-list li::before {
  content: "✗";
  position: absolute;
  left: 0;
  color: rgba(255, 100, 100, 0.7);
}

.comparison-side--wispgate .comparison-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.strategic-conclusion {
  padding: var(--space-md) var(--space-lg);
  background: rgba(255, 102, 0, 0.07);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.strategic-conclusion--spaced {
  margin-top: var(--space-xl);
}

.strategic-conclusion strong {
  color: var(--text-primary);
}

/* ── Feature Card ────────────────────────────────────────── */
.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.feature-card h4 {
  font-weight: 700;
  color: var(--text-primary);
}
.feature-card p {
  color: var(--text-muted);
  margin: 0;
}

/* ── Callout Boxes ──────────────────────────────────────── */
.callout {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  color: var(--text-muted);
  margin: 1.2rem 0;
}
.callout--example {
  border-left: 4px solid var(--accent);
  background: rgba(255,102,0,0.07);
  color: var(--text-primary);
}
.callout--key-principle {
  border-left: 4px solid var(--blue);
  background: rgba(99,169,255,0.07);
  color: var(--text-primary);
}

/* ============================================================
   ARCHITECTURE PAGE — SYSTEM DIAGRAM NODES
   ============================================================ */
.arch-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.arch-node {
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #f6f8ff);
    letter-spacing: -.01em;
    transition: .25s var(--ease);
}

.arch-node:hover {
    border-color: rgba(255,102,0,.22);
    background: rgba(255,255,255,.07);
}

.arch-node--primary {
    border-color: rgba(255,102,0,.22);
    background: linear-gradient(180deg, rgba(255,102,0,.10), rgba(255,102,0,.05));
    color: #ffd3b6;
    box-shadow: 0 0 18px rgba(255,102,0,.10);
}

.arch-arrow {
    color: rgba(255,255,255,.32);
    font-size: 18px;
    flex-shrink: 0;
}

.arch-flow-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}
.arch-arrow--vertical {
  font-size: 2em;
  color: var(--accent, #ffb27a);
  line-height: 1;
  margin: 0.1em 0;
}

/* arch-node--primary — orange tinted treatment */
.arch-node--primary {
    border-color: rgba(255,102,0,.30);
    background: linear-gradient(180deg, rgba(255,102,0,.12), rgba(255,102,0,.06));
    color: #ffd3b6;
    box-shadow: 0 0 18px rgba(255,102,0,.12);
}

.arch-node--primary:hover {
    border-color: rgba(255,102,0,.45);
    background: linear-gradient(180deg, rgba(255,102,0,.18), rgba(255,102,0,.09));
    box-shadow: 0 0 26px rgba(255,102,0,.20);
}

/* diagram-box — give it the panel glass treatment */
.diagram-box {
    position: relative;
    padding: 24px;
    border-radius: 26px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.024));
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 46px rgba(0,0,0,.18);
    overflow: hidden;
    transition: .3s var(--ease);
}

.diagram-box::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,102,0,.24), rgba(255,255,255,.08), rgba(99,169,255,.14));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}