/* ░░░░░ Citováno.ai — landing styles ░░░░░ */
:root {
  --bg: #0a0b12;
  --bg-soft: #11131f;
  --bg-card: #161927;
  --line: #242838;
  --text: #e8eaf2;
  --muted: #9aa0b5;
  --brand: #7c5cff;
  --brand-2: #38e0c8;
  --grad: linear-gradient(110deg, #7c5cff 0%, #38e0c8 100%);
  --radius: 16px;
  --maxw: 1140px;
  --num: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: ui-serif, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-2); margin-bottom: 14px; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.96rem; padding: 13px 22px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--grad) border-box; color: #0a0b12; box-shadow: 0 8px 30px -8px rgba(124,92,255,.6); }
.btn--primary:hover { box-shadow: 0 12px 38px -8px rgba(124,92,255,.8); }
.btn--ghost { background: rgba(255,255,255,.03); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--brand); }
.btn--sm { padding: 9px 16px; font-size: 0.9rem; }

/* ── nav ── */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(10,11,18,.72); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.15rem; }
.brand__mark { color: var(--brand-2); font-size: 1.2rem; }
.brand__ai { color: var(--muted); }
.nav__links { display: flex; align-items: center; gap: 26px; font-size: 0.95rem; color: var(--muted); }
.nav__links a:hover { color: var(--text); }

