/* ============================================================
   Návrh webu — osobná značka / SMM · marketing · AI
   "Warm ink" dark editorial system
   ============================================================ */

:root {
  /* tweakable */
  --accent: oklch(0.72 0.17 47);          /* signálna oranžová */
  --accent-soft: oklch(0.72 0.17 47 / 0.14);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* warm ink neutrals */
  --ink-900: oklch(0.17 0.012 60);
  --ink-850: oklch(0.205 0.013 60);
  --ink-800: oklch(0.24 0.013 60);
  --ink-700: oklch(0.32 0.012 60);
  --line:    oklch(1 0 0 / 0.09);
  --line-2:  oklch(1 0 0 / 0.16);

  --paper:   oklch(0.95 0.008 75);
  --paper-2: oklch(0.86 0.01 75);
  --muted:   oklch(0.72 0.012 75);
  --faint:   oklch(0.6 0.012 75);

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* warm grain / glow background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(70vw 60vh at 78% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(50vw 40vh at -5% 105%, oklch(0.72 0.17 47 / 0.08), transparent 60%);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); position: relative; z-index: 1; }

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

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s cubic-bezier(.2,.7,.2,1), transform 0.55s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: oklch(0.17 0.012 60 / 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; letter-spacing: -0.01em; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; color: var(--paper-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--paper); }
.nav-cta {
  font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--paper); transition: all 0.2s;
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--ink-900); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--paper); transition: 0.25s; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 22px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink-850); border-bottom: 1px solid var(--line);
    padding: 26px var(--pad);
  }
  .nav-links.open .nav-cta { align-self: center; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(130px, 20vh, 200px); padding-bottom: clamp(70px, 11vh, 130px); }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.hero .eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); position: relative; }
.hero .eyebrow .pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(0.7); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

.hero h1 {
  font-size: clamp(44px, 8.5vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead {
  margin-top: 32px; max-width: 56ch; font-size: clamp(17px, 2.1vw, 21px);
  color: var(--paper-2); line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 16px; padding: 15px 26px; border-radius: 999px;
  cursor: pointer; transition: all 0.22s; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--ink-900); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px var(--accent); }
.btn-ghost { border-color: var(--line-2); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }
.btn .arrow { transition: transform 0.22s; }
.btn:hover .arrow { transform: translateX(4px); }

.hero-meta { margin-top: 64px; padding-top: 30px; border-top: 1px solid var(--line); }
.hero-note { max-width: 62ch; color: var(--muted); font-size: 16.5px; line-height: 1.65; }

/* ============================================================
   SECTION SHELL
   ============================================================ */
section { padding-block: clamp(70px, 11vh, 130px); position: relative; z-index: 1; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 56px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(30px, 5vw, 56px); letter-spacing: -0.03em; font-weight: 600; line-height: 1.02; max-width: 18ch; }
.sec-head .num { white-space: nowrap; }

/* ============================================================
   SLUŽBY
   ============================================================ */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }
.svc {
  border: 1px solid var(--line); border-radius: 20px; padding: 32px 30px 36px;
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
  transition: border-color 0.3s, transform 0.3s; position: relative; overflow: hidden;
}
.svc:hover { border-color: var(--line-2); transform: translateY(-4px); }
.svc .ix { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.svc h3 { font-size: 23px; margin: 22px 0 14px; letter-spacing: -0.01em; font-weight: 600; }
.svc p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.svc ul { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 11px; }
.svc li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--paper-2); }
.svc li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 7px; border-radius: 2px; background: var(--accent); }
.svc .glow { position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--accent-soft); filter: blur(20px); opacity: 0; transition: opacity 0.4s; }
.svc:hover .glow { opacity: 1; }

/* ============================================================
   AI PROCES
   ============================================================ */
.ai { background: var(--ink-850); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 10px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 30px 26px 30px 0; border-top: 1px solid var(--line-2); }
.step .k { font-family: var(--font-mono); color: var(--accent); font-size: 13px; }
.step h4 { font-size: 19px; margin: 16px 0 10px; font-weight: 600; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.ai-banner {
  margin-top: 64px; border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(28px, 4vw, 48px); display: flex; gap: 40px; align-items: center; flex-wrap: wrap;
  background: radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 55%);
}
.ai-banner .big { font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.02em; max-width: 22ch; line-height: 1.2; }
.ai-banner .right { color: var(--muted); max-width: 40ch; font-size: 15.5px; }

/* ============================================================
   O MNE
   ============================================================ */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .portrait { position: static; max-width: 420px; } }
@media (hover: none) { .portrait { position: static; } }
.portrait {
  aspect-ratio: 4/5; border-radius: 22px; border: 1px solid var(--line);
  background: var(--ink-800);
  overflow: hidden; position: sticky; top: 100px;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-body p.intro { font-size: clamp(19px, 2.4vw, 25px); letter-spacing: -0.01em; line-height: 1.45; color: var(--paper); }
.about-body p.intro em { font-style: normal; color: var(--accent); }
.facts { margin-top: 40px; display: flex; flex-direction: column; }
.fact { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
@media (max-width: 520px) { .fact { grid-template-columns: 1fr; gap: 8px; } }
.fact .when { font-family: var(--font-mono); font-size: 12px; color: var(--faint); padding-top: 4px; }
.fact h5 { font-size: 18px; font-weight: 600; }
.fact p { color: var(--muted); font-size: 15px; margin-top: 6px; line-height: 1.55; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 34px; }
.chip { font-size: 13px; padding: 8px 15px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--paper-2); }

/* ============================================================
   VÝSLEDKY
   ============================================================ */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .results { grid-template-columns: 1fr; } }
