/* IT-BRNO — MS-DOS + Linux + Windows 11 Pro fusion */

:root {
  --slate: #1a222d;
  --smoke: #202b3b;
  --zone: #273447;
  --zone-2: #2e3d52;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);
  --cyan: #00d2ff;
  --cyan-dim: rgba(0, 210, 255, 0.14);
  --cyan-glow: rgba(0, 210, 255, 0.35);
  --green: #00ff88;
  --green-dim: rgba(0, 255, 136, 0.14);
  --gold: #c9a227;
  --gold-dim: rgba(201, 162, 39, 0.18);
  --text: #e8eef7;
  --text-muted: #9aa8bc;
  --text-dim: #6e7d92;
  --danger: #ff6b7a;
  --warn: #ffc857;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Fira Code", Consolas, monospace;
  --max: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --glass-bg: rgba(32, 43, 59, 0.62);
  --glass-blur: blur(16px);
  --shadow: 0 12px 40px rgba(8, 12, 20, 0.35), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--slate);
  background-image:
    radial-gradient(900px 480px at 8% -5%, rgba(0, 210, 255, 0.1), transparent 55%),
    radial-gradient(800px 420px at 92% 5%, rgba(0, 255, 136, 0.06), transparent 50%),
    linear-gradient(180deg, #1c2532 0%, var(--slate) 40%, #18202a 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

code,
.mono {
  font-family: var(--mono);
  font-size: 0.86em;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.blueprint {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 90%);
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--cyan);
  color: #0a1218;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* ——— Header ——— */

.site-header {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease !important;
  will-change: transform;
}

.site-header.header--hidden {
  transform: translateY(-100%) !important;
}

.header-inner {
  max-width: calc(var(--max) + 2rem);
  margin: 0.65rem auto 0;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-radius: var(--radius);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex-shrink: 0;
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.brand-text strong {
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.brand-text span {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 16rem;
}

/* Cementářský trámeček v navigaci — čistý text, břidlicový odlitek */
.nav-divize-btn,
.division-chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  flex-shrink: 0;
  width: auto !important;
  max-width: none !important;
  height: auto;
  min-height: 2.35rem;
  padding: 7px 16px !important;
  border-radius: 3px;
  color: #e2e8f0;
  text-decoration: none;
  text-align: center;
  white-space: nowrap !important;
  position: relative;
  isolation: isolate;
  overflow: visible;
  border: 1px solid #7a828e;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, transparent 28%),
    linear-gradient(180deg, #6a727c 0%, #565e69 48%, #4e5561 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -2px 0 rgba(0, 0, 0, 0.35),
    inset 2px 0 0 rgba(255, 255, 255, 0.08),
    inset -2px 0 0 rgba(0, 0, 0, 0.22),
    0 4px 10px rgba(0, 0, 0, 0.35);
  clip-path: polygon(0 10%, 1.2% 0, 98.8% 0, 100% 10%, 100% 90%, 98.8% 100%, 1.2% 100%, 0 90%);
  transition: filter 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-divize-btn::before,
.division-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.12) 0.6px, transparent 0.8px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.08) 0.5px, transparent 0.7px),
    radial-gradient(circle at 40% 80%, rgba(0, 0, 0, 0.1) 0.45px, transparent 0.65px);
  background-size: 5px 5px, 7px 7px, 6px 6px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.nav-divize-btn:hover,
.nav-divize-btn:focus-visible,
.division-chip:hover,
.division-chip:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4),
    0 6px 14px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 210, 255, 0.25);
  outline: none;
}

.nav-divize-text {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.2;
  white-space: nowrap !important;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.nav-divize-full {
  display: inline;
}

.nav-divize-short {
  display: none;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.75rem;
  justify-content: flex-end;
}

.site-nav a {
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--cyan);
  outline: none;
}

.site-nav .nav-cta {
  color: var(--cyan);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  background: var(--zone);
  border-radius: var(--radius-sm);
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.45rem auto 0;
  max-width: calc(var(--max) + 2rem);
  padding: 0.4rem 1rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  background: rgba(39, 52, 71, 0.55);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.5);
  animation: pulse-dot 2s ease-out infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* ——— Buttons ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(180deg, #1ad8ff, var(--cyan));
  color: #071018;
  box-shadow: 0 0 24px var(--cyan-glow);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(1.06);
  outline: none;
}

.btn-secondary {
  background: rgba(39, 52, 71, 0.55);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--cyan);
  background: var(--cyan-dim);
  outline: none;
}

/* ——— Hero ——— */

.hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 1rem;
}

.hero-grid {
  position: relative;
  max-width: min(1200px, calc(100% - 0.5rem));
  margin: 0 auto;
  padding: 2.75rem 1.25rem 2.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.75rem;
  align-items: start;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

.hero-brand {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text);
  text-shadow: 0 0 36px var(--cyan-glow);
  animation: brand-in 0.85s var(--ease) both;
}

@keyframes brand-in {
  from { opacity: 0; transform: translateY(10px); letter-spacing: 0.28em; }
  to { opacity: 1; transform: none; letter-spacing: 0.14em; }
}

.sector-note {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  max-width: 48rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  background: rgba(39, 52, 71, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--cyan);
  animation: rise 0.7s 0.08s var(--ease) both;
}

.sector-note.sector-pill {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: 0.55rem 0.95rem;
  max-width: 46rem;
  font-size: 0.78rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(22, 31, 44, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.3rem, 2.3vw, 1.8rem);
  font-weight: 600;
  line-height: 1.35;
  max-width: 34ch;
  animation: rise 0.75s 0.12s var(--ease) both;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 52ch;
  animation: rise 0.75s 0.2s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  animation: rise 0.75s 0.28s var(--ease) both;
}

.prompt-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.85rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  animation: rise 0.75s 0.34s var(--ease) both;
}

.prompt-dos {
  color: var(--green);
}

.prompt-nix {
  color: var(--cyan);
}

.ot-bridge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
  padding: 0.65rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  animation: rise 0.75s 0.4s var(--ease) both;
}

.ot-pulse {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse-dot 1.8s ease-out infinite;
}

