/* ==========================================================================
   TKCS – Tomáš Kňáva | styles on top of Bootstrap 5.3
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand: #4d4cb2;
  --brand-2: #2950b2;
  --brand-3: #7c6cf2;
  --ink: #140c2b;
  --ink-2: #231040;
  --dark: #2b235c;        /* background of dark sections (hero, process, contact, featured card) */
  --dark-deep: #211a4a;   /* footer */
  --surface: #f5f6fb;
  --line: #e4e6f0;
  --muted: #5b6078;
  --radius: 1.25rem;
  --shadow-sm: 0 1px 2px rgba(20, 12, 43, .06), 0 2px 8px rgba(20, 12, 43, .04);
  --shadow: 0 10px 30px -10px rgba(20, 12, 43, .18);
  --shadow-lg: 0 30px 60px -20px rgba(20, 12, 43, .35);
  --gradient: linear-gradient(120deg, var(--brand-3) 0%, var(--brand) 45%, var(--brand-2) 100%);
  --nav-h: 76px;

  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: #fff;
  --bs-primary: var(--brand);
  --bs-primary-rgb: 77, 76, 178;
  --bs-link-color: var(--brand);
  --bs-link-color-rgb: 77, 76, 178;
  --bs-link-hover-color: var(--brand-2);
  --bs-link-hover-color-rgb: 41, 80, 178;
  --bs-secondary-color: var(--muted);
  --bs-border-color: var(--line);
  --bs-focus-ring-color: rgba(77, 76, 178, .3);
}

html { scroll-padding-top: calc(var(--nav-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: env(safe-area-inset-bottom);
}

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.025em; }
img { max-width: 100%; }
::selection { background: rgba(77, 76, 178, .2); }

.skip-link {
  position: fixed; top: .5rem; left: .5rem; z-index: 2000;
  background: #fff; padding: .5rem 1rem; border-radius: .5rem; box-shadow: var(--shadow);
}

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

/* ---------- Buttons ---------- */
.btn { --bs-btn-font-weight: 600; border-radius: 999px; padding-inline: 1.35rem; }
.btn-lg { padding: .85rem 1.75rem; font-size: 1rem; }

.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  --bs-btn-border-width: 0;
  background: var(--gradient);
  background-size: 150% 100%;
  box-shadow: 0 8px 24px -8px rgba(77, 76, 178, .7);
  transition: background-position .4s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-brand:hover, .btn-brand:focus-visible { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(77, 76, 178, .8); }

.btn-ghost {
  --bs-btn-color: #fff; --bs-btn-hover-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, .25);
  --bs-btn-hover-border-color: rgba(255, 255, 255, .5);
  --bs-btn-hover-bg: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
}

.btn-outline-brand {
  --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-bg: var(--brand-2); --bs-btn-active-border-color: var(--brand-2);
}

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 52px; height: auto; color: var(--ink); flex-shrink: 0; }
.brand-text {
  font-weight: 800; font-size: .72rem; line-height: 1.25;
  letter-spacing: .22em; text-transform: uppercase;
  padding-left: .75rem; border-left: 2px solid currentColor;
}
.brand-light, .brand-light .brand-mark { color: #fff; }
.brand-light .brand-mark path { fill: currentColor; }

/* ---------- Navbar ---------- */
.site-nav {
  min-height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
/* Blur lives on a pseudo-element: backdrop-filter on the nav itself would trap the fixed offcanvas inside it. */
.site-nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: background-color .3s ease;
}
.site-nav.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-nav.is-scrolled::before { background: rgba(255, 255, 255, .97); }
.site-nav .nav-link {
  --bs-nav-link-color: var(--ink); --bs-nav-link-hover-color: var(--brand);
  font-weight: 500; font-size: .95rem; padding: .5rem .85rem !important; border-radius: 999px;
}
.site-nav .nav-link.active { color: var(--brand); background: rgba(77, 76, 178, .08); }
.navbar-toggler { border: 0; font-size: 1.75rem; color: var(--ink); padding: .25rem .5rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); }

