/* =========================================================
   Setcon — Shared Stylesheet
   Design system: clean, technical, engineering-focused
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --bg-dark: #1a1a1e;
  --bg-dark-alt: #222226;
  --text: #2d2d32;
  --text-light: #6b6b76;
  --text-on-dark: #e8e8ec;
  --text-muted-dark: #9a9aa6;
  --accent: #d42027;
  --accent-hover: #b81b21;
  --accent-glow: rgba(212, 32, 39, 0.08);
  --border: #e5e5ea;
  --border-dark: rgba(255,255,255,0.08);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--bg);
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; }
img { max-width: 100%; display: block; }

/* =========================================================
   NAV
   ========================================================= */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 1rem 3rem;
  display: flex; justify-content: space-between; align-items: center;
  background: #ffffff;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
nav.scrolled { padding: 0.7rem 3rem; box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-logo img { height: 65px; display: block; }
.nav-links { display: flex; gap: 2.2rem; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 500;
  color: var(--text-light); text-decoration: none; letter-spacing: 0.01em;
  transition: color 0.3s;
  position: relative;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 2px; background: var(--accent);
}
.nav-cta {
  background: var(--accent) !important; color: #fff !important;
  padding: 0.55rem 1.4rem; border-radius: 4px; font-weight: 600 !important;
  transition: background 0.3s !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; color: #fff !important; }
.nav-cta::after { display: none !important; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 5px 0; transition: all 0.3s;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  font-family: var(--font-heading); font-size: 0.88rem; font-weight: 600;
  padding: 0.85rem 2rem; border: none; cursor: pointer; border-radius: 4px;
  transition: all 0.3s ease; text-decoration: none; display: inline-block;
  text-align: center; letter-spacing: 0.01em;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover {
  background: var(--accent-hover); transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212,32,39,0.25);
}
.btn-outline { background: transparent; color: var(--text-muted-dark); border: 1px solid var(--border-dark); }
.btn-outline:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-outline-dark { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline-dark:hover { color: var(--accent); border-color: var(--accent); }
.btn-arrow::after { content: ' →'; transition: transform 0.3s; display: inline-block; }
.btn-arrow:hover::after { transform: translateX(3px); }

/* =========================================================
   HERO (home)
   ========================================================= */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--bg-dark); position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212,32,39,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none;
}
.hero-content { position: relative; z-index: 1; padding: 8rem 3rem 4.5rem; max-width: 960px; margin: 0 auto; width: 100%; }
.hero-content-wide { max-width: 1200px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 2rem;
  padding: 0.4rem 1rem; border: 1px solid rgba(212,32,39,0.25); border-radius: 2px;
  opacity: 0; animation: fadeUp 0.7s ease forwards 0.2s;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%; animation: pulse 2s ease infinite;
}
.hero h1 {
  font-family: var(--font-heading); font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; color: #fff;
  margin-bottom: 1.25rem; opacity: 0; animation: fadeUp 0.7s ease forwards 0.4s;
}
.hero h1 span { color: var(--accent); }
.hero-sub {
  font-size: 1.05rem; font-weight: 300; color: var(--text-muted-dark);
  max-width: 640px; line-height: 1.7; margin-bottom: 2.25rem;
  opacity: 0; animation: fadeUp 0.7s ease forwards 0.6s;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.7s ease forwards 0.8s;
}
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem 1.75rem; margin-top: 3.25rem; padding-top: 2.25rem;
  border-top: 1px solid var(--border-dark);
  opacity: 0; animation: fadeUp 0.7s ease forwards 1s;
}
.stat-item h3 { font-family: var(--font-heading); font-size: 1.65rem; font-weight: 700; color: #fff; line-height: 1.1; }
.stat-item h3 span { color: var(--accent); }
.stat-item p { font-size: 0.78rem; color: var(--text-muted-dark); margin-top: 0.35rem; letter-spacing: 0.02em; line-height: 1.4; }
@media (max-width: 1024px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; }
}

/* =========================================================
   PAGE HERO (inner pages)
   ========================================================= */
.page-hero {
  background: var(--bg-dark); color: #fff; position: relative; overflow: hidden;
  padding: 11rem 3rem 6rem;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(212,32,39,0.08) 0%, transparent 55%),
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: auto, 60px 60px, 60px 60px;
  pointer-events: none;
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.page-hero h1 {
  font-family: var(--font-heading); font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: #fff;
  margin-bottom: 1.2rem; max-width: 820px;
}
.page-hero h1 span { color: var(--accent); }
.page-hero p {
  font-size: 1.1rem; font-weight: 300; color: var(--text-muted-dark);
  max-width: 680px; line-height: 1.75;
}

/* =========================================================
   SECTIONS
   ========================================================= */
