/* ============================================================
   Frontline AI — frog, part of Capgemini
   Brand: black base · electric blue #1B2EDB · purple #6A07E0
   accents: orange #F7580E · teal #079492 · magenta #FF00B1 · green #4EE700
   Type: Quarto (fallback Playfair Display) / BentonSans (fallback Inter)
   ============================================================ */

:root {
  --black: #0a0a0a;
  --ink: #121212;
  --panel: #181820;
  --white: #ffffff;
  --grey: #b9b9c1;
  --grey-dim: #76767e;
  --line: rgba(255, 255, 255, 0.12);
  --blue: #1b2edb;
  --blue-bright: #4d5cff;
  --purple: #6a07e0;
  --orange: #f7580e;
  --teal: #079492;
  --magenta: #ff00b1;
  --green: #4ee700;
  --serif: "Quarto Light", "Playfair Display", Georgia, serif;
  --sans: "BentonSansF Book", "Inter", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* inline line-icons (replace emojis) */
svg.ico { width: 1.05em; height: 1.05em; vertical-align: -0.16em; margin-right: 7px; flex: 0 0 auto; }
.chip { display: inline-flex; align-items: center; }
.tp-icon svg.ico { width: 30px; height: 30px; margin-right: 0; vertical-align: middle; color: inherit; }
.j-device svg.ico, .duration svg.ico { opacity: 0.95; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.08; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.12; margin-bottom: 1.2rem; }
h3 { font-size: 1.45rem; line-height: 1.25; }
p  { color: var(--grey); }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

.eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 1rem;
}
.eyebrow.orange { color: var(--orange); }
.eyebrow.teal { color: var(--teal); }
.eyebrow.magenta { color: var(--magenta); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(10, 10, 10, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand img { height: 30px; display: block; transform: translateY(4px); }
.brand-name { font-family: var(--serif); font-size: 1.25rem; }
.brand-sub { font-size: 0.7rem; color: var(--grey-dim); letter-spacing: 0.08em; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { font-size: 0.92rem; color: var(--grey); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta {
  background: var(--blue); color: var(--white) !important;
  padding: 9px 20px; border-radius: 100px; transition: background 0.2s;
}
.nav-cta:hover { background: var(--blue-bright); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 130px 0 110px;
  background:
    radial-gradient(ellipse 60% 50% at 75% 10%, rgba(106, 7, 224, 0.35), transparent 65%),
    radial-gradient(ellipse 55% 45% at 15% 85%, rgba(27, 46, 219, 0.4), transparent 65%),
    radial-gradient(ellipse 30% 25% at 90% 80%, rgba(247, 88, 14, 0.14), transparent 70%),
    var(--black);
}
/* optional triptych / photographic hero image — drop a file at
   assets/images/hero-triptych.jpg and it appears here (graded to greyscale).
   If the file is absent this layer is simply invisible. */
.hero-bg { position: absolute; inset: 0; z-index: 0;
  background-image: url('../images/hero-triptych.jpg'); background-size: cover; background-position: center;
  filter: grayscale(1) contrast(1.05) brightness(0.8); opacity: 0.55; }
.hero-scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10,10,10,0.88) 0%, rgba(10,10,10,0.5) 44%, rgba(10,10,10,0.12) 100%); }
.hero-anim { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-anim iframe { width: 100%; height: 100%; border: 0; display: block; }
.hero > .wrap { position: relative; z-index: 3; }

.hero h1 { max-width: 850px; margin-bottom: 1.4rem; }
.hero h1 em { font-style: italic; color: var(--blue-bright); }
.hero .lede { max-width: 640px; font-size: 1.18rem; margin-bottom: 3.2rem; }

.hero-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hero-card {
  display: block; padding: 26px 24px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line); border-radius: 14px;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.hero-card:hover { border-color: var(--blue-bright); transform: translateY(-4px); background: rgba(255,255,255,0.07); }
.hero-card h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.hero-card p { font-size: 0.92rem; }
.hero-card .tag { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); display: block; margin-bottom: 0.8rem; }

/* ---------- video ---------- */
.video-section { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.video-frame {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(27,46,219,0.25), rgba(106,7,224,0.25));
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px;
}
.video-placeholder .play-ring {
  width: 84px; height: 84px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.video-placeholder p { font-size: 0.95rem; max-width: 480px; }
.video-placeholder code { color: var(--blue-bright); font-size: 0.85rem; }

/* ---------- layer tabs ---------- */
.tabs { display: flex; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.tab-btn {
  background: transparent; border: 1px solid var(--line); color: var(--grey);
  font-family: var(--sans); font-size: 0.95rem; padding: 10px 26px;
  border-radius: 100px; cursor: pointer; transition: all 0.2s;
}
.tab-btn.active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; animation: fadeUp 0.35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.tab-panel h3 { font-size: 1.9rem; margin-bottom: 1rem; }
.tab-visual {
  border-radius: 16px; border: 1px solid var(--line); padding: 36px;
  background: rgba(255, 255, 255, 0.035); min-height: 280px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 0.82rem; padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--line); color: var(--grey);
}
.chip.hl-blue { border-color: var(--blue-bright); color: var(--blue-bright); }
.chip.hl-purple { border-color: #a25dff; color: #a25dff; }
.chip.hl-orange { border-color: var(--orange); color: var(--orange); }
.chip.hl-teal { border-color: var(--teal); color: #2fd3d0; }
.chip.hl-magenta { border-color: var(--magenta); color: var(--magenta); }
.chip.hl-green { border-color: var(--green); color: var(--green); }

/* ---------- touchpoint grid ---------- */
.tp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 40px; }
.tp-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 24px 18px;
  background: rgba(255,255,255,0.035); transition: border-color 0.25s, transform 0.25s;
}
.tp-card:hover { transform: translateY(-4px); }
.tp-card .tp-icon { font-size: 1.7rem; margin-bottom: 12px; display: block; }
.tp-card h3 { font-size: 1.05rem; margin-bottom: 0.45rem; font-family: var(--sans); font-weight: 600; }
.tp-card p { font-size: 0.84rem; line-height: 1.5; }
.tp-card.c-blue:hover { border-color: var(--blue-bright); }
.tp-card.c-purple:hover { border-color: var(--purple); }
.tp-card.c-orange:hover { border-color: var(--orange); }
.tp-card.c-teal:hover { border-color: var(--teal); }
.tp-card.c-magenta:hover { border-color: var(--magenta); }
.tp-card .mode { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-dim); display: block; margin-bottom: 10px; }

.spectrum {
  display: flex; justify-content: space-between; margin-top: 18px;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey-dim);
}
.spectrum-bar {
  height: 3px; margin-top: 8px; border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--blue-bright), var(--purple));
}