/* ── hero ── */
.hero { position: relative; padding: 70px 0 80px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.lead { color: var(--muted); font-size: 1.18rem; margin: 22px 0 30px; max-width: 30ch; }
.lead strong { color: var(--text); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__trust { list-style: none; display: flex; gap: 28px; margin-top: 38px; flex-wrap: wrap; color: var(--muted); font-size: 0.92rem; }
.hero__trust strong { display: block; font-family: var(--num); font-weight: 800; font-size: 1.5rem; color: var(--text); }
.hero__glow { position: absolute; top: -20%; right: -10%; width: 60vw; height: 60vw; max-width: 720px; max-height: 720px; background: radial-gradient(circle, rgba(124,92,255,.22), transparent 62%); pointer-events: none; z-index: 0; }

/* ── demo (interaktivní prvek) ── */
.demo { position: relative; z-index: 1; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); overflow: hidden; }
.demo__chrome { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.demo__chrome .dot { width: 11px; height: 11px; border-radius: 50%; background: #2c3042; }
.demo__url { margin-left: 12px; font-size: 0.8rem; color: var(--muted); font-family: var(--num); }
.demo__body { padding: 20px; }
.demo__hint { font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; }
.demo__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { font: inherit; font-size: 0.85rem; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--text); cursor: pointer; transition: .15s; }
.chip:hover, .chip.is-active { border-color: var(--brand); background: rgba(124,92,255,.12); }
.demo__answer { min-height: 132px; font-size: 0.98rem; line-height: 1.65; color: #cfd3e6; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.demo__answer .cite { background: rgba(56,224,200,.16); color: var(--brand-2); padding: 1px 6px; border-radius: 6px; font-weight: 700; }
.demo__answer .cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--brand-2); vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo__toggle { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 0.82rem; color: var(--muted); }
.demo__toggle .on { color: var(--brand-2); font-weight: 600; }
.switch { width: 44px; height: 25px; border-radius: 999px; border: none; background: var(--brand); position: relative; cursor: pointer; transition: background .2s; }
.switch[aria-checked="false"] { background: #3a3f55; }
.switch__knob { position: absolute; top: 3px; left: 22px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: left .2s; }
.switch[aria-checked="false"] .switch__knob { left: 3px; }

/* ── logos ── */
.logos { padding: 26px 0; border-block: 1px solid var(--line); background: var(--bg-soft); }
.logos p { text-align: center; font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; letter-spacing: .04em; }
.logos__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 38px; }
.logos__row span { font-weight: 700; font-size: 1.05rem; color: #6b7290; opacity: .8; letter-spacing: -.01em; }

/* ── sections ── */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section__head { max-width: 760px; margin-inline: auto; text-align: center; margin-bottom: 50px; }
.section__head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section__sub { color: var(--muted); font-size: 1.1rem; margin-top: 18px; }
.section__sub strong { color: var(--text); }

/* ── cards ── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--brand); }
.card__icon { font-size: 1.8rem; margin-bottom: 14px; }
.card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* ── split ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 22px; }
.checklist { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; }
.checklist li { position: relative; padding-left: 30px; color: var(--muted); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; background: var(--grad); color: #0a0b12; border-radius: 6px; display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; }

/* ── gauge ── */
.split__visual { display: grid; place-items: center; gap: 18px; }
.gauge { position: relative; width: 260px; height: 260px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge__track { fill: none; stroke: var(--line); stroke-width: 9; }
.gauge__fill { fill: none; stroke: url(#g); stroke: var(--brand-2); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1.6s cubic-bezier(.22,1,.36,1); }
.gauge__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge__num { font-family: var(--num); font-weight: 800; font-size: 3.4rem; line-height: 1; }
.gauge__label { font-size: 0.78rem; color: var(--muted); }
.gauge__caption { color: var(--muted); font-size: 0.88rem; text-align: center; max-width: 32ch; }

/* ── steps ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step__n { font-family: var(--num); font-weight: 800; font-size: 1.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.1rem; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ── stats ── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: center; }
.stat { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 22px; }
.stat__num { display: block; font-family: var(--num); font-weight: 800; font-size: 3rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { color: var(--muted); font-size: 0.95rem; }

/* ── contact + chat ── */
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact__copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 18px; }
.contact__copy p { color: var(--muted); margin-bottom: 24px; }
.contact__copy strong { color: var(--text); }
.contact__meta { list-style: none; display: grid; gap: 12px; color: var(--muted); margin-bottom: 26px; }
.contact__meta a { color: var(--brand-2); }

/* ── klasický lead formulář ── (form.lead, ať nekoliduje s hero .lead) */
form.lead { display: grid; gap: 14px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.lead__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead__field { display: grid; gap: 6px; font-size: 0.82rem; color: var(--muted); min-width: 0; }
.lead__field input, .lead__field textarea { width: 100%; min-width: 0; box-sizing: border-box; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; color: var(--text); font: inherit; font-size: 0.95rem; resize: vertical; }
.lead__field input:focus, .lead__field textarea:focus { outline: none; border-color: var(--brand); }
.lead__submit { justify-content: center; width: 100%; margin-top: 2px; }
.lead__note { font-size: 0.78rem; color: var(--muted); text-align: center; }
.lead--done { text-align: center; color: var(--brand-2); font-weight: 600; padding: 10px; }
@media (max-width: 560px) { .lead__row { grid-template-columns: 1fr; } }

.chat { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 460px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.chat__ava { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #0a0b12; font-weight: 800; display: grid; place-items: center; font-family: var(--num); }
.chat__status { display: block; font-size: 0.78rem; color: var(--brand-2); }
.chat__log { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; max-height: 420px; }
.msg { max-width: 84%; padding: 11px 14px; border-radius: 14px; font-size: 0.95rem; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; }
.msg--bot { align-self: flex-start; background: var(--bg-soft); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg--user { align-self: flex-end; background: var(--grad); color: #0a0b12; font-weight: 500; border-bottom-right-radius: 4px; }
.msg--human { align-self: flex-start; background: rgba(56,224,200,.1); border: 1px solid var(--brand-2); border-bottom-left-radius: 4px; }
.msg--human::before { content: "👤 Tým Citováno.ai"; display: block; font-size: 0.72rem; font-weight: 700; color: var(--brand-2); margin-bottom: 4px; }
.msg--typing { display: inline-flex; gap: 4px; }
.msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bob 1.2s infinite; }
.msg--typing span:nth-child(2) { animation-delay: .15s; }
.msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat__form { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.chat__form input { flex: 1; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; color: var(--text); font: inherit; font-size: 0.95rem; }
.chat__form input:focus { outline: none; border-color: var(--brand); }
.chat__send { width: 46px; border: none; border-radius: 11px; background: var(--grad); color: #0a0b12; font-size: 1.2rem; font-weight: 800; cursor: pointer; }
.chat__send:disabled { opacity: .5; cursor: default; }
.chat__hint { font-size: 0.74rem; color: var(--muted); padding: 0 14px 12px; }
.chat__who { display: grid; }
.chat__close { margin-left: auto; background: none; border: none; color: var(--muted); font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 6px; border-radius: 8px; transition: .15s; }
.chat__close:hover { color: var(--text); background: rgba(255,255,255,.06); }

/* ── plovoucí chat bublina ── */
.chatfab { position: fixed; right: 22px; bottom: 22px; z-index: 200; }
.chatfab__btn { position: relative; width: 62px; height: 62px; border-radius: 50%; border: none; cursor: pointer; background: var(--grad) border-box; color: #0a0b12; box-shadow: 0 12px 32px -6px rgba(124,92,255,.6); display: grid; place-items: center; transition: transform .2s; }
.chatfab__btn:hover { transform: scale(1.06); }
.chatfab__btn:active { transform: scale(.97); }
.chatfab__icon { font-size: 1.55rem; line-height: 1; grid-area: 1/1; }
.chatfab__icon--close { display: none; font-weight: 700; }
.chatfab.is-open .chatfab__icon--open { display: none; }
.chatfab.is-open .chatfab__icon--close { display: block; }
.chatfab__pulse { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; box-shadow: 0 0 0 0 rgba(56,224,200,.5); animation: fabpulse 2.6s infinite; }
.chatfab.is-open .chatfab__pulse { display: none; }
@keyframes fabpulse { 0% { box-shadow: 0 0 0 0 rgba(56,224,200,.45); } 70% { box-shadow: 0 0 0 18px rgba(56,224,200,0); } 100% { box-shadow: 0 0 0 0 rgba(56,224,200,0); } }
.chatfab__dot { position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #ff5d6c; border: 2px solid var(--bg); display: none; }
.chatfab.has-unread .chatfab__dot { display: block; }

.chatfab__panel { position: absolute; right: 0; bottom: 80px; width: 380px; max-width: calc(100vw - 44px); height: 540px; max-height: calc(100vh - 130px); display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 36px 90px -22px rgba(0,0,0,.75); animation: panelIn .22s cubic-bezier(.22,1,.36,1); }
.chatfab__panel[hidden] { display: none; }
.chatfab__panel .chat__log { max-height: none; flex: 1; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) {
  .chatfab { right: 14px; bottom: 14px; }
  .chatfab__panel { bottom: 76px; height: calc(100vh - 110px); }
}

/* ── footer ── */
.footer { padding: 50px 0; border-top: 1px solid var(--line); background: var(--bg-soft); }
.footer__inner { display: grid; gap: 10px; text-align: center; color: var(--muted); }
.footer__inner .brand { justify-content: center; }
.footer__small { font-size: 0.82rem; opacity: .8; }

/* ── reveal anim ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── responsive ── */
@media (max-width: 900px) {
  .hero__inner, .split, .contact__inner { grid-template-columns: 1fr; }
  .cards, .steps, .stats { grid-template-columns: 1fr; }
  .nav__links a:not(.btn) { display: none; }
  .hero { padding: 44px 0 56px; }
  .section { padding: 60px 0; }
  .demo { margin-top: 8px; }
}
@media (max-width: 560px) {
  .hero__trust { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
