/* RubiCube Advertising — tmavý vizuál s ružovým akcentom podľa loga */

:root {
  --bg: #0c0d12;
  --bg-alt: #12141c;
  --panel: #171a24;
  --panel-edge: #242836;
  --text: #eef0f6;
  --muted: #9aa2b4;
  --accent: #f0397d;        /* ružová z loga */
  --accent-soft: #ff6ea4;
  --rc-red: #d6283c;
  --rc-green: #2fae4e;
  --rc-blue: #2f6fd6;
  --rc-yellow: #f5c518;
  --rc-orange: #f07a28;
  --rc-white: #f2f2f2;
  --radius: 14px;
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }

.accent { color: var(--accent); }
.eyebrow {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: .8em;
}
.lead, .section-lead { font-size: 1.12rem; color: var(--muted); max-width: 46em; }

/* ---------- hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 13, 18, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-edge);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
.logo-text em { font-style: normal; color: var(--accent); display: block; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; }
.logo-cube {
  display: grid; grid-template-columns: repeat(3, 7px); gap: 2px;
  transform: rotate(-6deg);
}
.logo-cube i { width: 7px; height: 7px; border-radius: 1.5px; display: block; }
.logo-cube i:nth-child(1) { background: var(--rc-red); }
.logo-cube i:nth-child(2) { background: var(--rc-white); }
.logo-cube i:nth-child(3) { background: var(--rc-blue); }
.logo-cube i:nth-child(4) { background: var(--rc-green); }
.logo-cube i:nth-child(5) { background: var(--accent); }
.logo-cube i:nth-child(6) { background: var(--rc-yellow); }
.logo-cube i:nth-child(7) { background: var(--rc-blue); }
.logo-cube i:nth-child(8) { background: var(--rc-orange); }
.logo-cube i:nth-child(9) { background: var(--rc-white); }

.site-nav { display: flex; gap: 22px; align-items: center; }
.site-nav a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav .nav-cta {
  color: #fff; background: var(--accent);
  padding: 8px 16px; border-radius: 999px; font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--accent-soft); }

/* ---------- tlačidlá ---------- */
.btn {
  display: inline-block; font-weight: 600; border-radius: 999px;
  padding: 13px 26px; font-size: 1rem;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 24px rgba(240, 57, 125, .35); }
.btn-primary:hover { background: var(--accent-soft); }
.btn-ghost { border: 1px solid var(--panel-edge); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-soft); }
.btn-lg { font-size: 1.15rem; padding: 16px 32px; }

