/* Rozhodovač — Modern Dark / AMOLED Presentation Theme */
:root {
  --bg-deep: #050608;
  --bg-surface: #0e1117;
  --bg-card: #151922;
  --bg-card-hover: #1c222e;
  --border-subtle: #252d3d;
  --border-glow: #38455c;
  
  --clawd-coral: #D97757;
  --clawd-light: #E8967B;
  --clawd-dark: #B25D3C;
  --clawd-glow: rgba(217, 119, 87, 0.25);
  
  --color-green: #10b981;
  --color-green-bg: rgba(16, 185, 129, 0.15);
  --color-red: #ef4444;
  --color-red-bg: rgba(239, 68, 68, 0.15);
  --color-yellow: #f59e0b;
  --color-cyan: #06b6d4;
  
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  
  /* Volné náhrady písem z claude.ai: DM Sans místo Styrene (rozhraní),
     Source Serif 4 místo Tiempos (nadpisy a čtený text) */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Source Serif 4', 'Tiempos Text', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}
/* Přímý odkaz na sekci (např. index.html#galerie) nepřekryje lepivá hlavička */
section[id] {
  scroll-margin-top: 80px;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Background Ambient Glow ───────────────────────────────────────────── */
.bg-glow-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}
.glow-1 {
  width: 600px;
  height: 600px;
  background: var(--clawd-coral);
  top: -150px;
  right: -100px;
}
.glow-2 {
  width: 500px;
  height: 500px;
  background: var(--color-cyan);
  bottom: 10%;
  left: -100px;
  opacity: 0.1;
}

/* ─── Layout Container ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ─── Navigation Header ─────────────────────────────────────────────────── */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(5, 6, 8, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--clawd-coral), var(--clawd-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--clawd-glow);
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--clawd-light);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-gh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-gh:hover {
  border-color: var(--border-glow);
  background: var(--bg-card);
  transform: translateY(-1px);
}


/* ─── Hero Section ──────────────────────────────────────────────────────── */
section.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(217, 119, 87, 0.12);
  border: 1px solid rgba(217, 119, 87, 0.3);
  color: var(--clawd-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 span.highlight {
  background: linear-gradient(135deg, var(--clawd-light), var(--clawd-coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-family: var(--font-serif);
  max-width: 740px;
  margin: 0 auto 36px;
  font-size: 1.3rem;
  color: var(--text-dim);
  font-weight: 400;
}
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--clawd-light), var(--clawd-coral));
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 24px var(--clawd-glow);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(217, 119, 87, 0.4);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}


.hero-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-tag strong {
  color: var(--text-dim);
}

/* ─── Interactive Hardware Simulator ─────────────────────────────────────── */
section.simulator-section {
  padding: 60px 0 100px;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}
.section-badge {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--clawd-light);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: block;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.section-header p {
  font-family: var(--font-serif);
  color: var(--text-dim);
  font-size: 1.15rem;
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Hardware Device Enclosure */
.device-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.device-housing {
  width: 440px;
  height: 440px;
  background: #111317;
  border-radius: 48px;
  padding: 16px;
  box-shadow: 
    0 0 0 2px #262c38,
    0 24px 64px rgba(0, 0, 0, 0.7),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Physical Hardware Buttons on top edge */
.hw-btn-top {
  position: absolute;
  top: -8px;
  width: 56px;
  height: 10px;
  background: #252b36;
  border-radius: 4px;
  border: 1px solid #3a4354;
  cursor: pointer;
  z-index: 2;
  transition: background 0.1s, box-shadow 0.1s;
}
/* Tlačítko je tenké, klikací plocha se proto zvětší neviditelným okrajem */
.hw-btn-top::after {
  content: '';
  position: absolute;
  inset: -14px -10px -4px -10px;
}
/* Stisk se ukáže jen barvou a stínem. Kdyby se tlačítko posunulo, při kliknutí
   do jeho horní části by uteklo zpod kurzoru a prohlížeč by klik nevyvolal. */
.hw-btn-top:active {
  background: var(--clawd-coral);
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.45);
}
.hw-btn-boot {
  left: 90px;
}
.hw-btn-user {
  right: 90px;
}
.hw-btn-label {
  position: absolute;
  top: -24px;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.hw-btn-boot .hw-btn-label { left: 50%; transform: translateX(-50%); }
.hw-btn-user .hw-btn-label { left: 50%; transform: translateX(-50%); }

/* 480x480 AMOLED Screen Frame inside */
.amoled-screen {
  width: 100%;
  height: 100%;
  background: #000000;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  border: 1px solid #1a1e27;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  user-select: none;
}

/* Screen Header Bar */
.screen-header {
  height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #181d26;
  background: #000;
  z-index: 2;
}
.screen-channel-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-green);
  border: 1px solid var(--color-green);
}
.screen-time-center {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}
.screen-bat-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-green);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Screen Main Canvas (Clawd, Cards, Clock) */
.screen-body {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #000000;
}

