﻿:root {
  /* Intwo brand palette (Intwo brand styleguide 2023): shades of blue with a
     sparkling peach accent. Dark blue is the "substitute for black" (copy,
     headers, icons, buttons); support blue for elements that stand out; light
     for generous whitespace; peach is the happy accent — never a darker/lighter
     shade of it. Yellow is avoided. Green/red only for functional signals. */
  --an-dark: #002A3B;      /* Dark blue — main copy, headers, dark sections */
  --an-blue: #0474A2;      /* Support blue — links, secondary icons, stand-outs */
  --an-blue-100: #A4D7EC;  /* Light support blue — glows, accents on dark */
  --an-peach: #FF8C59;     /* Peach — the happy accent (CTAs, icons, tags) */
  --an-light: #EFF5F8;     /* Light — soft section backgrounds */
  --an-green: #2F9E74;     /* Functional green (readable on white) */
  --an-red: #E74700;       /* Functional red */
  /* Back-compat aliases: existing rules reference --an-violet as the primary
     accent — it now maps to peach so the whole UI picks up the brand accent. */
  --an-violet: var(--an-peach);
  --an-cyan: var(--an-blue-100);
  --an-pink: var(--an-peach);
  --an-mint: #75EB96;
  --an-ink: #002A3B;
  --an-ink-2: #013A4F;
  --an-slate: #5B6B73;     /* Muted blue-grey for secondary copy */
  /* Signature peach/blue colourburn for fills, buttons and icon tiles. */
  --an-grad: linear-gradient(120deg, #0474A2 0%, #FF8C59 100%);
  --an-grad-soft: linear-gradient(120deg, rgba(4,116,162,.12), rgba(164,215,236,.14) 50%, rgba(255,140,89,.12));
  --an-radius: 18px;
  --an-shadow: 0 18px 50px -20px rgba(0, 42, 59, .28);
  --an-shadow-sm: 0 8px 24px -12px rgba(0, 42, 59, .20);
}

html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--an-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Intwo typography: headings use Inter Light and are "not too wide"; body is
   Inter Regular. Small headings / tags use the bold version in capitals. */
h1, h2, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 300;
  letter-spacing: -0.015em;
}
h3, h4, h5, h6 { font-weight: 600; letter-spacing: -0.01em; }
.lead { color: var(--an-slate); }
section { scroll-margin-top: 80px; }

