/* Simam Repair Hub showcase (/agentic-dotnet-repair-hub-app/). Section designed in the Repair Hub project
   (docs/showcase/landing-section.html); all rules scoped under .rh. Hand-written, not a Mobirise export. */
/* Layout: dark product hero with a live-looking dashboard card, then four bands: what it is, how it was built,
   stack, modern practice; closing CTA. Single deliberate dark look taken from the product itself. */
.rh {
  --rh-bg: #070d1b; --rh-band: #0b1426; --rh-glass: rgba(255,255,255,.045); --rh-glass-line: rgba(160,185,255,.16);
  --rh-fg: #eaf0ff; --rh-muted: #9aa9c8; --rh-dim: #6f7fa3;
  --rh-blue: #3d7bff; --rh-blue-hi: #6d9bff; --rh-teal: #2fd0b0; --rh-amber: #f2b450; --rh-red: #ff6b6b;
  --rh-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --rh-text: "Inter", "Segoe UI", system-ui, sans-serif;
  --rh-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  background: var(--rh-bg); color: var(--rh-fg); font: 16px/1.65 var(--rh-text); color-scheme: dark;
  -webkit-font-smoothing: antialiased;
}
.rh *, .rh *::before, .rh *::after { box-sizing: border-box; }
.rh h1, .rh h2, .rh h3, .rh p { margin: 0; }
.rh h1, .rh h2, .rh h3 { font-family: var(--rh-display); text-wrap: balance; line-height: 1.15; letter-spacing: -.01em; }
.rh h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
.rh h3 { font-size: 1.05rem; }
.rh p { max-width: 66ch; }
.rh a { color: inherit; }
.rh-wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.rh-band { padding-block: clamp(56px, 8vw, 96px); }
.rh-band.alt { background: var(--rh-band); border-block: 1px solid rgba(160,185,255,.07); }
.rh-head { display: grid; gap: 12px; margin-bottom: 36px; }
.rh-eyebrow { font: 600 12px var(--rh-text); letter-spacing: .14em; text-transform: uppercase; color: var(--rh-blue-hi); }
.rh-lead { color: var(--rh-muted); font-size: 1.06rem; }
.rh-glass { background: var(--rh-glass); border: 1px solid var(--rh-glass-line); border-radius: 16px; backdrop-filter: blur(10px); }

/* Hero */
.rh-hero { position: relative; overflow: hidden; padding-block: clamp(64px, 9vw, 120px) clamp(56px, 8vw, 96px); }
.rh-hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%;
  background: radial-gradient(closest-side, rgba(61,123,255,.28), transparent 70%); pointer-events: none; }
.rh-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(160,185,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(160,185,255,.06) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.rh-hero .rh-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.rh-hero-copy { display: grid; gap: 22px; min-width: 0; }
.rh-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 800; }
.rh-hero h1 span { background: linear-gradient(90deg, #fff, #9bb8ff 60%, #6d9bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rh-hero .rh-lead { font-size: 1.14rem; }
.rh-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rh-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font: 600 15px var(--rh-text); text-decoration: none; transition: transform .15s, background .15s, border-color .15s; }
.rh-btn:hover { transform: translateY(-1px); }
.rh-btn:focus-visible { outline: 2px solid var(--rh-blue-hi); outline-offset: 3px; }
.rh-btn.primary { background: var(--rh-blue); color: #fff; box-shadow: 0 10px 30px -10px rgba(61,123,255,.7); }
.rh-btn.primary:hover { background: #5089ff; }
.rh-btn.ghost { border: 1px solid var(--rh-glass-line); color: var(--rh-fg); background: rgba(255,255,255,.03); }
.rh-btn.ghost:hover { border-color: rgba(160,185,255,.4); }
.rh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rh-chip { font: 500 12.5px var(--rh-text); color: var(--rh-muted); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--rh-glass-line); background: rgba(255,255,255,.02); }
.rh-chip b { color: var(--rh-fg); font-weight: 600; }

/* Product card (CSS-drawn dashboard preview) */
.rh-app { padding: 18px; display: grid; gap: 14px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset; min-width: 0; }
.rh-app-bar { display: flex; align-items: center; gap: 8px; font: 500 12px var(--rh-text); color: var(--rh-dim); }
.rh-app-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a3654; display: inline-block; }
.rh-app-bar span { margin-left: 8px; }
.rh-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rh-kpi { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid rgba(160,185,255,.1); }
.rh-kpi small { display: block; font-size: 11px; color: var(--rh-dim); text-transform: uppercase; letter-spacing: .08em; }
.rh-kpi strong { font: 700 1.45rem var(--rh-display); font-variant-numeric: tabular-nums; }
.rh-kpi em { font-style: normal; font-size: 11.5px; color: var(--rh-teal); }
.rh-kpi.warn em { color: var(--rh-amber); }
.rh-stages { display: grid; gap: 7px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid rgba(160,185,255,.08); }
.rh-stage { display: grid; grid-template-columns: 108px 1fr 26px; gap: 10px; align-items: center; font-size: 12px; color: var(--rh-muted); }
.rh-stage .bar { height: 8px; border-radius: 99px; background: rgba(160,185,255,.08); overflow: hidden; }
.rh-stage .bar b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rh-blue), var(--rh-blue-hi)); }
.rh-stage.late .bar b { background: linear-gradient(90deg, #d9932f, var(--rh-amber)); }
.rh-stage span:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--rh-fg); }
.rh-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); font-size: 12.5px; }
.rh-row code { font: 500 12px var(--rh-mono); color: var(--rh-fg); }
.rh-pill { font: 600 11px var(--rh-text); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.rh-pill.red { color: var(--rh-red); background: rgba(255,107,107,.12); }
.rh-pill.teal { color: var(--rh-teal); background: rgba(47,208,176,.12); }

/* What it is */
.rh-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rh-card { padding: 22px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.rh-card p { color: var(--rh-muted); font-size: .97rem; }
.rh-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(61,123,255,.14); color: var(--rh-blue-hi); margin-bottom: 4px; }
.rh-icon svg { width: 20px; height: 20px; }
.rh-flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 28px; font-size: 13.5px; }
.rh-flow span { padding: 6px 12px; border-radius: 9px; border: 1px solid var(--rh-glass-line); background: rgba(255,255,255,.03); }
.rh-flow span.on { border-color: rgba(61,123,255,.55); background: rgba(61,123,255,.12); }
.rh-flow i { font-style: normal; color: var(--rh-dim); }

