/* ========================================================================
   BYTKOJN – DOČASNÁ ÚVODNÍ STRÁNKA
   Celý obsah tohoto souboru patří do assets/css/styles.css.
   ======================================================================== */

:root {
  --bitcoin-orange: #f7931a;
  --bitcoin-orange-light: #ffb14a;
  --background: #08090b;
  --line: #2a2f35;
  --text: #f4f1e9;
  --text-soft: #c4c7ca;
  --muted: #7f878f;
  --radius: 4px;

  --font-mono:
    "Cascadia Code",
    "Cascadia Mono",
    Consolas,
    Menlo,
    Monaco,
    "Liberation Mono",
    "Courier New",
    monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--background);
  font-family: var(--font-mono);
}

::selection {
  color: #111;
  background: var(--bitcoin-orange);
}

/* ------------------------------------------------------------------------
   POZADÍ
   ------------------------------------------------------------------------ */

.background-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 12%, rgba(247, 147, 26, 0.10), transparent 28%),
    radial-gradient(circle at 8% 92%, rgba(247, 147, 26, 0.05), transparent 30%);
}

/* ------------------------------------------------------------------------
   VNĚJŠÍ PANEL
   ------------------------------------------------------------------------ */

.coming-soon-shell {
  min-height: 100vh;
  padding: 16px;
}

.coming-soon-panel {
  min-height: calc(100vh - 32px);
  display: grid;
  grid-template-rows: 43px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(20, 23, 27, 0.89), rgba(10, 12, 15, 0.96));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

/* ------------------------------------------------------------------------
   TERMINÁLOVÁ LIŠTA
   ------------------------------------------------------------------------ */

.terminal-bar {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.24);
  font-size: 11px;
}

.terminal-path {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.terminal-path::before {
  content: "> ";
  color: var(--bitcoin-orange);
  font-weight: 800;
}

.terminal-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
}

.term-cmd {
  color: var(--bitcoin-orange);
}

.term-flag,
.term-query,
.term-search-path {
  color: var(--muted);
  font-weight: 400;
}

/* ------------------------------------------------------------------------
   VYSTŘEDĚNÍ CELÉHO OBSAHU
   ------------------------------------------------------------------------ */

.coming-soon-content {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: clamp(38px, 5vh, 68px) clamp(22px, 4vw, 64px);
}

.coming-soon-stage {
  width: min(1500px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(44px, 5.5vh, 68px);
  text-align: center;
}

/* ------------------------------------------------------------------------
   NADPIS
   ------------------------------------------------------------------------ */

.hero-copy {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-kicker {
  margin: 0 0 18px;
  color: var(--bitcoin-orange);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero-copy h1 {
  width: 100%;
  margin: 0;
  color: var(--text);
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(46px, 6.25vw, 102px);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.hero-title-fixed {
  display: block;
  width: 100%;
}

.rotating-line {
  display: block;
  width: 100%;
  min-height: 1.08em;
  margin-top: 0.12em;
  color: var(--bitcoin-orange);
}

.rotating-word {
  display: inline-block;
  color: var(--bitcoin-orange);
  transition: opacity 220ms ease, transform 220ms ease;
}

.rotating-word.is-changing {
  opacity: 0;
  transform: translateY(-0.14em);
}

.rotating-word::after {
  content: "_";
  display: inline-block;
  color: var(--bitcoin-orange);
  animation: terminal-cursor-blink 1s step-end infinite;
}

/* ------------------------------------------------------------------------
   BLOK „PROGRAMOVÁNÍ“
   ------------------------------------------------------------------------ */

.construction-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.build-scene {
  width: 420px;
  max-width: 84vw;
  margin-bottom: 22px;
}

.bitcoin-block {
  position: relative;
  width: 100%;
  min-height: 280px;
  padding: 18px 18px 20px;
  overflow: hidden;
  border: 2px solid rgba(247, 147, 26, 0.72);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(145deg, rgba(25, 29, 34, 0.99), rgba(8, 10, 13, 0.99));
  background-size: 22px 22px, 22px 22px, auto;
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.48),
    0 0 34px rgba(247, 147, 26, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  animation: block-glow 2.8s ease-in-out infinite;
}

.bitcoin-block::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      115deg,
      transparent 26%,
      rgba(247, 147, 26, 0.08) 49%,
      transparent 72%
    );
  transform: translateX(-125%);
  animation: block-scan 4.8s linear infinite;
}

.block-header,
.block-grid,
.block-code,
.block-progress {
  position: relative;
  z-index: 1;
}

.block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(247, 147, 26, 0.22);
}

.block-header-title {
  color: var(--bitcoin-orange-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.block-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bitcoin-orange);
  box-shadow: 0 0 10px rgba(247, 147, 26, 0.65);
  animation: led-pulse 1.2s ease-in-out infinite;
}

.block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-bottom: 16px;
}

