:root {
  --bg: #000000;
  --elev: #0c0a10;
  --card: #121018;
  --card-2: #1b1526;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f6f3ff;
  --muted: #b3a7c6;
  --faint: #7c7190;
  --purple: #8300c5;
  --purple-2: #9d22e6;
  --purple-soft: rgba(131, 0, 197, 0.18);
  --ink: #09070d;
  --radius: 22px;
  --wrap: 1120px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --display: "Bricolage Grotesque", "Outfit", system-ui, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}
button, input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}
:focus-visible { outline: 2px solid var(--purple-2); outline-offset: 3px; }

.abp-back {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}
.abp-back:hover,
.abp-back:focus-visible {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px var(--purple-soft), 0 0 24px rgba(131, 0, 197, 0.4);
  color: #fff;
}

.abp-wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.abp-hero { position: relative; overflow: hidden; padding: 108px 0 36px; }
.abp-glow {
  position: absolute;
  width: 560px;
  height: 560px;
  right: -80px;
  top: -40px;
  background: radial-gradient(circle, rgba(131, 0, 197, 0.55), transparent 68%);
  pointer-events: none;
}
.abp-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.abp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
}
.abp-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--purple);
  box-shadow: 0 0 0 6px rgba(131, 0, 197, 0.16);
}
.abp-hero h1 { font-size: clamp(46px, 6vw, 78px); max-width: 12ch; }
.abp-hero h1 em { font-style: normal; color: var(--purple-2); }
.abp-lede { color: var(--muted); max-width: 42ch; margin: 18px 0 26px; }
.abp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.abp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
}
.abp-btn-primary { background: var(--purple); color: #fff; }
.abp-btn-primary:hover { background: var(--purple-2); }
.abp-btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.abp-btn-ghost:hover { border-color: var(--purple); }
.abp-hero-art { width: min(100%, 520px); height: auto; margin-left: auto; }

.abp-section { padding: 72px 0; }
.abp-kicker { color: var(--faint); letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; font-weight: 600; margin: 0 0 8px; }
.abp-section h2 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 22px; }
.abp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.abp-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-height: 210px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.abp-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(131, 0, 197, 0.16); }
.abp-card img { width: 42px; height: 42px; margin-bottom: 14px; }
.abp-card h3 { font-size: 22px; margin-bottom: 8px; }
.abp-card p { margin: 0; color: var(--muted); font-size: 15px; }

.abp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.abp-step {
  background: var(--elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.abp-step span { color: var(--purple-2); font-weight: 700; letter-spacing: 0.08em; }
.abp-step h3 { font-size: 26px; margin: 8px 0; }
.abp-step p { margin: 0; color: var(--muted); }

#arraybot-demo, #how-it-works { scroll-margin-top: 78px; }
.abp-demo { padding: 64px 0; }
.abp-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 28px;
  align-items: center;
}
.abp-demo h2 { margin-bottom: 10px; }
.abp-demo p { margin: 0 0 10px; color: var(--muted); max-width: 36ch; }
.abp-note { color: var(--faint) !important; font-size: 13px; margin: 0 !important; }
.abp-slot {
  width: 100%;
  max-width: 440px;
  height: 460px;
  min-height: 380px;
  margin-left: auto;
}

.abp-final {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 10px auto 28px;
  padding: 28px;
  border-radius: 28px;
  background: var(--purple);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.abp-final h2 { font-size: clamp(28px, 4vw, 42px); margin: 0; }
.abp-final .abp-btn { background: #000; color: #fff; }

.abp-copy {
  margin: 0;
  padding: 8px 16px 28px;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}
.abp-copy a:hover { color: #fff; }

@media (max-width: 900px) {
  .abp-hero-grid, .abp-grid, .abp-steps, .abp-demo-grid, .abp-final { grid-template-columns: 1fr; }
  .abp-final { flex-direction: column; align-items: flex-start; }
  .abp-hero-art, .abp-slot { margin-left: 0; }
  .abp-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .abp-wrap, .abp-final { width: calc(100% - 28px); }
  .abp-hero { padding-top: 88px; }
  .abp-grid, .abp-steps { grid-template-columns: 1fr; }
  .abp-slot { max-width: none; height: min(70vh, 560px); }
  .abp-back { top: 12px; left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .abp-card { transition: none; }
}
