/* ==========================================================================
   ELCERAM ESC SETUP GUIDE — base + tokens
   Palette matches elceram-rc.cz: true black + their brand cyan-blue
   (#2ac5f4, pulled directly from the ELCERAM site's own stylesheet).
   ========================================================================== */

:root {
  --bg: #060707;
  --panel: #121313;
  --panel-2: #181a1a;
  --panel-border: #26292a;
  --text: #f2f3f4;
  --text-muted: #9aa3a6;
  --accent: #2ac5f4;
  --accent-dim: #2392e7;
  --accent-soft: rgba(42, 197, 244, 0.1);
  --warn: #ffb545;

  --font-head: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1100px;
  --text-width: 900px;
  --section-pad: 100px;
  --radius: 8px;
}

/* Subtle hexagon tech pattern, echoing ELCERAM's own hero background */
.hex-field {
  background-image: radial-gradient(circle at 15% 20%, rgba(42, 197, 244, 0.08), transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cg fill='none' stroke='%232ac5f4' stroke-opacity='0.09' stroke-width='1'%3E%3Cpath d='M28 0L0 16v34l28 16 28-16V16z'/%3E%3Cpath d='M28 0v32M0 16l28 16M56 16L28 32M28 66v34M0 84l28-16M56 84L28 68'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; letter-spacing: 0; }
h4 { font-size: 17px; }

p { margin: 0 0 12px; color: var(--text-muted); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-head);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 12px;
}

.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--panel); border-top: 1px solid var(--panel-border); border-bottom: 1px solid var(--panel-border); }

.section-head { max-width: 620px; margin: 0 0 56px; }
.section-sub { font-size: 17px; margin: 0; }
.section-lead { max-width: var(--text-width); font-size: 17px; margin-bottom: 32px; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #04141a;
}
.btn-primary:hover { background: #5cd6ff; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent-soft); transform: translateY(-1px); }

.btn-small { padding: 10px 20px; font-size: 14px; }
.btn-full { display: block; width: 100%; text-align: center; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(17, 18, 17, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(242, 243, 244, 0.15);
}
.logo span {
  color: var(--accent);
  margin-left: 4px;
  text-shadow: 0 0 6px rgba(42, 197, 244, 0.55), 0 0 16px rgba(42, 197, 244, 0.25);
}

.main-nav ul {
  display: flex;
  gap: 36px;
}

.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text);
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* Real ELCERAM Oxide 1/8 ESC product photo, sourced from elceram-rc.cz */
  background-image: url('assets/oxide-1-8-front.jpg');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,7,7,0.6) 0%, rgba(6,7,7,0.82) 55%, var(--bg) 100%),
    linear-gradient(90deg, rgba(6,7,7,0.9) 0%, rgba(6,7,7,0.4) 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 80px;
}

.hero h1 {
  font-size: clamp(32px, 5.5vw, 52px);
  max-width: 780px;
}

.hero-sub {
  font-size: 18px;
  max-width: 560px;
  color: #d8d7cd;
  margin-bottom: 12px;
}

.hero-credibility {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 32px;
}
.hero-credibility strong { color: var(--accent); }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-muted);
  font-size: 20px;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ==========================================================================
   Grid / Cards
   ========================================================================== */

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: #37393a; }

.tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 5px 12px;
  margin-bottom: 16px;
}

/* ==========================================================================
   Guide shell — sticky TOC + content
   ========================================================================== */

.guide-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  padding-top: 72px;
}

.toc-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding-right: 8px;
}