/* How it was built */
.rh-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: rh; }
.rh-step { padding: 22px; display: grid; gap: 8px; align-content: start; position: relative; min-width: 0; }
.rh-step::before { counter-increment: rh; content: counter(rh, decimal-leading-zero); font: 700 13px var(--rh-mono); color: var(--rh-blue-hi); }
.rh-step p { color: var(--rh-muted); font-size: .95rem; }
.rh-quote { margin-top: 20px; padding: 22px 24px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.rh-quote .mark { font: 800 2.6rem/1 var(--rh-display); color: var(--rh-blue); }
.rh-quote p { color: var(--rh-fg); font-size: 1.04rem; max-width: none; }

/* Stack */
.rh-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rh-stack .rh-card h3 { display: flex; align-items: center; gap: 10px; }
.rh-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.rh-tag { font: 500 12.5px var(--rh-text); padding: 4px 10px; border-radius: 8px; background: rgba(160,185,255,.07); color: var(--rh-fg); }
.rh-tag.key { background: rgba(61,123,255,.18); color: #cfdcff; }

/* Modern practice */
.rh-practice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.rh-item { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-block: 12px; border-bottom: 1px solid rgba(160,185,255,.08); min-width: 0; }
.rh-item svg { width: 20px; height: 20px; color: var(--rh-teal); margin-top: 3px; }
.rh-item b { display: block; font-weight: 600; }
.rh-item span { color: var(--rh-muted); font-size: .95rem; }
.rh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.rh-stat { padding: 20px; text-align: left; }
.rh-stat strong { display: block; font: 800 2.1rem var(--rh-display); color: #fff; font-variant-numeric: tabular-nums; }
.rh-stat span { color: var(--rh-muted); font-size: .92rem; }

/* CTA */
.rh-cta { text-align: center; }
.rh-cta .rh-wrap { display: grid; gap: 18px; justify-items: center; }
.rh-cta p { color: var(--rh-muted); }
.rh-note { font-size: 13px; color: var(--rh-dim); }

@media (max-width: 960px) {
  .rh-hero .rh-wrap { grid-template-columns: 1fr; }
  .rh-steps { grid-template-columns: repeat(2, 1fr); }
  .rh-stack { grid-template-columns: repeat(2, 1fr); }
  .rh-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .rh-roles, .rh-steps, .rh-stack, .rh-practice { grid-template-columns: 1fr; }
  .rh-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rh-stage { grid-template-columns: 88px 1fr 22px; }
  .rh-quote { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .rh-btn { transition: none; } .rh-btn:hover { transform: none; } }

/* Site integration: clear the fixed navbar and stop theme heading colours leaking in. */
.repair-hub-page { background: #070d1b; }
.rh .rh-hero { padding-top: calc(clamp(64px, 9vw, 120px) + 64px); }
.rh h1, .rh h2, .rh h3 { color: var(--rh-fg); }
.rh .rh-btn.primary, .rh .rh-btn.primary:hover { color: #fff; text-decoration: none; }
.rh .rh-row code { padding: 0; background: none; border: 0; color: var(--rh-fg); }

/* Architecture diagram: full width on desktop, sideways scroll on phones so the labels stay readable. */
.rh-arch { margin: 0; padding: 14px; }
.rh-arch-scroll { overflow-x: auto; border-radius: 10px; }
.rh-arch-scroll:focus-visible { outline: 2px solid var(--rh-blue-hi); outline-offset: 3px; }
.rh-arch img { display: block; width: 100%; height: auto; }
.rh-arch figcaption { margin-top: 10px; font-size: 13px; color: var(--rh-dim); }
.rh-arch figcaption a { color: var(--rh-blue-hi); }
@media (max-width: 760px) { .rh-arch img { width: 900px; max-width: none; } }