/* ---------- Utilities ---------- */
.text-gradient {
  background: var(--an-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* On the dark hero the peach→blue burn needs a lighter blue so both stops read
   against the dark-blue background. */
.hero .text-gradient {
  background: linear-gradient(120deg, #A4D7EC 0%, #FF8C59 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bg-grad { background: var(--an-grad); }
.bg-ink { background: var(--an-ink); }
.bg-soft { background: var(--an-light); }
.rounded-an { border-radius: var(--an-radius); }
.shadow-an { box-shadow: var(--an-shadow); }
.fw-800 { font-weight: 800; }
.fw-600 { font-weight: 600; }

.btn-grad {
  background: var(--an-grad);
  color: #fff;
  border: none;
  font-weight: 600;
  box-shadow: 0 10px 24px -12px rgba(255, 140, 89, .6);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn-grad:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 16px 30px -14px rgba(255, 140, 89, .7); }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,.45); color: #fff; font-weight: 600; }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); color: #fff; }
/* Outlined button for use on light surfaces (e.g. the navbar). */
.btn-ghost-dark { border: 1.5px solid rgba(255, 140, 89, .5); color: var(--an-ink); font-weight: 600; }
.btn-ghost-dark:hover { background: rgba(255, 140, 89, .10); color: var(--an-peach); border-color: var(--an-peach); }

.badge-soft {
  background: var(--an-grad-soft);
  color: var(--an-peach);
  border: 1px solid rgba(255, 140, 89, .28);
  font-weight: 600;
  border-radius: 999px;
  padding: .45rem .9rem;
  font-size: .82rem;
}

/* ---------- Navbar ---------- */
/* Always rendered on a soft, translucent light bar so the menu is clearly
   visible from the very top (it used to be transparent over the dark hero). */
.navbar {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(4, 116, 162, .12);
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding-top: .9rem; padding-bottom: .9rem;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 6px 24px -14px rgba(0, 42, 59, .32);
}
.navbar-brand { font-weight: 800; letter-spacing: -.02em; font-size: 1.25rem; color: var(--an-ink); }
.navbar-brand:hover { color: var(--an-ink); }
.navbar .nav-link { font-weight: 600; color: var(--an-ink) !important; opacity: .9; }
.navbar .nav-link:hover { color: var(--an-peach) !important; opacity: 1; }
/* Dark hamburger icon for the light bar (no navbar-light class on the markup). */
.navbar-toggler { color: var(--an-ink); }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,42,59,0.85)' stroke-width='2.2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.lang-switch .btn { font-weight: 700; border-radius: 999px; padding: .25rem .7rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(164,215,236,.22), transparent 60%),
    radial-gradient(700px 500px at 0% 10%, rgba(255,140,89,.24), transparent 55%),
    linear-gradient(180deg, #002A3B 0%, #013A4F 100%);
  color: #fff;
  padding: 9rem 0 6rem;
  overflow: hidden;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; }
.hero .lead { color: rgba(255,255,255,.82); font-size: 1.2rem; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(64px); opacity: .45; z-index: 0;
}
.hero-orb.a { width: 360px; height: 360px; background: #FF8C59; top: -80px; right: 10%; }
.hero-orb.b { width: 300px; height: 300px; background: #0474A2; bottom: -120px; left: -60px; }
.hero > .container { position: relative; z-index: 2; }

/* Brand lockup, front and center above the fold. */
.hero-logo-wrap { display: flex; justify-content: center; margin-bottom: 2.5rem; }
.hero-logo {
  width: clamp(180px, 22vw, 300px);
  height: auto;
  filter: drop-shadow(0 0 34px rgba(255, 140, 89, .45)) drop-shadow(0 0 60px rgba(164, 215, 236, .3));
  animation: heroLogoFloat 5s ease-in-out infinite;
}
@keyframes heroLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}

/* Browser mockup */
.browser {
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 40px 80px -34px rgba(0, 42, 59, .55);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
}
.browser-bar {
  background: #013A4F; padding: .6rem .9rem; display: flex; align-items: center; gap: .4rem;
}
.browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.browser-bar .url {
  margin-left: .8rem; background: #002A3B; color: #A4D7EC; font-size: .72rem;
  padding: .25rem .8rem; border-radius: 8px; flex: 1; text-align: center; max-width: 70%;
}
.browser img { width: 100%; display: block; }

.stat-num { font-size: 2.2rem; font-weight: 800; }
.hero-stats .col { border-left: 1px solid rgba(255,255,255,.14); }
.hero-stats .col:first-child { border-left: none; }

/* Logo strip / trust */
.trust-item { color: var(--an-slate); font-weight: 600; }

/* ---------- Feature cards ---------- */
.feature-card {
  background: #fff;
  border: 1px solid #ECEFF7;
  border-radius: var(--an-radius);
  padding: 1.6rem;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--an-shadow); border-color: transparent; }
.feature-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.4rem; color: #fff;
  background: var(--an-grad); margin-bottom: 1rem;
  box-shadow: 0 10px 20px -12px rgba(255,140,89,.55);
}

/* ---------- Feature explorer: category filter + interactive cards ---------- */
.feat-toolbar { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.6rem; }
.feat-chip {
  border: 1.5px solid #E1E7F0; background: #fff; color: var(--an-slate);
  font-weight: 600; font-size: .86rem; line-height: 1; border-radius: 999px;
  padding: .55rem 1.05rem; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem;
  transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.feat-chip i { font-size: .95rem; }
.feat-chip:hover { border-color: var(--an-peach); color: var(--an-dark); transform: translateY(-1px); }
.feat-chip-count {
  font-size: .72rem; font-weight: 800; background: #EEF3F7; color: var(--an-slate);
  border-radius: 999px; padding: .1rem .5rem; transition: background .18s ease, color .18s ease;
}
.feat-chip.active {
  background: var(--an-grad); border-color: transparent; color: #fff;
  box-shadow: 0 12px 24px -12px rgba(255,140,89,.6);
}
.feat-chip.active .feat-chip-count { background: rgba(255,255,255,.28); color: #fff; }

#features .feature-col.hide { display: none; }
@keyframes featIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

#features .feature-card { position: relative; overflow: hidden; }
#features .feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--cat-accent, var(--an-grad)); transform: scaleX(0); transform-origin: left;
  transition: transform .28s ease;
}
#features .feature-card:hover::before { transform: scaleX(1); }

.feat-card-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: 1rem; }
#features .feat-card-head .feature-ico { margin-bottom: 0; transition: transform .2s ease; }
#features .feature-card:hover .feature-ico { transform: scale(1.06) rotate(-3deg); }
.feat-cat {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  border-radius: 999px; padding: .22rem .6rem; white-space: nowrap;
  background: var(--cat-bg, rgba(4,116,162,.12)); color: var(--cat-fg, var(--an-blue));
}
#features .feature-card h5 { margin-bottom: .5rem; }
#features .feature-card p {
  max-height: 4.6em; overflow: hidden;
  transition: max-height .35s ease;
}
#features .feature-card:hover p { max-height: 22em; }