/* ---------- journey / interoperability ---------- */
.journey { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.journey-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 48px; position: relative; }
.j-step { padding: 0 22px; position: relative; }
.j-step + .j-step { border-left: 1px solid var(--line); }
.j-num {
  font-family: var(--serif); font-size: 2.6rem; color: var(--blue-bright);
  display: block; margin-bottom: 10px;
}
.j-step:nth-child(2) .j-num { color: #a25dff; }
.j-step:nth-child(3) .j-num { color: var(--orange); }
.j-step:nth-child(4) .j-num { color: var(--teal); }
.j-step h3 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; margin-bottom: 0.6rem; }
.j-step p { font-size: 0.88rem; }
.j-step .j-device { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey-dim); display: block; margin-bottom: 14px; }
.j-quote {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: rgba(27, 46, 219, 0.16); border: 1px solid rgba(77, 92, 255, 0.3);
  font-size: 0.82rem; color: #c9cfff; font-style: italic;
}
.journey-footnote {
  margin-top: 48px; text-align: center; font-size: 1.05rem;
  color: var(--white); font-family: var(--serif);
}
.journey-footnote em { color: var(--blue-bright); }

/* ---------- stats ---------- */
.stats-headline { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.stat {
  text-align: center; padding: 30px 14px; border: 1px solid var(--line);
  border-radius: 14px; background: rgba(255,255,255,0.035);
}
.stat .num { font-family: var(--serif); font-size: 2.6rem; display: block; line-height: 1; margin-bottom: 10px; }
.stat:nth-child(1) .num { color: var(--blue-bright); }
.stat:nth-child(2) .num { color: #a25dff; }
.stat:nth-child(3) .num { color: var(--orange); }
.stat:nth-child(4) .num { color: var(--teal); }
.stat:nth-child(5) .num { color: var(--magenta); }
.stat p { font-size: 0.82rem; line-height: 1.45; }

/* ---------- engagement ---------- */
.engage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.engage-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 34px 28px;
  background: rgba(255,255,255,0.035); position: relative;
  transition: border-color 0.25s, transform 0.25s;
}
.engage-card:hover { border-color: var(--blue-bright); transform: translateY(-4px); }
.engage-card .step-no { font-family: var(--serif); font-size: 1rem; color: var(--grey-dim); }
.engage-card h3 { margin: 10px 0 4px; }
.engage-card .sub { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); display: block; margin-bottom: 16px; }
.engage-card p { font-size: 0.92rem; margin-bottom: 20px; }
.engage-card .duration {
  display: inline-block; font-size: 0.78rem; padding: 6px 14px;
  border-radius: 100px; border: 1px solid var(--line); color: var(--grey);
}

