/* Eight AI Solutions — design tokens + base styles */
:root {
  --bg-base: #F5F0E8;            /* warm cream page */
  --bg-subtle: #EFE9DD;          /* slightly deeper cream for soft contrast */
  --bg-card: #FFFFFF;            /* white cards pop against cream */
  --bg-section-blue: #1A6FA0;    /* alternating blue section block */
  --bg-section-blue-deeper: #155A85;

  --border-subtle: #E5E0D6;      /* warm-tinted divider */
  --border-strong: #D4CCBE;

  --text-primary: #0A0A0A;
  --text-secondary: #525252;
  --text-muted: #8A8A8A;

  --text-on-blue: #FFFFFF;
  --text-on-blue-muted: #B8D4E3;
  --tag-chip-on-blue: #2D7FB0;

  --brand-blue: #0E5E8E;         /* primary brand */
  --brand-blue-hover: #0A4A72;
  --brand-blue-soft: #E4EDF3;

  /* legacy aliases (kept so any stray usage still resolves) */
  --accent: var(--brand-blue);
  --accent-hover: var(--brand-blue-hover);
  --accent-soft: var(--brand-blue-soft);

  --max-w: 1200px;
  --pad-x: 48px;
  --pad-y: 120px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  background: var(--bg-base);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section {
  padding-top: var(--pad-y);
  padding-bottom: var(--pad-y);
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 24px;
}

h1, h2, h3, h4 { margin: 0; color: var(--text-primary); text-wrap: balance; }
h1 {
  font-size: clamp(44px, 6.2vw, 72px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p { margin: 0; }

.lead {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 640px;
  text-wrap: pretty;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  transition: background 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), transform 150ms var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand-blue);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-blue-hover); }
.btn-secondary {
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  background: transparent;
}
.btn-secondary:hover { background: var(--text-primary); color: #fff; }
.btn-ghost {
  color: var(--text-primary);
  padding: 14px 0;
}
.btn-ghost:hover { color: var(--brand-blue); }

/* Buttons used inside a blue section */
.section-blue .btn-primary {
  background: #fff;
  color: var(--brand-blue);
}
.section-blue .btn-primary:hover { background: var(--bg-base); }
.section-blue .btn-secondary {
  border-color: #fff;
  color: #fff;
}
.section-blue .btn-secondary:hover { background: #fff; color: var(--brand-blue); }
.section-blue .btn-ghost { color: #fff; }
.section-blue .btn-ghost:hover { color: var(--text-on-blue-muted); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 150ms var(--ease), transform 150ms var(--ease), box-shadow 150ms var(--ease);
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.divider { height: 1px; background: var(--border-subtle); border: 0; margin: 0; }

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

/* Split-text */
.split { display: inline-block; }
.split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  white-space: pre;
}
.split.in .split-word { opacity: 1; transform: none; }
.split-word.hl { color: var(--brand-blue); }
.section-blue .split-word.hl { color: var(--text-on-blue-muted); }
.split-word .uline {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: var(--brand-blue);
}
.section-blue .split-word .uline { text-decoration-color: var(--text-on-blue-muted); }

/* Marquee */
.marquee {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Pulsing dot */
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  position: relative;
}
.dot::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%;
  background: #22c55e;
  opacity: 0.4;
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(0.8); opacity: 0.4; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Live system card */
.live-card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 40px -12px rgba(10,10,10,0.08), 0 2px 8px -2px rgba(10,10,10,0.04);
}
.live-card .row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); font-size: 13px; }
.live-card .row:last-child { border-bottom: 0; }
.live-card .row .k { color: var(--text-muted); }
.live-card .row .v { color: var(--text-primary); font-variant-numeric: tabular-nums; font-weight: 500; }

/* Tabs */
.tabs-row {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  flex-wrap: wrap;
}
.tab {
  position: relative;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 150ms var(--ease);
}
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--text-primary); }
.tab.active::after {
  content: '';
  position: absolute;
  left: 18px; right: 18px; bottom: -1px;
  height: 2px; background: var(--brand-blue);
  border-radius: 2px;
}