/* Screen Bottom Navigation */
.screen-nav {
  height: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 6px 14px 10px;
  background: #000;
  border-top: 1px solid #141720;
}
.screen-nav-btn {
  background: #10141d;
  border: 1px solid #232a39;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.screen-nav-btn:hover {
  background: #18202e;
  color: var(--text-main);
}
.screen-nav-btn.active {
  background: #202838;
  border-color: var(--clawd-coral);
  color: #ffffff;
}

/* Simulator Views (Normal, Full Chat, Profile, Clock, Decision) */
.sim-view {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
}
.sim-view.active {
  display: flex;
}

/* Normal View: Mascot + Compact Chat */
.clawd-stage {
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}
.pixel-clawd-svg {
  width: 220px;
  height: 110px;
  filter: drop-shadow(0 4px 12px rgba(217, 119, 87, 0.3));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pixel-agy-svg {
  width: 236px;
  height: 129px;
  filter: drop-shadow(0 4px 14px rgba(92, 225, 255, 0.35));
}
.pixel-clawd-svg[hidden] {
  display: none;
}
.pixel-clawd-svg:hover {
  transform: scale(1.04);
}
.hearts-bubble {
  position: absolute;
  top: 15px;
  display: none;
  font-size: 1.4rem;
  animation: floatUp 1s ease-out forwards;
}

.compact-chat-card {
  margin: 0 16px 8px;
  background: #0e121a;
  border: 1px solid #202737;
  border-radius: 12px;
  padding: 10px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.2s;
}
.compact-chat-card:hover {
  border-color: var(--clawd-coral);
}
.compact-chat-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 4px;
}
.compact-chat-lines {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-dim);
  overflow: hidden;
}
.compact-chat-lines .line-newest {
  color: #ffffff;
}

/* Fullscreen Chat View */
.full-chat-card {
  margin: 10px 16px 8px;
  background: #0e121a;
  border: 1px solid var(--clawd-coral);
  border-radius: 14px;
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.full-chat-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--clawd-coral);
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1px solid #202737;
  margin-bottom: 8px;
}
.full-chat-list {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--text-dim);
  overflow-y: auto;
  flex: 1;
}

/* Desk Clock View */
.desk-clock-view {
  align-items: center;
  justify-content: center;
  text-align: center;
}
.clock-time-display {
  font-family: var(--font-mono);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 12px;
}
.clock-date-display {
  font-size: 1rem;
  color: var(--clawd-coral);
  font-weight: 600;
}

/* Decision Prompt Modal */
.decision-view {
  padding: 16px;
  justify-content: flex-end;
}
.decision-card {
  background: #201505;
  border: 2px solid var(--color-yellow);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}
.decision-card-head {
  display: flex;
  justify-content: space-between;
  color: var(--color-yellow);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.decision-tool-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}
