/* ==========================================================================
   Communication Inspector — landing page
   Barvy vychází z loga DataSentics (navy + korálová oranžová)
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #0f1838;
  --navy-800: #1b2856;
  --navy-700: #253366;
  --navy-600: #334380;
  --coral-600: #e04a30;
  --coral-500: #ff5a3d;
  --coral-400: #ff7a61;
  --coral-100: #ffe8e1;

  /* Neutral */
  --white: #ffffff;
  --bg: #f7f8fc;
  --bg-alt: #eef1f8;
  --surface: #ffffff;
  --text: #1b2345;
  --text-soft: #4a5578;
  --text-muted: #7a84a3;
  --border: #e4e8f2;
  --border-dark: rgba(255, 255, 255, 0.14);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 24, 56, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 24, 56, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 24, 56, 0.14);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Container */
  --container: 1200px;
}

/* Reset --------------------------------------------------------------------*/
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }

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

/* Common utilities ---------------------------------------------------------*/
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-500);
  background: var(--coral-100);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow--light {
  color: var(--coral-400);
  background: rgba(255, 90, 61, 0.14);
}
.accent { color: var(--coral-500); }
.muted { color: var(--text-muted); font-weight: 500; }

.section {
  padding: clamp(64px, 8vw, 120px) 0;
}
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: radial-gradient(1200px 600px at 80% -10%, #2a3a78 0%, transparent 55%),
              radial-gradient(900px 500px at 0% 100%, #3a2a52 0%, transparent 45%),
              var(--navy-900);
  color: rgba(255, 255, 255, 0.86);
}
.section--dark h2,
.section--dark h3 { color: var(--white); }

.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}
.section__head--light .section__lead { color: rgba(255, 255, 255, 0.74); }
.section__lead {
  font-size: 1.125rem;
  color: var(--text-soft);
  margin: 0;
}

/* Buttons ------------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn--sm { padding: 10px 18px; font-size: 0.875rem; }
.btn--lg { padding: 18px 32px; font-size: 1rem; }

.btn--primary {
  background: var(--coral-500);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(255, 90, 61, 0.35);
}
.btn--primary:hover {
  background: var(--coral-600);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 90, 61, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}
.btn--ghost:hover {
  background: var(--navy-800);
  color: var(--white);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--ghost-dark:hover {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--white);
}

/* Navigation ---------------------------------------------------------------*/
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.nav__logo img { height: 32px; width: auto; }
.nav__links {
  display: flex;
  gap: 28px;
}
.nav__links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--navy-800); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--coral-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }

