:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --ink: #0b1020;
  --muted: #667085;
  --line: #e6e8ef;
  --blue: #4f46e5;
  --purple: #8b5cf6;
  --green: #10b981;
  --accent: #6d5dfc;
  --accent-2: #22d3ee;
  --shadow: 0 24px 60px rgba(17, 24, 39, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.background-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .45;
}

.orb.one { width: 420px; height: 420px; top: -80px; left: -80px; background: #c7d2fe; }
.orb.two { width: 460px; height: 460px; top: 120px; right: -120px; background: #bae6fd; }
.orb.three { width: 420px; height: 420px; bottom: -140px; left: 30%; background: #ddd6fe; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: .12em;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s;
}

.nav a:hover { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.primary, .outline, .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  box-shadow: 0 14px 30px rgba(109, 93, 252, .25);
}

.primary:hover { transform: translateY(-1px); box-shadow: 0 18px 34px rgba(109, 93, 252, .3); }

.outline {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}

.outline:hover { transform: translateY(-1px); }

.ghost {
  color: var(--muted);
  background: transparent;
}

.ghost:hover { color: var(--ink); }

.hero { padding: 84px 0 56px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items: center;
}

.pill {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  margin: 22px 0 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 800;
}

.gradient {
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.cta-row { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.metric-strip > div {
  padding: 16px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.7);
  text-align: center;
}

.metric-strip span {
  display: block;
  font-size: 20px;
  font-weight: 800;
}

.metric-strip small { color: var(--muted); font-size: 12px; }

.hero-visual { position: relative; }

.panel {
  padding: 26px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.panel-head strong { margin-right: auto; }
.panel-head small { color: var(--green); font-weight: 700; }

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .15);
}

.layer-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.layer-row strong { display: block; }
.layer-row p { margin: 0; color: var(--muted); font-size: 14px; }

.tile {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  flex: 0 0 auto;
}

.tile.blue { background: linear-gradient(135deg, #60a5fa, #4f46e5); }
.tile.purple { background: linear-gradient(135deg, #c4b5fd, #8b5cf6); }
.tile.green { background: linear-gradient(135deg, #6ee7b7, #10b981); }

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

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

.mini-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fafafc;
}

.mini-card small { color: var(--muted); font-size: 11px; }
.mini-card strong { display: block; margin: 4px 0 10px; font-size: 13px; }

.bar {
  height: 6px;
  border-radius: 999px;
  background: #eef0f6;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section { padding: 84px 0; }

.section.alt { background: #fff; border-block: 1px solid var(--line); }

.section-head {
  max-width: 660px;
  margin: 0 auto 44px;
  text-align: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h2 {
  margin: 14px 0 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.section-head p { color: var(--muted); font-size: 17px; }

.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0 0 34px;
}

.tab-btn {
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
}

.tab-btn:hover { color: var(--ink); transform: translateY(-1px); }

.tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(109, 93, 252, .22);
}

.tab-panels { position: relative; }

.tab-panel {
  display: none;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(17, 24, 39, .06);
}

.tab-panel.active { display: grid; }

.panel-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.panel-copy p { color: var(--muted); font-size: 17px; }

.panel-copy ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.panel-copy li {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(109, 93, 252, .08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.panel-visual {
  display: grid;
  gap: 12px;
}

.panel-visual .mini-card { padding: 18px; }

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

.card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, .04);
  transition: transform .25s, box-shadow .25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(17, 24, 39, .08);
}

.card h3 { margin: 18px 0 8px; font-size: 20px; }
.card p { color: var(--muted); font-size: 15px; }

.card ul {
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.card li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 14px;
  color: var(--ink);
}

.card li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.card.featured {
  background: linear-gradient(180deg, #ffffff, #f5f3ff);
  border-color: #ddd6fe;
  box-shadow: 0 30px 70px rgba(109, 93, 252, .16);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.proof-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #faf9ff);
  box-shadow: 0 14px 34px rgba(17, 24, 39, .05);
  transition: transform .25s, box-shadow .25s;
}

.proof-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(109, 93, 252, .12);
}

.proof-card span {
  display: block;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -.04em;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.proof-card h3 {
  margin: 10px 0 8px;
  font-size: 17px;
}

.proof-card p {
  color: var(--muted);
  font-size: 14px;
}

.proof-note {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.flow li { display: flex; padding: 0; }

.step-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  min-height: 128px;
  padding: 22px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: all .2s ease;
}

.step-btn span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.step-btn p { margin: 8px 0 0; font-size: 14px; font-weight: 700; }

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

.step-btn.active {
  background: linear-gradient(135deg, #6d5dfc, #7c3aed);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 40px rgba(109, 93, 252, .22);
}

.step-btn.active span { color: rgba(255,255,255,.75); }

.workflow-detail {
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.8);
  max-width: 100%;
  overflow: hidden;
}

.detail-card {
  padding: 26px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(17, 24, 39, .06);
  max-width: 100%;
}

.detail-step {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-title {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.detail-desc {
  color: var(--muted);
  font-size: 15px;
  max-width: 72ch;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.detail-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f2f3f8;
  color: var(--muted);
  font-size: 12px;
}

.layers { display: grid; gap: 12px; }

.layer {
  display: grid;
  grid-template-columns: 72px 1fr 1.3fr;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, .04);
}

.layer strong {
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
}

.layer h3 { margin: 0; font-size: 18px; }
.layer p { margin: 0; color: var(--muted); font-size: 14px; }

.cta { padding: 40px 0 84px; }

.cta-box {
  padding: 56px;
  border-radius: 32px;
  background: linear-gradient(135deg, #6d5dfc, #7c3aed);
  color: #fff;
  text-align: center;
  box-shadow: 0 30px 80px rgba(109, 93, 252, .25);
}

.cta-box h2 { margin: 0 0 12px; color: #fff; }
.cta-box p { color: rgba(255,255,255,.82); font-size: 17px; }
.cta-box .primary { background: #fff; color: #4c1d95; box-shadow: none; }
.cta-box .outline { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); }

.footer { padding: 34px 0; border-top: 1px solid var(--line); background: #fff; }

.footer-inner {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .card-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(4, 1fr); }
  .layer { grid-template-columns: 60px 1fr; }
  .layer p { grid-column: 1 / -1; }
  .nav { display: none; }
  .nav-actions { margin-left: auto; }
  .tab-panel { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 36px); }
  .hero { padding: 56px 0 44px; }
  .section { padding: 60px 0; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: 1fr; }
  .tabs { flex-wrap: wrap; }
  .tab-panel { padding: 22px; }
  .cta-box { padding: 34px 22px; }
  .footer-inner { flex-direction: column; gap: 6px; text-align: center; }
}