.result { border: 1px solid var(--line); border-radius: 18px; padding: 30px; background: var(--ink-850); }
.result .n { font-size: clamp(36px, 5vw, 52px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.result .n span { color: var(--accent); }
.result .l { margin-top: 14px; color: var(--muted); font-size: 15px; }

/* ---------- P.S. 3D tlač ---------- */
.ps {
  margin-top: 40px; display: grid; grid-template-columns: 130px 1fr; gap: 24px;
  padding: 26px 28px; border: 1px dashed var(--line-2); border-radius: 18px;
  background: var(--accent-soft);
}
@media (max-width: 520px) { .ps { grid-template-columns: 1fr; gap: 10px; } }
.ps-k { padding-top: 4px; color: var(--accent) !important; }
.ps h5 { font-size: 18px; font-weight: 600; }
.ps p { color: var(--paper-2); font-size: 15px; margin-top: 6px; line-height: 1.55; }
.ps p a { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* ============================================================
   REFERENCIE
   ============================================================ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  border: 1px solid var(--line); border-radius: 20px; padding: 32px 30px;
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.quote blockquote { font-size: 17px; line-height: 1.55; color: var(--paper); letter-spacing: -0.01em; }
.quote figcaption { display: flex; flex-direction: column; gap: 5px; padding-top: 22px; border-top: 1px solid var(--line); }
.quote .qn { font-weight: 600; font-size: 15px; }
.quote .qr { font-size: 11px; }
.ref-note { margin-top: 40px; color: var(--muted); font-size: 16px; }
.ref-note a { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* ============================================================
   KONTAKT
   ============================================================ */
.contact { background: var(--ink-850); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 70px); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact h2 { font-size: clamp(34px, 6vw, 68px); letter-spacing: -0.03em; line-height: 0.98; font-weight: 600; }
.contact h2 em { font-style: normal; color: var(--accent); }
.contact .sub { color: var(--muted); margin-top: 22px; max-width: 36ch; font-size: 16px; }
.contact-detail { margin-top: 38px; display: flex; flex-direction: column; gap: 16px; }
.contact-detail a { display: flex; align-items: center; gap: 14px; font-size: 17px; transition: color 0.2s; }
.contact-detail a:hover { color: var(--accent); }
.contact-detail .ic { width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; flex: none; }

form { display: flex; flex-direction: column; gap: 16px; }
.field label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); display: block; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: var(--ink-900); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; color: var(--paper); font-family: var(--font-display); font-size: 15.5px; transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 13px; color: var(--faint); }
.form-ok { display: none; padding: 16px; border: 1px solid var(--accent); border-radius: 12px; color: var(--accent); font-size: 15px; }
.form-ok.show { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { padding-block: 44px; border-top: 1px solid var(--line); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot .links { display: flex; gap: 22px; }
.foot a { color: var(--muted); font-size: 14px; transition: color 0.2s; }
.foot a:hover { color: var(--paper); }

/* ============ TOOLTIPS ============ */
.tip{position:relative;cursor:help;border-bottom:1px dashed var(--accent);outline:none}
.tip::after{content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 9px);transform:translateX(-50%) translateY(4px);width:max-content;max-width:250px;white-space:normal;text-wrap:balance;background:var(--ink-850);border:1px solid var(--line-2);color:var(--paper-2);font-size:13px;font-weight:400;font-style:normal;letter-spacing:0;line-height:1.45;padding:9px 13px;border-radius:11px;box-shadow:0 14px 34px rgba(0,0,0,.5);opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease;z-index:60}
.tip:hover::after,.tip:focus::after{opacity:1;transform:translateX(-50%) translateY(0)}
.tip-end::after{left:auto;right:0;transform:translateY(4px)}
.tip-end:hover::after,.tip-end:focus::after{transform:translateY(0)}
@media (max-width:640px){
.tip::after{left:0;right:auto;max-width:min(280px,86vw);transform:translateX(var(--tx,0)) translateY(4px)}
.tip:hover::after,.tip:focus::after{transform:translateX(var(--tx,0)) translateY(0)}
}

/* ============ LOGOS ============ */
.logos-k{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-top:48px}
.logos{display:flex;flex-wrap:wrap;gap:14px;margin-top:18px}
.logo-chip{background:#fff;border-radius:16px;height:92px;padding:0 26px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.logo-chip img{max-height:58px;max-width:140px;width:auto;height:auto;display:block}
@media (max-width:640px){.logos{gap:10px}.logo-chip{height:74px;padding:0 18px}.logo-chip img{max-height:46px;max-width:106px}}

/* ============ MOBILE SPACING ============ */
@media (max-width: 640px){
  section{padding-block:56px}
  .hero{padding-top:112px;padding-bottom:56px}
  .hero-meta{margin-top:40px}
  .sec-head{margin-bottom:36px}
  .facts{margin-top:28px}
  .ai-banner{margin-top:40px}
}

/* ============ POLISH ============ */
::selection{background:var(--accent);color:var(--ink-900)}
a:focus-visible,button:focus-visible,.tip:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}
html{scroll-padding-top:16px}
@media (max-width:640px){html{scroll-padding-top:32px}}
h1,h2,h3,h4,h5{text-wrap:balance}
p,blockquote{text-wrap:pretty}
.hp{position:absolute !important;left:-9999px;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}