section { padding: 6rem 3rem; }
.section-label {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.8rem;
}
.section-heading {
  font-family: var(--font-heading); font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; line-height: 1.2; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 1rem; max-width: 820px;
}
.section-heading-light { color: #fff; }
.section-desc {
  font-size: 1.05rem; font-weight: 300; color: var(--text-light);
  max-width: 680px; line-height: 1.8;
}
.section-desc-light { color: var(--text-muted-dark); }
.container { max-width: 1200px; margin: 0 auto; }
.section-head { margin-bottom: 3rem; }
.section-head-center { text-align: center; }
.section-head-center .section-heading,
.section-head-center .section-desc { margin-left: auto; margin-right: auto; }

/* Dark section */
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark .section-heading { color: #fff; }
.section-dark .section-desc { color: var(--text-muted-dark); }

.section-alt { background: var(--bg-alt); }

/* =========================================================
   VALUE PROP / OUTCOMES GRID (home + inner pages)
   ========================================================= */
.outcomes-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.outcome-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; transition: all 0.35s ease; position: relative;
}
.outcome-card:hover {
  transform: translateY(-3px); border-color: var(--accent);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.outcome-metric {
  font-family: var(--font-heading); font-size: 2rem; font-weight: 700;
  color: var(--accent); line-height: 1; margin-bottom: 0.8rem;
}
.outcome-card h4 {
  font-family: var(--font-heading); font-size: 1rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.4rem;
}
.outcome-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }

/* =========================================================
   SERVICES / SOLUTIONS GRID
   ========================================================= */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.service-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.2rem; transition: all 0.35s ease; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.service-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-card:hover::after { transform: scaleX(1); }
.service-num {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent);
  letter-spacing: 0.05em; margin-bottom: 1.2rem;
}
.service-card h3 {
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600;
  margin-bottom: 0.7rem; color: var(--text);
}
.service-card p { font-size: 0.92rem; color: var(--text-light); line-height: 1.65; margin-bottom: 1rem; }
.service-card .outcome-line {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent);
  margin-top: auto; padding-top: 0.8rem; letter-spacing: 0.03em;
}

/* Expanded service blocks (services page) */
.service-block {
  display: grid; grid-template-columns: 1fr 2fr; gap: 3rem;
  padding: 3rem 0; border-bottom: 1px solid var(--border);
  align-items: start;
}
.service-block:last-child { border-bottom: none; }
.service-block-label {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.8rem;
}
.service-block h3 {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600;
  color: var(--text); line-height: 1.25; letter-spacing: -0.01em;
}
.service-block-body h4 {
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600;
  color: var(--text); margin-top: 1.3rem; margin-bottom: 0.3rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.service-block-body h4:first-child { margin-top: 0; }
.service-block-body p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }
.service-block-body ul {
  list-style: none; margin-top: 0.4rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem 1.2rem;
}
.service-block-body ul li {
  font-size: 0.9rem; color: var(--text-light); padding-left: 1rem; position: relative;
}
.service-block-body ul li::before {
  content: ''; position: absolute; left: 0; top: 0.7rem;
  width: 6px; height: 1px; background: var(--accent);
}

/* =========================================================
   SKILLS STRIP
   ========================================================= */
.skills-strip { background: var(--bg-dark); padding: 3rem; overflow: hidden; }
.skills-strip-inner {
  display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto;
}
.skill-pill {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em;
  color: var(--text-muted-dark); padding: 0.5rem 1.2rem;
  border: 1px solid var(--border-dark); border-radius: 3px; white-space: nowrap;
  transition: all 0.3s ease;
}
.skill-pill:hover { border-color: var(--accent); color: var(--accent); }

/* =========================================================
   INDUSTRIES GRID
   ========================================================= */
.industries-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.industry-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.2rem; transition: all 0.35s ease; position: relative; overflow: hidden;
}
.industry-card:hover {
  transform: translateY(-3px); border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.industry-icon {
  width: 48px; height: 48px; background: var(--accent-glow);
  border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; margin-bottom: 1.3rem;
}
.industry-card h3 {
  font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.6rem;
}
.industry-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.65; margin-bottom: 1rem; }
.industry-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.industry-card ul li {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-light);
  padding-left: 1rem; position: relative;
}
.industry-card ul li::before {
  content: '+'; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}

/* =========================================================
   PROCESS / WORKFLOW
   ========================================================= */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.process-step { position: relative; padding-top: 1.5rem; }
.process-step::before {
  content: ''; position: absolute; top: 0; left: 0; width: 40px; height: 2px;
  background: var(--accent);
}
.process-num {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent);
  letter-spacing: 0.1em; margin-bottom: 0.4rem;
}
.process-step h4 {
  font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.5rem;
}
.process-step p { font-size: 0.9rem; color: var(--text-light); line-height: 1.65; }

