/* ============================================================
   TABAKA.IT — kuznia/0.7.0
   System wizualny: Deep Navy + Neon Cyan
   ------------------------------------------------------------
   Ciekawscy czytają CSS. Słusznie.
   Dioda przy statusie nie mruga losowo — to alfabet Morse'a.
   ============================================================ */

:root {
  --navy: #0B1A2A;
  --navy-2: #0E2136;
  --steel: #2E4D6B;
  --steel-light: #5A7C9E;
  --cyan: #18E0E8;
  --ink: #E6EEF5;
  --muted: #8AA3B8;
  --border: rgba(90, 124, 158, 0.28);

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', monospace;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-12: 3rem;
  --space-16: 4rem; --space-24: 6rem;

  --radius-md: 0.5rem; --radius-lg: 0.75rem; --radius-full: 9999px;
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* --flag-part: nie tutaj. serio. */
}

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

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
p { text-wrap: pretty; max-width: 60ch; }
h1 { text-wrap: balance; line-height: 1.05; }

/* zaznacz coś. no dalej. */
::selection { background: rgba(24, 224, 232, 0.35); color: #ffffff; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: var(--radius-md); }

/* --- tło: siatka + poświata --- */
.grid-bg {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(90,124,158,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,124,158,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, black 30%, transparent 75%);
}

.glow {
  position: fixed; z-index: -1;
  top: -20vh; left: 50%; transform: translateX(-50%);
  width: 90vw; height: 70vh;
  background: radial-gradient(ellipse at center, rgba(24,224,232,0.10), transparent 65%);
  pointer-events: none;
}

/* --- layout --- */
.shell {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  max-width: 880px;
  margin-inline: auto;
  padding: var(--space-8) var(--space-6);
}

.brand { display: flex; }
.wordmark { width: clamp(160px, 22vw, 220px); height: auto; }

.hero {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  gap: var(--space-6);
  padding-block: var(--space-16) var(--space-12);
}

.status-line {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  color: var(--cyan);
}
.mono { font-family: var(--font-mono); }

.led {
  width: 9px; height: 9px; border-radius: var(--radius-full);
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(24,224,232,0.9), 0 0 24px rgba(24,224,232,0.4);
  transition: opacity 60ms linear;
}
.led.off { opacity: 0.12; box-shadow: none; }

.cursor { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lede { color: var(--muted); font-size: var(--text-base); }

/* niewidzialny — dopóki ktoś nie zaznaczy akapitu */
.ghost {
  display: block;
  margin-top: var(--space-2);
  color: transparent;
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  user-select: text;
}
.ghost::selection { background: rgba(24,224,232,0.9); color: var(--navy); }

/* --- terminal --- */
.terminal {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--navy-2), rgba(14,33,54,0.6));
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  overflow: hidden;
  max-width: 640px;
}

.term-bar {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: var(--radius-full); background: var(--steel); opacity: 0.6; }
.dot:first-child { background: var(--cyan); opacity: 0.8; }
.term-title {
  margin-left: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--steel-light);
}

.term-body {
  padding: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.8;
  color: var(--ink);
  min-height: 12.5em;
  white-space: pre-wrap;
}
.term-body .ok { color: var(--cyan); }
.term-body .dim { color: var(--muted); }

/* --- wartości --- */
.values {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: var(--space-3);
}
.values li {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
}

/* --- kontakt --- */
.contact { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }

.btn {
  display: inline-flex; align-items: center;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-6);
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition);
}
.btn-primary {
  background: var(--cyan); color: var(--navy);
}
.btn-primary:hover {
  background: #5FEAF0;
  box-shadow: 0 0 24px rgba(24,224,232,0.35);
}
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* --- stopka --- */
.foot {
  padding-block: var(--space-6);
  border-top: 1px solid var(--border);
}
.foot p { font-size: var(--text-xs); color: var(--muted); max-width: none; }
.foot-hex { opacity: 0.45; margin-left: var(--space-2); cursor: help; }
.foot-hex:hover { color: var(--cyan); opacity: 1; }

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

@media (max-width: 480px) {
  .shell { padding-inline: var(--space-4); }
  .term-body { min-height: 14em; }
}
