:root {
  --bg: #f6f9fc;
  --bg-elevated: #eef4fb;
  --card: #ffffff;
  --card-hover: #ffffff;
  --border: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --text-muted: #55617a;
  --text-faint: #8592ac;
  --cyan: #06b6d4;
  --blue: #1d4ed8;
  --yellow: #eab308;
  --yellow-bright: #facc15;
  --accent: #06b6d4;
  --accent-2: #1d4ed8;
  --accent-3: #eab308;
  --accent-text: #1d4ed8;
  --gradient: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  --gradient-2: linear-gradient(135deg, var(--blue) 0%, var(--yellow) 100%);
  --gradient-3: linear-gradient(135deg, var(--yellow) 0%, var(--cyan) 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", var(--font);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1100px 620px at 8% -10%, rgba(6, 182, 212, 0.14), transparent 60%),
    radial-gradient(950px 620px at 92% 4%, rgba(234, 179, 8, 0.22), transparent 62%),
    radial-gradient(1000px 700px at 50% 105%, rgba(29, 78, 216, 0.14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

.brand-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--blue) 45%, var(--yellow) 100%);
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  background-image:
    linear-gradient(rgba(15,23,42,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 { font-family: var(--font-display); }

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }

/* Header */
.site-header {
  position: sticky;
  top: 3px;
  z-index: 50;
  background: rgba(246, 249, 252, 0.75);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.02rem;
  font-family: var(--font-display);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--gradient);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 0 0 1px rgba(15,23,42,0.04), 0 6px 16px -4px rgba(29, 78, 216, 0.5);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
  position: relative;
}

.main-nav a[data-nav]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transition: right 0.25s var(--ease);
}

.main-nav a:hover { color: var(--text); }
.main-nav a[data-nav].active { color: var(--text); }
.main-nav a[data-nav].active::after,
.main-nav a[data-nav]:hover::after { right: 0; }

.nav-cta {
  color: #ffffff !important;
  background: var(--gradient);
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 8px 20px -8px rgba(29, 78, 216, 0.55);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.nav-cta:hover { filter: brightness(1.06); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  position: relative;
  padding: 120px 0 96px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-1 {
  width: 480px;
  height: 480px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.22), transparent 70%);
}

.hero-glow-2 {
  width: 420px;
  height: 420px;
  top: -60px;
  right: -160px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.24), transparent 70%);
}

.hero-glow-3 {
  width: 460px;
  height: 460px;
  top: 180px;
  left: 38%;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.3), transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  color: var(--accent-text);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.08);
}

.hero h1 {
  font-size: clamp(2.2rem, 3.6vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  position: relative;
  background-image: linear-gradient(120deg, rgba(234, 179, 8, 0.55) 0%, rgba(234, 179, 8, 0.55) 100%);
  background-repeat: no-repeat;
  background-size: 100% 0.4em;
  background-position: 0 88%;
  padding: 0 2px;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin: 0 0 34px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), filter 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}

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

.btn-primary {
  background: var(--gradient);
  color: #ffffff;
  box-shadow: 0 14px 30px -10px rgba(29, 78, 216, 0.4);
}

.btn-primary:hover { filter: brightness(1.06); }

.btn-ghost {
  background: rgba(255,255,255,0.6);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover { border-color: var(--blue); background: rgba(29, 78, 216, 0.06); }

.hero-stats {
  display: flex;
  gap: 36px;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-stats > div { display: flex; flex-direction: column; gap: 4px; }

.hero-stats dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0;
}

.hero-stats dd {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.8rem;
}

/* Hero visual mockup */
.hero-visual { position: relative; z-index: 1; }

.mock-window {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15,23,42,0.02) inset;
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
}

.mock-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  background: rgba(15,23,42,0.02);
  border-bottom: 1px solid var(--border);
}

.mock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(15,23,42,0.14);
}