.section-dark .process-step h4 { color: #fff; }
.section-dark .process-step p { color: var(--text-muted-dark); }

/* =========================================================
   CASE STUDY / PROJECT CARDS
   ========================================================= */
.case-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem; margin-top: 3rem;
}
.case-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.5rem; transition: all 0.35s ease; display: flex; flex-direction: column;
}
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.case-tag {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  padding: 0.3rem 0.7rem; border: 1px solid rgba(212,32,39,0.3); border-radius: 2px;
  display: inline-block; margin-bottom: 1.3rem; align-self: flex-start;
}
.case-card h3 {
  font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.5rem; line-height: 1.3;
}
.case-card .case-meta {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-light);
  letter-spacing: 0.04em; margin-bottom: 1.4rem;
}
.case-section { margin-top: 1.1rem; }
.case-section h4 {
  font-family: var(--font-heading); font-size: 0.78rem; font-weight: 600;
  color: var(--accent); margin-bottom: 0.3rem;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.case-section p { font-size: 0.92rem; color: var(--text-light); line-height: 1.7; }
.case-results {
  display: flex; gap: 2rem; margin-top: 1.4rem; padding-top: 1.4rem;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.case-result strong {
  font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700;
  color: var(--accent); display: block; line-height: 1;
}
.case-result span {
  font-size: 0.75rem; color: var(--text-light);
  text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.3rem; display: block;
}

/* =========================================================
   PRODUCTS / SOLUTIONS (dark)
   ========================================================= */
.products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.product-card {
  background: var(--bg-dark-alt); border: 1px solid var(--border-dark);
  border-radius: var(--radius); padding: 2.5rem; transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  /* button reset — cards are now clickable */
  display: block; width: 100%; text-align: left;
  font: inherit; color: inherit; cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
.product-card:hover {
  border-color: rgba(212,32,39,0.3); transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.product-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.product-card.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 14px 46px rgba(212,32,39,0.18);
}
.product-card.is-active .product-tag {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* Solution power-flow viewer */
.solution-viewer {
  margin-top: 2rem;
}
.solution-viewer-stage {
  position: relative; width: 100%;
  aspect-ratio: 16 / 9; max-height: 520px;
  background:
    /* soft key-light bloom centered under the model */
    radial-gradient(ellipse 75% 65% at 50% 72%,
      rgba(140, 158, 185, 0.32) 0%,
      rgba(140, 158, 185, 0.08) 45%,
      rgba(140, 158, 185, 0) 75%),
    /* subtle warm glow centered over the flow */
    radial-gradient(ellipse 55% 55% at 50% 55%,
      rgba(255, 200, 140, 0.15) 0%,
      rgba(255, 200, 140, 0) 60%),
    /* base vignette — lighter center, deep dark corners */
    radial-gradient(ellipse 130% 110% at 50% 55%,
      rgba(36, 40, 48, 0.95) 0%,
      rgba(14, 16, 20, 0.98) 60%,
      rgba(6, 7, 10, 1) 100%);
  border: 1px solid var(--border-dark); border-radius: var(--radius);
  overflow: hidden;
}
.solution-viewer-stage canvas {
  display: block; width: 100%; height: 100%;
}
.solution-viewer-caption {
  position: absolute; top: 1.1rem; left: 1.3rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  padding: 0.35rem 0.8rem; border: 1px solid rgba(212,32,39,0.35);
  border-radius: 2px; background: rgba(10,11,14,0.6);
  backdrop-filter: blur(4px); pointer-events: none;
  transition: opacity 0.3s ease;
}
.solution-viewer-hint {
  position: absolute; bottom: 1.1rem; right: 1.3rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em;
  color: var(--text-muted-dark); opacity: 0.7; pointer-events: none;
}
.solution-viewer-stage.is-dormant .solution-viewer-caption { opacity: 0.55; }
/* Legend lives INSIDE the flow stage as a floating HUD panel — bottom-left,
   mirroring the caption at top-left. Two-column grid keeps it compact so it
   doesn't crowd the flow lines. Backdrop blur + translucent dark fill keeps
   it readable over the animated canvas. */
.solution-legend {
  position: absolute; bottom: 1.1rem; left: 1.3rem;
  list-style: none; margin: 0; padding: 0.55rem 0.85rem;
  display: grid; grid-template-columns: repeat(2, auto);
  gap: 0.4rem 1.1rem;
  background: rgba(10, 11, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  backdrop-filter: blur(4px);
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted-dark);
  pointer-events: none;
  z-index: 2;
}
.solution-legend li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  white-space: nowrap;
}
.legend-dot {
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.12);
  flex: 0 0 auto;
}
/* Topology selector pills — sit between the power-flow stage and the legend
   so users have an obvious way to switch between the four solution flows
   without having to scroll back up to the solution cards. */
.solution-tabs {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: center; margin: 1rem 0 0.4rem; padding: 0;
}
.solution-tab {
  background: rgba(20, 22, 26, 0.85);
  border: 1px solid var(--border-dark);
  color: var(--text-muted-dark);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 0.85rem; letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease,
              color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.solution-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.solution-tab.is-active {
  background: linear-gradient(135deg,
    rgba(212, 32, 39, 0.18) 0%,
    rgba(212, 32, 39, 0.06) 100%);
  border-color: rgba(212, 32, 39, 0.55);
  color: #fff;
  box-shadow: 0 6px 22px rgba(212, 32, 39, 0.18),
              0 1px 0 rgba(255, 255, 255, 0.05) inset;
}
.solution-tab:focus-visible {
  outline: 2px solid rgba(212, 32, 39, 0.6);
  outline-offset: 2px;
}
@media (max-width: 900px) {
  .solution-viewer-stage { aspect-ratio: 4 / 3; }
  .solution-viewer-hint { display: none; }
  .solution-legend {
    bottom: 0.7rem; left: 0.7rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.6rem;
    gap: 0.3rem 0.85rem;
  }
  .legend-dot { width: 0.5rem; height: 0.5rem; }
  .solution-tabs { gap: 0.4rem; margin-top: 0.85rem; }
  .solution-tab { padding: 0.5rem 0.9rem; font-size: 0.78rem; }
}
@media (max-width: 520px) {
  /* On very narrow phones, drop to a single column so the panel doesn't
     eat half the stage width. */
  .solution-legend { grid-template-columns: 1fr; gap: 0.25rem 0; }
}
@media (max-width: 480px) {
  .solution-tab { padding: 0.45rem 0.75rem; font-size: 0.74rem; }
}
.product-tag {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  padding: 0.3rem 0.7rem; border: 1px solid rgba(212,32,39,0.3);
  border-radius: 2px; display: inline-block; margin-bottom: 1.2rem;
}
.product-card h3 {
  font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600;
  margin-bottom: 0.8rem; color: #fff;
}
.product-card p { font-size: 0.9rem; color: var(--text-muted-dark); line-height: 1.7; margin-bottom: 1.5rem; }
.product-features { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.product-features li {
  font-size: 0.75rem; color: var(--text-muted-dark); padding: 0.3rem 0.7rem;
  background: rgba(255,255,255,0.04); border-radius: 3px; font-family: var(--font-mono);
}

/* =========================================================
   TEAM
   ========================================================= */
.team-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2rem; margin-top: 3rem; max-width: 760px;
}
.team-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.5rem; text-align: center; transition: all 0.3s ease;
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%; background: var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
  color: var(--accent); margin: 0 auto 1.2rem;
}
.team-card h4 { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--text); }
.team-card .role {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase; margin-top: 0.3rem;
}
.team-card p { font-size: 0.88rem; color: var(--text-light); margin-top: 0.8rem; line-height: 1.6; }

/* =========================================================
   TRUST STRIP (capabilities / standards / logos)
   ========================================================= */
.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; margin-top: 3rem;
  padding: 2rem 0; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-item { text-align: center; }
.trust-item strong {
  font-family: var(--font-heading); font-size: 2rem; font-weight: 700;
  color: var(--accent); display: block; line-height: 1;
}
.trust-item span {
  display: block; font-size: 0.82rem; color: var(--text-light);
  margin-top: 0.4rem; letter-spacing: 0.02em;
}

/* =========================================================
   COVERAGE BAR
   ========================================================= */
.coverage-bar { background: var(--bg-dark); padding: 4rem 3rem; text-align: center; }
.coverage-bar h2 {
  font-family: var(--font-heading); font-size: 1.6rem; font-weight: 600;
  color: #fff; margin-bottom: 0.6rem;
}
.coverage-bar p { color: var(--text-muted-dark); font-size: 0.95rem; margin-bottom: 2rem; }
.coverage-tags { display: flex; justify-content: center; gap: 0.8rem; flex-wrap: wrap; }
.coverage-tag {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--text-muted-dark); padding: 0.5rem 1.2rem;
  border: 1px solid var(--border-dark); border-radius: 3px;
  transition: all 0.3s ease;
}
.coverage-tag:hover { border-color: var(--accent); color: var(--accent); }
.coverage-tag.active { border-color: var(--accent); color: var(--accent); background: rgba(212,32,39,0.08); }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  background: var(--bg-dark); padding: 5rem 3rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(212,32,39,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.cta-band h2 {
  font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; color: #fff; margin-bottom: 0.8rem; letter-spacing: -0.02em;
}
.cta-band p { color: var(--text-muted-dark); font-size: 1.05rem; margin-bottom: 2rem; font-weight: 300; }
.cta-band .btn { margin: 0 0.4rem 0.4rem 0; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 3rem;
}
.contact-info-blocks { display: flex; flex-direction: column; gap: 2rem; }
.contact-block h4 {
  font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.4rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.contact-block p, .contact-block a {
  font-size: 0.98rem; color: var(--text-light); text-decoration: none;
  transition: color 0.3s; line-height: 1.7;
}
/* Stack multiple links inside the same block (e.g. phone + email under each
   founder) so each sits on its own line. */
.contact-block a { display: block; }
.contact-block a:hover { color: var(--accent); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

/* Privacy-policy consent line under the form. */
.form-consent {
  font-size: 0.78rem; color: var(--text-light); line-height: 1.5;
  margin: 0;
}
.form-consent a {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid rgba(212, 32, 39, 0.3);
  transition: color 0.25s, border-color 0.25s;
}
.form-consent a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

/* Inline submission status (success / error). */
.form-status {
  margin-top: 0.4rem; padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem; line-height: 1.55;
  border-left: 3px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
}
.form-status-ok {
  background: rgba(94, 232, 132, 0.08);
  border-left-color: rgba(58, 178, 105, 0.85);
}
.form-status-err {
  background: var(--accent-glow);
  border-left-color: var(--accent);
}
.contact-form button[type="submit"]:disabled {
  opacity: 0.7; cursor: progress;
}
.form-row { display: flex; gap: 1rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; font-family: var(--font-body); font-size: 0.95rem;
  padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: 4px;
  background: var(--bg-alt); color: var(--text); outline: none;
  transition: border-color 0.3s, background 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  border-color: var(--accent); background: var(--bg);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .btn { align-self: flex-start; }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--bg-dark); padding: 4rem 3rem 2rem;
  border-top: 1px solid var(--border-dark);
}
.footer-cols {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; max-width: 1200px; margin: 0 auto 3rem;
}
.footer-col h5 {
  font-family: var(--font-heading); font-size: 0.8rem; font-weight: 600;
  color: #fff; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a {
  font-size: 0.88rem; color: var(--text-muted-dark); text-decoration: none;
  transition: color 0.3s;
}
.footer-col ul a:hover { color: var(--accent); }
.footer-col p { font-size: 0.88rem; color: var(--text-muted-dark); line-height: 1.7; }
.footer-logo img { height: 72px; opacity: 0.9; margin-bottom: 1.25rem; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted-dark); }
/* Easter-egg dot: the full stop after "Setcon" links to the hidden game.
   Styled as the brand's red dot so it reads as intentional, with a gentle
   hover cue for the curious. */
.egg-dot {
  color: var(--accent); text-decoration: none; font-weight: 700;
  cursor: pointer; padding: 0 0.02em;
  transition: text-shadow 0.25s ease, color 0.25s ease;
}
.egg-dot:hover { color: var(--accent); text-shadow: 0 0 8px rgba(212, 32, 39, 0.85); }
/* Faint inline clue (e.g. "the lights on" in the Uptime card) — reads as
   normal copy, with a barely-there dotted underline that rewards the curious
   who hover it. Links to the hidden game. */
.egg-hint {
  color: inherit; text-decoration: none; cursor: pointer;
  border-bottom: 1px dotted rgba(212, 32, 39, 0.4);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.egg-hint:hover { color: var(--accent); border-bottom-color: var(--accent); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.78rem; color: var(--text-muted-dark);
  text-decoration: none; transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .service-block { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: 0.8rem 1.5rem; }
  .nav-links { display: none; }
  .nav-links.show {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 1.5rem; gap: 1.2rem;
    border-bottom: 1px solid var(--border);
  }
  .mobile-toggle { display: block; }
  section, .hero-content, .page-hero, .cta-band, .skills-strip, .coverage-bar, footer {
    padding-left: 1.5rem; padding-right: 1.5rem;
  }
  .page-hero { padding-top: 8rem; padding-bottom: 4rem; }
  .hero-content { padding: 8rem 1.5rem 4rem; }
  .about-layout, .contact-grid, .products-grid, .team-grid,
  .case-grid, .services-grid, .industries-grid, .outcomes-grid, .process-grid {
    grid-template-columns: 1fr; gap: 1.5rem;
  }
  .service-block-body ul { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1.75rem; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .form-row { flex-direction: column; }
  .coverage-bar { padding: 3rem 1.5rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .skills-strip-inner { gap: 0.6rem; }
  .case-results { gap: 1.2rem; }
}

/* =========================================================
   ABOUT layout (used on home + about)
   ========================================================= */
.about-layout {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 5rem; margin-top: 3rem; align-items: start;
}
.about-story p {
  color: var(--text-light); font-size: 1rem;
  margin-bottom: 1.4rem; line-height: 1.85;
}
.about-story p strong { color: var(--text); font-weight: 600; }
.about-values { display: flex; flex-direction: column; gap: 1.2rem; }

/* About-page sidebar variant of the team grid: stack the founder cards
   vertically inside the right column of .about-layout. */
.about-team { display: flex; flex-direction: column; gap: 1.2rem; }
.about-team .team-card { padding: 1.6rem; }
.about-team .team-avatar { width: 64px; height: 64px; font-size: 1.25rem; margin-bottom: 0.9rem; }
.about-team .team-card p { font-size: 0.85rem; margin-top: 0.65rem; }
.about-team-label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.4rem;
}

/* =========================================================
   LEGAL / POLICY pages (privacy, terms)
   Long-form readable column with constrained width, clear
   numbered headings, and italic "summary" callouts under
   each section that mirror the source document's style.
   ========================================================= */
.legal { padding: 5rem 3rem 6rem; background: var(--bg); color: var(--text); }
.legal-container { max-width: 820px; }

.legal-meta {
  display: flex; flex-direction: column;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem 1.6rem;
  margin-bottom: 2rem;
}
.legal-meta-row {
  display: grid; grid-template-columns: 9rem 1fr;
  gap: 1rem; padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.legal-meta-row:last-child { border-bottom: none; }
.legal-meta-row span {
  font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-light); align-self: center;
}
.legal-meta-row strong {
  font-weight: 600; color: var(--text); align-self: center;
}

.legal-callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-glow);
  padding: 1rem 1.25rem; border-radius: 2px;
  font-size: 0.95rem; color: var(--text);
  margin: 0 0 3rem;
}

.legal-body { font-size: 1rem; line-height: 1.75; color: var(--text); }
.legal-body p,
.legal-body li { color: var(--text); }
.legal-body h2 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1.5rem; color: var(--text);
  margin: 2.6rem 0 0.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 90px;
}
.legal-body h2:first-child { padding-top: 0; border-top: none; margin-top: 0; }
.legal-body h3 {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 1.05rem; color: var(--text);
  margin: 1.6rem 0 0.6rem;
}
.legal-body p { margin: 0 0 1rem; }
.legal-body p strong { color: var(--text); font-weight: 600; }
.legal-body ul {
  list-style: none; padding-left: 0;
  margin: 0 0 1.2rem;
}
.legal-body ul li {
  position: relative; padding-left: 1.4rem;
  margin-bottom: 0.5rem;
}
.legal-body ul li::before {
  content: ''; position: absolute;
  left: 0; top: 0.65em;
  width: 0.4rem; height: 0.4rem; border-radius: 50%;
  background: var(--accent);
}
.legal-body a {
  color: var(--accent); text-decoration: none;
  border-bottom: 1px solid rgba(212,32,39,0.3);
  transition: border-color 0.25s, color 0.25s;
}
.legal-body a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