/* ---------- proof ---------- */
.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 48px; }
.proof-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px;
  background: rgba(255,255,255,0.035);
}
.proof-card .sector { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); display: block; margin-bottom: 12px; }
.proof-card h3 { font-size: 1.2rem; margin-bottom: 0.7rem; font-family: var(--sans); font-weight: 600; }
.proof-card p { font-size: 0.9rem; margin-bottom: 18px; }
.proof-metrics { display: flex; gap: 26px; flex-wrap: wrap; }
.proof-metrics div span { font-family: var(--serif); font-size: 1.6rem; color: var(--blue-bright); display: block; }
.proof-metrics div small { font-size: 0.74rem; color: var(--grey-dim); }

/* ---------- CTA / footer ---------- */
.cta-band {
  text-align: center; padding: 110px 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(27, 46, 219, 0.45), transparent 70%),
    var(--black);
}
.btn {
  display: inline-block; background: var(--blue); color: var(--white);
  padding: 15px 38px; border-radius: 100px; font-size: 1rem;
  transition: background 0.2s, transform 0.2s; border: none; cursor: pointer; font-family: var(--sans);
}
.btn:hover { background: var(--blue-bright); transform: translateY(-2px); }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

footer {
  border-top: 1px solid var(--line); padding: 36px 0; font-size: 0.85rem; color: var(--grey-dim);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-inner a { color: var(--grey); }
.footer-inner a:hover { color: var(--white); }

.learn-more { display: inline-block; margin-top: 34px; color: var(--blue-bright); font-size: 0.95rem; }
.learn-more:hover { text-decoration: underline; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  padding: 110px 0 70px;
  background:
    radial-gradient(ellipse 55% 60% at 80% 0%, rgba(106, 7, 224, 0.3), transparent 65%),
    radial-gradient(ellipse 45% 50% at 10% 100%, rgba(27, 46, 219, 0.3), transparent 65%),
    var(--black);
}
.page-hero h1 { max-width: 820px; }
.page-hero .lede { max-width: 620px; font-size: 1.12rem; margin-top: 1.2rem; }

/* ---------- two-col ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ---------- agent cast ---------- */
.agent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 40px; }
.agent-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  background: rgba(255,255,255,0.035);
}
.agent-card h3 { font-size: 1rem; font-family: var(--sans); font-weight: 600; margin-bottom: 0.4rem; }
.agent-card p { font-size: 0.84rem; }
.agent-card .a-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-bottom: 12px; }

/* ---------- industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.ind-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 26px 22px;
  background: rgba(255,255,255,0.035); transition: border-color 0.25s, transform 0.25s;
}
.ind-card:hover { transform: translateY(-4px); }
.ind-card:nth-child(1):hover { border-color: var(--blue-bright); }
.ind-card:nth-child(2):hover { border-color: var(--orange); }
.ind-card:nth-child(3):hover { border-color: var(--teal); }
.ind-card:nth-child(4):hover { border-color: #a25dff; }
.ind-card .ind-eyebrow { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey-dim); display: block; margin-bottom: 10px; }
.ind-card h3 { font-size: 1.18rem; margin-bottom: 0.5rem; font-family: var(--sans); font-weight: 600; }
.ind-card p { font-size: 0.88rem; line-height: 1.5; }

/* ---------- embedded animation ---------- */
.anim-embed {
  position: relative; width: 100%; max-width: 1180px; margin: 30px auto 0;
  aspect-ratio: 16 / 9; overflow: hidden;
  border: 0; background: transparent; border-radius: 0;
}
.anim-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }

/* ---------- use cases ---------- */
.uc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 48px; }
.uc-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 0;
  background: rgba(255,255,255,0.035); overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.uc-card:hover { transform: translateY(-3px); }
