:root {
  --bg: #ffffff;
  --surface: #f8f8f8;
  --text: #1a1a1a;
  --muted: #6a6a6a;
  --accent: #6b7cff;
  --border: #e0e0e0;
  --font: 'Inter', system-ui, -apple-system, 'SF Pro', sans-serif;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-size: 15px;
  font-weight: 700;
}

.logo-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a {
  padding: 6px 0;
  transition: color 0.2s ease;
}

/* Nav link underline animation */
.nav-links a {
  position: relative;
  padding-bottom: 6px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  transition: width 220ms cubic-bezier(.2,.8,.2,1);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid var(--accent);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  background: #7a88ff;
  border-color: #7a88ff;
  color: #ffffff;
}

.button:focus-visible {
  outline: none;
  box-shadow: 0 8px 30px rgba(107,124,255,0.12);
  border-color: #7a88ff;
}

.button:active {
  background: #5c6cf0;
  border-color: #5c6cf0;
}

.button-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
  transition: all 0.3s ease;
}

.button-outline:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.button.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.button.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button-outline:focus-visible,
.button.ghost:focus-visible {
  outline: none;
  box-shadow: 0 6px 20px rgba(107,124,255,0.08);
  border-color: var(--accent);
}

main {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

/* Hero animated background */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 48px;
  min-height: calc(76vh - 48px);
  overflow: hidden;
}

.hero-animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

/* Subtle blurred accent shapes behind the hero (very light, non-distracting) */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(40px);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  width: 420px;
  height: 420px;
  left: 8%;
  top: 10%;
  transform: translateZ(0);
  animation: floatSlow 12s ease-in-out infinite;
}

.hero::after {
  width: 320px;
  height: 320px;
  right: 6%;
  bottom: 6%;
  transform: translateZ(0);
  animation: floatSlow 14s ease-in-out infinite reverse;
}

@keyframes floatSlow {
  0% { transform: translateY(0) translateX(0) scale(1); opacity: 0.06; }
  50% { transform: translateY(-12px) translateX(6px) scale(1.02); opacity: 0.08; }
  100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.06; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after {
    animation: none !important;
    opacity: 0.06 !important;
  }
}

/* Data nodes - Fragmented data converging to center */
.data-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(107, 124, 255, 0.5);
}

/* Node 1 - Top Left */
.node-1 {
  animation: convergeToCenter 5s ease-in-out infinite;
  opacity: 0.6;
}

/* Node 2 - Top Right */
.node-2 {
  animation: convergeToCenter 5.5s ease-in-out infinite 0.3s;
  opacity: 0.6;
}

/* Node 3 - Bottom Left */
.node-3 {
  animation: convergeToCenter 5.2s ease-in-out infinite 0.6s;
  opacity: 0.6;
}

/* Node 4 - Bottom Right */
.node-4 {
  animation: convergeToCenter 5.3s ease-in-out infinite 0.9s;
  opacity: 0.6;
}

/* Core ITERANT Engine - Center */
.node-core {
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  animation: pulseUnify 2s ease-in-out infinite;
  opacity: 1;
  box-shadow: 0 0 25px rgba(107, 124, 255, 0.8), 0 0 40px rgba(107, 124, 255, 0.4);
}

@keyframes convergeToCenter {
  0% {
    /* Start positions - fragmented at edges */
    /* Node 1 starts at top-left */
  }
  0% { top: 8%; left: 8%; opacity: 0.4; }
  25% { top: 20%; left: 25%; opacity: 0.6; }
  50% { top: 40%; left: 45%; opacity: 0.7; }
  75% { top: 48%; left: 48%; opacity: 0.8; }
  100% { top: 50%; left: 50%; opacity: 0.9; }
}

.node-2 {
  animation: convergeToCenter2 5.5s ease-in-out infinite 0.3s;
}

@keyframes convergeToCenter2 {
  0% { top: 5%; right: 10%; opacity: 0.4; }
  25% { top: 20%; right: 25%; opacity: 0.6; }
  50% { top: 40%; right: 45%; opacity: 0.7; }
  75% { top: 48%; right: 48%; opacity: 0.8; }
  100% { top: 50%; right: 50%; opacity: 0.9; }
}

.node-3 {
  animation: convergeToCenter3 5.2s ease-in-out infinite 0.6s;
}

@keyframes convergeToCenter3 {
  0% { bottom: 8%; left: 10%; opacity: 0.4; }
  25% { bottom: 20%; left: 25%; opacity: 0.6; }
  50% { bottom: 40%; left: 45%; opacity: 0.7; }
  75% { bottom: 48%; left: 48%; opacity: 0.8; }
  100% { bottom: 50%; left: 50%; opacity: 0.9; }
}