/* Italic summary callout that follows each section in the
   source document — sits below the body text, set apart by
   a left rule and slight indent. */
.legal-summary {
  font-style: italic; color: var(--text);
  border-left: 2px solid var(--border);
  padding: 0.4rem 0 0.4rem 1rem;
  margin: 0.4rem 0 1.6rem;
  font-size: 0.95rem;
}

/* Table styling for legal/policy pages (used on Cookies page). */
.legal-table {
  width: 100%; border-collapse: collapse;
  margin: 1rem 0 1.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  font-size: 0.95rem;
}
.legal-table thead { background: var(--bg-alt); }
.legal-table th {
  text-align: left; padding: 0.85rem 1rem;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-light); font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.legal-table td {
  padding: 0.95rem 1rem; vertical-align: top;
  color: var(--text); line-height: 1.65;
  border-bottom: 1px solid var(--border);
}
.legal-table tbody tr:last-child td { border-bottom: none; }
.legal-table td:first-child { width: 9.5rem; white-space: nowrap; }
.legal-table td strong { font-weight: 600; color: var(--text); }

@media (max-width: 600px) {
  .legal-table { font-size: 0.88rem; }
  .legal-table th, .legal-table td { padding: 0.7rem 0.8rem; }
  .legal-table td:first-child { width: auto; white-space: normal; }
}