.ot-label { color: var(--text-dim); }
.ot-state { color: var(--green); font-weight: 600; }
.ot-sep { color: var(--border-strong); }
.ot-tech { color: var(--text-muted); }

/* Terminal window */

.term-window {
  overflow: hidden;
  animation: rise 0.85s 0.18s var(--ease) both;
}

/* Hardware telemetry panel */

.hw-panel {
  overflow: hidden;
  animation: rise 0.9s 0.28s var(--ease) both;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(165deg, rgba(0, 210, 255, 0.06), transparent 40%),
    rgba(22, 31, 44, 0.82);
}

.hw-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem 0.65rem;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(rgba(0, 210, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 210, 255, 0.03) 1px, transparent 1px),
    rgba(26, 34, 45, 0.5);
  background-size: 16px 16px, 16px 16px, auto;
}

.hw-title {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--cyan);
  line-height: 1.35;
}

.hw-health {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  color: var(--green);
}

.hw-health-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 1.8s ease-out infinite;
}

.hw-badge {
  flex-shrink: 0;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.35);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 255, 136, 0.08);
}

.hw-bus-rail {
  position: relative;
  height: 10px;
  margin: 0 0.9rem;
  overflow: hidden;
}

.hw-bus-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 210, 255, 0.15), #00d2ff, #00ff88, rgba(0, 210, 255, 0.15));
  background-size: 200% 100%;
  animation: hw-bus-flow 2.4s linear infinite;
}

.hw-bus-packet {
  position: absolute;
  top: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #00d2ff;
  animation: hw-packet 2.2s linear infinite;
}

.hw-bus-packet-2 {
  animation-delay: 1.1s;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

@keyframes hw-bus-flow {
  from { background-position: 0 0; }
  to { background-position: -200% 0; }
}

@keyframes hw-packet {
  0% { left: 0%; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: 96%; opacity: 0; }
}

.hw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem 0.85rem;
}

.hw-block {
  position: relative;
  padding: 0.7rem 0.7rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    rgba(26, 34, 45, 0.55);
  background-size: 12px 12px, 12px 12px, auto;
  min-width: 0;
}

.hw-block-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.hw-icon {
  color: rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
}

.hw-kind {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.hw-name {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--text);
}

.hw-params {
  margin: 0;
  font-size: 0.62rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.hw-stat {
  margin: 0.4rem 0 0;
  font-size: 0.62rem;
  color: var(--cyan);
}

.hw-meter {
  margin-top: 0.45rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.hw-meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00ff88, #00d2ff);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.45);
  transition: width 0.6s var(--ease);
}

.hw-cpu .hw-chip-core {
  animation: hw-breathe 2.4s ease-in-out infinite;
  transform-origin: center;
}

.hw-cpu {
  border-color: rgba(0, 255, 136, 0.22);
}

.hw-gpu {
  border-color: rgba(0, 210, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(0, 210, 255, 0.08);
}

.hw-gpu-ring {
  animation: hw-gpu-glow 2.8s ease-in-out infinite;
}

.hw-gpu .hw-icon {
  color: #00d2ff;
  filter: drop-shadow(0 0 6px rgba(0, 210, 255, 0.45));
  animation: hw-breathe 2.8s ease-in-out infinite;
}

@keyframes hw-breathe {
  0%, 100% { opacity: 0.75; filter: drop-shadow(0 0 2px rgba(0, 255, 136, 0.2)); }
  50% { opacity: 1; filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.55)); }
}