.decision-hint-body {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #fed7aa;
  line-height: 1.4;
}
.decision-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sim-decide-btn {
  padding: 14px 10px;
  border-radius: 12px;
  border: 2px solid;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.1s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sim-decide-btn:active {
  transform: scale(0.97);
}
.sim-btn-yes {
  background: var(--color-green-bg);
  border-color: var(--color-green);
  color: var(--color-green);
}
.sim-btn-no {
  background: var(--color-red-bg);
  border-color: var(--color-red);
  color: var(--color-red);
}
.sim-decide-sub {
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 2px;
}

/* Multi-choice options (3 or 4 rows) */
.decision-btn-row.stacked {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.sim-decide-btn.opt-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  background: #0f141d;
  border: 1.5px solid #232c3d;
  color: #f3f4f6;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sim-decide-btn.opt-row:hover {
  background: #192233;
  border-color: var(--color-cyan);
  transform: translateX(2px);
}
.sim-decide-btn.opt-row.selected {
  border-color: var(--color-yellow) !important;
  background: rgba(245, 158, 11, 0.16) !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
}
.sim-decide-btn.opt-row .opt-label {
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sim-decide-btn.opt-row .opt-badge {
  font-family: var(--font-mono);
  font-weight: 800;
  margin-right: 8px;
  color: inherit;
}
.sim-decide-btn.opt-row .opt-hw-hint {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  margin-left: auto;
  padding-left: 8px;
  white-space: nowrap;
}
.sim-decide-btn.opt-row.selected .opt-hw-hint {
  color: var(--color-yellow);
  font-weight: 700;
}

/* 5 až 8 voleb: hustší řádky a kratší karta, aby se vešly jako na krabičce */
.decision-view.dense .decision-card {
  padding: 10px 14px;
  margin-bottom: 8px;
}
.decision-view.dense .decision-tool-title {
  display: none;
}
.decision-view.dense .decision-hint-body {
  font-size: 0.7rem;
}
.decision-view.dense .decision-btn-row.stacked {
  gap: 4px;
}
.decision-view.dense .sim-decide-btn.opt-row {
  padding: 4px 10px;
  font-size: 0.74rem;
}

/* Menu: BOOT posouvá výběr, IO18 nebo dotyk vybírá */
.sim-menu-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.sim-menu-item {
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.sim-menu-item:hover {
  color: #fff;
}
.sim-menu-item.selected {
  background: #1f2633;
  color: #fff;
}
.sim-menu-hint {
  margin-top: 8px;
  font-size: 0.6rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-align: center;
}

/* Zhasnutý displej: obsah zmizí, probudí ho dotyk nebo tlačítko */
.amoled-screen.screen-off > * {
  visibility: hidden;
}

/* Profile View */
.profile-view {
  padding: 16px 20px;
}
.profile-card-inner {
  background: #0e121a;
  border: 1px solid #202737;
  border-radius: 14px;
  padding: 16px;
  flex: 1;
}
.profile-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.profile-label {
  color: var(--text-dim);
}
.profile-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
}

/* Simulator Control Panel */
.simulator-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.panel-block {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 20px;
}
.panel-block h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-sim-trigger {
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-sim-trigger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-sim-trigger:not(:disabled):hover {
  background: #1c2333;
  border-color: var(--clawd-coral);
}
.btn-sim-trigger.danger:hover {
  border-color: var(--color-red);
}

/* Audio Toggle */
.audio-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ─── Philosophy Section ─────────────────────────────────────────────────── */
section.philosophy-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}
.comparison-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.comparison-card.old-way {
  border-color: #3b2020;
}
.comparison-card.new-way {
  border-color: rgba(217, 119, 87, 0.4);
  box-shadow: 0 0 40px rgba(217, 119, 87, 0.08);
}
.card-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.card-badge.bad {
  background: var(--color-red-bg);
  color: var(--color-red);
}
.card-badge.good {
  background: rgba(217, 119, 87, 0.15);
  color: var(--clawd-light);
}
.comparison-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 16px;
  font-weight: 600;
}
.comparison-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.comparison-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-dim);
}

/* Mode Pills Grid */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.mode-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
}
.mode-card.active-mode {
  border-color: var(--clawd-coral);
  background: #141113;
}
.mode-card h4 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mode-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ─── Gallery & Hardware Photos ─────────────────────────────────────────── */
section.gallery-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.gallery-item:hover {
  transform: translateY(-3px);
  border-color: var(--clawd-coral);
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.gallery-caption {
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
}
.gallery-caption strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
}

.gallery-zoom {
  display: block;
  cursor: zoom-in;
}
.gallery-zoom:focus-visible {
  outline: 2px solid var(--clawd-coral);
  outline-offset: -2px;
}

/* ─── Lightbox ──────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 72px;
  background: rgba(3, 4, 6, 0.92);
  backdrop-filter: blur(4px);
}
.lightbox[hidden] {
  display: none;
}
.lightbox-figure {
  margin: 0;
  max-width: 100%;
  text-align: center;
}
.lightbox-figure img {
  display: block;
  max-width: min(2000px, calc(100vw - 144px));
  max-height: calc(100vh - 110px);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox-figure figcaption {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.lightbox-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-glow);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  border-color: var(--clawd-coral);
  background: var(--bg-card-hover);
  outline: none;
}
.lightbox-close {
  top: 16px;
  right: 16px;
  font-size: 1.2rem;
}
.lightbox-prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 640px) {
  .lightbox {
    padding: 64px 8px 24px;
  }
  .lightbox-figure img {
    max-width: calc(100vw - 16px);
  }
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 12px;
    transform: none;
  }
}

/* Vyvážené zalamování: žádné osamocené slovo na posledním řádku */
.hero h1,
.hero p.lead,
.section-header h2,
.section-header p {
  text-wrap: balance;
}

/* Název desky se nesmí zlomit na pomlčce (např. „-2.16“ na dalším řádku) */
.nowrap {
  white-space: nowrap;
}
.section-header h2.product-title {
  font-size: clamp(1.3rem, 5.4vw, 2.3rem);
}

/* ─── Specifications Grid ───────────────────────────────────────────────── */
section.specs-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.spec-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px;
}
.spec-box-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.spec-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.spec-box p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.5;
}
/* ─── Hardware Buy Banner ───────────────────────────────────────────────── */
.hardware-buy-banner {
  margin-top: 48px;
  background: linear-gradient(135deg, rgba(217, 119, 87, 0.08) 0%, rgba(17, 19, 23, 0.9) 100%);
  border: 1px solid rgba(217, 119, 87, 0.35);
  border-radius: 20px;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}
