/* =========
   InfinAI brand system
   ========= */

:root {
  --navy: #1B357A;
  --blue: #1076CB;
  --electric: #4AB9F8;
  --purple: #6930D3;
  --soft-purple: #8D85D6;
  --bg: #FDFDFD;
  --ink-soft: #4d5f8f;
  --line: rgba(27, 53, 122, 0.12);
  --panel: #ffffff;
  --panel-tint: linear-gradient(180deg, rgba(16,118,203,0.06) 0%, rgba(105,48,211,0.05) 100%);
  --hero-wash: radial-gradient(circle at top right, rgba(74,185,248,0.28), transparent 26%),
               radial-gradient(circle at left top, rgba(105,48,211,0.12), transparent 22%),
               linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
  --button-gradient: linear-gradient(135deg, #1076CB 0%, #6930D3 100%);
  --shadow-lg: 0 24px 80px rgba(27, 53, 122, 0.10);
  --shadow-md: 0 16px 48px rgba(27, 53, 122, 0.08);
  --shadow-sm: 0 8px 22px rgba(27, 53, 122, 0.07);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  overflow-x: clip;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(253, 253, 253, 0.88);
  border-bottom: 1px solid rgba(27, 53, 122, 0.08);
}

.nav-wrap {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-logo {
  height: 140px;
  width: auto;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
}

.site-nav a:not(.button) {
  color: var(--navy);
  opacity: 0.9;
}

.site-nav a:not(.button):hover {
  color: var(--purple);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  margin: 6px 0;
  background: var(--navy);
  border-radius: 99px;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  border: 1px solid transparent;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--button-gradient);
  color: white;
  box-shadow: 0 14px 28px rgba(105, 48, 211, 0.18);
}

.button-primary:hover {
  box-shadow: 0 18px 34px rgba(105, 48, 211, 0.24);
}

.button-secondary {
  background: white;
  color: var(--navy);
  border-color: rgba(27, 53, 122, 0.14);
  box-shadow: var(--shadow-sm);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  border-color: rgba(255,255,255,0.22);
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.button-large {
  min-height: 56px;
  padding: 0 26px;
}

/* Typography */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--purple);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--electric), var(--purple));
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--navy);
  font-weight: 600;
  max-width: 34ch;
}

.hero-body {
  max-width: 58ch;
}

/* Hero */

.hero,
.page-hero {
  position: relative;
  background: var(--hero-wash);
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -80px auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(74,185,248,0.16) 0%, rgba(74,185,248,0) 68%);
  pointer-events: none;
}

.hero-grid,
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 84px);
  padding: 62px 0 80px;
}

.hero-actions,
.inline-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero-points {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-points li {
  position: relative;
  padding-left: 28px;
  color: var(--navy);
  font-weight: 600;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--electric), var(--purple));
  box-shadow: 0 0 0 5px rgba(74,185,248,0.14);
}

/* Panels and cards */

.hero-panel {
  position: relative;
  min-height: 560px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.hero-card-main {
  padding: 18px;
  width: min(100%, 560px);
  margin-left: auto;
}

.chat-window {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(27, 53, 122, 0.08);
}

.chat-top {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(27, 53, 122, 0.08);
  background: rgba(255,255,255,0.9);
}

.chat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--electric), var(--purple));
}

.chat-body {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.message {
  width: fit-content;
  max-width: 84%;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 500;
  font-size: 0.96rem;
}

.message.user {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(16,118,203,0.12), rgba(105,48,211,0.16));
  color: var(--navy);
}

.message.bot {
  background: white;
  border: 1px solid rgba(27, 53, 122, 0.08);
  color: var(--navy);
}

.message.soft {
  color: var(--purple);
  font-weight: 700;
}

.stat-card {
  position: absolute;
  padding: 24px;
  width: 240px;
}

.stat-a {
  left: 2%;
  bottom: 14%;
}

.stat-b {
  right: -2%;
  bottom: 2%;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--purple);
}

.stat-label {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Sections */

.section {
  padding: 110px 0;
}

.section-tint {
  background: var(--panel-tint);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.card-grid {
  display: grid;
  gap: 22px;
}

.card-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.benefit-card,
.product-side-card,
.scenario-card,
.journey-card {
  background: var(--panel);
  border: 1px solid rgba(27, 53, 122, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.icon-badge {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16,118,203,0.14), rgba(105,48,211,0.18));
  color: var(--purple);
  font-weight: 800;
}

.split-panel {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: start;
}

.tick-list {
  margin: 26px 0 0;
  display: grid;
  gap: 14px;
}

.tick-list > div {
  position: relative;
  padding: 14px 18px 14px 48px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(27, 53, 122, 0.08);
  border-radius: 16px;
  color: var(--navy);
  font-weight: 600;
}

.tick-list > div::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--purple);
  font-weight: 800;
}