/* ---------- hero ---------- */
.hero { padding: 90px 0 70px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* 3D kocka */
.hero-visual { display: flex; justify-content: center; }
.scene { width: 230px; height: 230px; perspective: 900px; }
.cube {
  width: 100%; height: 100%; position: relative;
  transform-style: preserve-3d;
  animation: spin 26s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .cube { animation: none; transform: rotateX(-24deg) rotateY(38deg); } }
@keyframes spin {
  from { transform: rotateX(-24deg) rotateY(0deg); }
  to   { transform: rotateX(-24deg) rotateY(360deg); }
}
.face {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
  padding: 7px; background: #05060a; border-radius: 12px;
}
.face i { border-radius: 7px; display: block; }
.face-front  { transform: translateZ(115px); }
.face-back   { transform: rotateY(180deg) translateZ(115px); }
.face-right  { transform: rotateY(90deg) translateZ(115px); }
.face-left   { transform: rotateY(-90deg) translateZ(115px); }
.face-top    { transform: rotateX(90deg) translateZ(115px); }
.face-bottom { transform: rotateX(-90deg) translateZ(115px); }

.face-front  i:nth-child(3n+1) { background: var(--accent); }
.face-front  i:nth-child(3n+2) { background: var(--rc-white); }
.face-front  i:nth-child(3n)   { background: var(--rc-red); }
.face-back   i:nth-child(odd)  { background: var(--rc-green); }
.face-back   i:nth-child(even) { background: var(--rc-yellow); }
.face-right  i:nth-child(odd)  { background: var(--rc-blue); }
.face-right  i:nth-child(even) { background: var(--accent); }
.face-left   i:nth-child(odd)  { background: var(--rc-orange); }
.face-left   i:nth-child(even) { background: var(--rc-white); }
.face-top    i:nth-child(odd)  { background: var(--rc-white); }
.face-top    i:nth-child(even) { background: var(--accent); }
.face-bottom i:nth-child(odd)  { background: var(--rc-yellow); }
.face-bottom i:nth-child(even) { background: var(--rc-blue); }

/* ---------- sekcie ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--panel-edge); border-bottom: 1px solid var(--panel-edge); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.card {
  background: var(--panel); border: 1px solid var(--panel-edge);
  border-radius: var(--radius); padding: 26px;
  transition: transform .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card p { color: var(--muted); margin: 0; }
.card-chip { width: 34px; height: 8px; border-radius: 999px; display: block; margin-bottom: 16px; }
.chip-blue { background: var(--rc-blue); }
.chip-orange { background: var(--rc-orange); }
.chip-green { background: var(--rc-green); }
.chip-yellow { background: var(--rc-yellow); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.step { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--radius); padding: 24px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
.step-num { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--accent); display: block; margin-bottom: 10px; }

.principles { margin-top: 40px; background: var(--panel); border: 1px solid var(--panel-edge); border-radius: var(--radius); padding: 28px; }
.principles ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.principles li { margin-bottom: .6em; }
.principles strong { color: var(--text); }

/* ---------- o mne ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.about-copy p { color: var(--muted); max-width: 42em; }
.about-copy h2 { color: var(--text); }
.about-badge { text-align: center; }
.badge-cube {
  display: grid; grid-template-columns: repeat(3, 34px); gap: 5px;
  width: max-content; margin: 0 auto 18px; transform: rotate(-8deg);
}
.badge-cube i { width: 34px; height: 34px; border-radius: 7px; display: block; }
.badge-cube i:nth-child(1) { background: var(--rc-red); }
.badge-cube i:nth-child(2) { background: var(--accent); }
.badge-cube i:nth-child(3) { background: var(--rc-blue); }
.badge-cube i:nth-child(4) { background: var(--rc-white); }
.badge-cube i:nth-child(5) { background: var(--accent-soft); }
.badge-cube i:nth-child(6) { background: var(--rc-green); }
.badge-cube i:nth-child(7) { background: var(--rc-yellow); }
.badge-cube i:nth-child(8) { background: var(--rc-orange); }
.badge-cube i:nth-child(9) { background: var(--accent); }
.badge-note { color: var(--muted); font-size: .95rem; }

/* ---------- kontakt ---------- */
.section-cta { text-align: center; padding: 100px 0; }
.section-cta .section-lead { margin: 0 auto 30px; }

/* ---------- pätička ---------- */
.site-footer { border-top: 1px solid var(--panel-edge); padding: 30px 0; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 0 0 .4em; }

/* ---------- odhalenie pri scrolle ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- podstránky (privacy, terms) ---------- */
.page { padding: 60px 0; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page h2 { font-size: 1.3rem; margin-top: 2em; }
.page p, .page li { color: var(--muted); }
.page .wrap { max-width: 760px; }

/* ---------- mobil ---------- */
@media (max-width: 860px) {
  .hero { padding: 56px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .scene { width: 170px; height: 170px; }
  .face-front, .face-back, .face-right, .face-left, .face-top, .face-bottom { border-radius: 10px; }
  .face-front  { transform: translateZ(85px); }
  .face-back   { transform: rotateY(180deg) translateZ(85px); }
  .face-right  { transform: rotateY(90deg) translateZ(85px); }
  .face-left   { transform: rotateY(-90deg) translateZ(85px); }
  .face-top    { transform: rotateX(90deg) translateZ(85px); }
  .face-bottom { transform: rotateX(-90deg) translateZ(85px); }
  .cards, .steps { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; }
  .site-nav a:not(.nav-cta) { display: none; }
}