@media (max-width: 700px) {
  .legal { padding: 3.5rem 1.5rem 4rem; }
  .legal-meta-row { grid-template-columns: 1fr; gap: 0.15rem; padding: 0.6rem 0; }
  .legal-body h2 { font-size: 1.3rem; }
  .legal-body h3 { font-size: 1rem; }
}
.value-card {
  background: var(--bg); padding: 1.6rem; border-radius: var(--radius);
  border: 1px solid var(--border); transition: all 0.3s ease;
}
.value-card:hover {
  border-color: var(--accent); box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-2px);
}
.value-icon {
  width: 36px; height: 36px; background: var(--accent-glow); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.8rem; font-size: 1rem;
}
.value-card h4 {
  font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.3rem;
}
.value-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

/* =========================================================
   FEATURE SHOWCASE (Apple-style interactive pills + mocks)
   ========================================================= */
.showcase {
  padding: 6rem 3rem; background: var(--bg-dark); color: #fff;
  position: relative; overflow: clip;
}
.showcase-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 35% at 50% 95%, rgba(255,255,255,0.11) 0%, rgba(255,255,255,0.04) 40%, transparent 75%),
    radial-gradient(ellipse at 70% 40%, rgba(212,32,39,0.08) 0%, transparent 55%),
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: auto, auto, 60px 60px, 60px 60px;
}
.showcase-inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; }