.uc-card .uc-head { padding: 20px 26px 16px; border-top: 3px solid; }
.uc-card.uc-green  .uc-head { border-color: var(--green); }
.uc-card.uc-orange .uc-head { border-color: var(--orange); }
.uc-card.uc-teal   .uc-head { border-color: var(--teal); }
.uc-card.uc-purple .uc-head { border-color: #a25dff; }
.uc-card.uc-green:hover  { border-color: rgba(78,231,0,0.45); }
.uc-card.uc-orange:hover { border-color: rgba(247,88,14,0.55); }
.uc-card.uc-teal:hover   { border-color: rgba(7,148,146,0.65); }
.uc-card.uc-purple:hover { border-color: rgba(162,93,255,0.55); }
.uc-card .uc-kicker { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.uc-card.uc-green  .uc-kicker { color: var(--green); }
.uc-card.uc-orange .uc-kicker { color: var(--orange); }
.uc-card.uc-teal   .uc-kicker { color: #2fd3d0; }
.uc-card.uc-purple .uc-kicker { color: #a25dff; }
.uc-card h3 { font-size: 1.25rem; }
.uc-card ul { list-style: none; padding: 6px 26px 24px; }
.uc-card li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.92rem; color: var(--grey);
}
.uc-card li:last-child { border-bottom: none; }
.uc-card li::before {
  content: ""; flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%;
  transform: translateY(-1px);
}
.uc-card li.e1::before { background: var(--green); }
.uc-card li.e2::before { background: #f5b921; }
.uc-card li.e3::before { background: var(--orange); }
.uc-legend {
  display: flex; gap: 24px; flex-wrap: wrap; margin-top: 26px;
  font-size: 0.8rem; color: var(--grey-dim); align-items: center;
}
.uc-legend span { display: inline-flex; align-items: center; gap: 8px; }
.uc-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.quadrant-wrap { margin-top: 56px; }
.feature-img { display: block; width: 100%; height: auto; }
.feature-img.centered { max-width: 880px; margin: 8px auto -16px; }
.img-caption { text-align: center; font-size: 0.82rem; color: var(--grey-dim); margin-top: -6px; margin-bottom: 8px; }
.quadrant-note { max-width: 480px; }
.quadrant-svg { width: 100%; height: auto; display: block; }

/* ---------- chatbot ---------- */
.chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 95;
  background: var(--blue); color: var(--white); border: none; cursor: pointer;
  padding: 14px 22px; border-radius: 100px; font-size: 0.95rem; font-family: var(--sans);
  box-shadow: 0 8px 30px rgba(27, 46, 219, 0.45);
  transition: transform 0.2s, background 0.2s;
}
.chat-fab:hover { transform: translateY(-3px); background: var(--blue-bright); }

.chat-panel {
  position: fixed; right: 24px; bottom: 90px; z-index: 96;
  width: 360px; max-width: calc(100vw - 48px); max-height: 540px;
  background: #15151c; border: 1px solid var(--line); border-radius: 18px;
  display: none; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.chat-panel.open { display: flex; }
.chat-head {
  padding: 16px 18px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.chat-head strong { font-size: 0.95rem; }
.chat-head button { background: none; border: none; color: var(--grey); font-size: 1.1rem; cursor: pointer; }
.chat-body { padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-msg {
  font-size: 0.88rem; line-height: 1.5; padding: 11px 14px; border-radius: 12px; max-width: 88%;
}
.chat-msg.bot { background: rgba(255, 255, 255, 0.07); color: #e6e6ec; align-self: flex-start; }
.chat-msg.user { background: var(--blue); color: var(--white); align-self: flex-end; }
.chat-suggestions { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.chat-suggestions button {
  background: transparent; border: 1px solid var(--line); color: var(--grey);
  font-size: 0.82rem; padding: 9px 14px; border-radius: 100px; cursor: pointer;
  text-align: left; font-family: var(--sans); transition: all 0.2s;
}
.chat-suggestions button:hover { border-color: var(--blue-bright); color: var(--white); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-cards, .engage-grid, .agent-grid, .uc-grid { grid-template-columns: 1fr; }
  .tp-grid { grid-template-columns: repeat(2, 1fr); }
  .journey-steps { grid-template-columns: 1fr; gap: 30px; }
  .j-step + .j-step { border-left: none; border-top: 1px solid var(--line); padding-top: 26px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .tab-panel.active, .two-col, .proof-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  section { padding: 64px 0; }
}
