/* =====================================================
   CLASIO.FUN — core.css
   Dizajnové jadro. Načítava sa na každej stránke.
   ===================================================== */

/* ---------- TOKENY ---------- */
:root {
  --bg:        #08070B;
  --bg-2:      #0E0D14;
  --bg-3:      #16141F;
  --line:      #26222F;
  --line-hot:  #3A3448;

  --txt:       #EDEBF2;
  --dim:       #7B7690;

  --acid:      #C6FF3D;
  --blue:      #2BD9FF;
  --violet:    #9B6BFF;
  --red:       #FF3355;

  --pad:       clamp(16px, 5vw, 48px);
  --maxw:      1180px;

  --f-display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --f-mono:    "Space Mono", ui-monospace, "Courier New", monospace;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--f-mono);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, canvas, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

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

:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 3px;
}

::selection { background: var(--acid); color: #000; }

/* ---------- ATMOSFÉRA ---------- */
/* Scanlines + jemný šum. Fixed vrstva ponad všetko, neklikateľná. */
.atmos {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.atmos::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.028) 0px,
    rgba(255, 255, 255, 0.028) 1px,
    transparent 1px,
    transparent 3px
  );
}

.atmos::after {
  content: "";
  position: absolute;
  inset: -50%;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: cl-grain 0.7s steps(3) infinite;
}

@keyframes cl-grain {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-2%, 1%); }
  66%  { transform: translate(1%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ---------- LAYOUT ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- TOP BAR ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 7, 11, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 52px;
}

.topbar__brand {
  font-family: var(--f-display);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.topbar__brand span { color: var(--acid); }

.topbar__meta {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--dim);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 7px;
  height: 7px;
  background: var(--acid);
  border-radius: 50%;
  animation: cl-pulse 2.2s ease-in-out infinite;
}

@keyframes cl-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

/* ---------- HERO ---------- */
.hero {
  padding: clamp(48px, 12vh, 120px) 0 clamp(32px, 7vh, 64px);
}

.wordmark {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(58px, 17vw, 178px);
  line-height: 0.82;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  position: relative;
}

.wordmark em {
  font-style: normal;
  color: var(--acid);
}

/* Glitch: dve posunuté kópie v modrej a červenej. */
.wordmark::before,
.wordmark::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  clip-path: inset(0 0 62% 0);
}

.wordmark::before {
  color: var(--blue);
  transform: translate(-3px, -2px);
  mix-blend-mode: screen;
  animation: cl-glitch-a 6s steps(2) infinite;
}

.wordmark::after {
  color: var(--red);
  transform: translate(3px, 2px);
  clip-path: inset(58% 0 0 0);
  mix-blend-mode: screen;
  animation: cl-glitch-b 6s steps(2) infinite;
}

@keyframes cl-glitch-a {
  0%, 88%, 100% { opacity: 0; transform: translate(0, 0); }
  90%           { opacity: 1; transform: translate(-5px, -2px); }
  94%           { opacity: 1; transform: translate(3px, 1px); }
}

@keyframes cl-glitch-b {
  0%, 88%, 100% { opacity: 0; transform: translate(0, 0); }
  91%           { opacity: 1; transform: translate(5px, 2px); }
  95%           { opacity: 1; transform: translate(-3px, -1px); }
}

.hero__sub {
  margin: clamp(20px, 4vh, 34px) 0 0;
  font-size: clamp(16px, 3.4vw, 22px);
  line-height: 1.35;
  color: var(--dim);
  max-width: 22ch;
}

.hero__sub b {
  display: block;
  color: var(--txt);
  font-weight: 700;
}

/* ---------- KARTY EXPERIMENTOV ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-bottom: clamp(40px, 8vh, 80px);
}

@media (min-width: 860px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 22px; }
}

.card {
  --accent: var(--acid);
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.card--blue { --accent: var(--blue); }

.card:hover,
.card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* Tenký akcentový pruh, ktorý sa pri hoveri roztiahne. */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 34px;
  background: var(--accent);
  transition: width 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card:hover::before,
.card:focus-visible::before { width: 100%; }

.card__stat {
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 14px;
}

.card__preview {
  background: #000;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  width: 100%;
  margin-bottom: 18px;
}

.card__title {
  margin: 0 0 10px;
  font-family: var(--f-display);
  font-size: clamp(26px, 6.2vw, 40px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.card__lines {
  margin: 0 0 22px;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.7;
}

.card__cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 12px 18px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.16s ease, color 0.16s ease;
}

.card:hover .card__cta {
  background: var(--accent);
  color: #000;
}

.card__cta i {
  font-style: normal;
  transition: transform 0.16s ease;
}

.card:hover .card__cta i { transform: translateX(4px); }

/* ---------- PÄTA ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.06em;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
}

.foot b { color: var(--acid); font-weight: 400; }

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