@media (min-width: 900px) {
  .showcase {
    padding: 0 3rem;
    min-height: calc(100vh * 5);
  }
  .showcase-inner {
    position: sticky; top: 0;
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 4rem 0 3rem;
  }
  .showcase-grid { margin-top: 1.75rem; }
  .showcase-pill {
    transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease;
  }
  .showcase-visuals .mock-screen {
    transition: opacity 0.35s ease, transform 0.45s ease;
  }
}
.showcase .section-head { margin-bottom: 0.5rem; }
.showcase-grid {
  display: grid; grid-template-columns: 0.8fr 2fr;
  gap: 3rem; align-items: center; margin-top: 0;
}

/* Pills */
.showcase-pills { display: flex; flex-direction: column; gap: 0.7rem; }
.showcase-pill {
  background: var(--bg-dark-alt); border: 1px solid var(--border-dark);
  border-radius: 999px; padding: 0.95rem 1.3rem;
  font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem;
  color: var(--text-muted-dark); text-align: left; cursor: pointer;
  transition: all 0.3s ease; width: 100%; display: block;
  box-shadow: 0 14px 28px rgba(0,0,0,0.45), 0 2px 4px rgba(0,0,0,0.3);
}
.showcase-pill:hover { color: #fff; border-color: rgba(255,255,255,0.18); }
.showcase-pill.active {
  background: var(--bg-dark-alt); border-color: rgba(212,32,39,0.35);
  color: #fff; border-radius: 18px; padding: 1.1rem 1.4rem 1.3rem;
  box-shadow: 0 22px 48px rgba(0,0,0,0.55), 0 4px 10px rgba(0,0,0,0.35);
}
.pill-head { display: flex; align-items: center; gap: 0.8rem; }
.pill-icon {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.28);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem; line-height: 1; color: var(--text-muted-dark);
  transition: all 0.3s ease;
}
.showcase-pill:hover .pill-icon { border-color: rgba(255,255,255,0.4); color: #fff; }
.showcase-pill.active .pill-icon {
  background: var(--accent); border-color: var(--accent); color: transparent;
}
.pill-body {
  display: none; margin-top: 0.9rem; padding-left: 2.5rem;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 400;
  color: var(--text-muted-dark); line-height: 1.65;
}
.pill-body strong { color: #fff; font-weight: 600; }
.showcase-pill.active .pill-body { display: block; }

/* Mock screens */
.showcase-visuals {
  position: relative; min-height: 460px;
  display: flex; align-items: center; justify-content: center;
}
.mock-screen {
  background: linear-gradient(155deg, #1f1f26 0%, #16161a 100%);
  border: 1px solid var(--border-dark);
  border-radius: 14px; padding: 1.2rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.mock-primary {
  position: relative; width: 62%; z-index: 2;
  transform: translate(-6%, -18px);
}
.mock-secondary {
  position: relative; width: 48%; z-index: 1;
  transform: translate(14%, 40px); margin-left: -10%;
}
.mock-screen.fade { opacity: 0.3; transform-origin: center; }

.mock-screen.mock-image-mode {
  padding: 0; background: #fff; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.mock-screen.mock-image-mode img {
  display: block; width: 100%; height: auto;
}

.hmi-stage {
  position: relative; width: 100%; max-width: 920px; aspect-ratio: 16 / 11;
  /* Leave room for heading + bubbles + padding inside a pinned 100vh section.
     Increased subtraction (from 10rem → 14rem) prevents the stage from
     growing tall enough to clip parts of the HMI on shorter desktop
     viewports (e.g. laptops at full screen, 100% OS scaling). */
  max-height: calc(100vh - 14rem);
  margin: 0 auto; z-index: 2;
  border-radius: 14px; overflow: hidden;
  /* Transparent stage — the section's grid + glow decoration shows through
     underneath, so the HMI area visually blends with the surrounding page
     instead of sitting on a darker rectangle. The soft radial sheen stays
     for subtle depth around the model. Mobile bleed-through is prevented
     by the .showcase-visuals sticky band (which is full-bleed solid). */
  background:
    radial-gradient(ellipse at 50% 60%, rgba(255,255,255,0.04) 0%, rgba(0,0,0,0) 70%);
}
.hmi-stage canvas { display: block; width: 100%; height: 100%; }
.hmi-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted-dark); font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase; pointer-events: none;
  transition: opacity 0.4s ease;
}
.hmi-stage.loaded .hmi-loading { opacity: 0; }

@media (max-width: 900px) {
  /* Sticky on mobile: drive the stage size from viewport width so the HMI
     scales smoothly with the band of pills as the viewport widens, instead
     of staying pegged at a fixed vh and leaving a wide flat background
     where pills can peek through. Aspect-ratio drives natural growth, with
     max-height clamping so the stage never eats more than ~half the screen
     and pills remain visible underneath. */
  .hmi-stage {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    max-height: clamp(38vh, calc(38vh + (100vw - 600px) * 0.06), 55vh);
    min-height: 240px;
  }
}
@media (max-width: 600px) {
  .hmi-stage {
    aspect-ratio: 5 / 4;
    height: auto;
    max-height: 36vh;
    min-height: 220px;
  }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; gap: 1.25rem; }
}

.showcase-visuals.image-only .mock-secondary { display: none; }
.showcase-visuals.image-only .mock-primary {
  width: 70%; transform: none; margin: 0 auto;
}

.mock-titlebar {
  display: flex; align-items: center; gap: 0.35rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 1rem;
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.1); display: inline-block; }
.mock-dot.red { background: rgba(232,94,94,0.55); }
.mock-dot.amber { background: rgba(232,203,94,0.55); }
.mock-dot.green { background: rgba(94,232,132,0.55); }
.mock-title {
  margin-left: 0.5rem; font-family: var(--font-mono);
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted-dark);
}