.mock-window-title {
  margin-left: 8px;
  font-size: 0.75rem;
  color: var(--text-faint);
  font-family: var(--font-display);
}

.mock-window-body { padding: 22px; }

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.mock-kpi {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-kpi-label { font-size: 0.68rem; color: var(--text-faint); }
.mock-kpi-value { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--text); }
.mock-kpi-trend { font-size: 0.7rem; font-weight: 600; }
.mock-kpi-trend.up { color: var(--blue); }
.mock-kpi-trend.down { color: #b45309; }

.mock-chart-row {
  position: relative;
  height: 110px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-end;
}

.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  height: 100%;
}

.mock-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
  animation: grow-bar 1s var(--ease) both;
}

@keyframes grow-bar {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}

.mock-line {
  position: absolute;
  inset: 14px 16px;
  width: calc(100% - 32px);
  height: calc(100% - 28px);
}

.mock-line polyline {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(29, 78, 216, 0.35));
}

.mock-brain-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(234, 179, 8, 0.16);
  border: 1px solid rgba(234, 179, 8, 0.4);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mock-brain-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow-bright);
  box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.3);
  flex-shrink: 0;
}

/* Sections */
.section { padding: 100px 0; position: relative; }

.section-title {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin: 0 0 52px;
  max-width: 620px;
}

/* Pillars */
.pillars { background: var(--bg-elevated); }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.pillar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: border-color 0.25s ease, transform 0.25s var(--ease), background 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card:hover {
  border-color: var(--border-strong);
  background: var(--card-hover);
  transform: translateY(-4px);
  box-shadow: 0 24px 44px -24px rgba(15, 23, 42, 0.22);
}

.pillar-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: #ffffff;
}

.pillar-icon svg { width: 22px; height: 22px; }

.icon-teal { background: var(--gradient); box-shadow: 0 10px 24px -10px rgba(6, 182, 212, 0.5); }
.icon-violet { background: var(--gradient-2); box-shadow: 0 10px 24px -10px rgba(29, 78, 216, 0.5); }
.icon-pink { background: var(--gradient-3); box-shadow: 0 10px 24px -10px rgba(234, 179, 8, 0.5); }

.pillar-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: 600;
}

.pillar-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong) 15%, var(--border-strong) 85%, transparent);
}

.step { position: relative; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border-strong);
  color: var(--accent-text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Use cases */
.use-cases { background: var(--bg-elevated); }

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.use-case {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
  transition: border-color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.use-case:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: 0 18px 36px -22px rgba(15,23,42,0.2); }

.use-case-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 14px;
}

.dot-teal { background: var(--cyan); box-shadow: 0 0 10px rgba(6,182,212,0.55); }
.dot-violet { background: var(--blue); box-shadow: 0 0 10px rgba(37,99,235,0.55); }
.dot-pink { background: var(--yellow); box-shadow: 0 0 10px rgba(234,179,8,0.55); }

.use-case h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.use-case p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* About */
.about-inner { max-width: 760px; }
.about .section-sub { margin-bottom: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-info .section-sub { margin-bottom: 28px; }

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid rgba(29, 78, 216, 0.35);
  padding-bottom: 2px;
}

.contact-email:hover { border-color: var(--blue); }

.calendar-embed {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -34px rgba(15, 23, 42, 0.25);
}

.calendar-embed iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.footer-logo { font-size: 0.92rem; }
.footer-logo .logo-mark { width: 26px; height: 26px; font-size: 0.68rem; }

.footer-copy { color: var(--text-faint); }

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .mock-window { transform: none; }
  .pillar-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .steps::before { display: none; }
  .use-case-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .steps { grid-template-columns: 1fr; }
  .use-case-grid { grid-template-columns: 1fr; }
  .mock-kpis { grid-template-columns: 1fr; }
  .hero { padding: 88px 0 64px; }
  .section { padding: 72px 0; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .calendar-embed iframe { height: 560px; }
}