.hardware-buy-banner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(217, 119, 87, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hardware-buy-content {
  position: relative;
  z-index: 1;
}
.hardware-buy-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--clawd-light);
  text-transform: uppercase;
  background: rgba(217, 119, 87, 0.15);
  border: 1px solid rgba(217, 119, 87, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hardware-buy-banner h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}
.hardware-buy-banner p {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 760px;
  margin-bottom: 24px;
}
.hardware-buy-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}


/* ─── Quickstart Guide ──────────────────────────────────────────────────── */
section.guide-section {
  padding: 80px 0 120px;
  border-top: 1px solid var(--border-subtle);
}
.guide-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 32px;
  overflow-x: auto;
}
.guide-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 20px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.guide-tab-btn:hover {
  color: var(--text-main);
}
.guide-tab-btn.active {
  color: var(--clawd-light);
  border-bottom-color: var(--clawd-coral);
}
.guide-tab-content {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px;
}
.guide-tab-content.active {
  display: block;
}
.guide-step {
  margin-bottom: 24px;
}
.guide-step h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #fff;
}
.guide-step p {
  color: var(--text-dim);
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.code-box {
  background: #090b10;
  border: 1px solid #1a202c;
  border-radius: 10px;
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #38bdf8;
  overflow-x: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.btn-copy {
  background: #1e293b;
  border: 1px solid #334155;
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  cursor: pointer;
}
.btn-copy:hover {
  background: #334155;
  color: #fff;
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
footer.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0;
  background: #040507;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* ─── Commands Reference Section ────────────────────────────────────────── */
section.commands-section {
  padding: 80px 0 120px;
  border-top: 1px solid var(--border-subtle);
}
.cmd-table-wrap {
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  margin-top: 32px;
}
.cmd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: left;
}
.cmd-table th, .cmd-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.cmd-table th {
  background: #090b10;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cmd-table tr:last-child td {
  border-bottom: none;
}
.cmd-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.cmd-table td:first-child,
.cmd-table td:nth-child(2) {
  white-space: nowrap;   /* příkaz i kategorie vždy na jednom řádku */
  width: 1%;             /* sloupec jen tak široký, jak je potřeba */
}
.cmd-table td:last-child {
  min-width: 260px;      /* na úzkém displeji se tabulka posune, popis se nezmáčkne */
}
.code-box code {
  white-space: nowrap;
}
.cmd-table code {
  font-family: var(--font-mono);
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.88rem;
}
.table-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
/* Úzký sloupec kategorie: menší odsazení buňky i záhlaví */
.cmd-table th:nth-child(2),
.cmd-table td:nth-child(2) {
  padding-left: 4px;
  padding-right: 4px;
}
.tag-info { background: rgba(6, 182, 212, 0.15); color: var(--color-cyan); }
.tag-action { background: rgba(217, 119, 87, 0.15); color: var(--clawd-light); }
.tag-mode { background: rgba(16, 185, 129, 0.15); color: var(--color-green); }
.tag-setup { background: rgba(147, 51, 234, 0.15); color: #c084fc; }
.tag-service { background: rgba(245, 158, 11, 0.15); color: var(--color-yellow); }
.tag-custom { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.tag-firmware { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

/* Keyframes */
@keyframes floatUp {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-24px); opacity: 0; }
}

/* Responsive */
@media (max-width: 960px) {
  .simulator-grid {
    grid-template-columns: 1fr;
    padding: 32px 20px;
  }
  .device-housing {
    width: 360px;
    height: 360px;
  }
  .hero h1 {
    font-size: 2.6rem;
  }
  .comparison-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  .specs-grid, .modes-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .device-housing {
    width: 320px;
    height: 320px;
    border-radius: 36px;
  }
  .specs-grid, .modes-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .hardware-buy-banner {
    padding: 24px 20px;
  }
  .hardware-buy-banner h3 {
    font-size: 1.35rem;
  }
  .hardware-buy-links {
    flex-direction: column;
    align-items: stretch;
  }
  .hardware-buy-links a {
    justify-content: center;
  }
}
@media (max-width: 540px) {
  .nav-actions {
    gap: 8px;
  }
  .btn-gh span {
    display: none;
  }
  .btn-gh {
    padding: 8px 10px;
  }
}

/* Podržení SCHVÁLIT u kritické akce: průběh zleva doprava (proměnná --hold z simulator.js) */
.sim-decide-btn.sim-btn-yes {
  background-image: linear-gradient(90deg, rgba(16, 185, 129, 0.45) var(--hold, 0%), transparent var(--hold, 0%));
}