.toc-label {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.toc-sidebar ul { display: flex; flex-direction: column; gap: 2px; margin-bottom: 24px; }
.toc-sidebar a {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 0 8px 14px;
  border-left: 2px solid var(--panel-border);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.toc-sidebar a:hover { color: var(--accent); border-color: var(--accent); }

.toc-mobile { display: none; }

.guide-content { max-width: var(--text-width); min-width: 0; }

.guide-section {
  padding-bottom: 88px;
  margin-bottom: 88px;
  border-bottom: 1px solid var(--panel-border);
  scroll-margin-top: 96px;
}
.guide-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
#recommender.guide-section { padding-bottom: 40px; }

.guide-section h3 { margin-top: 28px; }
.guide-section h3:first-of-type { margin-top: 8px; }

.basics-list { margin: 16px 0 0; counter-reset: mistake; }
.basics-list li {
  padding: 12px 0 12px 44px;
  border-top: 1px solid var(--panel-border);
  color: var(--text-muted);
  position: relative;
  counter-increment: mistake;
}
.basics-list li:first-child { border-top: none; }
.basics-list li::before {
  content: counter(mistake);
  position: absolute;
  left: 0;
  top: 10px;
  width: 26px;
  height: 26px;
  border: 1px solid var(--warn);
  border-radius: 50%;
  color: var(--warn);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signal-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.signal-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 18px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  min-width: 110px;
}
.signal-node-accent { border-color: var(--accent); box-shadow: 0 0 20px rgba(42, 197, 244, 0.15); }
.signal-icon {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.signal-node span:last-child { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.signal-arrow { color: var(--accent); font-size: 20px; font-weight: 700; }
.signal-caption { font-size: 13.5px; color: var(--text-muted); font-style: italic; margin: -8px 0 16px; }

/* ==========================================================================
   Badge row — ELCERAM's own product highlights (EU-made, 32-bit MCU, etc.)
   ========================================================================== */

.badge-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin: 28px 0 8px;
}
.badge-item {
  text-align: center;
  padding: 20px 10px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
}
.badge-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 11px;
}
.badge-item span {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

.source-note {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 10px;
}
.source-note a { color: var(--accent); font-style: normal; }
.source-note a:hover { text-decoration: underline; }

.inline-photo {
  margin: 28px 0;
}
.inline-photo img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
}
.inline-photo-contain img {
  max-height: none;
  object-fit: contain;
  background: var(--bg);
}
.inline-photo figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* ==========================================================================
   Product lineup
   ========================================================================== */

.product-group {
  margin-bottom: 40px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.product-group:last-of-type { margin-bottom: 32px; }

.product-group-head {
  position: relative;
  height: 140px;
}
.product-group-head img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-group-head::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6,7,7,0.92) 0%, rgba(6,7,7,0.55) 55%, rgba(6,7,7,0.15) 100%);
}
.product-group-head h3 {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  font-size: 26px;
  z-index: 1;
}

.product-group .grid { padding: 28px; gap: 24px; }
.product-group .card { box-shadow: none; }

.product-card { display: flex; flex-direction: column; }
.spec-list { margin-bottom: 20px; flex-grow: 1; }
.spec-list li {
  padding: 8px 0;
  border-top: 1px solid var(--panel-border);
  color: var(--text-muted);
  font-size: 14px;
}
.spec-list li:first-child { border-top: none; }

.product-card .price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 16px;
}
.product-card.coming-soon { opacity: 0.85; }
.product-card .soon-tag {
  color: var(--text-muted);
  border-color: var(--panel-border);
}

/* ==========================================================================
   Setup by surface
   ========================================================================== */

.surface-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0 0;
}
.surface-tab {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 100px;
  padding: 12px 22px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.surface-tab:hover { color: var(--text); border-color: #3a3d3e; }
.surface-tab.active {
  color: #04141a;
  background: var(--accent);
  border-color: var(--accent);
}

.surface-panels { margin-top: 24px; }
.surface-panel[hidden] { display: none; }
.surface-panel-head { max-width: var(--text-width); margin-bottom: 24px; }
.surface-panel-head h3 { margin-bottom: 10px; }

.surface-panel-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}

.mini-curve {
  width: 100%;
  height: auto;
  display: block;
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 10px;
}

.callout {
  background: var(--accent-soft);
  border: 1px solid var(--accent-dim);
  border-radius: 6px;
  padding: 14px 16px;
}
.callout-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 4px;
}
.callout p:last-child { margin-bottom: 0; font-size: 14px; color: var(--text); }
.curve-disclaimer { margin: 24px 0 32px; }
.curve-disclaimer p:last-child { font-size: 14.5px; }