/* Category accents (icon tiles keep the signature gradient; accents color the
   top bar + the category chip so the grid reads as one brand system). */
.cat-conv { --cat-accent: linear-gradient(120deg,#FF8C59,#E74700); --cat-bg: rgba(255,140,89,.16); --cat-fg: #E74700; }
.cat-know { --cat-accent: linear-gradient(120deg,#0474A2,#A4D7EC); --cat-bg: rgba(4,116,162,.14);  --cat-fg: #0474A2; }
.cat-sec  { --cat-accent: linear-gradient(120deg,#002A3B,#0474A2); --cat-bg: rgba(0,42,59,.10);    --cat-fg: #002A3B; }
.cat-ops  { --cat-accent: linear-gradient(120deg,#2F9E74,#75EB96); --cat-bg: rgba(47,158,116,.15); --cat-fg: #2F9E74; }

@media (prefers-reduced-motion: reduce) {
  #features .feature-col { animation: none !important; }
  #features .feature-card p, #features .feature-card:hover p { max-height: none; }
}

/* Differentiator */
.diff-row { gap: 0; }
.diff-card {
  border-radius: var(--an-radius); padding: 1.6rem; height: 100%;
  border: 1px solid #ECEFF7; background: #fff;
}
.diff-card .vs-bad { color: var(--an-red); }
.diff-card .vs-good { color: var(--an-green); }
.check-li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .7rem; }
.check-li i { color: var(--an-peach); margin-top: .2rem; flex: none; }

/* Alternating showcase */
.showcase-img {
  border-radius: 14px; width: 100%; display: block;
  box-shadow: var(--an-shadow); border: 1px solid #ECEFF7;
}
.showcase-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; color: var(--an-violet); text-transform: uppercase;
  font-size: .78rem; letter-spacing: .06em; margin-bottom: .6rem;
}

/* Architecture pills */
.arch-pill {
  background: #fff; border: 1px solid #E7EAF4; border-radius: 12px;
  padding: .8rem 1rem; font-weight: 600; display: flex; align-items: center; gap: .6rem;
  box-shadow: var(--an-shadow-sm);
}
.arch-pill i { color: var(--an-blue); font-size: 1.2rem; }

/* ---------- Problem cards (the pain Knoviti solves) ---------- */
.prob-card {
  background: #fff; border: 1px solid #ECEFF7; border-radius: var(--an-radius);
  padding: 1.6rem; height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.prob-card:hover { transform: translateY(-6px); box-shadow: var(--an-shadow); border-color: transparent; }
.prob-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.4rem; color: var(--an-red);
  background: rgba(231,71,0,.10); margin-bottom: 1rem;
}

/* ---------- Knowledge access diagram (tags → access groups → retrieval trimming) ---------- */
.ka-flow { display: flex; align-items: stretch; justify-content: center; gap: .4rem; }
.ka-step {
  flex: 1 1 0; min-width: 0;
  background: #fff; border: 1px solid #ECEFF7; border-radius: var(--an-radius);
  padding: 1.4rem; box-shadow: var(--an-shadow-sm);
}
.ka-step-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.ka-step-head h5 { margin: 0; font-size: 1.02rem; }
.ka-step-num {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .95rem;
  background: var(--an-grad);
}
.ka-step-d { font-size: .88rem; color: var(--an-slate); margin-bottom: 1.1rem; }
.ka-arrow { flex: 0 0 auto; display: grid; place-items: center; color: var(--an-violet); font-size: 1.4rem; }

.ka-docs, .ka-groups { display: grid; gap: .55rem; }
.ka-doc {
  display: flex; align-items: center; gap: .5rem; font-size: .84rem;
  background: #F4F9FB; border: 1px solid #ECEFF7; border-radius: 10px; padding: .5rem .65rem;
}
.ka-doc i { color: var(--an-slate); }
.ka-doc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ka-chip { font-size: .7rem; font-weight: 700; border-radius: 999px; padding: .15rem .6rem; white-space: nowrap; }
.ka-chip--hr  { background: rgba(4,116,162,.14); color: #0474A2; }
.ka-chip--fin { background: rgba(255,140,89,.22); color: var(--an-dark); }
.ka-chip--pub { background: rgba(117,235,150,.22); color: #2F9E74; }

.ka-group { background: #F4F9FB; border: 1px solid #ECEFF7; border-radius: 12px; padding: .65rem .7rem; display: grid; gap: .45rem; }
.ka-group-name { display: flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .9rem; }
.ka-group-name i { color: var(--an-violet); }
.ka-group-user { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--an-slate); }
.ka-group-user i { color: var(--an-blue); font-size: 1.05rem; }

.ka-vis-user { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: .92rem; margin-bottom: .7rem; }
.ka-vis-user i { color: var(--an-blue); font-size: 1.25rem; }
.ka-vis-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.ka-vis-list li { display: flex; align-items: center; gap: .5rem; font-size: .84rem; }
.ka-allow i { color: var(--an-green); }
.ka-deny { color: var(--an-slate); }
.ka-deny i { color: var(--an-red); }
.ka-deny span { text-decoration: line-through; opacity: .75; }

.ka-note { margin-top: 2rem; }
.ka-note-card { display: flex; gap: .7rem; background: #fff; border: 1px solid #ECEFF7; border-radius: 14px; padding: 1rem 1.1rem; height: 100%; }
.ka-note-card > i { color: var(--an-violet); font-size: 1.4rem; line-height: 1.2; }
.ka-note-card strong { display: block; font-size: .9rem; margin-bottom: .15rem; }
.ka-note-card p { margin: 0; font-size: .82rem; color: var(--an-slate); }

@media (max-width: 991.98px) {
  .ka-flow { flex-direction: column; align-items: stretch; }
  .ka-arrow { transform: rotate(90deg); padding: .15rem 0; }
}

/* CTA */
.cta {
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(164,215,236,.30), transparent 60%),
    var(--an-grad);
  color: #fff; border-radius: 28px;
}

/* Footer */
footer a { color: rgba(255,255,255,.72); text-decoration: none; }
footer a:hover { color: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,42,59,.86); z-index: 1080;
  display: none; align-items: center; justify-content: center; padding: 4vw;
  backdrop-filter: blur(4px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,42,59,.55); }
.lightbox .close-lb {
  position: absolute; top: 22px; right: 28px; color: #fff; font-size: 2rem;
  background: none; border: none; cursor: pointer; line-height: 1;
}

[hidden] { display: none !important; }

@media (max-width: 991.98px) {
  .hero { padding: 7rem 0 4rem; }
  .hero-stats .col { border-left: none; }
}