@media (max-width: 991.98px) {
  .offcanvas { --bs-offcanvas-width: min(86vw, 340px); }
  .offcanvas .nav-link { font-size: 1.1rem; padding: .75rem 1rem !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--dark); color: #fff;
  padding: calc(var(--nav-h) + 5rem) 0 0;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 85% 10%, rgba(124, 108, 242, .45) 0%, transparent 60%),
    radial-gradient(50% 50% at 10% 90%, rgba(41, 80, 178, .5) 0%, transparent 60%),
    radial-gradient(40% 40% at 50% 50%, rgba(77, 76, 178, .25) 0%, transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .9rem; margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, .15); border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  font-size: .85rem; font-weight: 500; color: rgba(255, 255, 255, .85);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); }

.hero-title { font-weight: 800; line-height: 1.05; margin-bottom: 1.5rem; }
.hero-title .text-gradient { background: linear-gradient(120deg, #b8adff, #8fb0ff); -webkit-background-clip: text; background-clip: text; }
.hero-lead { color: rgba(255, 255, 255, .72); font-size: 1.15rem; max-width: 36rem; margin-bottom: 2.25rem; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 3rem 0 0; }
.hero-stats dt { font-size: 2.25rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.hero-stats dd { margin: .35rem 0 0; font-size: .875rem; color: rgba(255, 255, 255, .6); }

.hero-visual { position: relative; height: 480px; }
.browser {
  position: absolute; margin: 0; overflow: hidden;
  border-radius: 14px; background: #fff;
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: var(--shadow-lg);
}
.browser img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #eef0f6; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d1d4e0; }
.browser-bar i:nth-child(1) { background: #ff6b6b; }
.browser-bar i:nth-child(2) { background: #ffc54d; }
.browser-bar i:nth-child(3) { background: #4ade80; }
.browser-bar span { margin-left: .75rem; font-size: .7rem; font-weight: 600; color: var(--muted); }
.browser-back { width: 72%; height: 300px; top: 0; right: 0; transform: rotate(3deg); opacity: .75; }
.browser-back img { height: calc(100% - 30px); }
.browser-front { width: 82%; height: 340px; bottom: 30px; left: 0; transform: rotate(-2deg); }
.browser-front img { height: calc(100% - 30px); }
.hero-badge {
  position: absolute; right: 4%; bottom: 0;
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.1rem; border-radius: 1rem;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.hero-badge i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: .75rem; background: var(--gradient); color: #fff; font-size: 1.15rem; }
.hero-badge strong, .hero-badge small { display: block; }
.hero-badge small { color: var(--muted); font-size: .8rem; }

@keyframes float { 50% { transform: translateY(-10px); } }

/* Logo strip */
.logo-strip {
  position: relative; margin-top: 5rem; padding: 1.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logo-track { display: flex; align-items: center; gap: 1.25rem; width: max-content; animation: marquee 45s linear infinite; }
.logo-track img {
  box-sizing: content-box; height: 32px; width: 120px; padding: .75rem 1.25rem;
  object-fit: contain; border-radius: .85rem; background: rgba(255, 255, 255, .92);
  filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s;
}
.logo-track img:hover { filter: none; opacity: 1; }
.logo-strip:hover .logo-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 6rem 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--dark); color: #fff; overflow: hidden; }
.section-head { max-width: 42rem; margin: 0 auto 3.5rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-dark .section-head p { color: rgba(255, 255, 255, .6); }
.section-kicker {
  display: inline-block; margin-bottom: .75rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand);
}
.section-dark .section-kicker { color: #a89dff; }
.section-title { font-size: clamp(1.9rem, 3.5vw, 2.75rem); line-height: 1.1; margin-bottom: 1rem; }

@media (max-width: 767.98px) {
  .section { padding: 4.5rem 0; }
  .hero { padding-top: calc(var(--nav-h) + 3rem); }
  .hero-stats { gap: 1.75rem; }
  .hero-stats dt { font-size: 1.75rem; }
}

/* Pains */
.pain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.pain-list li {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.35rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-sm); font-weight: 500;
  transition: transform .25s ease, border-color .25s ease;
}
.pain-list li:hover { transform: translateX(6px); border-color: rgba(77, 76, 178, .35); }
.pain-list i { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: .85rem; background: rgba(77, 76, 178, .1); color: var(--brand); font-size: 1.2rem; }

/* Services */
.service-card {
  display: block; position: relative; padding: 2rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  color: inherit; text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card h3 { font-size: 1.25rem; margin: 1.25rem 0 .6rem; }
.service-card p { color: var(--muted); margin: 0; }
.service-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 1rem; background: rgba(77, 76, 178, .1); color: var(--brand); font-size: 1.4rem; }
.service-card.is-featured { background: var(--dark); color: #fff; border-color: var(--dark); overflow: hidden; }
.service-card.is-featured::before {
  content: ""; position: absolute; inset: auto -20% -60% auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(124, 108, 242, .45), transparent 65%); pointer-events: none;
}
.service-card.is-featured h3 { font-size: 1.6rem; }
.service-card.is-featured p { color: rgba(255, 255, 255, .7); max-width: 36rem; position: relative; }
.service-card.is-featured .service-icon { background: var(--gradient); color: #fff; }
.service-cta { border-style: dashed; border-width: 2px; background: transparent; }
.service-cta:hover { background: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 600; color: var(--brand); }
.service-cta:hover .link-arrow i { transform: translateX(4px); }
.link-arrow i { transition: transform .2s; }

/* Projects */
.nda-note {
  display: flex; gap: 1.25rem; align-items: flex-start;
  max-width: 52rem; margin: -1.5rem auto 2.5rem; padding: 1.35rem 1.5rem;
  border: 1px solid rgba(77, 76, 178, .2); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(124, 108, 242, .07), rgba(41, 80, 178, .05));
}
.nda-note strong { display: block; margin-bottom: .25rem; }
.nda-note p { margin: 0; color: var(--muted); font-size: .95rem; }
.nda-icon { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: .85rem; background: var(--gradient); color: #fff; font-size: 1.2rem; }
@media (max-width: 575.98px) { .nda-note { flex-direction: column; gap: .85rem; } }

.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.5rem; }
.filter-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-weight: 600; font-size: .9rem; transition: all .2s ease;
}
.filter-btn span { font-size: .75rem; padding: .1rem .5rem; border-radius: 999px; background: var(--surface); color: var(--muted); }
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-btn.active span { background: rgba(255, 255, 255, .15); color: #fff; }

.project-item.is-hidden { display: none; }
.project-card {
  display: block; width: 100%; padding: 0; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; color: inherit;
  transition: transform .3s ease, box-shadow .3s ease;
}
.project-card:hover, .project-card:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.project-card:hover .project-thumb img { transform: scale(1.05); }
.project-zoom {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(20, 12, 43, .45); color: #fff; font-size: 1.5rem;
  opacity: 0; transition: opacity .3s ease;
}
.project-card:hover .project-zoom, .project-card:focus-visible .project-zoom { opacity: 1; }
.project-meta { display: block; padding: 1.1rem 1.25rem 1.25rem; }
.project-meta strong { display: block; font-size: 1.05rem; line-height: 1.3; }
.project-meta small { color: var(--muted); }
.project-tag {
  display: inline-block; margin-bottom: .5rem; padding: .15rem .6rem;
  border-radius: 999px; background: rgba(77, 76, 178, .1); color: var(--brand);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
#projectModal .modal-content { border: 0; border-radius: var(--radius); overflow: hidden; }

/* Process */
.process { counter-reset: step; }
.process-step {
  position: relative; padding: 2rem 1.75rem;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  transition: background-color .3s ease, border-color .3s ease;
}
.process-step:hover { background: rgba(255, 255, 255, .07); border-color: rgba(168, 157, 255, .4); }
.process-num {
  position: absolute; top: 1.25rem; right: 1.5rem;
  font-size: 2.5rem; font-weight: 800; line-height: 1;
  background: linear-gradient(180deg, rgba(168, 157, 255, .6), transparent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.process-img { height: 72px; width: auto; margin-bottom: 1.5rem; filter: brightness(0) invert(1); opacity: .9; }
.process-label { display: block; font-size: .8rem; font-weight: 600; color: #a89dff; margin-bottom: .25rem; }
.process-step h3 { font-size: 1.35rem; margin-bottom: .75rem; }
.process-step p { color: rgba(255, 255, 255, .7); margin-bottom: .75rem; }
.process-step .process-note { color: #fff; font-weight: 600; font-size: .92rem; margin: 0; }
.process-note i { color: #4ade80; }

/* Partners */
.partner-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: transform .3s ease, box-shadow .3s ease;
}
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.partner-logo { display: flex; align-items: center; height: 56px; margin-bottom: 1.25rem; }
/* Fixed box: SVGs without intrinsic width (e.g. logo-trifor.svg) would otherwise collapse to 0×0 and never lazy-load. */
.partner-logo img { width: 140px; max-width: 100%; height: 48px; object-fit: contain; object-position: left center; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.partner-card:hover .partner-logo img { filter: none; opacity: 1; }
.partner-wordmark { font-weight: 800; letter-spacing: .08em; color: #c0272d; }
.partner-card strong { font-size: .98rem; line-height: 1.3; }
.partner-card small { color: var(--muted); margin-top: .25rem; }

/* FAQ */
.faq { --bs-accordion-border-color: var(--line); --bs-accordion-border-radius: var(--radius); --bs-accordion-inner-border-radius: var(--radius); --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); --bs-accordion-active-bg: #fff; --bs-accordion-active-color: var(--brand); }
.faq .accordion-item { margin-bottom: .75rem; border: 1px solid var(--line); border-radius: var(--radius) !important; overflow: hidden; }
.faq .accordion-button { font-weight: 600; font-size: 1.05rem; padding: 1.25rem 1.5rem; }
.faq .accordion-body { color: var(--muted); padding: 0 1.5rem 1.35rem; }

/* Contact */
.contact .section-title { color: #fff; }
.contact-tips-title { margin-bottom: .6rem; font-weight: 600; color: #fff; }
.contact-tips { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .45rem; color: rgba(255, 255, 255, .75); }
.contact-tips i { color: #4ade80; margin-right: .35rem; }
.contact-place { margin: 0; color: rgba(255, 255, 255, .6); }
.contact-place i { color: #b8adff; margin-right: .25rem; }

.contact-actions { display: grid; gap: 1.25rem; }
.contact-action {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem;
  padding: 1.75rem; border-radius: calc(var(--radius) + .25rem);
  background: #fff; color: var(--ink); box-shadow: var(--shadow-lg);
}
.contact-action-icon { display: grid; place-items: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 1rem; background: var(--gradient); color: #fff; font-size: 1.5rem; }
.contact-action-body { flex: 1 1 14rem; min-width: 0; }
.contact-action-label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.contact-action-value { font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-action-value:hover { color: var(--brand); }
.contact-action-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.btn-copy {
  --bs-btn-color: var(--ink); --bs-btn-border-color: var(--line);
  --bs-btn-hover-color: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-hover-bg: #fff;
  display: inline-flex; align-items: center; gap: .4rem;
}
.btn-copy.is-copied { --bs-btn-color: #15803d; --bs-btn-border-color: #86efac; --bs-btn-hover-color: #15803d; --bs-btn-hover-border-color: #86efac; }
@media (max-width: 575.98px) {
  .contact-action { padding: 1.35rem; }
  .contact-action-buttons, .contact-action-buttons .btn { width: 100%; justify-content: center; }
}
/* Footer */
.site-footer { background: var(--dark-deep); color: rgba(255, 255, 255, .6); padding: 4rem 0 2rem; font-size: .92rem; }
.site-footer p { margin: 0; line-height: 1.8; }
.footer-title { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.trifor-link { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255, 255, 255, .7); text-decoration: none; }
.trifor-link:hover { color: #fff; }
.trifor-link strong { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom a { color: rgba(255, 255, 255, .6); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Case study ---------- */
.cs-hero { padding-bottom: 5rem; }
.cs-back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.5rem; color: rgba(255, 255, 255, .7); text-decoration: none; font-weight: 500; font-size: .92rem; }
.cs-back:hover { color: #fff; }
.cs-back + .eyebrow { display: flex; width: max-content; }
.cs-hero .hero-lead { max-width: 48rem; }
.cs-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px;
  margin: 3rem 0 0; border-radius: var(--radius); overflow: hidden;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12);
}
.cs-facts > div { padding: 1.25rem 1.5rem; background: var(--dark); }
.cs-facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a89dff; margin-bottom: .35rem; }
.cs-facts dd { margin: 0; font-weight: 600; }

.cs-goal {
  display: flex; gap: 1.25rem; padding: 2rem;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.cs-goal strong { display: block; font-size: 1.1rem; margin-bottom: .4rem; }
.cs-goal p { margin: 0; color: var(--muted); }
.cs-goal-icon { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 1rem; background: var(--gradient); color: #fff; font-size: 1.4rem; }

/* Information-flow diagram */
.flow-figure { margin: 0; padding: 1.5rem; border-radius: calc(var(--radius) + .25rem); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.flow-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.flow-scroll:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.flow { display: block; width: 100%; min-width: 880px; height: auto; font-family: inherit; }
.flow-box { fill: #fff; stroke: #cfd3e3; stroke-width: 1.5; }
.flow-erp { fill: #eef1fb; stroke: #2950b2; }
.flow-accent { fill: #f3f0ff; stroke: #7c6cf2; }
.flow-core { filter: drop-shadow(0 12px 24px rgba(77, 76, 178, .35)); }
.flow-title { font-size: 16px; font-weight: 700; fill: var(--ink); }
.flow-small .flow-title, .flow-small + .flow-title { font-size: 14px; }
.flow-sub { font-size: 12.5px; fill: var(--muted); }
.flow-core-title { font-size: 21px; font-weight: 800; fill: #fff; }
.flow-core-sub { font-size: 13px; fill: rgba(255, 255, 255, .75); }
.flow-core-list text { font-size: 14px; fill: #fff; }
.flow-lines line, .flow-lines path { fill: none; stroke: var(--brand); stroke-width: 2; }
.flow-arrowhead { fill: var(--brand); }
.flow-label text { font-size: 12px; font-weight: 600; fill: var(--brand); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.flow-hint { margin-top: .75rem; text-align: center; font-size: .85rem; color: var(--muted); }

/* Steps timeline */
.cs-steps { max-width: 52rem; margin: 0 auto; position: relative; }
.cs-steps::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--brand-3), var(--brand-2)); opacity: .25; }
.cs-step { position: relative; display: flex; gap: 1.5rem; padding-bottom: 2rem; }
.cs-step:last-child { padding-bottom: 0; }
.cs-step-num {
  position: relative; z-index: 1; display: grid; place-items: center; flex-shrink: 0;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient); color: #fff; font-weight: 800; box-shadow: 0 8px 20px -8px rgba(77, 76, 178, .7);
}
.cs-step-body { flex: 1; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cs-step-body h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.cs-step-body h3 i { color: var(--brand); margin-right: .25rem; }
.cs-step-body p { margin: 0; color: var(--muted); }
@media (max-width: 575.98px) {
  .cs-steps::before { left: 21px; }
  .cs-step { gap: 1rem; }
  .cs-step-num { width: 44px; height: 44px; font-size: .9rem; }
}

/* Key numbers strip */
.cs-highlights { padding: 0; margin-top: -3rem; position: relative; z-index: 2; }
.cs-highlight-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; margin: 0;
  border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.cs-highlight-grid > div { padding: 1.5rem 1.75rem; background: #fff; }
.cs-highlight-grid dt { font-size: 1.75rem; white-space: nowrap; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.cs-highlight-grid dt { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cs-highlight-grid dd { margin: .35rem 0 0; color: var(--muted); font-size: .92rem; }
.cs-highlights + .section { padding-top: 5rem; }

.flow-err { fill: #fef2f2; stroke: #ef4444; }
.flow-lines-err line, .flow-lines-err path { fill: none; stroke: #ef4444; stroke-width: 2; stroke-dasharray: 5 4; }
.flow-arrowhead-err { fill: #ef4444; }
.flow-label-err text { fill: #dc2626; }

/* Illustrative measurement file */
.mock-file { border-radius: var(--radius); overflow: hidden; background: var(--dark); box-shadow: var(--shadow-lg); }
.mock-file-bar { padding: .75rem 1.1rem; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .8); font-size: .85rem; font-weight: 600; }
.mock-file-bar i { color: #a89dff; margin-right: .35rem; }
.mock-file pre { margin: 0; padding: 1.25rem 1.4rem; color: #e5e7f5; font-size: .85rem; line-height: 1.7; white-space: pre; overflow-x: auto; }
.mf-tag { display: inline-block; margin: .15rem 0; padding: .05rem .55rem; border-radius: 999px; background: rgba(124, 108, 242, .3); color: #d4ceff; font-family: var(--bs-body-font-family); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mf-tag-2 { background: rgba(74, 222, 128, .2); color: #bbf7d0; }
.mf-key { color: #a89dff; }
.mf-dim { color: rgba(255, 255, 255, .45); }

.flow-lines-2way { fill: none; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 5 4; }

/* Illustrative checklist mock-up */
.mock-checklist { position: relative; padding: 1.5rem; border-radius: calc(var(--radius) + .25rem); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.mock-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 1rem; margin-bottom: .5rem; border-bottom: 1px solid var(--line); }
.mock-head span { font-weight: 700; }
.mock-head i { color: var(--brand); margin-right: .35rem; }
.mock-head small { color: var(--muted); }
.mock-rows { list-style: none; padding: 0; margin: 0; }
.mock-rows li { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.mock-rows li span { flex: 1; }
.mock-rows small { display: block; color: var(--muted); font-size: .75rem; }
.mock-rows b { font-variant-numeric: tabular-nums; }
.mock-checklist em { font-style: normal; font-size: .75rem; font-weight: 800; letter-spacing: .05em; padding: .25rem .6rem; border-radius: 999px; }
.mock-checklist em.ok { background: #dcfce7; color: #15803d; }
.mock-checklist em.nok { background: #fee2e2; color: #b91c1c; }
.mock-result { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding: .85rem 1rem; border-radius: .85rem; background: var(--surface); font-weight: 700; }
.mock-toast {
  position: absolute; right: -1rem; bottom: -1.5rem; display: flex; align-items: center; gap: .75rem;
  padding: .8rem 1rem; border-radius: 1rem; background: var(--dark); color: #fff; box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.mock-toast i { font-size: 1.3rem; color: #fca5a5; }
.mock-toast strong, .mock-toast small { display: block; }
.mock-toast small { color: rgba(255, 255, 255, .65); font-size: .78rem; }
.mock-caption { margin: 2.5rem 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
@media (max-width: 575.98px) { .mock-toast { right: .5rem; } }

/* Modules */
.module-card { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.module-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.module-head .project-tag { margin-bottom: .25rem; }
.module-head h3 { font-size: 1.35rem; margin: 0; }
.module-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.module-list li { position: relative; padding-left: 1.6rem; color: var(--muted); }
.module-list li::before { content: "\F272"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; color: var(--brand); }

/* Horizontal process pipelines */
.pipeline { height: 100%; padding: 1.75rem; border-radius: var(--radius); background: var(--dark); color: #fff; }
.pipeline-title { font-size: 1.1rem; margin-bottom: 1.25rem; }
.pipeline-title i { color: #a89dff; margin-right: .35rem; }
.pipeline-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; counter-reset: pipe; }
.pipeline-steps li {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center;
  padding: .9rem .4rem; border-radius: .85rem; background: rgba(255, 255, 255, .06); font-size: .8rem; line-height: 1.3;
}
.pipeline-steps li i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: .75rem; background: var(--gradient); font-size: 1rem; }
.pipeline-steps li:not(:last-child)::after {
  content: "\F285"; font-family: "bootstrap-icons"; position: absolute; right: -.55rem; top: 50%; transform: translateY(-50%);
  z-index: 1; font-size: .7rem; color: #a89dff;
}
.pipeline-note { margin: 1.25rem 0 0; font-size: .9rem; color: rgba(255, 255, 255, .75); }
.pipeline-note i { color: #4ade80; margin-right: .35rem; }
@media (max-width: 575.98px) {
  .pipeline-steps { grid-template-columns: 1fr; }
  .pipeline-steps li { flex-direction: row; text-align: left; padding: .6rem .8rem; }
  .pipeline-steps li:not(:last-child)::after { content: "\F282"; right: auto; left: 50%; top: auto; bottom: -.65rem; transform: translateX(-50%); }
}

/* Before / after comparison */
.compare { max-width: 60rem; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.compare-row { display: grid; grid-template-columns: 9rem 1fr 1fr; }
.compare-row > * { padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.compare-row > * + * { border-left: 1px solid var(--line); }
.compare-head > * { border-top: 0; font-weight: 700; font-size: .92rem; }
.compare-head > :nth-child(2) { color: var(--muted); }
.compare-head > :nth-child(3) { color: var(--brand); background: rgba(77, 76, 178, .06); }
.compare-row strong { font-size: .92rem; }
.compare-before { color: var(--muted); font-size: .92rem; }
.compare-before i { color: #ef4444; margin-right: .3rem; }
.compare-after { font-weight: 500; font-size: .92rem; background: rgba(77, 76, 178, .04); }
.compare-after i { color: #16a34a; margin-right: .3rem; }
@media (max-width: 767.98px) {
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-row > * + * { border-left: 0; border-top: 0; padding-top: 0; }
  .compare-row strong { padding-bottom: .5rem; }
  .compare-row:first-of-type + .compare-row > strong { border-top: 0; }
}

.tech-list-lg li { font-size: .95rem; padding: .6rem 1.1rem; }

.cs-shot { position: relative; box-shadow: var(--shadow-lg); border-color: var(--line); }
.tech-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tech-list li { padding: .45rem .95rem; border-radius: 999px; background: rgba(77, 76, 178, .08); color: var(--brand); font-size: .88rem; font-weight: 600; }

.cs-cta .section-title { color: #fff; }
.cs-cta-lead { max-width: 36rem; margin: 0 auto 2rem; color: rgba(255, 255, 255, .7); font-size: 1.1rem; }

/* Case study teaser on the home page */
.cs-teaser {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 1.5rem;
  padding: 1.75rem 2rem; border-radius: var(--radius);
  background: var(--dark); color: #fff; text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}
.cs-teaser::before { content: ""; position: absolute; inset: auto -10% -80% auto; width: 50%; aspect-ratio: 1; background: radial-gradient(circle, rgba(124, 108, 242, .5), transparent 65%); pointer-events: none; }
.cs-teaser:hover { color: #fff; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cs-teaser-body { position: relative; }
.cs-teaser-kicker { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #a89dff; margin-bottom: .35rem; }
.cs-teaser strong { display: block; font-size: 1.3rem; line-height: 1.25; margin-bottom: .35rem; }
.cs-teaser p { margin: 0; color: rgba(255, 255, 255, .7); }
.cs-teaser .btn { position: relative; }

/* Floating mobile CTA */
.mobile-cta {
  position: fixed; z-index: 1030; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom));
  transform: translate(-50%, 150%); transition: transform .35s ease;
  white-space: nowrap;
}
.mobile-cta.is-visible { transform: translate(-50%, 0); }
.mobile-cta.is-visible:hover { transform: translate(-50%, -2px); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