.settings-list { margin-top: 16px; }
.settings-list li {
  padding: 9px 0 9px 22px;
  border-top: 1px solid var(--panel-border);
  color: var(--text-muted);
  font-size: 14.5px;
  position: relative;
}
.settings-list li:first-child { border-top: none; }
.settings-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.download-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  color: #04141a;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(42, 197, 244, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-download-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.btn-download span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.btn-download small {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(4, 20, 26, 0.18);
}
.btn-download::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.btn-download:hover {
  background: linear-gradient(135deg, #5cd6ff 0%, var(--accent) 100%);
  box-shadow: 0 4px 20px rgba(42, 197, 244, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}
.btn-download:hover .btn-download-icon { transform: translateY(2px); }
.btn-download:hover::before { left: 125%; }

/* ==========================================================================
   Feature grid
   ========================================================================== */

.feature-grid { margin-top: 16px; }

.setting-group {
  padding: 44px 0;
  border-top: 1px solid var(--panel-border);
}
.setting-group:first-child { padding-top: 28px; }
.setting-group:last-child { padding-bottom: 0; }

.setting-group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.setting-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.02em;
}
.setting-group h4 { color: var(--accent); margin-bottom: 0; font-size: 25px; }
.group-desc { font-size: 14.5px; margin-bottom: 28px; max-width: 640px; }

.param-row {
  padding: 22px 0 22px 24px;
  border-left: 2px solid var(--panel-border);
  margin-bottom: 8px;
}
.param-row:last-child { margin-bottom: 0; }
.param-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.param-head h5 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.param-range {
  font-size: 12.5px;
  font-family: 'Courier New', monospace;
  color: var(--text-muted);
  white-space: nowrap;
}
.param-row p { margin-bottom: 0; font-size: 14.5px; }

.video-link { margin: 16px 0 20px; font-size: 13.5px; }

.yt-watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #1a1a1a;
  border: 1px solid #FF0000;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  padding: 14px 22px 14px 16px;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.yt-watch-icon { width: 32px; height: 32px; flex-shrink: 0; }
.yt-watch-btn:hover {
  background: #FF0000;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.35);
}

.manual-link {
  margin-top: 32px;
  font-size: 14px;
}
.manual-link a { color: var(--accent); }
.manual-link a:hover { text-decoration: underline; }

/* ==========================================================================
   Accordion
   ========================================================================== */

.accordion { border-top: 1px solid var(--panel-border); }
.accordion-item { border-bottom: 1px solid var(--panel-border); }

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 4px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--text);
}
.accordion-trigger:hover { color: var(--accent); }