.block-row {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.015);
}

.block-row-wide {
  grid-column: 1 / -1;
}

.row-label {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.row-value {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.row-value-hash {
  color: var(--bitcoin-orange-light);
  font-size: 13px;
}

.block-code {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(247, 147, 26, 0.16);
  background: rgba(0, 0, 0, 0.20);
  text-align: left;
}

.code-label {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.code-stream {
  color: var(--bitcoin-orange);
  font-size: 13px;
  line-height: 1.45;
  word-break: break-all;
}

.code-cursor {
  width: 10px;
  height: 15px;
  background: var(--bitcoin-orange);
  animation: terminal-cursor-blink 0.9s step-end infinite;
}

.block-progress {
  display: grid;
  gap: 8px;
  text-align: left;
}

.progress-label {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border: 1px solid rgba(247, 147, 26, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.progress-fill {
  display: block;
  width: 36%;
  height: 100%;
  background:
    linear-gradient(
      90deg,
      rgba(247, 147, 26, 0.55),
      rgba(255, 177, 74, 0.95)
    );
  box-shadow: 0 0 14px rgba(247, 147, 26, 0.18);
  transition: width 260ms ease;
}

/* ------------------------------------------------------------------------
   POPISEK
   ------------------------------------------------------------------------ */

.construction-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.construction-subtitle {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------------------
   NOSCRIPT
   ------------------------------------------------------------------------ */

.noscript-message {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  width: min(520px, calc(100% - 32px));
  padding: 12px 16px;
  border: 1px solid rgba(247, 147, 26, 0.5);
  color: var(--text-soft);
  background: #0c0e11;
  transform: translateX(-50%);
  text-align: center;
  font-size: 11px;
}

/* ------------------------------------------------------------------------
   ANIMACE
   ------------------------------------------------------------------------ */

@keyframes block-glow {
  0%, 100% {
    box-shadow:
      0 22px 55px rgba(0, 0, 0, 0.48),
      0 0 24px rgba(247, 147, 26, 0.08),
      inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  }

  50% {
    box-shadow:
      0 22px 55px rgba(0, 0, 0, 0.48),
      0 0 36px rgba(247, 147, 26, 0.14),
      inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  }
}

@keyframes led-pulse {
  0%, 100% {
    opacity: 0.55;
  }

  50% {
    opacity: 1;
  }
}

@keyframes block-scan {
  0% {
    transform: translateX(-125%);
  }

  38%, 100% {
    transform: translateX(145%);
  }
}

@keyframes terminal-cursor-blink {
  0%, 49% {
    opacity: 1;
  }

  50%, 100% {
    opacity: 0;
  }
}

/* ------------------------------------------------------------------------
   TABLETY
   ------------------------------------------------------------------------ */

@media (max-width: 1000px) {
  .coming-soon-content {
    padding-inline: 30px;
  }

  .hero-copy h1 {
    font-size: clamp(44px, 8vw, 82px);
  }
}

/* ------------------------------------------------------------------------
   MOBILY
   ------------------------------------------------------------------------ */

@media (max-width: 760px) {
  .coming-soon-shell {
    padding: 8px;
  }

  .coming-soon-panel {
    min-height: calc(100vh - 16px);
    grid-template-rows: 40px minmax(0, 1fr);
  }

  .terminal-bar {
    padding-inline: 13px;
  }

  .terminal-meta {
    display: none;
  }

  .coming-soon-content {
    place-items: start center;
    padding: 42px 18px 36px;
  }

  .coming-soon-stage {
    gap: 40px;
  }

  .hero-kicker {
    margin-bottom: 14px;
    font-size: 9px;
    line-height: 1.5;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 12vw, 66px);
    line-height: 0.96;
    letter-spacing: -0.065em;
  }

  .rotating-line {
    min-height: 2.1em;
  }

  .build-scene {
    width: 330px;
    max-width: 88vw;
    margin-bottom: 17px;
  }

  .bitcoin-block {
    min-height: 270px;
    padding: 16px 14px 18px;
  }

  .block-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .block-row-wide {
    grid-column: auto;
  }

  .row-value {
    font-size: 14px;
  }

  .row-value-hash,
  .code-stream {
    font-size: 12px;
  }

  .construction-title {
    font-size: 18px;
  }

  .construction-subtitle {
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .coming-soon-content {
    padding-inline: 13px;
  }

  .hero-copy h1 {
    font-size: clamp(34px, 11.5vw, 50px);
  }

  .build-scene {
    width: 300px;
  }

  .block-header-title {
    font-size: 11px;
  }

  .block-top-line,
  .block-bottom-line,
  .row-label,
  .progress-label,
  .code-label {
    font-size: 9px;
  }
}

/* ------------------------------------------------------------------------
   OMEZENÍ POHYBU
   ------------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