.node-4 {
  animation: convergeToCenter4 5.3s ease-in-out infinite 0.9s;
}

@keyframes convergeToCenter4 {
  0% { bottom: 5%; right: 8%; opacity: 0.4; }
  25% { bottom: 20%; right: 25%; opacity: 0.6; }
  50% { bottom: 40%; right: 45%; opacity: 0.7; }
  75% { bottom: 48%; right: 48%; opacity: 0.8; }
  100% { bottom: 50%; right: 50%; opacity: 0.9; }
}

@keyframes pulseUnify {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 25px rgba(107, 124, 255, 0.8), 0 0 40px rgba(107, 124, 255, 0.4);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.4);
    box-shadow: 0 0 35px rgba(107, 124, 255, 1), 0 0 55px rgba(107, 124, 255, 0.6);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.hero-sub {
  max-width: 48ch;
  color: var(--muted);
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
}

/* Primary CTA micro-interaction */
.button {
  transition: transform 180ms ease, box-shadow 180ms ease, background 200ms ease;
}
.button:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(107,124,255,0.12);
}
.button:active { transform: translateY(-1px); }

.eyebrow {
  color: var(--muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
}

h1 {
  font-size: clamp(32px, 5.5vw, 48px);
  line-height: 1.12;
  max-width: 42ch;
}

h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 16px;
  line-height: 1.2;
}

h3 {
  font-size: clamp(24px, 2.5vw, 32px);
  margin-bottom: 10px;
}

h4 {
  font-size: 18px;
  margin-bottom: 6px;
}

.lede {
  color: #4a4a4a;
  font-size: 18px;
  margin-top: 4px;
  line-height: 1.6;
}

.muted {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.section {
  display: grid;
  place-items: center;
  text-align: left;
  gap: 28px;
  scroll-margin-top: 100px;
  width: 100%;
  padding: 80px 0;
  margin: 0 calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

/* Alternating section backgrounds */
.section:nth-of-type(even) {
  background: #f8f8f8;
}

.section:nth-of-type(odd) {
  background: #ffffff;
}

/* Exceptions for pre-styled sections */
.flow {
  background: #f3f3f3 !important;
}

.cta {
  background: #f3f3f3 !important;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.hero {
  background: #ffffff !important;
  padding: 32px 0 80px 0;
}

.narrow {
  max-width: 760px;
}

.stack-list {
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-weight: 500;
}

.problem-section {
  width: 100%;
}

.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  max-width: 1200px;
}

.problem-header {
  display: grid;
  gap: 20px;
  padding-top: 8px;
}

.problem-header h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.2;
}

.problem-list {
  list-style: none;
  display: grid;
  gap: 20px;
  color: var(--muted);
  font-weight: 400;
}

.problem-list li {
  padding: 22px 24px;
  border-left: 4px solid var(--accent);
  background: transparent;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 15px;
  line-height: 1.7;
}

.problem-list li:hover {
  border-left-color: var(--accent);
  background: rgba(107, 124, 255, 0.05);
  transform: translateX(6px);
}

.solution-section {
  width: 100%;
}

.solution-header {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
  max-width: 800px;
}

.solution-header h2 {
  margin-bottom: 0;
}

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  width: 100%;
}