.mock-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem; margin-bottom: 1rem;
}
.mock-metric {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-dark);
  border-radius: 6px; padding: 0.7rem 0.8rem;
}
.mock-metric b {
  display: block; font-family: var(--font-heading);
  font-size: 1.15rem; font-weight: 700; color: #fff; line-height: 1;
}
.mock-metric em {
  display: block; font-family: var(--font-mono); font-size: 0.6rem;
  color: var(--text-muted-dark); margin-top: 0.4rem;
  letter-spacing: 0.08em; font-style: normal;
}

.mock-tiles {
  display: grid; grid-template-columns: repeat(14, 1fr);
  gap: 3px; margin-bottom: 0.9rem;
}
.mock-tile {
  height: 12px; border-radius: 2px; background: rgba(94,232,132,0.32);
}
.mock-tile.warn { background: rgba(232,203,94,0.5); }
.mock-tile.err { background: rgba(232,94,94,0.55); }
.mock-tile.off { background: rgba(255,255,255,0.05); }

.mock-chart {
  height: 90px; border-radius: 6px; border: 1px solid var(--border-dark);
  background: rgba(255,255,255,0.02); overflow: hidden; position: relative;
}
.mock-chart svg { width: 100%; height: 100%; display: block; }

.mock-list { display: flex; flex-direction: column; gap: 0.4rem; }
.mock-row {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 0.8rem; align-items: center;
  padding: 0.55rem 0.7rem; border-radius: 4px;
  background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.04);
  font-size: 0.78rem;
}
.mock-row .mock-ts {
  font-family: var(--font-mono); color: var(--text-muted-dark); font-size: 0.7rem;
}
.mock-row .mock-label { color: #e8e8ec; }
.mock-row .mock-val {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-muted-dark); letter-spacing: 0.03em;
}
.mock-row .mock-val.ok { color: rgba(94,232,132,0.9); }
.mock-row .mock-val.warn { color: rgba(232,203,94,0.95); }
.mock-row .mock-val.err { color: rgba(232,120,120,0.95); }