/* HERO ---------------------------------------------------------------------*/
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 130px) 0 clamp(72px, 10vw, 140px);
  background:
    radial-gradient(900px 480px at 85% 10%, rgba(255, 90, 61, 0.10) 0%, transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(27, 40, 86, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #fbfcff 0%, #f4f6fd 100%);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(0.5px);
}
.hero__dot--1 { width: 14px; height: 14px; background: var(--coral-500); top: 18%; left: 6%; }
.hero__dot--2 { width: 8px;  height: 8px;  background: var(--navy-800);  top: 32%; left: 14%; }
.hero__dot--3 { width: 10px; height: 10px; background: var(--coral-400); top: 70%; left: 8%; }
.hero__dot--4 { width: 16px; height: 16px; background: var(--navy-700);  top: 22%; right: 10%; }
.hero__dot--5 { width: 6px;  height: 6px;  background: var(--coral-500); top: 64%; right: 14%; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero__title { color: var(--navy-800); margin-bottom: 24px; }
.hero__lead {
  font-size: 1.2rem;
  color: var(--text-soft);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 640px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.stat__value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy-800);
  line-height: 1;
  margin-bottom: 6px;
}
.stat__label {
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* Hero visual (mock card) --------------------------------------------------*/
.hero__visual { position: relative; }
.card-visual {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transform: rotate(-1.2deg);
  transition: transform 0.4s ease;
}
.card-visual:hover { transform: rotate(0deg) translateY(-6px); }
.card-visual__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #f5f7fc, #edf0f8);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block;
}
.dot--red { background: #ff6b6b; }
.dot--amber { background: #ffc93c; }
.dot--green { background: #3ddc84; }
.card-visual__title {
  margin-left: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}
.card-visual__body { padding: 24px; }

.waveform {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 64px;
  margin-bottom: 20px;
}
.waveform span {
  flex: 1;
  background: linear-gradient(180deg, var(--coral-500), var(--coral-400));
  border-radius: 2px;
  animation: wave 1.6s ease-in-out infinite;
}
.waveform span:nth-child(2n) { background: linear-gradient(180deg, var(--navy-800), var(--navy-600)); }
.waveform span:nth-child(1)  { animation-delay: 0.0s; }
.waveform span:nth-child(2)  { animation-delay: 0.05s; }
.waveform span:nth-child(3)  { animation-delay: 0.1s; }
.waveform span:nth-child(4)  { animation-delay: 0.15s; }
.waveform span:nth-child(5)  { animation-delay: 0.2s; }
.waveform span:nth-child(6)  { animation-delay: 0.25s; }
.waveform span:nth-child(7)  { animation-delay: 0.3s; }
.waveform span:nth-child(8)  { animation-delay: 0.35s; }
.waveform span:nth-child(9)  { animation-delay: 0.4s; }
.waveform span:nth-child(10) { animation-delay: 0.45s; }
.waveform span:nth-child(11) { animation-delay: 0.5s; }
.waveform span:nth-child(12) { animation-delay: 0.55s; }
.waveform span:nth-child(13) { animation-delay: 0.6s; }
.waveform span:nth-child(14) { animation-delay: 0.65s; }
.waveform span:nth-child(15) { animation-delay: 0.7s; }
.waveform span:nth-child(16) { animation-delay: 0.75s; }
.waveform span:nth-child(17) { animation-delay: 0.8s; }
.waveform span:nth-child(18) { animation-delay: 0.85s; }
.waveform span:nth-child(19) { animation-delay: 0.9s; }
.waveform span:nth-child(20) { animation-delay: 0.95s; }
.waveform span:nth-child(21) { animation-delay: 1.0s; }
.waveform span:nth-child(22) { animation-delay: 1.05s; }
.waveform span:nth-child(23) { animation-delay: 1.1s; }
.waveform span:nth-child(24) { animation-delay: 1.15s; }
.waveform span:nth-child(25) { animation-delay: 1.2s; }

@keyframes wave {
  0%, 100% { height: 20%; }
  50%      { height: 100%; }
}

.transcript {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.transcript__row {
  background: var(--bg);
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.transcript__row p { margin: 0; font-size: 0.88rem; color: var(--text); }
.speaker {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  margin-top: 2px;
}
.speaker--agent  { background: var(--coral-100); color: var(--coral-600); }
.speaker--client { background: rgba(27, 40, 86, 0.08); color: var(--navy-800); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(27, 40, 86, 0.08);
  color: var(--navy-800);
  font-weight: 600;
}
.tag--alt {
  background: var(--coral-100);
  color: var(--coral-600);
}

/* Pipeline -----------------------------------------------------------------*/
.pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 16px;
}
.pipeline__step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pipeline__step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--coral-100);
}
.pipeline__num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--coral-500);
  margin-bottom: 10px;
}
.pipeline__arrow {
  align-self: center;
  color: var(--coral-500);
  font-size: 1.8rem;
  font-weight: 600;
}

/* Cards (generic) ----------------------------------------------------------*/
.cards {
  display: grid;
  gap: 22px;
}
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--coral-100);
}
.card--highlight {
  border-color: var(--coral-500);
  box-shadow: 0 10px 30px rgba(255, 90, 61, 0.14);
}
.card--highlight::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--coral-500), var(--coral-400));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--coral-100);
  color: var(--coral-600);
  margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }

.card__list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card__list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 0.95rem;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--coral-500);
}
.card__list--light li { color: rgba(255, 255, 255, 0.78); }
.card__list--light li::before { background: var(--coral-400); }

/* Dark variant cards */
.card--dark {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
}
.card--dark:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 122, 97, 0.5);
}
.card--highlight-dark {
  background: linear-gradient(160deg, rgba(255, 90, 61, 0.14), rgba(27, 40, 86, 0.04));
  border-color: var(--coral-500);
}

.price-compare {
  margin: 18px 0 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 14px;
}
.price-compare__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
}
.price-compare__row:last-child { border-bottom: 0; }
.price-compare__row--win strong { color: var(--coral-400); font-size: 1.05rem; }
.price-compare__row strong { font-weight: 700; }
.note { font-size: 0.88rem; color: rgba(255, 255, 255, 0.66); margin: 0; }

.callout {
  margin-top: 40px;
  background: rgba(255, 90, 61, 0.1);
  border: 1px dashed rgba(255, 90, 61, 0.4);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: rgba(255, 255, 255, 0.86);
}
.callout__label {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-400);
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 12px;
  border-radius: 999px;
}
.callout p { margin: 0; }
.callout a { color: var(--coral-400); font-weight: 600; border-bottom: 1px dashed currentColor; }