@keyframes hw-gpu-glow {
  0%, 100% { stroke: #00d2ff; }
  50% { stroke: #00ff88; }
}

.hw-ram-bus {
  stroke-dasharray: 4 3;
  animation: hw-ram-flow 1.2s linear infinite;
}

.hw-ram-dot {
  animation: hw-ram-blink 1.4s ease-in-out infinite;
}

.hw-ram-dot-2 { animation-delay: 0.25s; }
.hw-ram-dot-3 { animation-delay: 0.5s; }

@keyframes hw-ram-flow {
  to { stroke-dashoffset: -14; }
}

@keyframes hw-ram-blink {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.hw-leds {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.45rem;
  font-size: 0.6rem;
  color: var(--text-dim);
}

.hw-leds span {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.hw-led {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
}

.hw-led-rx,
.hw-led.hw-led-rx {
  background: #00ff88;
  box-shadow: 0 0 6px #00ff88;
  animation: hw-led-rx 0.9s steps(2, end) infinite;
}

.hw-led-tx,
.hw-led.hw-led-tx {
  background: #ffb020;
  box-shadow: 0 0 6px #ffb020;
  animation: hw-led-tx 0.65s steps(2, end) infinite;
}

.hw-led-link {
  animation: hw-led-rx 1.4s steps(2, end) infinite;
}

@keyframes hw-led-rx {
  50% { opacity: 0.25; }
}

@keyframes hw-led-tx {
  50% { opacity: 0.2; }
}

.hw-packets {
  letter-spacing: 0.12em;
  color: var(--cyan);
  animation: hw-packets 1s steps(6, end) infinite;
}

@keyframes hw-packets {
  0% { content: "·"; opacity: 0.4; }
  100% { opacity: 1; }
}

.hw-disk-led,
.hw-write-flag {
  color: #ffb020;
  animation: hw-disk-blink 0.8s steps(2, end) infinite;
}

.hw-disk-led {
  animation: hw-disk-blink 0.8s steps(2, end) infinite;
}

@keyframes hw-disk-blink {
  50% { opacity: 0.25; }
}

.hw-live-amp {
  color: var(--green);
}

.hw-disk {
  grid-column: 1 / -1;
}

/* DTS hardware partner */

.dts-partner {
  margin-top: 0.85rem;
  padding: 0.95rem 1rem 1.05rem;
  border: 1px solid rgba(0, 210, 255, 0.28);
  background:
    linear-gradient(155deg, rgba(0, 255, 136, 0.07), transparent 42%),
    rgba(22, 31, 44, 0.82);
  animation: rise 0.9s 0.36s var(--ease) both;
}

.dts-badge {
  margin: 0 0 0.75rem;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  line-height: 1.35;
}

.dts-body {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.dts-logo-link {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
  transition: filter 0.2s var(--ease), transform 0.2s var(--ease);
}

.dts-logo-link:hover,
.dts-logo-link:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
  outline: none;
}

.dts-mark {
  display: block;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.dts-ext {
  font-size: 0.68rem;
  color: var(--cyan);
  letter-spacing: 0.03em;
}

.dts-logo-link:hover .dts-ext,
.dts-logo-link:focus-visible .dts-ext {
  color: var(--green);
}

.dts-copy {
  min-width: 0;
}

.dts-copy h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--text);
}

.dts-copy p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.dts-copy a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dts-copy a:hover,
.dts-copy a:focus-visible {
  color: var(--green);
  outline: none;
}

.win-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: rgba(26, 34, 45, 0.45);
}

.win-dots {
  display: flex;
  gap: 6px;
}

.win-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.win-dots span:nth-child(1) { background: #ff5f57; }
.win-dots span:nth-child(2) { background: #febc2e; }
.win-dots span:nth-child(3) { background: #28c840; }

.win-title {
  margin: 0;
  flex: 1;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-badge {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border: 1px solid var(--border);
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
}

.term-body {
  padding: 1rem 1.1rem 1.15rem;
  font-size: 0.8rem;
  line-height: 1.7;
  background: rgba(26, 34, 45, 0.35);
  min-height: 14rem;
}

.term-body p {
  margin: 0;
}

.t-muted { color: var(--text-dim); }
.t-ok { color: var(--green); }
.t-cyan { color: var(--cyan); }
.t-warn { color: var(--warn); }
.t-indent { padding-left: 1.1rem; color: var(--text-muted); }

.cursor-blink {
  animation: blink 1s step-end infinite;
  color: var(--green);
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ——— Sections ——— */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-transform: uppercase;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 650;
}

.section-head > p {
  margin: 0;
  color: var(--text-muted);
}

/* Spec accordion */

.spec-grid {
  display: grid;
  gap: 0.75rem;
}

.spec-card {
  overflow: hidden;
  transition: border-color 0.25s;
}

.spec-card.is-open {
  border-color: rgba(0, 210, 255, 0.45);
}

.spec-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.05rem 1.15rem;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius);
}

.spec-toggle:hover,
.spec-toggle:focus-visible {
  background: rgba(0, 210, 255, 0.05);
  outline: none;
}

.spec-index {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 600;
}

.spec-heading {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.spec-heading strong {
  font-size: 1.02rem;
  font-weight: 600;
}

.spec-heading span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.spec-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.spec-toggle[aria-expanded="true"] .spec-chevron {
  transform: rotate(225deg);
  margin-top: 0.3rem;
}

.spec-body {
  padding: 0 1.15rem 1.2rem 3.35rem;
  color: var(--text-muted);
}

.spec-card.is-open .spec-body {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.spec-body p {
  margin: 0 0 0.85rem;
}

.tech-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-tags li code {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  background: rgba(26, 34, 45, 0.65);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--green);
  font-size: 0.74rem;
}

/* Industrial cabinet / NORDAC bay */

.section-cabinet {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section-cabinet .section-head,
.section-cabinet .cabinet-bay {
  max-width: min(1200px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.cabinet-bay {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.cabinet-chassis {
  position: relative;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(70, 78, 90, 0.35), transparent 35%),
    linear-gradient(180deg, #2a3340 0%, #1b232e 48%, #151c26 100%);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -2px 0 rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.cab-screw {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #9aa3b0, #4a5564 55%, #1a222d);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.cab-screw-tl { top: 10px; left: 10px; }
.cab-screw-tr { top: 10px; right: 10px; }
.cab-screw-bl { bottom: 10px; left: 10px; }
.cab-screw-br { bottom: 10px; right: 10px; }

.cabinet-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 20, 28, 0.45);
  backdrop-filter: blur(12px);
}

.cabinet-deck {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 0.95fr;
  gap: 0.85rem;
  padding: 1rem 1.1rem 1.25rem;
}

.cab-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.cab-col-label {
  margin: 0;
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  color: var(--cyan);
}

/* Main rotary switch */

.main-switch {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(22, 31, 44, 0.72);
}

.rotary {
  position: relative;
  width: 4.4rem;
  height: 4.4rem;
  flex-shrink: 0;
}

.rotary-body {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from 210deg, #f5d76e 0 70deg, #c62828 70deg 220deg, #f5d76e 220deg 360deg);
  box-shadow:
    0 0 0 3px #1a222d,
    0 0 0 5px rgba(245, 215, 110, 0.55),
    inset 0 2px 4px rgba(255, 255, 255, 0.25);
}

.rotary-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.15rem;
  height: 2.35rem;
  margin-left: -0.575rem;
  margin-top: -1.85rem;
  border-radius: 0.4rem;
  background: linear-gradient(180deg, #f7e7a1, #c9a227);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  transform: rotate(28deg);
  transform-origin: 50% 85%;
}

.rotary-mark {
  position: absolute;
  right: 0.35rem;
  top: 0.45rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #1a222d;
}

.main-switch-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.main-switch-meta strong {
  font-size: 0.78rem;
  line-height: 1.3;
}

.power-lamp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--green);
}

.lamp-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 10px #00ff88;
  animation: pulse-dot 1.8s ease-out infinite;
}

/* Pushbuttons */

.push-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.push-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 5.2rem;
  padding: 0.65rem 0.4rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 24, 32, 0.85);
  cursor: pointer;
  color: inherit;
  transition: transform 0.12s var(--ease), box-shadow 0.12s, border-color 0.2s;
}

.push-btn:hover,
.push-btn:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.push-btn:active,
.push-btn.is-pressed {
  transform: translateY(2px) scale(0.98);
}

.push-cap {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 4px 0 rgba(0, 0, 0, 0.35);
}

.push-start .push-cap {
  background: radial-gradient(circle at 35% 30%, #7dffb0, #00c853);
  color: #062014;
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.2),
    0 4px 0 rgba(0, 0, 0, 0.35),
    0 0 14px rgba(0, 255, 136, 0.45);
}

.push-stop .push-cap {
  background: radial-gradient(circle at 35% 30%, #5a6270, #2a313c);
  color: #f2f4f7;
  border: 2px solid #c62828;
}

.push-e-stop {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 0.75rem;
  background:
    radial-gradient(circle at 50% 40%, rgba(198, 40, 40, 0.18), transparent 55%),
    rgba(18, 24, 32, 0.9);
  border-color: rgba(245, 215, 110, 0.45);
}

.e-stop-mushroom {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #ff6b6b, #c62828 60%, #8e0000);
  box-shadow:
    0 0 0 8px #f5d76e,
    0 0 0 10px rgba(0, 0, 0, 0.35),
    0 6px 0 rgba(0, 0, 0, 0.35),
    inset 0 -4px 0 rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

.push-label {
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.25;
}

.push-e-stop .push-label {
  text-align: left;
  color: #ffcdcd;
}

/* HMI display */

.hmi-glass {
  border-radius: 10px;
  border: 1px solid rgba(0, 210, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(0, 210, 255, 0.08), transparent 30%),
    #0a1018;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 24px rgba(0, 210, 255, 0.12);
  padding: 0.7rem 0.8rem 0.75rem;
}

.hmi-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.62rem;
  color: var(--text-dim);
  margin-bottom: 0.45rem;
}

.hmi-status {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  color: var(--text);
}

.hmi-telemetry {
  list-style: none;
  margin: 0 0 0.55rem;
  padding: 0;
  display: grid;
  gap: 0.2rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.hmi-telemetry strong {
  color: var(--cyan);
  font-weight: 600;
}

.hmi-chart {
  position: relative;
  height: 3.4rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(rgba(0, 210, 255, 0.05) 1px, transparent 1px),
    rgba(8, 12, 18, 0.9);
  background-size: 100% 8px;
  overflow: hidden;
}

.hmi-trend {
  display: block;
  width: 140%;
  height: 100%;
  animation: hmi-scroll 4.5s linear infinite;
}

.trend-speed {
  fill: none;
  stroke: #00ff88;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px rgba(0, 255, 136, 0.5));
}

.trend-current {
  fill: none;
  stroke: #00d2ff;
  stroke-width: 1.6;
  stroke-linejoin: round;
  opacity: 0.85;
}

@keyframes hmi-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-28%); }
}

.trend-legend {
  position: absolute;
  right: 0.4rem;
  bottom: 0.25rem;
  font-size: 0.55rem;
  color: var(--text-dim);
}

/* Membrane keypad */

.membrane-keypad {
  padding: 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, #2a3340, #1a222d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.fn-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.28rem;
  margin-bottom: 0.4rem;
}

.num-pad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.28rem;
}

.key {
  min-height: 2.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  background: linear-gradient(180deg, #3a4554, #252e3b);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.72rem;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.1s, background 0.15s, border-color 0.15s;
}

.key span {
  display: block;
  font-size: 0.5rem;
  color: var(--text-dim);
  margin-top: 0.1rem;
}

.key-fn {
  min-height: 2.35rem;
  font-size: 0.62rem;
  line-height: 1.15;
  padding: 0.2rem;
}

.key:hover,
.key:focus-visible {
  border-color: rgba(0, 210, 255, 0.45);
  outline: none;
}

.key:active,
.key.is-pressed {
  transform: translateY(2px);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, #252e3b, #1a222d);
}

.key-enter {
  grid-row: span 2;
  background: linear-gradient(180deg, rgba(0, 210, 255, 0.25), #1e3a4f);
  color: var(--cyan);
}

.key-esc {
  color: #ffb020;
}

/* NORDAC drive */

.nordac-unit {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 136, 0.25);
  background:
    linear-gradient(160deg, rgba(0, 255, 136, 0.08), transparent 40%),
    rgba(16, 22, 30, 0.92);
  box-shadow: 0 0 28px rgba(0, 255, 136, 0.08);
}

.nordac-brand {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--green);
}

.nordac-model {
  margin: 0;
  font-size: 0.64rem;
  color: var(--text-dim);
}

.nordac-screen {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 0.75rem;
  border-radius: 8px;
  background: #04140c;
  border: 1px solid rgba(0, 255, 136, 0.35);
  box-shadow:
    inset 0 0 18px rgba(0, 255, 136, 0.18),
    0 0 16px rgba(0, 255, 136, 0.2);
}

.nordac-hz {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 600;
  color: #00ff88;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px rgba(0, 255, 136, 0.65);
  animation: nordac-glow 2.4s ease-in-out infinite;
}

.nordac-unit-label {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: rgba(0, 255, 136, 0.75);
}

@keyframes nordac-glow {
  0%, 100% { text-shadow: 0 0 8px rgba(0, 255, 136, 0.4); }
  50% { text-shadow: 0 0 18px rgba(0, 255, 136, 0.85); }
}

.nordac-leds {
  display: grid;
  gap: 0.35rem;
}

.nled {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--text-muted);
}

