/* ============================================================
   agentiq.cz IBM-inspired design system (dark, indigo accent)
   ============================================================ */

:root {
  --bg: #0b0b10;
  --bg-raised: #12121a;
  --bg-hover: #1a1a26;
  --border: #26263a;
  --border-strong: #3a3a54;
  --text: #f2f2f7;
  --text-secondary: #a2a2b8;
  --text-tertiary: #6f6f85;
  --accent: #4942ee;
  --accent-hover: #3d37d1;
  --accent-text: #928dff;
  --accent-dim: rgba(73, 66, 238, 0.14);
  --header-h: 3rem;
  --gutter: 2rem;
  --font-sans: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
}
.skip-link:focus { left: 0; }

.container { max-width: 82rem; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(11, 11, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 82rem; margin: 0 auto; padding: 0 var(--gutter);
  height: 100%; display: flex; align-items: center; gap: 2.5rem;
}

.logo-link { display: flex; align-items: center; flex-shrink: 0; padding: 0.25rem 0.5rem 0.25rem 0; }
.logo-link img { height: 1.5rem; width: auto; display: block; }

.main-nav { display: flex; gap: 0.25rem; margin-left: auto; }

.main-nav a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.main-nav a:hover { color: var(--text); text-decoration: none; border-bottom-color: var(--border-strong); }
.main-nav a.active { color: var(--text); border-bottom-color: var(--accent); }

.lang-switch {
  display: flex; align-items: center; gap: 0;
  font-family: var(--font-mono); font-size: 0.75rem;
  border: 1px solid var(--border); flex-shrink: 0;
}
.lang-switch button {
  font-family: inherit; font-size: inherit;
  background: transparent; color: var(--text-secondary);
  border: 0; padding: 0.375rem 0.75rem; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-switch button:hover { color: var(--text); background: var(--bg-hover); }
.lang-switch button[aria-pressed="true"] {
  background: var(--text); color: var(--bg); font-weight: 600;
}

.menu-toggle {
  display: none; margin-left: auto;
  background: none; border: 0; cursor: pointer; padding: 0.5rem;
}
.menu-toggle span {
  display: block; width: 1.25rem; height: 1.5px; background: var(--text);
  margin: 4px 0; transition: transform 0.2s, opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 6rem) 0 6rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 2rem 2rem;
  mask-image: linear-gradient(115deg, transparent 42%, rgba(0,0,0,0.55) 75%, rgba(0,0,0,0.8) 100%);
  -webkit-mask-image: linear-gradient(115deg, transparent 42%, rgba(0,0,0,0.55) 75%, rgba(0,0,0,0.8) 100%);
}

.hero-ornament { position: absolute; pointer-events: none; }
.hero-ornament--circle {
  width: 11rem; height: 11rem; border-radius: 50%;
  background: var(--accent);
  right: 10%; top: 18%;
  opacity: 0.92;
  filter: saturate(1.1);
}
.hero-ornament--ring {
  width: 11rem; height: 11rem;
  border: 1px solid var(--accent-text);
  right: calc(10% - 2.25rem); top: calc(18% + 2.25rem);
  opacity: 0.5;
}

.hero .container { position: relative; }

.eyebrow {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-text);
  display: block; margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16em;
}
.hero h1 strong { font-weight: 600; color: var(--accent-text); }

.hero-sub {
  margin-top: 2rem;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 38em;
}

.hero-cta-row { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1px; }

/* ---------- Buttons (Carbon-style) ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 3rem;
  font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 400;
  padding: 0.9375rem 1.25rem;
  min-width: 13rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--text-secondary); }

/* ---------- Sections ---------- */

.section { padding: 5.5rem 0; border-bottom: 1px solid var(--border); }

.section-head {
  display: flex; align-items: baseline; gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.section-num {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--accent-text); letter-spacing: 0.08em;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.625rem);
  font-weight: 300; letter-spacing: -0.01em;
}

.section-intro {
  font-size: 1.125rem; font-weight: 300;
  color: var(--text-secondary);
  max-width: 44em; margin: -2rem 0 3.5rem;
}

/* ---------- Approach (Směr) ---------- */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }

.pillar { background: var(--bg); padding: 2rem 1.75rem 2.5rem; }
.pillar .p-num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-tertiary); display: block; margin-bottom: 2.5rem; }
.pillar h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.875rem; }
.pillar h3 em { font-style: normal; color: var(--accent-text); }
.pillar p { font-size: 0.9375rem; color: var(--text-secondary); }

.principles {
  margin-top: 3.5rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter);
}
.principle {
  border-top: 1px solid var(--border-strong);
  padding-top: 1rem;
}
.principle .k {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--accent-text); display: block; margin-bottom: 0.5rem;
}
.principle .v { font-size: 0.875rem; color: var(--text-secondary); }

/* ---------- Services ---------- */

.services { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }

