/* ===================================================================
   Valderama s. r. o. — štýly
   Farby a fonty meníš nižšie v :root
=================================================================== */

:root {
  /* Paleta — zladená s logom Valderama (#7D86D3) */
  --bg:        #0b0d15;
  --bg-alt:    #0f1119;
  --surface:   #161a26;
  --text:      #eceefa;
  --text-dim:  #9ca2c0;
  --border:    rgba(150, 160, 220, 0.12);

  --accent:    #7d86d3;
  --accent-2:  #a78bd8;
  --grad:      linear-gradient(120deg, var(--accent), var(--accent-2));

  --radius:    16px;
  --container: 1140px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.15; font-weight: 600; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Tlačidlá ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(125, 134, 211, 0.32);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(125, 134, 211, 0.45); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--surface); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- Navigácia ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 13, 21, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { height: 30px; width: auto; display: block; }
.brand__word { height: 15px; width: auto; display: block; }

/* Logo v hero (originálne písmo z loga) */
.hero__logo { width: clamp(120px, 22vw, 200px); height: auto; margin: 0 auto 20px; filter: drop-shadow(0 10px 30px rgba(125, 134, 211, 0.35)); }
.hero__word { width: clamp(190px, 32vw, 300px); height: auto; margin: 0 auto 26px; }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--text-dim); font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  color: var(--text) !important;
  border: 1px solid var(--border);
  padding: 9px 20px;
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s;
}
.nav__cta:hover { background: var(--surface); border-color: var(--accent); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(125, 134, 211, 0.20), transparent 60%),
    radial-gradient(50% 50% at 85% 30%, rgba(167, 139, 216, 0.18), transparent 60%),
    radial-gradient(60% 60% at 50% 100%, rgba(125, 134, 211, 0.12), transparent 60%);
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
  opacity: 0.5;
}
.hero__inner { position: relative; text-align: center; padding: 120px 24px 80px; }
.hero__eyebrow {
  display: inline-block;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 22px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.hero__title { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; margin-bottom: 24px; }
.hero__sub { max-width: 620px; margin: 0 auto 38px; color: var(--text-dim); font-size: 1.12rem; }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: var(--text-dim); font-size: 1.4rem;
  animation: bob 2s var(--ease) infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Sekcie ---------- */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }
.section__tag {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  margin-bottom: 14px;
}
.section__title { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 18px; }
.section__head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.section__head .section__tag { display: inline-block; }
.section__intro { color: var(--text-dim); font-size: 1.08rem; }
.lead { font-size: 1.15rem; color: var(--text); margin-bottom: 18px; }
.section p { color: var(--text-dim); }

.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }

/* ---------- Štatistiky ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.stat:first-child { grid-column: 1 / -1; }
.stat__num { font-family: "Space Grotesk", sans-serif; font-size: 2.6rem; font-weight: 700; }
.stat__plus { font-family: "Space Grotesk", sans-serif; font-size: 1.8rem; color: var(--accent); }
.stat__label { display: block; color: var(--text-dim); margin-top: 6px; font-size: 0.95rem; }

/* ---------- Karty (služby) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(125, 134, 211, 0.55); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); }
.card__icon {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--grad);
  font-size: 1.5rem; color: #fff;
  margin-bottom: 22px;
}
.card__title { font-size: 1.3rem; margin-bottom: 10px; }

/* ---------- Prečo my ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--bg); padding: 38px 34px; transition: background 0.3s; }
.feature:hover { background: var(--surface); }
.feature__no { font-family: "Space Grotesk", sans-serif; color: var(--accent); font-weight: 700; font-size: 0.95rem; }
.feature h3 { font-size: 1.25rem; margin: 12px 0 8px; }

/* ---------- Kontakt ---------- */
.section--contact { background: var(--bg-alt); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__list { list-style: none; margin-top: 30px; display: grid; gap: 18px; }
.contact__list li { display: flex; flex-direction: column; gap: 2px; }
.contact__label { color: var(--text-dim); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1.5px; }
.contact__list a { font-size: 1.15rem; font-weight: 500; transition: color 0.2s; }
.contact__list a:hover { color: var(--accent); }

.contact__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: 0.88rem; color: var(--text-dim); font-weight: 500; }
.field input, .field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  color: var(--text);
  font: inherit;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125, 134, 211, 0.22);
}
.form__note { font-size: 0.82rem; color: var(--text-dim); }

/* ---------- Pätička ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; }
.footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; color: var(--text); font-size: 0.9rem; }
.footer__legal span { color: var(--text-dim); margin-right: 6px; text-transform: uppercase; letter-spacing: 1px; font-size: 0.74rem; }
.footer__copy { color: var(--text-dim); font-size: 0.88rem; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }

/* ---------- Scroll-reveal animácia ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__scroll { animation: none; }
}

/* ---------- Responzív ---------- */
@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 13, 21, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 24px;
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav__cta { text-align: center; margin-top: 12px; border-bottom: 0 !important; }
  .nav__toggle { display: flex; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .section { padding: 80px 0; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stat:first-child { grid-column: auto; }
}