.nled i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #2a3340;
  flex-shrink: 0;
}

.nled-ready i {
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
}

.nled-bus i {
  background: #00d2ff;
  box-shadow: 0 0 8px #00d2ff;
  animation: pulse-dot 1.4s ease-out infinite;
}

.nled-fault.is-off i {
  background: #1a222d;
  box-shadow: none;
  border: 1px solid #3a4554;
}

.nled-sync i {
  background: #7dffb0;
  box-shadow: 0 0 6px #00ff88;
  animation: hw-disk-blink 1.1s steps(2, end) infinite;
}

.nordac-ports {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.6rem;
  color: var(--text-dim);
}

.cabinet-nameplate {
  margin: 0 1.1rem 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, 0.45);
  background:
    linear-gradient(135deg, rgba(201, 162, 39, 0.12), transparent 50%),
    rgba(12, 16, 22, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.nameplate-title {
  margin: 0 0 0.4rem;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.nameplate-body {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.nameplate-link {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nameplate-link:hover,
.nameplate-link:focus-visible {
  color: var(--green);
  outline: none;
}

.nordac-cta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-color: rgba(0, 255, 136, 0.3);
}

.nordac-cta-text {
  margin: 0;
  flex: 1 1 18rem;
  max-width: 46rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
}

.nordac-cta-btn {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

@media (max-width: 980px) {
  .cabinet-deck {
    grid-template-columns: 1fr;
  }

  .fn-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .nordac-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .nordac-cta-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hmi-trend,
  .nordac-hz,
  .nled-bus i,
  .nled-sync i,
  .lamp-dot {
    animation: none !important;
  }
}

/* AI cards */

.section-ai {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  background: linear-gradient(180deg, transparent, rgba(32, 43, 59, 0.55), transparent);
  border-block: 1px solid var(--border);
}

.section-ai .section-head,
.section-ai .ai-grid {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.ai-card {
  padding: 1.25rem 1.2rem 1.35rem;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.ai-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 210, 255, 0.35);
}

.ai-icon {
  margin-bottom: 0.75rem;
}

.ai-index {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}

.ai-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}

.ai-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Security / pentest pillar */

.section-security {
  position: relative;
}

.section-security .section-head h2 {
  max-width: 28ch;
}

.sec-prompt {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
  padding: 0.7rem 1rem;
  margin-bottom: 1.15rem;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.security-grid {
  margin-bottom: 1.15rem;
}

.sec-card {
  border-color: rgba(0, 210, 255, 0.18);
  background:
    linear-gradient(165deg, rgba(0, 210, 255, 0.07), transparent 45%),
    var(--glass-bg);
}

.sec-card:hover {
  border-color: rgba(0, 255, 136, 0.4);
}

.ops-manifest {
  overflow: hidden;
  border-color: rgba(0, 255, 136, 0.28);
  background:
    linear-gradient(135deg, rgba(0, 255, 136, 0.08), transparent 40%),
    linear-gradient(315deg, rgba(0, 210, 255, 0.06), transparent 50%),
    var(--glass-bg);
}

.manifest-body {
  padding: 1.25rem 1.3rem 1.35rem;
}

.manifest-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--green);
}

.manifest-body h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.35;
  color: var(--text);
  max-width: 36ch;
}

.manifest-body > p {
  margin: 0;
  color: var(--text-muted);
  max-width: 68ch;
  font-size: 1rem;
}

.manifest-foot {
  margin: 1.1rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(0, 255, 136, 0.28);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--cyan);
}