.service-card {
  border: 1px solid var(--border);
  background: var(--bg-raised);
  padding: 2.5rem 2.25rem;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover { border-color: var(--accent); }

.service-card .s-num {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--accent-text); display: block; margin-bottom: 2.25rem;
}
.service-card h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.25; margin-bottom: 1rem; max-width: 16em; }
.service-card > p { font-size: 0.9375rem; color: var(--text-secondary); margin-bottom: 2rem; }

.service-card ul { list-style: none; margin-bottom: 2.5rem; }
.service-card li {
  font-size: 0.875rem; color: var(--text-secondary);
  padding: 0.625rem 0 0.625rem 1.5rem;
  border-top: 1px solid var(--border);
  position: relative;
}
.service-card li::before {
  content: '+'; position: absolute; left: 0;
  font-family: var(--font-mono); color: var(--accent-text);
}

.service-meta {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border-strong); padding-top: 1.25rem;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-tertiary);
}
.service-meta a { font-size: 0.8125rem; }

/* ---------- Pricing ---------- */

.pricing-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }

.price-figure { border-left: 4px solid var(--accent); padding-left: 2rem; }
.price-figure .amount {
  font-weight: 300; font-size: clamp(3.5rem, 7vw, 5.5rem);
  letter-spacing: -0.03em; line-height: 1;
  display: block;
}
.price-figure .amount .unit { font-size: 0.35em; font-weight: 400; color: var(--text-secondary); letter-spacing: 0; }
.price-figure .per {
  display: block; margin-top: 1rem;
  font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-secondary);
}

.price-facts { display: grid; gap: 0; border-top: 1px solid var(--border-strong); }
.price-fact {
  display: grid; grid-template-columns: 2.5rem 1fr;
  gap: 1rem; padding: 1.375rem 0;
  border-bottom: 1px solid var(--border);
}
.price-fact .n { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-tertiary); padding-top: 0.2rem; }
.price-fact h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.price-fact p { font-size: 0.875rem; color: var(--text-secondary); }

/* ---------- Contact & billing ---------- */

.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }

.contact-block h3, .billing-block h3 {
  font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem;
}

.contact-block .contact-lead { color: var(--text-secondary); font-weight: 300; max-width: 26em; margin-bottom: 2.5rem; }

.contact-mail {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 300;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.25rem;
  transition: color 0.15s;
}
.contact-mail:hover { text-decoration: none; color: #fff; }

.contact-person {
  margin-top: 2.5rem;
  display: flex; flex-direction: column; gap: 0.25rem;
}
.contact-person .cp-name { font-weight: 600; }
.contact-person .cp-phone {
  font-family: var(--font-mono); font-size: 0.9375rem;
  color: var(--text-secondary);
}
.contact-person .cp-phone:hover { color: var(--accent-text); text-decoration: none; }

.billing-table { width: 100%; border-collapse: collapse; }
.billing-table th, .billing-table td {
  text-align: left; vertical-align: top;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.billing-table th {
  font-family: var(--font-mono); font-weight: 400;
  font-size: 0.75rem; color: var(--text-tertiary);
  padding-right: 2rem; white-space: nowrap; width: 1%;
}
.billing-table td { color: var(--text-secondary); }

.billing-note { margin-top: 1rem; font-size: 0.8125rem; color: var(--text-tertiary); }

/* ---------- Footer ---------- */

.site-footer { padding: 3.5rem 0 4rem; }

.footer-inner {
  display: flex; flex-wrap: wrap; gap: 2rem;
  align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 1.25rem; }
.footer-brand img { height: 1rem; width: auto; display: block; opacity: 0.85; }
.footer-tag { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-tertiary); }

.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.8125rem; color: var(--text-secondary); }
.footer-links a:hover { color: var(--text); }

.footer-legal { width: 100%; margin-top: 1rem; font-size: 0.75rem; color: var(--text-tertiary); }

/* ---------- Legal page ---------- */

.legal-page { padding: calc(var(--header-h) + 4.5rem) 0 5rem; }
.legal-page .container { max-width: 52rem; }

.legal-page h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; letter-spacing: -0.01em; margin-bottom: 0.75rem; }
.legal-updated { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-tertiary); display: block; margin-bottom: 3rem; }

.legal-lang-note {
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
  background: var(--bg-raised);
  padding: 1rem 1.25rem; margin-bottom: 3rem;
  font-size: 0.875rem; color: var(--text-secondary);
}

.legal-toc {
  border: 1px solid var(--border);
  background: var(--bg-raised);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
}
.legal-toc h2 {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1rem;
}
.legal-toc ol {
  list-style: none;
  columns: 2; column-gap: 2.5rem;
}
.legal-toc li { break-inside: avoid; }
.legal-toc a {
  display: block;
  font-size: 0.875rem; color: var(--text-secondary);
  padding: 0.375rem 0;
  border-bottom: 1px solid var(--border);
}
.legal-toc a:hover { color: var(--text); text-decoration: none; }