/* Mini cards (4 tiles) -----------------------------------------------------*/
.mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.mini-card__icon {
  display: inline-flex;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--white);
  margin-bottom: 16px;
}
.mini-card__icon svg { width: 22px; height: 22px; }
.mini-card h4 { color: var(--navy-800); }
.mini-card p { font-size: 0.92rem; color: var(--text-soft); margin: 0; }

/* Reasons (Proč teď) -------------------------------------------------------*/
.reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.reason {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: flex-start;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.reason:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--coral-100);
}
.reason__num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral-500), var(--coral-400));
  color: var(--white);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(255, 90, 61, 0.3);
}
.reason__body h3 { color: var(--navy-800); margin-bottom: 6px; }
.reason__body p { margin: 0; color: var(--text-soft); }

/* Pricing ------------------------------------------------------------------*/
.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.price-card--muted {
  background: linear-gradient(180deg, #f3f5fa, #eef1f8);
  border-color: #dfe5f0;
}
.price-card--featured {
  background: linear-gradient(165deg, #ffffff 0%, #fff5f1 100%);
  border: 2px solid var(--coral-500);
  box-shadow: 0 18px 50px rgba(255, 90, 61, 0.22);
  transform: translateY(-6px);
}
.price-card--featured:hover { transform: translateY(-10px); }
.price-card__ribbon {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--coral-500);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-card__header { margin-bottom: 20px; }
.price-card__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(27, 40, 86, 0.08);
  color: var(--navy-800);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.price-card__badge--accent { background: var(--coral-100); color: var(--coral-600); }

.price-card h3 { color: var(--navy-800); margin: 0; }

.price-card__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
  padding: 16px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.price-card__amount {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -0.02em;
}
.price-card--featured .price-card__amount { color: var(--coral-600); }
.price-card__unit {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.price-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  flex-grow: 1;
}
.price-card__list li {
  position: relative;
  padding-left: 26px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}
.price-card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--coral-500);
  box-shadow: inset 0 0 0 4px var(--white);
}

.savings {
  margin-top: auto;
  background: rgba(61, 220, 132, 0.14);
  color: #116e3a;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  text-align: center;
  border: 1px solid rgba(61, 220, 132, 0.3);
}