@media (max-width: 1024px) {
  .showcase-grid { gap: 2.5rem; }
  .mock-primary { transform: translate(-4%, -10px); }
  .mock-secondary { transform: translate(10%, 20px); }
}
@media (max-width: 900px) {
  .showcase { padding-left: 1.5rem; padding-right: 1.5rem; }
  /* Switch to flex so we can reorder children: HMI on top, pills below.
     The HMI stage is then made sticky so it stays in view as the user
     scrolls / taps through pills — both visible at once on mobile. */
  .showcase-grid {
    display: flex; flex-direction: column;
    grid-template-columns: 1fr;   /* harmless fallback */
    gap: 1.25rem;
  }
  .showcase-visuals {
    order: -1;                    /* HMI above pills */
    flex-direction: column; min-height: 0; gap: 1.2rem;
    position: sticky; top: 80px;  /* sit just below the fixed nav */
    z-index: 10;
    /* Full-bleed background: extend past the section's 1.5rem side padding
       so pill edges/shadows can never peek out to the left or right of the
       HMI when scrolling underneath. */
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding: 0.6rem 1.5rem 0.6rem;
    margin-bottom: 0.25rem;
    background: var(--bg-dark);
    /* Subtle inner shadow at the bottom to add depth where pills slide under. */
    box-shadow: 0 8px 12px -8px rgba(0,0,0,0.55);
  }
  /* Soft fade below the sticky HMI so pills appear to slide under it instead
     of meeting a hard background edge. Extends full-bleed to match the band. */
  .showcase-visuals::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -18px;
    height: 18px; pointer-events: none;
    background: linear-gradient(to bottom,
      var(--bg-dark) 0%,
      rgba(0,0,0,0) 100%);
  }
  .mock-primary, .mock-secondary {
    position: static; width: 100%; transform: none; margin: 0;
  }

  /* Scroll-snap was removed: on mobile the document-wide
     `scroll-snap-type: y proximity` was causing the page to "rubber-band"
     back to a pill when scrolling up past the showcase section, because
     each pill is a snap target and the proximity algorithm kept grabbing
     the nearest one. The mobile HMI animation drives smoothly off raw
     scroll position via handleMobileShowcaseScroll() in index.html, so
     snap was only a polish feature — not worth the navigation bug.
     If we ever want to bring it back, scope it to the .showcase section
     itself (not html), and drop snap-targets when the section leaves the
     viewport. */
}
</content>
</invoke>