.legal-body h2 {
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
  font-size: 1.25rem; font-weight: 600;
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.legal-body p { font-size: 0.9375rem; color: var(--text-secondary); margin-bottom: 1rem; }
.legal-body ol, .legal-body ul { margin: 0 0 1rem 1.25rem; }
.legal-body li { font-size: 0.9375rem; color: var(--text-secondary); margin-bottom: 0.5rem; }

@media print {
  .site-header, .site-footer, .legal-toc, .skip-link, .cursor-dot, .cursor-ring { display: none; }
  body { background: #fff; color: #000; }
  .legal-page { padding: 0; }
  .legal-body p, .legal-body li, .legal-body h2, .legal-page h1 { color: #000; }
  .legal-lang-note { border-color: #999; background: #fff; color: #333; }
  .legal-updated { color: #333; }
}

/* ---------- Interactive effects (ported from the original landing) ---------- */

#hero-canvas {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
}

.hero .hero-grid-bg, .hero .hero-ornament { z-index: 1; }
.hero .container { z-index: 2; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(18px, -12px) scale(1.04); }
  66% { transform: translate(-10px, 10px) scale(0.97); }
}
@keyframes orbGlow {
  0%, 100% { box-shadow: 0 0 60px rgba(73, 66, 238, 0.25); }
  50% { box-shadow: 0 0 110px rgba(73, 66, 238, 0.5); }
}
.hero-ornament--circle { animation: orbFloat 18s ease-in-out infinite, orbGlow 6s ease-in-out infinite; }
.hero-ornament--ring { animation: orbFloat 22s ease-in-out infinite reverse; }

/* headline letter reveal */
.hl-word { display: inline-block; white-space: nowrap; }
.hl-char {
  display: inline-block;
  opacity: 0;
  animation: letterReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes letterReveal {
  from { opacity: 0; transform: translateY(0.45em) rotateX(50deg); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) rotateX(0deg); filter: blur(0); }
}
.hero h1 { perspective: 800px; }

/* custom cursor */
html.custom-cursor, html.custom-cursor * { cursor: none !important; }

.cursor-dot {
  position: fixed; width: 6px; height: 6px; border-radius: 50%;
  background: #928dff;
  pointer-events: none; z-index: 1000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(122, 116, 255, 0.55), 0 0 30px rgba(73, 66, 238, 0.25);
  opacity: 0; transition: opacity 0.2s;
}
.cursor-ring {
  position: fixed; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(122, 116, 255, 0.45);
  pointer-events: none; z-index: 999;
  transform: translate(-50%, -50%);
  animation: cursorPulse 3s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.2s, width 0.25s, height 0.25s, border-color 0.25s;
}
html.cursor-hover .cursor-ring {
  width: 58px; height: 58px;
  border-color: rgba(146, 141, 255, 0.85);
  animation-play-state: paused;
}
html.cursor-hover .cursor-dot { background: #fff; }
@keyframes cursorPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.75; }
  50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
  .hero-ornament--circle, .hero-ornament--ring { animation: none; }
}

/* ---------- Reveal animations ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.2, 0, 0.38, 0.9), transform 0.7s cubic-bezier(0.2, 0, 0.38, 0.9); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

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

/* ---------- Responsive ---------- */

@media (max-width: 64rem) {
  .pillars { grid-template-columns: 1fr; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .pricing-wrap, .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .hero-ornament--circle { width: 8rem; height: 8rem; right: 6%; top: 12%; }
  .hero-ornament--ring { width: 8rem; height: 8rem; right: calc(6% - 1.75rem); top: calc(12% + 1.75rem); }
}

@media (max-width: 48rem) {
  :root { --gutter: 1.25rem; }

  .menu-toggle { display: block; }

  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0 1rem;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 0.875rem var(--gutter);
    border-bottom: 0; border-left: 3px solid transparent;
    font-size: 1rem;
  }
  .main-nav a.active { border-left-color: var(--accent); }

  .lang-switch { margin-left: auto; margin-right: 0.75rem; }
  .menu-toggle { margin-left: 0; }

  .hero { padding: calc(var(--header-h) + 3.5rem) 0 3.5rem; }
  .hero-ornament--circle, .hero-ornament--ring { display: none; }

  .section { padding: 3.5rem 0; }
  .section-head { flex-direction: column; gap: 0.75rem; margin-bottom: 2.5rem; }
  .section-intro { margin-top: -1.5rem; }

  .services { grid-template-columns: 1fr; }
  .service-card { padding: 1.75rem 1.5rem; }
  .principles { grid-template-columns: 1fr; gap: 1.25rem; }

  .price-figure { padding-left: 1.25rem; }

  .btn { min-width: 100%; }
  .hero-cta-row { gap: 0.75rem; }

  .billing-table th { padding-right: 1rem; }
}