.mini-label {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--purple);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
}

.plain-list {
  margin: 0;
  padding-left: 18px;
  color: var(--navy);
}

.plain-list li {
  margin-bottom: 10px;
  font-weight: 600;
}

.compact {
  font-size: 0.98rem;
}

.emphasis {
  color: var(--navy);
  font-weight: 700;
}

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

.trust-strip {
  border-top: 1px solid rgba(27, 53, 122, 0.06);
  border-bottom: 1px solid rgba(27, 53, 122, 0.06);
  background: rgba(255,255,255,0.75);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 20px;
  padding: 22px 0;
}

.trust-item {
  text-align: center;
  font-weight: 700;
  color: var(--navy);
}

.cta-section {
  padding-top: 34px;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #1B357A 0%, #1076CB 52%, #6930D3 100%);
  color: white;
  box-shadow: var(--shadow-lg);
}

.cta-panel p,
.cta-panel h2,
.cta-panel .eyebrow {
  color: white;
}

.cta-panel .eyebrow::before {
  background: rgba(255,255,255,0.72);
}

/* Buddy page */

.page-hero-buddy {
  min-height: 72vh;
}

.journey-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(240,247,255,0.92));
}

.journey-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid rgba(27, 53, 122, 0.08);
  color: var(--navy);
  font-weight: 600;
}

.journey-step:first-of-type {
  border-top: 0;
}

.journey-step span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16,118,203,0.14), rgba(105,48,211,0.18));
  color: var(--purple);
  font-weight: 800;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  padding: 22px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(27, 53, 122, 0.08);
  border-radius: 18px;
}

.scenario-card h3 {
  margin-bottom: 16px;
}

/* Footer */

.site-footer {
  margin-top: 30px;
  border-top: 1px solid rgba(27, 53, 122, 0.08);
  background: white;
}

.footer-grid {
  padding: 48px 0 56px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.8fr;
  gap: 26px;
}

.footer-logo {
  height: 110px;
  width: auto;
  margin-bottom: 18px;
}

.footer-copy {
  max-width: 46ch;
}

.site-footer h4 {
  font-size: 1rem;
  margin-bottom: 14px;
}

.site-footer a,
.site-footer p {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-soft);
}

/* Responsive */

@media (max-width: 1080px) {
  .hero-grid,
  .page-hero-grid,
  .split-panel,
  .cta-panel,
  .footer-grid,
  .card-grid.three-up,
  .card-grid.two-up,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .page-hero-grid {
    min-height: unset;
    padding: 52px 0 74px;
  }

  .hero-panel {
    min-height: auto;
  }

  .hero-card-main,
  .stat-card {
    position: static;
    width: 100%;
    margin: 0 0 18px;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(27,53,122,0.08);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a:not(.button) {
    padding: 10px 8px;
  }


  .section {
    padding: 82px 0;
  }

  .cta-panel {
    padding: 28px;
  }

  .hero-actions,
  .inline-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .button-large {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .nav-wrap {
    min-height: 74px;
  }

  h1 {
    max-width: 100%;
  }

  .feature-card,
  .benefit-card,
  .product-side-card,
  .scenario-card,
  .journey-card,
  .timeline-item {
    padding: 22px;
  }

  .message {
    max-width: 92%;
  }
}

/* Brand */

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand img {
  height: 140px;
}

.brand-text {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: #1B357A;
}

/* Metrics */

.metrics {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 56px 0;
  background: linear-gradient(180deg, rgba(16,118,203,0.04) 0%, rgba(105,48,211,0.03) 100%);
  border-top: 1px solid rgba(27, 53, 122, 0.08);
  border-bottom: 1px solid rgba(27, 53, 122, 0.08);
}

.metric {
  text-align: center;
  padding: 22px 18px;
}

.metric h2 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  color: #1B357A;
}

.metric p {
  margin: 0 auto;
  max-width: 26ch;
  font-size: 1rem;
  color: #4d5f8f;
}

@media (max-width: 860px) {
  .metrics {
    grid-template-columns: 1fr;
    padding: 36px 0;
  }

  .brand img {
    height: 96px;
  }

  .brand-text {
    font-size: 30px;
  }
}