.accordion-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent);
  transition: transform 0.25s ease;
}
.accordion-item.is-open .accordion-icon { transform: rotate(45deg); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-panel-inner { padding: 0 4px 24px; max-width: 640px; }
.accordion-panel-inner p:last-of-type { margin-bottom: 0; }

.qa-cta {
  margin-top: 16px !important;
  padding-top: 14px;
  border-top: 1px solid var(--panel-border);
  font-size: 14px;
}
.qa-cta a { color: var(--accent); font-weight: 700; }
.qa-cta a:hover { text-decoration: underline; }

/* ==========================================================================
   Recommender tool
   ========================================================================== */

.recommender-form {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 32px 32px 40px;
  margin-top: 8px;
}
.recommender-form .btn { margin-top: 4px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
  margin-bottom: 24px;
}

.form-row label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-row select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.form-row select:focus { outline: none; border-color: var(--accent); }

.form-row-wide { grid-column: 1 / -1; }
.field-hint {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}
.field-hint strong { color: var(--text); }

.result-card {
  margin-top: 28px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 0 0 1px var(--accent), 0 20px 40px rgba(42, 197, 244, 0.12);
}
.result-card[hidden] { display: none; }

.result-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.result-grid-4 { grid-template-columns: repeat(4, 1fr); }
.result-grid-5 { grid-template-columns: repeat(5, 1fr); }
.result-stat { text-align: center; }
.result-value {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 28px;
  color: var(--text);
}
.result-name {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.result-note {
  font-size: 14.5px;
  border-top: 1px solid rgba(42, 197, 244, 0.25);
  padding-top: 16px;
}

.result-cta {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(42, 197, 244, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.result-cta p { margin: 0; font-size: 15px; color: var(--text); }

/* ==========================================================================
   Racing team
   ========================================================================== */

.team-lead { max-width: 340px; margin: 0 auto 28px; }

.team-card { padding: 0; overflow: hidden; }
.team-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--panel-border);
}
.team-card .testimonial-name,
.team-card .testimonial-role {
  padding: 0 24px;
}
.team-video-link { padding: 0 24px 20px; margin-top: -12px !important; }
.testimonial-name {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
  margin-top: 20px;
  margin-bottom: 2px;
}
.testimonial-role {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ==========================================================================
   Get It Programmed CTA
   ========================================================================== */

.programmed-section {
  background: var(--panel);
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  text-align: center;
}
.programmed-head { max-width: 640px; margin: 0 auto 32px; }
.programmed-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer-section { padding-top: var(--section-pad); }

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--panel-border);
}

.footer-brand .logo { display: inline-block; margin-bottom: 16px; }
.footer-brand p { font-size: 14.5px; max-width: 320px; }

.footer-col h3 { font-size: 15px; margin-bottom: 18px; }
.footer-nav-col { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-col a { font-size: 14.5px; color: var(--text-muted); }
.footer-nav-col a:hover { color: var(--accent); }

.footer-col p { margin-bottom: 16px; font-size: 14.5px; }
.footer-col strong { color: var(--text); font-family: var(--font-head); font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; }
.footer-col a[href^="mailto"] { color: var(--accent); }
.footer-col a[href^="mailto"]:hover { text-decoration: underline; }

.social-links { display: flex; gap: 12px; margin-top: 4px; }
.social-icon {
  position: relative;
  overflow: hidden;
  width: 42px;
  height: 42px;
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.3s ease, transform 0.2s ease;
  color: var(--text-muted);
}
.social-icon svg { width: 19px; height: 19px; position: relative; z-index: 1; }
.social-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: -160%;
  width: 60%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: social-shine 5s ease-in-out infinite;
}
.social-links a:nth-child(2)::after,
.footer-social-link:nth-of-type(2) .social-icon::after { animation-delay: 0.9s; }
.social-links a:nth-child(3)::after,
.footer-social-link:nth-of-type(3) .social-icon::after { animation-delay: 1.8s; }
@keyframes social-shine {
  0% { left: -160%; }
  30%, 100% { left: 160%; }
}
.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 16px rgba(42, 197, 244, 0.45);
  transform: translateY(-2px);
}

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: inherit;
}
.footer-social-link:last-child { margin-bottom: 0; }
.social-icon-sm { width: 32px; height: 32px; flex-shrink: 0; }
.social-icon-sm svg { width: 15px; height: 15px; }
.footer-social-text { font-size: 14.5px; }
.footer-social-link:hover .social-icon { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 12px rgba(42, 197, 244, 0.4); }
.footer-social-link:hover .footer-social-text strong { color: var(--accent); }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 24px 40px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a { color: var(--text-muted); font-size: 14px; }
.footer-nav a:hover { color: var(--accent); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1000px) {
  .guide-shell { grid-template-columns: 1fr; gap: 0; }
  .toc-sidebar { display: none; }
  .toc-mobile {
    display: block;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    margin-bottom: 48px;
    padding: 4px 20px;
  }
  .toc-mobile summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 0;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile .chev { color: var(--accent); transition: transform 0.2s ease; }
  .toc-mobile[open] .chev { transform: rotate(180deg); }
  .toc-mobile ul { padding-bottom: 12px; display: flex; flex-direction: column; gap: 2px; }
  .toc-mobile a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-muted);
    border-top: 1px solid var(--panel-border);
  }
  .toc-mobile a:hover { color: var(--accent); }
}

@media (max-width: 900px) {
  :root { --section-pad: 72px; }

  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-row-wide { grid-column: auto; }
  .result-grid { grid-template-columns: 1fr; gap: 16px; }
  .result-grid-5 { grid-template-columns: repeat(3, 1fr); gap: 20px 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .badge-row { grid-template-columns: repeat(3, 1fr); }
  .surface-panel-body { grid-template-columns: 1fr; }
  .mini-curve { max-width: 320px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--panel-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.is-open { max-height: 320px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .main-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--panel-border);
  }
  .nav-toggle { display: flex; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .badge-row { grid-template-columns: repeat(2, 1fr); }
  .result-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .product-group-head h3 { font-size: 22px; left: 20px; }

  .hero { min-height: 78vh; }

  .result-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .recommender-form { padding: 24px 24px 32px; }
  .result-card { padding: 24px; }
}

@media (max-width: 560px) {
  .signal-flow { flex-direction: column; align-items: stretch; gap: 8px; }
  .signal-node {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
  }
  .signal-arrow { align-self: center; transform: rotate(90deg); }
}