/* Schemas — SCADA horizontal blueprint */

.section-schemata {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section-schemata .section-head,
.section-schemata .schema-stack {
  max-width: min(1280px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

.schema-stack {
  display: grid;
  gap: 1.35rem;
}

.bp-panel {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(22, 31, 44, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.bp-panel-ai {
  border-color: rgba(0, 255, 136, 0.22);
}

.bp-canvas {
  position: relative;
  padding: 1.35rem 1.1rem 1.15rem;
  background-image:
    linear-gradient(rgba(0, 210, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 210, 255, 0.035) 1px, transparent 1px);
  background-size: 20px 20px;
  background-color: rgba(18, 26, 36, 0.45);
}

.bp-pipeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.bp-node {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 0.95rem 1.05rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(165deg, rgba(0, 210, 255, 0.08), transparent 42%),
    rgba(32, 43, 59, 0.78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.bp-node:hover {
  border-color: rgba(0, 210, 255, 0.45);
  transform: translateY(-2px);
}

.bp-node-shield {
  border-color: rgba(0, 255, 136, 0.28);
  background:
    linear-gradient(165deg, rgba(0, 255, 136, 0.1), transparent 45%),
    rgba(32, 43, 59, 0.78);
}

.bp-node-ai {
  border-color: rgba(0, 210, 255, 0.35);
  box-shadow: 0 0 28px rgba(0, 210, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.22);
}

.bp-node-target {
  border-color: rgba(0, 210, 255, 0.3);
}

.bp-node-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.bp-status {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.5);
  animation: pulse-dot 2s ease-out infinite;
  flex-shrink: 0;
}

.bp-status-warn {
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.5);
  animation: pulse-cyan 2s ease-out infinite;
}

@keyframes pulse-cyan {
  0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(0, 210, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

.bp-index {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  text-transform: uppercase;
}

.bp-icon {
  margin: 0.15rem 0 0.1rem;
}

.bp-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--text);
}

.bp-sub {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.bp-tags {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.bp-tags li {
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--green);
  padding: 0.28rem 0.45rem;
  border-radius: 5px;
  border: 1px solid rgba(0, 255, 136, 0.22);
  background: rgba(0, 255, 136, 0.06);
}

/* Horizontal neon bus */

.bp-bus {
  flex: 0 0 clamp(4.5rem, 7vw, 6.5rem);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 0 0.15rem;
}

.bp-bus-line {
  position: absolute;
  left: 8%;
  right: 18%;
  top: 42%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 210, 255, 0.25), #00d2ff, rgba(0, 255, 136, 0.7));
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.45);
  overflow: hidden;
}

.bp-bus-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  width: 35%;
  animation: bus-flow 1.6s linear infinite;
}

.bp-bus-ot {
  background: linear-gradient(90deg, rgba(0, 255, 136, 0.25), #00ff88, rgba(0, 210, 255, 0.6));
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
}

.bp-bus-alert {
  background: linear-gradient(90deg, rgba(0, 210, 255, 0.3), #00d2ff 40%, #00ff88);
}

@keyframes bus-flow {
  from { transform: translateX(-120%); }
  to { transform: translateX(320%); }
}

.bp-packet {
  position: absolute;
  top: calc(42% - 4px);
  left: 12%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #00d2ff, 0 0 4px #00ff88;
  animation: packet-run 2s linear infinite;
}

.bp-packet-2 {
  animation-delay: 1s;
  background: var(--green);
}

@keyframes packet-run {
  0% { left: 10%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 78%; opacity: 0; }
}

.bp-bus-label {
  position: relative;
  z-index: 1;
  margin-top: 2.4rem;
  text-align: center;
  font-size: 0.58rem;
  line-height: 1.35;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  max-width: 6.5rem;
}

.bp-arrow {
  position: absolute;
  right: 10%;
  top: calc(42% - 5px);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #00d2ff;
  filter: drop-shadow(0 0 4px rgba(0, 210, 255, 0.7));
}

.schema-caption {
  margin: 0;
  padding: 0.75rem 1.1rem 0.95rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  letter-spacing: 0.04em;
}

/* Blueprint responsive — vertical timeline on mobile */

@media (max-width: 980px) {
  .bp-pipeline {
    flex-direction: column;
    gap: 0;
    padding-left: 1.1rem;
  }

  .bp-node {
    flex: none;
    width: 100%;
  }

  .bp-bus {
    flex: none;
    width: 100%;
    min-height: 3.6rem;
    padding: 0.35rem 0 0.35rem 0.15rem;
    align-items: flex-start;
    justify-content: center;
  }

  .bp-bus-line {
    left: 0.35rem;
    right: auto;
    top: 8%;
    bottom: 8%;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, rgba(0, 210, 255, 0.25), #00d2ff, rgba(0, 255, 136, 0.7));
  }

  .bp-bus-line::after {
    width: 100%;
    height: 35%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.85), transparent);
    animation: bus-flow-v 1.6s linear infinite;
  }

  @keyframes bus-flow-v {
    from { transform: translateY(-120%); }
    to { transform: translateY(320%); }
  }

  .bp-packet {
    left: calc(0.35rem - 2px);
    top: 10%;
    animation: packet-run-v 2s linear infinite;
  }

  @keyframes packet-run-v {
    0% { top: 8%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 78%; opacity: 0; }
  }

  .bp-bus-label {
    margin-top: 0;
    margin-left: 1.35rem;
    text-align: left;
    max-width: none;
    font-size: 0.68rem;
  }

  .bp-arrow {
    left: calc(0.35rem - 2px);
    right: auto;
    top: auto;
    bottom: 6%;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid #00d2ff;
    border-bottom: 0;
  }

  .bp-pipeline {
    border-left: 1px dashed rgba(0, 210, 255, 0.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bp-bus-line::after,
  .bp-packet,
  .bp-status {
    animation: none !important;
  }
}

/* Method */

.section-method {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section-method .section-head,
.section-method .method-rail {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.method-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.method-rail li {
  padding: 1.15rem 1.05rem;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.method-rail li:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 255, 136, 0.35);
}

.method-step {
  display: block;
  font-size: 0.74rem;
  color: var(--cyan);
  margin-bottom: 0.55rem;
  letter-spacing: 0.06em;
}

.method-rail h3 {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
  line-height: 1.35;
}

.method-rail p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Auth */

.auth-shield {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.35rem;
  align-items: start;
  padding: 1.4rem;
  border-color: rgba(201, 162, 39, 0.4);
  background:
    linear-gradient(135deg, var(--gold-dim), transparent 42%),
    var(--glass-bg);
}

.auth-badge {
  width: 4.4rem;
  height: 4.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.25;
  background: rgba(26, 34, 45, 0.55);
}

.auth-body h3 {
  margin: 0 0 0.75rem;
  font-size: 1.12rem;
}

.auth-body ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.auth-body li + li {
  margin-top: 0.55rem;
}

.auth-body strong {
  color: var(--gold);
}

.auth-note {
  margin: 0;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(201, 162, 39, 0.35);
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* Contact hub */

.section-contact {
  padding-bottom: 4.5rem;
}

.contact-hub {
  padding: 0 0 1.25rem;
  overflow: hidden;
  scroll-margin-top: 110px !important;
  position: relative;
  z-index: 10 !important;
}

#intake-form,
#phone-gate,
.hub-panel,
.hub-console,
.branch-card {
  scroll-margin-top: 110px !important;
  position: relative;
  z-index: 10 !important;
}

@keyframes activePulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(0, 210, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 210, 255, 0); }
}

.active-focus-pulse {
  animation: activePulse 1.2s cubic-bezier(0.24, 0, 0.38, 1);
}

.contact-hub > .win-chrome {
  margin-bottom: 1rem;
}

.hub-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
  padding: 0 1.15rem 0.35rem;
}

.hub-console {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1.25rem 1.15rem 1.2rem;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(22, 31, 44, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.hub-console-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 210, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 210, 255, 0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
  opacity: 0.7;
}

.hub-console > *:not(.hub-console-grid) {
  position: relative;
  z-index: 1;
}

.hub-console:hover,
.hub-console:focus-visible {
  outline: none;
  transform: translateY(-2px);
  border-color: rgba(0, 210, 255, 0.55);
  box-shadow: 0 14px 32px rgba(0, 210, 255, 0.12);
}

.hub-console-phone:hover,
.hub-console-phone:focus-visible {
  border-color: rgba(0, 255, 136, 0.55);
  box-shadow: 0 14px 32px rgba(0, 255, 136, 0.12);
}

.hub-console.is-active {
  border-color: rgba(0, 210, 255, 0.7);
  background:
    linear-gradient(165deg, rgba(0, 210, 255, 0.14), transparent 50%),
    rgba(22, 31, 44, 0.9);
  box-shadow: 0 0 0 1px rgba(0, 210, 255, 0.25), 0 14px 36px rgba(0, 0, 0, 0.28);
}

.hub-console-phone.is-active {
  border-color: rgba(0, 255, 136, 0.7);
  background:
    linear-gradient(165deg, rgba(0, 255, 136, 0.12), transparent 50%),
    rgba(22, 31, 44, 0.9);
  box-shadow: 0 0 0 1px rgba(0, 255, 136, 0.22), 0 14px 36px rgba(0, 0, 0, 0.28);
}

.hub-console-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.15rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(26, 34, 45, 0.65);
}

.hub-code {
  font-size: 0.68rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
}

.hub-console-phone .hub-code {
  color: var(--green);
}

.hub-console-title {
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.3;
}

.hub-console-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.hub-console-cta {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 6px;
  background: rgba(0, 210, 255, 0.08);
}

.hub-console-phone .hub-console-cta {
  color: var(--green);
  border-color: rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.08);
}

.hub-panel {
  margin: 0.85rem 1.15rem 0;
  padding: 0 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(26, 34, 45, 0.55);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    max-height 0.45s var(--ease),
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease),
    padding 0.35s var(--ease),
    margin 0.35s var(--ease),
    border-color 0.25s;
}

.hub-panel[hidden] {
  display: block !important;
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-color: transparent !important;
  pointer-events: none;
}

.hub-panel.is-expanded {
  max-height: 2200px;
  opacity: 1;
  transform: translateY(0);
  padding-top: 1.05rem;
  padding-bottom: 1.15rem;
  pointer-events: auto;
  border-color: rgba(0, 210, 255, 0.28);
}

#panel-phone.is-expanded {
  border-color: rgba(0, 255, 136, 0.28);
}

.panel-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.panel-bar h3 {
  margin: 0;
  font-size: 1.08rem;
}

.link-back {
  background: none;
  border: 0;
  padding: 0;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.8rem;
  cursor: pointer;
}

.link-back:hover,
.link-back:focus-visible {
  text-decoration: underline;
  outline: none;
}

.intake-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 500;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="file"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  background: rgba(26, 34, 45, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.attachment-row.is-drag {
  outline: 1px dashed rgba(0, 210, 255, 0.55);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.attachment-actions {
  display: grid;
  gap: 0.55rem;
}

.attachment-camera-btn {
  justify-self: start;
  cursor: pointer;
  margin: 0;
}

.attachment-hint {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.attachment-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.attachment-chip {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #161f2e;
  flex-shrink: 0;
}

.attachment-chip img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-chip__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2px 4px;
  font-size: 0.55rem;
  line-height: 1.2;
  color: #e8eef7;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.attachment-chip--file {
  display: grid;
  place-items: center;
  padding: 0.35rem;
  text-align: center;
}

.attachment-chip--file .attachment-chip__ext {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-transform: uppercase;
}

.attachment-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.75);
  color: #ff5555;
  border: 0;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.attachment-remove:hover,
.attachment-remove:focus-visible {
  background: rgba(40, 0, 0, 0.9);
  outline: none;
}

.form-row textarea {
  resize: vertical;
  min-height: 7rem;
}

.form-row input:focus-visible,
.form-row select:focus-visible,
.form-row textarea:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

.consent-label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.75rem;
  align-items: start;
  cursor: pointer;
}

.consent-label input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.consent-box {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-strong);
  border-radius: 4px;
  background: rgba(26, 34, 45, 0.65);
  position: relative;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.consent-label input:focus-visible + .consent-box {
  box-shadow: 0 0 0 3px var(--cyan-dim);
  border-color: var(--cyan);
}

.consent-label input:checked + .consent-box {
  border-color: var(--green);
  background: var(--green-dim);
}

.consent-label input:checked + .consent-box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.inline-legal {
  background: none;
  border: 0;
  padding: 0;
  color: var(--cyan);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-feedback {
  margin: 0.45rem 0 0;
  min-height: 1.2rem;
  font-family: var(--mono);
  font-size: 0.76rem;
}

.consent-feedback.is-ok { color: var(--green); }
.consent-feedback.is-err { color: var(--danger); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.form-hint.is-ok { color: var(--green); }
.form-hint.is-err { color: var(--danger); }

.phone-gate,
.phone-reveal {
  max-width: 28rem;
}

.gate-prompt {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}

.gate-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.gate-row input {
  flex: 1 1 10rem;
  min-width: 0;
  padding: 0.75rem 0.85rem;
  background: rgba(26, 34, 45, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.gate-row input:focus-visible {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}

.gate-feedback {
  margin: 0.75rem 0 0;
  min-height: 1.2rem;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.gate-feedback.is-err { color: var(--danger); }

.phone-reveal {
  animation: rise 0.4s var(--ease) both;
}

.phone-collapse {
  display: inline-block;
  margin-top: 0.85rem;
}

.phone-label {
  margin: 0 0 0.3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.phone-number {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.04em;
  text-shadow: 0 0 22px rgba(0, 255, 136, 0.25);
}

.phone-number:hover,
.phone-number:focus-visible {
  text-decoration: underline;
  outline: none;
}

.phone-meta {
  margin: 0.7rem 0 0;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

/* Subjects section (before footer) */

.section-subjekty {
  max-width: none;
  padding-bottom: 3.5rem;
}

.section-subjekty .section-head,
.section-subjekty .subjekty-grid {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.subjekty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  align-items: stretch;
}

.subjekt-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.35rem 1.3rem 1.4rem;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(22, 31, 44, 0.78);
}

.subjekt-card-a {
  border-color: rgba(0, 210, 255, 0.28);
  background:
    linear-gradient(165deg, rgba(0, 210, 255, 0.1), transparent 45%),
    rgba(22, 31, 44, 0.82);
}

.subjekt-card-b {
  border-color: rgba(201, 162, 39, 0.28);
  background:
    linear-gradient(165deg, rgba(201, 162, 39, 0.08), transparent 42%),
    rgba(22, 31, 44, 0.82);
}

.subjekt-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  color: var(--cyan);
}

.subjekt-card-b .subjekt-kicker {
  color: var(--gold);
}

.subjekt-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 650;
}

.subjekt-role {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.subjekt-meta {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.subjekt-licenses-title {
  margin: 0.55rem 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--green);
}

.subjekt-licenses {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.subjekt-web {
  margin: auto 0 0;
  padding-top: 0.75rem;
}

.footer-lab-link {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-lab-link:hover,
.footer-lab-link:focus-visible {
  color: var(--green);
  outline: none;
}

/* Minimal footer bar */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 20, 28, 0.92);
  padding: 0 1.25rem 5.5rem;
}

.footer-bar {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 24px 0;
  flex-wrap: wrap;
}

.footer-left,
.footer-right {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-mid {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.footer-sep {
  color: var(--text-dim);
  opacity: 0.6;
}

.footer-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.78rem;
  cursor: pointer;
}

.footer-link:hover,
.footer-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.auth-person {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-left: 3px solid var(--gold);
  background: rgba(201, 162, 39, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
}

/* Cookie banner — full-width dock, always clickable */

#cookieBanner.cookie-banner,
.cookie-banner {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  padding: 14px 24px !important;
  border-radius: 0 !important;
  background: rgba(22, 31, 44, 0.92) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 0 !important;
  border-top: 1px solid rgba(0, 210, 255, 0.3) !important;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4) !important;
  pointer-events: auto !important;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

#cookieBanner.cookie-banner.is-sliding-in,
.cookie-banner.is-sliding-in {
  animation: cookie-slide-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}

@keyframes cookie-slide-up {
  from {
    transform: translateY(110%);
    opacity: 0.4;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#cookieBanner.cookie-banner[hidden],
.cookie-banner[hidden],
#cookieBanner.cookie-banner.is-dismissed,
.cookie-banner.is-dismissed {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
  animation: none !important;
}

#cookieBanner .cookie-copy,
#cookieBanner .cookie-actions,
#cookieBanner .btn,
#cookieBanner .cookie-details,
.cookie-banner .cookie-copy,
.cookie-banner .cookie-actions,
.cookie-banner .btn,
.cookie-banner .cookie-details {
  pointer-events: auto !important;
  position: relative;
  z-index: 1;
}

.cookie-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.cookie-copy {
  flex: 1 1 280px;
  min-width: 0;
}

.cookie-copy p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.cookie-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.75rem !important;
  flex: 0 0 auto;
}

#cookieAcceptBtn {
  cursor: pointer !important;
  pointer-events: auto !important;
}

.cookie-details {
  background: none;
  border: 0;
  padding: 0;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.8rem;
  cursor: pointer !important;
  text-decoration: underline;
  pointer-events: auto !important;
}

/* Modals — Win11 acrylic legal panels */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 22, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.modal-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(82vh, 820px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: rise 0.35s var(--ease) both;
  background: rgba(22, 31, 44, 0.92) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45) !important;
}

.modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border);
  background: rgba(26, 34, 45, 0.45);
}

.modal-bar h2 {
  margin: 0;
  font-size: 1.1rem;
}

.modal-close {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(39, 52, 71, 0.55);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: var(--cyan);
  outline: none;
}

.modal-body {
  padding: 1.15rem 1.25rem 1.5rem;
  overflow-y: auto;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.modal-lead {
  color: var(--text);
  margin-top: 0;
}

.modal-body h3 {
  margin: 1.15rem 0 0.4rem;
  font-size: 0.98rem;
  color: var(--text);
}

.modal-body p {
  margin: 0 0 0.55rem;
}

body.modal-open {
  overflow: hidden;
}

/* ——— Responsive ——— */

@media (max-width: 1040px) {
  .subjekty-grid {
    grid-template-columns: 1fr;
  }

  .nav-divize-text {
    font-size: 0.66rem;
  }
}

/* Úzký desktop / tablet: kratší label jen když je trámeček v jedné řadě s navigací */
@media (max-width: 640px) and (min-width: 769px) {
  .nav-divize-full {
    display: none !important;
  }

  .nav-divize-short {
    display: inline !important;
  }

  .nav-divize-btn,
  .division-chip {
    padding: 6px 10px !important;
  }

  .nav-divize-text {
    font-size: 0.75rem !important;
  }
}

@media (max-width: 720px) {
  .sector-note.sector-pill {
    border-radius: 12px;
    font-size: 0.74rem;
  }

  .dts-body {
    flex-direction: column;
    align-items: stretch;
  }

  .dts-logo-link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .method-rail {
    grid-template-columns: 1fr 1fr;
  }

  .ai-grid {
    grid-template-columns: 1fr;
  }

  .hw-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.65rem;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
  }

  .hw-block {
    flex: 0 0 min(78vw, 17.5rem);
    scroll-snap-align: start;
  }

  .hw-disk {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .hw-grid {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .hw-block {
    flex: none;
    width: auto;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 10001;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% - 0.15rem);
    margin: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(13, 19, 29, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8) !important;
    z-index: 9999 !important;
    isolation: isolate;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 1;
  }

  .site-nav a {
    display: block;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e8eef7;
    background: transparent;
  }

  .site-header {
    position: sticky !important;
    z-index: 1000 !important;
  }

  .header-inner {
    margin-top: 0.5rem;
    position: relative;
    z-index: 10000;
  }

  .hub-choice,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .auth-shield {
    grid-template-columns: 1fr;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .status-bar {
    justify-content: flex-start;
    border-radius: var(--radius-sm);
    margin-left: 1rem;
    margin-right: 1rem;
  }
}

/* Mobil: 1. řada logo + hamburger, 2. řada trámeček DIVIZE */
@media (max-width: 768px) {
  .header-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "divize divize"
      "nav nav";
    align-items: center;
    gap: 0.45rem 0.75rem;
    padding: 0.65rem 0.85rem 0.75rem;
  }

  .brand {
    grid-area: brand;
    min-width: 0;
  }

  .brand-text span {
    max-width: 11.5rem;
  }

  .nav-toggle {
    grid-area: toggle;
    margin-left: 0 !important;
    justify-self: end;
  }

  .nav-divize-btn,
  .division-chip {
    grid-area: divize;
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch;
    margin: 0.2rem 0 0.15rem !important;
    padding: 0.55rem 0.85rem !important;
    min-height: 2.5rem;
    white-space: normal !important;
  }

  .nav-divize-full {
    display: inline !important;
  }

  .nav-divize-short {
    display: none !important;
  }

  .nav-divize-text {
    font-size: 0.72rem !important;
    letter-spacing: 0.03em;
    white-space: normal !important;
    text-align: center;
    line-height: 1.25;
  }

  .site-nav {
    grid-area: nav;
    left: 0.85rem;
    right: 0.85rem;
  }
}

@media (max-width: 560px) {
  .method-rail {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .spec-toggle {
    grid-template-columns: auto 1fr;
  }

  .spec-chevron {
    grid-column: 2;
    justify-self: end;
  }

  .spec-body {
    padding-left: 1.15rem;
  }

  .gate-row {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hw-bus-line,
  .hw-bus-packet,
  .hw-chip-core,
  .hw-gpu-ring,
  .hw-led-rx,
  .hw-led-tx,
  .hw-disk-led,
  .hw-write-flag,
  .hw-ram-bus,
  .hw-ram-dot {
    animation: none !important;
  }
}