/* Tabs inside blue sections */
.section-blue .tabs-row { border-bottom-color: rgba(255,255,255,0.18); }
.section-blue .tab { color: var(--text-on-blue-muted); }
.section-blue .tab:hover, .section-blue .tab.active { color: #fff; }
.section-blue .tab.active::after { background: #fff; }

/* Accordion */
.acc-item { border-bottom: 1px solid var(--border-subtle); }
.acc-q {
  width: 100%;
  text-align: left;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  gap: 16px;
}
.acc-q .ico { transition: transform 200ms var(--ease); color: var(--text-muted); }
.acc-item.open .acc-q .ico { transform: rotate(45deg); color: var(--accent); }
.acc-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms var(--ease), opacity 350ms var(--ease);
  opacity: 0;
}
.acc-item.open .acc-a {
  max-height: 320px;
  opacity: 1;
}
.acc-a-inner {
  padding-bottom: 22px;
  color: var(--text-secondary);
  font-size: 15.5px;
  max-width: 760px;
  line-height: 1.65;
}

/* Logo chips (placeholder for tools) */
.logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.logo-chip .glyph {
  width: 20px; height: 20px;
  border-radius: 4px;
  background: linear-gradient(135deg, #d4d4d4, #8a8a8a);
  display: inline-block;
}

/* Number tabular */
.tnum { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(245, 240, 232, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--border-subtle); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex; align-items: center; gap: 32px;
}
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 150ms var(--ease);
}
.nav-links a:hover { color: var(--text-primary); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 600; letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 4px;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  padding: 0;
}
.brand-mark img {
  width: 100%; height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}

/* Hero */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-cta-row { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* Section common */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 64px; }
.section-head .lead { margin-top: 16px; }
.section-head.center { grid-template-columns: 1fr; text-align: center; }
.section-head.center .lead { margin: 16px auto 0; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Problem card */
.problem-card .icon-box {
  width: 40px; height: 40px;
  border-radius: 6px;
  background: var(--brand-blue-soft);
  color: var(--brand-blue);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.problem-card .data {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
.data .num { font-size: 44px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.025em; line-height: 1; }
.data .label { font-size: 13px; color: var(--text-muted); margin-top: 8px; max-width: 220px; }

/* Solution card */
.solution-card { padding: 28px; }
.solution-card .num { font-size: 13px; color: var(--brand-blue); font-weight: 600; letter-spacing: 0.06em; }
.solution-card h3 { margin-top: 8px; }
.solution-card p { color: var(--text-secondary); margin-top: 12px; font-size: 15px; }
.solution-card .best { margin-top: 18px; font-size: 13px; color: var(--text-muted); padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.best b { color: var(--text-secondary); font-weight: 500; }

/* Blue section block */
.section-blue {
  background: var(--bg-section-blue);
  color: var(--text-on-blue);
}
.section-blue h1, .section-blue h2, .section-blue h3, .section-blue h4 { color: #fff; }
.section-blue .lead, .section-blue p { color: var(--text-on-blue-muted); }
.section-blue .eyebrow { color: var(--text-on-blue-muted); }
.section-blue .divider { background: rgba(255,255,255,0.18); }

/* Industries panel */
.ind-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  padding-top: 56px;
  animation: fadein 260ms var(--ease);
}
@keyframes fadein {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.ind-panel ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; }
.ind-panel li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; gap: 12px;
  font-size: 15px;
  color: var(--text-primary);
}
.ind-panel li .check { color: var(--brand-blue); flex-shrink: 0; }
.ind-outcomes { display: grid; gap: 20px; }
.ind-outcome {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px;
}
.ind-outcome .num { font-size: 48px; font-weight: 600; letter-spacing: -0.025em; color: var(--brand-blue); line-height: 1; }
.ind-outcome .label { color: var(--text-secondary); margin-top: 10px; font-size: 14px; }

/* Industries inside blue section */
.section-blue .ind-panel li {
  border-bottom-color: rgba(255,255,255,0.16);
  color: #fff;
}
.section-blue .ind-panel li .check { color: #fff; }
.section-blue .ind-outcome {
  background: var(--bg-section-blue-deeper);
  border-color: rgba(255,255,255,0.10);
}
.section-blue .ind-outcome .num { color: #fff; }
.section-blue .ind-outcome .label { color: var(--text-on-blue-muted); }

/* Process step */
.step .step-num {
  font-size: 13px; font-weight: 600;
  color: var(--brand-blue);
  letter-spacing: 0.06em;
}
.step h3 { margin-top: 12px; }
.step .price { color: var(--text-muted); font-size: 13px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.step p { color: var(--text-secondary); font-size: 15px; margin-top: 14px; }
.step .deliv { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.step .deliv-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.step .deliv-list { display: flex; flex-wrap: wrap; gap: 6px; }
.step .deliv-chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* Step cards inside blue section keep white face for contrast */
.section-blue .step.card {
  background: #fff;
  border-color: rgba(255,255,255,0.10);
}
.section-blue .step .price { color: var(--text-muted); }
.section-blue .step p { color: var(--text-secondary); }

/* Case study */
.case .case-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.case .case-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.case h3 { margin-top: 4px; }
.case .case-bd { color: var(--text-secondary); font-size: 14.5px; margin-top: 14px; line-height: 1.6; }
.case .case-bd b { color: var(--text-primary); font-weight: 500; display: block; margin-bottom: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.case .case-bd p + b { margin-top: 14px; }
.case-stats { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border-subtle); display: grid; gap: 14px; }
.case-stat { display: flex; align-items: baseline; gap: 12px; }
.case-stat .num { font-size: 22px; font-weight: 600; color: var(--brand-blue); min-width: 80px; }
.case-stat .lbl { font-size: 13px; color: var(--text-secondary); }

/* Built-on grid */
.built-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--border-subtle); border-left: 1px solid var(--border-subtle); }
.built-cell {
  padding: 36px 28px;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.built-cell .name { font-size: 16px; font-weight: 600; }
.built-cell .role { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.built-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-subtle);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--text-primary);
}

/* Why card */
.why-card { padding: 28px; }
.why-card .ico-box {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--bg-subtle); color: var(--text-primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.why-card h3 { font-size: 18px; }
.why-card p { color: var(--text-secondary); font-size: 14.5px; margin-top: 10px; }
.why-card .tag {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* Final CTA */
.final-cta {
  /* base styles — background handled by .section-blue modifier */
}
.final-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 32px;
}
.testimonial q {
  display: block;
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.5;
  letter-spacing: -0.01em;
  quotes: none;
}
.testimonial q::before, .testimonial q::after { content: ''; }
.testimonial .who {
  margin-top: 20px;
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
}
.section-blue .testimonial { border-color: rgba(255,255,255,0.10); }
.avatar-mono {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--text-primary);
  font-size: 14px;
}

/* Footer (on blue) */
footer {
  background: var(--bg-section-blue);
  color: var(--text-on-blue);
  padding: 80px 0 32px;
}
footer .brand { color: #fff; }
/* logo PNG already carries its own blue badge — no inversion needed in footer */
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.foot-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-on-blue-muted); font-weight: 500; }
.foot-col ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.foot-col a { color: var(--text-on-blue-muted); font-size: 14px; transition: color 150ms var(--ease); }
.foot-col a:hover { color: #fff; }
.foot-bottom {
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.18);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-on-blue-muted);
}
.foot-social { display: flex; gap: 16px; }
.foot-social a { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; transition: background 150ms var(--ease), color 150ms var(--ease); color: var(--text-on-blue-muted); }
.foot-social a:hover { background: rgba(255,255,255,0.10); color: #fff; }

/* Responsive */
@media (max-width: 980px) {
  :root { --pad-x: 24px; --pad-y: 80px; }
  .hero { padding-top: 120px; padding-bottom: 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 40px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .ind-panel { grid-template-columns: 1fr; gap: 32px; }
  .built-grid { grid-template-columns: repeat(2, 1fr); }
  .final-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
}
@media (min-width: 981px) and (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