.principle {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.principle-title {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.principle p {
  color: var(--muted);
}

.flow {
  width: 100%;
  border-block: 1px solid var(--border);
  padding: 80px 0;
  background: #f3f3f3;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.step {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  background: var(--surface);
}

.step-title {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.step p {
  color: var(--muted);
  font-size: 14px;
}

.architecture {
  width: 100%;
}

.architecture-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  width: 100%;
  margin-top: 20px;
}

.architecture-node {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  display: grid;
  gap: 8px;
  min-height: 120px;
  background: var(--surface);
}

.architecture-node.highlight {
  border-color: var(--accent);
  background: #f0f1ff;
}

.node-title {
  font-weight: 600;
  font-size: 16px;
}

.node-subtitle {
  color: var(--muted);
  font-size: 14px;
}

.architecture-connector {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 20px;
  padding: 0 6px;
}

.capability-list {
  list-style: none;
  display: grid;
  gap: 12px;
  padding: 0;
}

.capability-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.capability-list li:last-child {
  border-bottom: none;
}

.label {
  font-weight: 600;
}

.detail {
  color: var(--muted);
  margin-top: 4px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  width: 100%;
  margin-top: 12px;
}

.value-point {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.value-point p {
  color: var(--muted);
  font-size: 15px;
}

.cta {
  width: 100%;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 64px 0;
  background: #f3f3f3;
  display: grid;
  gap: 16px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  color: var(--muted);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 12px;
}

/* ===== ANIMATIONS ===== */

/* Fade-in animation for sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulsing glow for AI Engine node */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(107, 124, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(107, 124, 255, 0);
  }
}

/* Flowing arrow animation */
@keyframes flowArrow {
  0%, 100% {
    opacity: 0.5;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(3px);
  }
}

/* Subtle fade-in for hero content */
.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

/* Animate section content on view */
.section {
  animation: fadeInUp 0.8s ease-out;
}

/* Staggered section reveal delays for a gentle rhythm */
.section:nth-of-type(1) { animation-delay: 0s; }
.section:nth-of-type(2) { animation-delay: 0.06s; }
.section:nth-of-type(3) { animation-delay: 0.12s; }
.section:nth-of-type(4) { animation-delay: 0.18s; }
.section:nth-of-type(5) { animation-delay: 0.24s; }
.section:nth-of-type(6) { animation-delay: 0.30s; }
.section:nth-of-type(7) { animation-delay: 0.36s; }
.section:nth-of-type(8) { animation-delay: 0.42s; }

/* Pulse effect on AI Engine node */
.architecture-node.highlight {
  animation: pulseGlow 2.5s infinite;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .section,
  .architecture-node.highlight,
  .nav-links a::after {
    animation: none !important;
    transition: none !important;
  }
  .nav-links a::after { width: 100% !important; }
}

/* Flowing arrows */
.architecture-connector {
  animation: flowArrow 2s ease-in-out infinite;
}

/* Hover effect on architecture nodes */
.architecture-node {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.architecture-node:not(.highlight):hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Smooth hover for principle cards */
.principle {
  transition: all 0.3s ease;
}

.principle:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(107, 124, 255, 0.1);
}

/* Smooth hover for step cards */
.step {
  transition: all 0.3s ease;
}

.step:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* Smooth hover for value points */
.value-point {
  transition: all 0.3s ease;
}

.value-point:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(107, 124, 255, 0.1);
}

/* Smooth button transitions */
.button {
  transition: all 0.3s ease;
}

.button:hover {
  transform: translateY(-2px);
}

/* Enhanced header animation */
.site-header {
  animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth link transitions */
.nav-links a {
  transition: color 0.3s ease;
}

@media (max-width: 860px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    order: 3;
    flex-wrap: wrap;
  }

  main {
    gap: 90px;
  }

  .hero-actions {
    width: 100%;
  }

  .architecture-diagram {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .architecture-connector {
    transform: rotate(90deg);
    padding: 6px 0;
  }
}
/* ================================
   COMPACT PRODUCT SECTION
   ================================ */

.product-compact {
  padding-top: 48px;
  padding-bottom: 56px;
}

/* Layout */
.engine-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.engine-intro {
  margin-bottom: 14px;
}

/* Compact list */
.capability-list.compact {
  gap: 6px;
}

.capability-list.compact li {
  padding: 8px 0;
}

/* Analytics card */
.engine-chat {
  display: flex;
}

.chat-card {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Bubbles */
.chat-bubble {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 100%;
}

.chat-bubble.user {
  background: #f2f2f2;
}

.chat-bubble.ai {
  background: #f0f1ff;
  border: 1px solid rgba(107,124,255,0.3);
}

/* Analytics styles */
.ai-response-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
  margin-bottom: 10px;
}

.mini-chart .bar {
  width: 32px;
  background: #dcdfff;
  border-radius: 6px 6px 0 0;
  font-size: 11px;
  text-align: center;
  padding-top: 4px;
}

.mini-chart .bar.highlight {
  background: var(--accent);
  color: #fff;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 8px;
}

.mini-table th {
  text-align: left;
  color: var(--muted);
  padding-bottom: 4px;
}

.mini-table td {
  padding: 6px 0;
  border-top: 1px solid var(--border);
}

.positive {
  color: #2e7d32;
  font-weight: 600;
}

.ai-footnote {
  font-size: 12px;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 900px) {
  .engine-layout {
    grid-template-columns: 1fr;
  }
}
/* ================================
   LINEAGE VISUAL
   ================================ */

.lineage-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 12px;
}

.lineage-node {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  font-size: 12px;
  border-radius: 10px;
  background: #f5f5f5;
  border: 1px solid var(--border);
  color: #333;
}

.lineage-node.highlight {
  background: #f0f1ff;
  border-color: var(--accent);
  font-weight: 600;
}

.lineage-arrow {
  font-size: 14px;
  color: var(--muted);
  flex: 0 0 auto;
}