/* TCO chart ----------------------------------------------------------------*/
.tco-chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tco-chart__row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  align-items: center;
}
.tco-chart__label {
  font-weight: 600;
  color: var(--navy-800);
  font-size: 0.95rem;
}
.tco-chart__bar {
  position: relative;
  height: 36px;
  border-radius: 999px;
  width: var(--w, 100%);
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  transform-origin: left;
  animation: growBar 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.tco-chart__bar--muted { background: linear-gradient(90deg, #8a93b0, #6b7596); }
.tco-chart__bar--alt   { background: linear-gradient(90deg, var(--navy-700), var(--navy-600)); }
.tco-chart__bar--win   { background: linear-gradient(90deg, var(--coral-500), var(--coral-400)); box-shadow: 0 10px 24px rgba(255, 90, 61, 0.28); }

@keyframes growBar {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* TCO comparison matrix ----------------------------------------------------
   Cost items as rows, variants as columns. */
.tco-matrix-wrap {
  margin-bottom: 28px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.tco-matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 1120px;
  table-layout: fixed;
  font-size: 0.94rem;
}
.tco-matrix__col-label    { width: 22%; }
.tco-matrix__col-featured { background: #fff6f3; }
.tco-matrix__col-fixed    { background: #f4f7ff; }

/* ---- header row ---- */
.tco-matrix thead th {
  background: var(--navy-900);
  color: var(--white);
  text-align: left;
  padding: 20px 22px;
  vertical-align: top;
  font-weight: 600;
  line-height: 1.45;
  border-bottom: 1px solid var(--navy-800);
}
.tco-matrix__corner {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72) !important;
  font-weight: 600 !important;
}
.tco-matrix__variant {
  text-align: center !important;
  position: relative;
}
.tco-matrix__variant--featured {
  background: linear-gradient(180deg, var(--coral-500), var(--coral-600)) !important;
  border-bottom-color: var(--coral-600) !important;
}
.tco-matrix__variant--fixed {
  background: linear-gradient(180deg, #2a3a78, #1b2856) !important;
  border-bottom-color: #0f1838 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.v-head__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-600);
  background: var(--white);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.v-head__name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--white);
}
.v-head__desc {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}
.v-head__hint {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

/* ---- body cells ---- */
.tco-matrix tbody th,
.tco-matrix tbody td {
  padding: 22px 22px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  background: var(--white);
}
.tco-matrix tbody tr:last-child > th,
.tco-matrix tbody tr:last-child > td { border-bottom: none; }

/* Label (first) column */
.tco-matrix__label {
  text-align: left;
  background: #f7f9fd !important;
  border-right: 1px solid var(--border);
}
.label__title {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 0.98rem;
  line-height: 1.35;
  margin-bottom: 4px;
}
.label__sub {
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.5;
}
.label__tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: #eef1f8;
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Data columns */
.tco-matrix tbody td {
  text-align: center;
  border-right: 1px solid var(--border);
}
.tco-matrix tbody td:last-child { border-right: none; }

.cell--featured { background: #fff6f3 !important; }
.cell--fixed    { background: #f4f7ff !important; }

.cell--merged {
  vertical-align: middle !important;
  text-align: center;
  padding: 22px !important;
  background: linear-gradient(180deg, #f4f7ff 0%, #eaf0ff 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(27, 40, 86, 0.08);
  position: relative;
}
.cell--merged__inner {
  max-width: 260px;
  margin: 0 auto;
}
.cell__price--fixed { color: var(--navy-900); }
.cell__badge {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: rgba(27, 40, 86, 0.08);
  border: 1px solid rgba(27, 40, 86, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
}
.cell__detail--merged {
  text-align: left;
  font-size: 0.85rem;
  line-height: 1.6;
}

.cell__price {
  font-weight: 800;
  color: var(--navy-900);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.cell__price--soft {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
}
.cell__price--none {
  color: var(--text-muted);
  font-weight: 600;
}
.cell__detail {
  font-size: 0.83rem;
  color: var(--text-soft);
  line-height: 1.5;
  margin: 0;
}

/* Total row */
.tco-matrix__total-row > th,
.tco-matrix__total-row > td {
  background: var(--navy-900) !important;
  border-bottom: none;
  color: var(--white);
  padding: 26px 22px;
}
.tco-matrix__label--total {
  border-right-color: rgba(255, 255, 255, 0.12) !important;
}
.tco-matrix__label--total .label__title {
  color: var(--white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0;
}
.tco-matrix__total-cell {
  text-align: center;
  border-right-color: rgba(255, 255, 255, 0.12) !important;
}
.tco-matrix__total-cell.cell--featured {
  background: linear-gradient(180deg, #1b2856, #0f1838) !important;
  box-shadow: inset 0 0 0 2px var(--coral-500);
}
.tco-matrix__total-cell--fixed {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}
.cell__savings--fixed {
  color: #e5ecff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}
.cell__total {
  font-weight: 800;
  color: var(--white);
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.cell__total--win {
  color: var(--coral-400);
}
.cell__savings {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--coral-400);
  background: rgba(255, 122, 97, 0.14);
  border: 1px solid rgba(255, 122, 97, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.tco-note {
  margin: 0 auto;
  max-width: 980px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.tco-note strong { color: var(--navy-900); }

@media (max-width: 1040px) {
  .tco-matrix { min-width: 1040px; font-size: 0.9rem; }
  .tco-matrix thead th,
  .tco-matrix tbody th,
  .tco-matrix tbody td { padding: 18px 16px; }
  .cell__price { font-size: 1.2rem; }
  .cell__total { font-size: 1.45rem; }
  .v-head__name { font-size: 1.05rem; }
}
@media (max-width: 860px) {
  .tco-matrix-wrap { border-radius: var(--radius-md); }
  .tco-matrix { min-width: 960px; font-size: 0.87rem; }
  .tco-matrix thead th { padding: 14px 14px; }
  .tco-matrix tbody th,
  .tco-matrix tbody td { padding: 14px 12px; }
  .cell__price { font-size: 1.05rem; margin-bottom: 6px; }
  .cell__detail { font-size: 0.78rem; }
  .cell__total { font-size: 1.25rem; }
  .label__title { font-size: 0.9rem; }
  .label__sub  { font-size: 0.78rem; }
  .v-head__name { font-size: 0.98rem; }
  .v-head__desc { font-size: 0.74rem; }
}

/* SLA ---------------------------------------------------------------------*/
.sla-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(27, 40, 86, 0.08);
  color: var(--navy-800);
  margin-bottom: 12px;
}
.sla-tag--accent { background: var(--coral-100); color: var(--coral-600); }

.big-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy-800);
  margin: 8px 0 16px;
  letter-spacing: -0.02em;
}
.card--highlight .big-price { color: var(--coral-600); }

/* ROADMAPA ----------------------------------------------------------------*/
.roadmap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 48px;
  margin-bottom: 48px;
}
.roadmap__track {
  position: absolute;
  top: 68px;
  left: 6%;
  right: 6%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--coral-500) 0%,
    var(--coral-400) 50%,
    var(--navy-700) 100%
  );
  border-radius: 999px;
  opacity: 0.35;
  z-index: 0;
}
.roadmap__phase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}
.roadmap__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}
.roadmap__month {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-600);
  background: var(--coral-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.roadmap__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--coral-500);
  box-shadow: 0 0 0 6px rgba(255, 90, 61, 0.12), var(--shadow-sm);
}
.roadmap__dot--accent {
  background: var(--coral-500);
  box-shadow: 0 0 0 6px rgba(255, 90, 61, 0.2), var(--shadow-md);
}
.roadmap__card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.roadmap__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 90, 61, 0.25);
}
.roadmap__card--featured {
  background: linear-gradient(180deg, #fff 0%, #fff8f5 100%);
  border-color: rgba(255, 90, 61, 0.3);
  box-shadow: 0 16px 40px rgba(255, 90, 61, 0.12);
}
.roadmap__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.roadmap__head h3 {
  margin: 0;
  color: var(--navy-800);
}
.roadmap__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(27, 40, 86, 0.08);
  color: var(--navy-800);
}
.roadmap__tag--accent {
  background: var(--coral-100);
  color: var(--coral-600);
}
.roadmap__lead {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.roadmap__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.roadmap__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
}
.roadmap__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral-500);
}

.roadmap__footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.roadmap__footer-item {
  text-align: center;
  padding: 0 12px;
  border-right: 1px solid var(--border);
}
.roadmap__footer-item:last-child { border-right: none; }
.roadmap__footer-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.roadmap__footer-label {
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* CTA ---------------------------------------------------------------------*/
.cta {
  background:
    radial-gradient(600px 300px at 10% 20%, rgba(255, 90, 61, 0.22) 0%, transparent 60%),
    radial-gradient(700px 400px at 100% 100%, rgba(255, 122, 97, 0.18) 0%, transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: var(--white);
  padding: clamp(56px, 8vw, 96px) 0;
}
.cta__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta h2 { color: var(--white); margin-bottom: 12px; }
.cta__text p { color: rgba(255, 255, 255, 0.8); margin: 0; font-size: 1.1rem; max-width: 560px; }
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

/* Footer ------------------------------------------------------------------*/
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.64);
  padding: 28px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__logo {
  height: 28px;
  filter: brightness(1.2);
}
.footer p { margin: 0; font-size: 0.88rem; }

/* Reveal animation --------------------------------------------------------*/
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive --------------------------------------------------------------*/
@media (max-width: 1200px) {
  .cards--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing { grid-template-columns: 1fr; }
  .price-card--featured { transform: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 480px; }
  .cta__inner { grid-template-columns: 1fr; }
  .cta__actions { justify-content: flex-start; }
  .nav__links { display: none; }
}

@media (max-width: 820px) {
  .pipeline {
    grid-template-columns: 1fr;
  }
  .pipeline__arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
  .cards--3 { grid-template-columns: 1fr; }
  .cards--2 { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; }
  .tco-chart__row { grid-template-columns: 1fr; gap: 8px; }
  .hero__stats { grid-template-columns: 1fr; gap: 16px; }

  .roadmap {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 8px;
  }
  .roadmap__track {
    top: 0;
    bottom: 0;
    left: 28px;
    right: auto;
    width: 3px;
    height: auto;
    background: linear-gradient(
      180deg,
      var(--coral-500) 0%,
      var(--coral-400) 50%,
      var(--navy-700) 100%
    );
  }
  .roadmap__phase {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
  }
  .roadmap__marker {
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
    min-width: 56px;
    padding-top: 4px;
  }
  .roadmap__month { margin-bottom: 10px; font-size: 0.7rem; padding: 5px 10px; }
  .roadmap__card { flex: 1; }
  .roadmap__footer { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .roadmap__footer-item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
  .roadmap__footer-item:last-child { border-bottom: none; padding-bottom: 0; }
}

@media (max-width: 520px) {
  .cards--4 { grid-template-columns: 1fr; }
  .cards--5 { grid-template-columns: 1fr; }
  .btn--lg { width: 100%; }
  .cta__actions .btn { width: 100%; }
  .callout { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
