/* ============================================================
   Iskaro — styles
   Téma: "iskra" / ember — teplé oranžovo-červené akcenty,
   tmavé dramatické sekcie, čistá svetlá základňa.
   ============================================================ */

:root {
  /* Farby */
  --ember-1: #ffb020;
  --ember-2: #ff6a2c;
  --ember-3: #ff3d55;
  --grad: linear-gradient(120deg, var(--ember-1), var(--ember-2) 45%, var(--ember-3));

  --ink: #14141a;
  --ink-soft: #3c3c46;
  --muted: #6b6b76;
  --line: #ececef;

  --bg: #ffffff;
  --bg-soft: #faf9f7;
  --bg-dark: #0e0e13;
  --bg-dark-2: #16161e;

  --white: #ffffff;

  /* Tvar & tieň */
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(20, 20, 26, .06);
  --shadow: 0 18px 40px -20px rgba(20, 20, 26, .28);
  --shadow-lg: 0 40px 80px -30px rgba(20, 20, 26, .4);

  /* Rozostupy */
  --container: 1140px;
  --pad-section: clamp(64px, 9vw, 128px);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset / základ ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

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

/* ---------- Tlačidlá ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary {
  color: var(--white);
  background: var(--grad);
  box-shadow: 0 10px 24px -8px rgba(255, 106, 44, .6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgba(255, 106, 44, .7); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--white); }
.btn-ghost:hover { border-color: var(--ember-2); color: var(--ember-2); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(20, 20, 26, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.brand-mark { display: inline-grid; place-items: center; }
.brand-mark svg path { fill: var(--ember-2); }
.brand-name { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav > a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); transition: color .15s ease; }
.nav > a:hover { color: var(--ember-2); }
.nav .nav-cta { color: var(--white); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px); }
.hero-glow {
  position: absolute; inset: -20% -10% auto auto;
  width: 720px; height: 720px;
  background: radial-gradient(circle at 60% 40%, rgba(255, 106, 44, .35), rgba(255, 61, 85, .12) 40%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--ember-2); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; }
.hero .lead { margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-trust { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.hero-trust li { display: flex; flex-direction: column; }
.hero-trust strong { font-size: 1.6rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-trust span { font-size: .85rem; color: var(--muted); }

/* Hero mock window */
.hero-visual { position: relative; }
.mock-window {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  transform: rotate(1.4deg);
  transition: transform .4s ease;
}
.hero-visual:hover .mock-window { transform: rotate(0deg) translateY(-4px); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.mock-bar > span { width: 11px; height: 11px; border-radius: 50%; background: #e0e0e4; }
.mock-bar > span:nth-child(1) { background: #ff5f57; }
.mock-bar > span:nth-child(2) { background: #febc2e; }
.mock-bar > span:nth-child(3) { background: #28c840; }
.mock-url { margin-left: 10px; flex: 1; background: var(--white); border: 1px solid var(--line); border-radius: 8px; font-size: .78rem; color: var(--muted); padding: 4px 12px; }
.mock-body { padding: 22px; }
.mock-hero { height: 120px; border-radius: 12px; background: var(--grad); opacity: .92; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.mock-row > div { height: 54px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); }
.mock-line { height: 12px; border-radius: 6px; background: #ededf1; margin-bottom: 10px; }
.mock-line.long { width: 92%; } .mock-line.med { width: 74%; } .mock-line.short { width: 48%; }
.mock-btn { width: 130px; height: 38px; border-radius: 999px; background: var(--grad); margin-top: 18px; }
.spark-badge {
  position: absolute; top: -18px; left: -18px;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--ember-2); font-size: 1.5rem;
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Sekcie ---------- */
.section { padding: var(--pad-section) 0; }
.section-muted { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #ececef; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .section-lead, .section-dark .step p { color: #b7b7c2; }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.section-lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--muted); }
.section .center.narrow .section-lead { margin-top: 8px; }

/* ---------- Proces / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--bg-dark-2);
  border: 1px solid rgba(255, 255, 255, .07);
}
.step-num { font-size: .9rem; font-weight: 800; letter-spacing: .1em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.3rem; margin: 12px 0 8px; }
.step p { font-size: .96rem; }

/* ---------- Karty služieb ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(255,176,32,.16), rgba(255,61,85,.16));
  margin-bottom: 18px;
}
.card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- Tím ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.member {
  text-align: center;
  padding: 34px 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.avatar {
  width: 84px; height: 84px; border-radius: 50%;
  margin: 0 auto 18px;
  background: var(--grad);
  display: grid; place-items: center;
  position: relative;
}
.avatar::after {
  content: attr(data-initials);
  color: var(--white); font-weight: 800; font-size: 1.4rem; letter-spacing: .02em;
}
.member h3 { font-size: 1.2rem; }
.member .role { color: var(--ember-2); font-weight: 600; font-size: .92rem; margin: 4px 0 12px; }
.member .bio { color: var(--muted); font-size: .95rem; }

/* ---------- Cenník ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 880px; margin: 0 auto; }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.plan-featured { border: 1.5px solid transparent; background:
    linear-gradient(var(--white), var(--white)) padding-box,
    var(--grad) border-box;
  box-shadow: var(--shadow);
}
.plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: var(--white);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  padding: 6px 16px; border-radius: 999px;
  box-shadow: 0 8px 18px -8px rgba(255, 106, 44, .7);
}
.plan-head h3 { font-size: 1.5rem; }
.plan-sub { color: var(--muted); font-size: .96rem; margin-top: 6px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: 1.2rem; }
.price-now { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; }
.price-badge {
  width: 100%; margin-top: 2px;
  font-size: .8rem; font-weight: 700; color: var(--ember-2);
  background: rgba(255, 106, 44, .1);
  padding: 4px 12px; border-radius: 999px; align-self: flex-start; width: fit-content;
}
.plan-list { margin: 4px 0 28px; display: grid; gap: 12px; }
.plan-list li { position: relative; padding-left: 30px; color: var(--ink-soft); font-size: .98rem; }
.plan-list li::before {
  content: "✦"; position: absolute; left: 0; top: 0;
  color: var(--ember-2); font-size: .9rem;
}
.plan .btn { margin-top: auto; }

/* Doplnky */
.addons { max-width: 880px; margin: 56px auto 0; }
.addons-title { font-size: 1.4rem; text-align: center; }
.addons-note { text-align: center; color: var(--muted); font-size: .95rem; margin: 6px 0 26px; }
.addon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.addon {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 22px; border-radius: 12px;
  background: var(--bg-soft); border: 1px solid var(--line);
}
.addon span { color: var(--ink-soft); }
.addon strong { color: var(--ink); white-space: nowrap; }

/* ---------- Referencie / galéria ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-dark-2);
  border: 1px solid rgba(255, 255, 255, .07);
  transition: transform .22s ease, box-shadow .22s ease;
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-thumb { aspect-ratio: 16 / 10; position: relative; }
.project-thumb::after {
  content: attr(data-x);
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35));
}
.thumb-1 { background: linear-gradient(135deg, #ffb020, #ff3d55); }
.thumb-2 { background: linear-gradient(135deg, #ff6a2c, #7a2ff2); }
.thumb-3 { background: linear-gradient(135deg, #2cc7ff, #2f6bff); }
.thumb-4 { background: linear-gradient(135deg, #ff3d55, #ff6a2c); }
.thumb-5 { background: linear-gradient(135deg, #14b88a, #2cc7ff); }
.thumb-6 { background: linear-gradient(135deg, #ffb020, #ff6a2c); }
.project-meta { padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.project-name { color: var(--white); font-weight: 700; }
.project-cat { color: #9a9aa6; font-size: .86rem; }

/* ---------- Kontakt / CTA ---------- */
.cta-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px);
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--bg-dark);
  color: #ececef;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute; inset: auto auto -30% -10%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255, 106, 44, .3), transparent 70%);
  pointer-events: none;
}
.cta-copy { position: relative; }
.cta-box h2 { color: var(--white); }
.cta-box .section-lead { color: #b7b7c2; margin-top: 12px; }
.contact-list { margin-top: 26px; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; color: #d7d7de; }
.contact-list a:hover { color: var(--ember-1); }

.contact-form { position: relative; display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: #cfcfd8; }
.contact-form input, .contact-form textarea {
  font-family: inherit; font-size: 1rem;
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  color: var(--white);
  resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #7d7d8a; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--ember-2); border-color: transparent; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark-2); color: #b7b7c2; padding: 56px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand { display: grid; gap: 6px; align-content: start; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; }
.footer-logo .brand-mark svg path { fill: var(--ember-2); }
.footer-logo .brand-name { font-size: 1.3rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-tag { color: #8a8a96; font-size: .95rem; margin-top: 4px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-nav a { color: #b7b7c2; font-size: .95rem; }
.footer-nav a:hover { color: var(--ember-1); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .86rem; color: #7d7d8a; }
.footer-socials { display: flex; gap: 18px; }
.footer-socials a:hover { color: var(--ember-1); }

/* ---------- Reveal animácie ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responzívne ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards, .team, .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform .3s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav > a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin-top: 12px; border-bottom: 0; }
  .nav-toggle { display: flex; }

  .pricing, .cards, .team, .gallery, .steps, .addon-grid, .cta-box { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
