@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  color-scheme: dark;
  --bg: #09090b;
  --fg: #fafafa;
  --fg-strong: #ffffff;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --border: #27272a;
  --border-2: #3f3f46;
  --border-strong: #ffffff;
  --card-bg: #131316;
  --panel: rgba(19, 19, 22, 0.7);
  --panel-2: rgba(19, 19, 22, 0.9);
  --shadow: rgba(255, 255, 255, 0.06);
  --focus: rgba(255, 255, 255, 0.65);
  --accent-bg: #18181b;
  --radius: 10px;
  --container: 1280px;
  --nav-h: 80px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--fg);
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  line-height: 1.55;
  font-size: 14px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 9999;
}

::selection {
  background: #ffffff;
  color: #000000;
}

/* Mono font for brand/technical elements */
.h1,
.h2,
.h3,
.section-title,
.badge,
.btn,
.site-nav-links a,
.site-login,
.nav a,
.card-title,
.plan-kicker,
.plan-name,
.plan-price,
.step-num,
.step-title,
.wireframe-title,
.wireframe-status,
.wireframe-item,
.kpi-label,
.kpi-value,
.kpi-sub,
.chip,
.flow-node,
.terminal-line {
  font-family: var(--font-mono);
}

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

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(var(--container), calc(100% - 2 * var(--space-4)));
  margin: 0 auto;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.row {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.space-between {
  justify-content: space-between;
}

.muted {
  color: var(--muted);
}

.muted-2 {
  color: var(--muted-2);
}

.small {
  font-size: 12px;
}

.xs {
  font-size: 10px;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wide {
  letter-spacing: 0.18em;
}

.tracking-tight {
  letter-spacing: -0.02em;
}

.page {
  min-height: 100%;
  padding-bottom: var(--space-7);
  padding-top: var(--nav-h);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  user-select: none;
}

.brand-box {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border: 1px solid #ffffff;
  display: grid;
  place-items: center;
}

.brand-initial {
  color: #000000;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}

.brand-logo {
  height: 18px;
  width: auto;
  display: block;
}

.site-nav-links {
  display: none;
  align-items: center;
  gap: var(--space-5);
}

.site-nav-links a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-decoration: none;
}

.site-nav-links a:hover {
  color: var(--fg-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-nav-links a[aria-current="page"] {
  color: var(--fg-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-login {
  display: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-decoration: none;
}

.site-login:hover {
  color: var(--fg-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.btn-tilt:hover {
  transform: translate(4px, -4px);
}

.hero-landing {
  padding: 48px 0 80px;
}

.hero-center {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-center .lead {
  max-width: 42rem;
  border-left: 2px solid var(--border);
  padding-left: 16px;
  text-align: left;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  width: 100%;
  margin-top: 40px;
}

.hero-actions .btn {
  width: 100%;
  justify-content: center;
}

.hero-wireframe {
  margin-top: 80px;
  position: relative;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 4px;
  border-radius: var(--radius);
}

.hero-wireframe::before,
.hero-wireframe::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--border-strong);
}

.hero-wireframe::before {
  top: -12px;
  left: -12px;
  border-top: 1px solid var(--border-strong);
  border-left: 1px solid var(--border-strong);
}

.hero-wireframe::after {
  bottom: -12px;
  right: -12px;
  border-bottom: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
}

.wireframe-window {
  border: 1px solid var(--border);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.wireframe-top {
  height: 40px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(24, 24, 27, 0.4);
}

.wireframe-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.window-dots {
  display: flex;
  gap: 8px;
}

.window-dot {
  width: 12px;
  height: 12px;
  border: 1px solid var(--border-2);
  background: transparent;
}

.window-dot.is-on {
  background: #ffffff;
  border-color: #ffffff;
}

.wireframe-title {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.wireframe-status {
  font-size: 12px;
  color: var(--fg-strong);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wireframe-body {
  flex: 1;
  min-height: 0;
  display: flex;
}

.wireframe-side {
  width: 256px;
  display: none;
  flex-direction: column;
  border-right: 1px solid var(--border);
}

.wireframe-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(39, 39, 42, 0.7);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  text-decoration: none;
}

.wireframe-item:hover {
  background: rgba(24, 24, 27, 0.7);
  color: var(--fg-strong);
}

.wireframe-item.is-active {
  background: #ffffff;
  color: #000000;
}

.wireframe-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.wireframe-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}

.wireframe-kpi {
  padding: 24px;
  border-right: 1px solid var(--border);
}

.wireframe-kpi:last-child {
  border-right: 0;
}

.wireframe-kpi .kpi-value {
  font-size: 30px;
}

.wireframe-content {
  flex: 1;
  padding: 24px;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
    width: auto;
  }

  .hero-actions .btn {
    width: auto;
  }
}

@media (min-width: 768px) {
  .site-nav-links {
    display: flex;
  }

  .site-login {
    display: block;
  }

  .hero-center .lead {
    border-left: 0;
    padding-left: 0;
    text-align: center;
  }

  .wireframe-side {
    display: flex;
  }
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  font-weight: 700;
}

.brand-name {
  font-weight: 700;
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-decoration: none;
}

.nav a:hover {
  color: var(--fg-strong);
  text-decoration: underline;
}

.nav a[aria-current="page"] {
  color: var(--fg-strong);
  text-decoration: underline;
}

.nav-actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.btn {
  appearance: none;
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--fg);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease,
    background-color 120ms ease, color 120ms ease;
}

.btn:hover {
  border-color: var(--border-strong);
  transform: translate(1px, -1px);
}

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.btn-primary:hover {
  background: #000000;
  color: #ffffff;
}

.btn-link {
  border-color: transparent;
  padding-inline: 10px;
  color: var(--muted-2);
}

.btn-link:hover {
  border-color: transparent;
  color: var(--fg-strong);
  transform: none;
  text-decoration: underline;
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--border);
  padding: var(--space-3) 0 var(--space-4);
}

.mobile-panel a {
  display: block;
  padding: 12px 0;
  color: var(--muted-2);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
}

.mobile-panel a[aria-current="page"] {
  color: var(--fg-strong);
  text-decoration: underline;
}

.hero {
  padding: var(--space-7) 0 var(--space-6);
  position: relative;
  overflow: hidden;
}

.dither {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#ffffff 1px, transparent 0);
  background-size: 3px 3px;
  opacity: 0.1;
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 6px;
}

.badge-dot {
  width: 9px;
  height: 9px;
  background: #ffffff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-6);
  align-items: start;
}

.h1 {
  margin: 0;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fg-strong);
}

.h3 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--fg-strong);
  line-height: 1.1;
}

.lead {
  margin: var(--space-4) 0 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 58ch;
}

.callouts {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}

.panel {
  border: 1px solid var(--border);
  background: var(--card-bg);
  padding: 14px;
  position: relative;
  border-radius: var(--radius);
}

.panel-corners::before,
.panel-corners::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--border-strong);
}

.panel-corners::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--border-strong);
  border-left: 1px solid var(--border-strong);
}

.panel-corners::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
}

.terminal {
  border: 1px solid var(--border);
  background: var(--bg);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
}

.terminal-top {
  height: 44px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-3);
  background: rgba(24, 24, 27, 0.4);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border: 1px solid var(--border-2);
}

.terminal-dot.is-on {
  background: #ffffff;
  border-color: #ffffff;
}

.terminal-title {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.terminal-body {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 0;
  flex: 1;
}

.terminal-nav {
  border-right: 1px solid var(--border);
  padding: 0;
}

.terminal-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(39, 39, 42, 0.7);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  text-decoration: none;
}

.terminal-nav a.is-active {
  background: rgba(24, 24, 27, 0.7);
  color: var(--fg-strong);
}

.terminal-content {
  padding: var(--space-4);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: var(--space-4);
  min-height: 0;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
}

.kpi {
  padding: var(--space-3);
  border-right: 1px solid var(--border);
}

.kpi:last-child {
  border-right: 0;
}

.kpi-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.kpi-value {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg-strong);
}

.kpi-sub {
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  --torch-x: -9999px;
  --torch-y: -9999px;
  mask-image: radial-gradient(
      circle 220px at var(--torch-x) var(--torch-y),
      black 0%,
      transparent 100%
    ),
    linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: radial-gradient(
      circle 220px at var(--torch-x) var(--torch-y),
      black 0%,
      transparent 100%
    ),
    linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-composite: add;
  -webkit-mask-composite: source-over;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
  --torch-x: -9999px;
  --torch-y: -9999px;
  mask-image: radial-gradient(
      circle 220px at var(--torch-x) var(--torch-y),
      black 0%,
      transparent 100%
    ),
    linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: radial-gradient(
      circle 220px at var(--torch-x) var(--torch-y),
      black 0%,
      transparent 100%
    ),
    linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-composite: add;
  -webkit-mask-composite: source-over;
}

.card {
  border: 1px solid var(--border);
  background: var(--card-bg);
  padding: var(--space-4);
  border-radius: var(--radius);
}

.card strong {
  color: var(--fg-strong);
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--fg-strong);
}

.card-body {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.section {
  padding: var(--space-6) 0;
  border-top: none;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to bottom, var(--bg), transparent);
  pointer-events: none;
  z-index: 2;
}

.section::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
  z-index: 2;
}

.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.section-title {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--fg-strong);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-4) 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.step {
  border: 1px solid var(--border);
  background: var(--card-bg);
  padding: var(--space-3);
  border-radius: var(--radius);
}

.step-num {
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.step-title {
  margin-top: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--fg-strong);
}

.step-body {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.pricing {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.plan {
  padding: var(--space-4);
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-height: 340px;
  position: relative;
  overflow: visible;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.plan:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(255, 255, 255, 0.04);
  border-color: var(--border-2);
}

.plan.is-recommended:hover {
  border-color: var(--fg-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(255, 255, 255, 0.08);
}

.plan.is-recommended {
  border-color: var(--fg-strong);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.plan-banner {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: var(--fg-strong);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.plan.is-custom {
  border-style: dashed;
}

.plan-kicker {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 700;
}

.plan-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.plan-price {
  font-size: 34px;
  font-weight: 700;
}

.plan-price small {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--fg);
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1;
  color: var(--fg-strong);
}

.plan-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: var(--accent-bg);
  color: var(--muted);
}

.plan.is-recommended .plan-icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--fg-strong);
}

.plan-limits {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
}

.plan-limits-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-limits-row + .plan-limits-row {
  margin-top: 8px;
}

.plan-limits-label {
  color: var(--muted);
}

.plan-limits-value {
  font-weight: 600;
  color: var(--fg-strong);
  font-family: var(--font-mono);
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.plan-feature-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-feature-row .check {
  font-size: 13px;
}

.plan-feature-row .label {
  color: var(--muted);
  flex: 1;
}

.plan-feature-row .value {
  font-weight: 600;
  color: var(--fg-strong);
  font-family: var(--font-mono);
}

.plan-savings {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* Billing toggle */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  background: var(--bg);
  gap: 0;
}

.billing-toggle-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.billing-toggle-btn.is-active {
  background: var(--fg-strong);
  color: var(--bg);
}

.billing-toggle-badge {
  font-size: 9px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.billing-toggle-btn.is-active .billing-toggle-badge {
  border-color: rgba(30, 30, 30, 0.3);
}

.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-6) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: var(--space-5);
}

.footer a {
  color: var(--muted-2);
}

.footer a:hover {
  color: var(--fg-strong);
}

.iframe-wrap {
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.92);
  height: min(78vh, 900px);
}

.iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000000;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .terminal-body {
    grid-template-columns: 1fr;
  }

  .terminal-nav {
    display: none;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .pricing {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .hamburger {
    display: grid;
  }

  .topbar.is-open .mobile-panel {
    display: block;
  }
}

/* ============================================================
   LANDING PAGE REBUILD — Template Showcase, Feature Sections,
   Animations, Scroll Reveal
   ============================================================ */

/* --- Technical Border (metrics bar) --- */
.technical-border {
  border: 1px solid var(--border-strong);
  position: relative;
}

.technical-border::before,
.technical-border::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
}

.technical-border::before {
  top: -8px;
  left: -8px;
  border-top: 1px solid var(--border-strong);
  border-left: 1px solid var(--border-strong);
}

.technical-border::after {
  bottom: -8px;
  right: -8px;
  border-bottom: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
}

/* --- Hero Split Layout --- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-copy .lead {
  text-align: left;
}

/* --- Template Showcase (scrolling columns) --- */
.showcase {
  position: relative;
  overflow: hidden;
  height: 560px;
  mask-image: linear-gradient(transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.showcase-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  height: 100%;
}

.showcase-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  will-change: transform;
}

.showcase-col--up {
  animation: scroll-up 30s linear infinite;
}

.showcase-col--down {
  animation: scroll-down 30s linear infinite;
}

@keyframes scroll-up {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

@keyframes scroll-down {
  from {
    transform: translateY(-50%);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-col--up,
  .showcase-col--down {
    animation: none;
  }

  .reveal,
  .reveal .card,
  .reveal .plan,
  .reveal .feature-text .h2,
  .reveal .feature-text .lead,
  .reveal .feature-checklist li,
  .reveal .section-heading .h2,
  .reveal .section-heading .lead,
  .reveal .feature-visual,
  .reveal [data-stagger] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    transition: none !important;
  }
}

/* --- Template Card Placeholders --- */
.tpl-card {
  border: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.85);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

/* --- Template Image Cards --- */
.tpl-img-card {
  border: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.85);
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 6px;
}

.tpl-img-card picture {
  width: 100%;
  display: block;
}

.tpl-img-card img {
  width: 100%;
  display: block;
  height: auto;
}

.tpl-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.tpl-logo {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-2);
  flex-shrink: 0;
}

.tpl-nav-lines {
  display: flex;
  gap: 8px;
  flex: 1;
}

.tpl-nav-line {
  height: 6px;
  background: var(--border);
  flex: 1;
  max-width: 40px;
}

.tpl-hero-img {
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(63, 63, 70, 0.5),
    rgba(39, 39, 42, 0.3)
  );
  border: 1px solid var(--border);
}

.tpl-text-line {
  height: 6px;
  background: var(--border);
  border-radius: 1px;
}

.tpl-text-line--short {
  width: 40%;
}
.tpl-text-line--medium {
  width: 65%;
}
.tpl-text-line--long {
  width: 85%;
}
.tpl-text-line--full {
  width: 100%;
}

.tpl-text-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tpl-button {
  display: inline-block;
  width: 90px;
  height: 24px;
  border: 1px solid var(--border-2);
  background: transparent;
}

.tpl-button--filled {
  background: var(--border-2);
}

.tpl-divider {
  height: 1px;
  background: var(--border);
}

.tpl-footer {
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tpl-footer .tpl-text-line {
  height: 4px;
  opacity: 0.6;
}

.tpl-badge {
  display: inline-block;
  width: 50px;
  height: 16px;
  border: 1px solid var(--border-2);
  background: rgba(63, 63, 70, 0.3);
}

.tpl-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tpl-icon-row {
  display: flex;
  gap: 8px;
}

.tpl-icon {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-2);
}

.tpl-price {
  height: 18px;
  width: 60px;
  background: var(--border);
}

.tpl-stars {
  display: flex;
  gap: 3px;
}

.tpl-star {
  width: 8px;
  height: 8px;
  background: var(--border-2);
}

.tpl-alert-bar {
  height: 28px;
  background: rgba(63, 63, 70, 0.4);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.tpl-alert-bar .tpl-text-line {
  height: 6px;
}

/* --- Feature Split Layouts --- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.feature-split--reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.feature-split--reverse .feature-text {
  order: 2;
}

.feature-split--reverse .feature-visual {
  order: 1;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-text .h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--fg-strong);
  line-height: 1.1;
}

.feature-text .lead {
  margin: 0;
  border-left: 0;
  padding-left: 0;
}

.feature-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--fg);
  line-height: 1.4;
}

.feature-checklist .check {
  flex-shrink: 0;
}

/* --- Chat Animation (AI section) --- */
.chat-messages {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.chat-msg {
  display: flex;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  max-width: 90%;
}

.chat-msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg--ai {
  align-self: flex-start;
}

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.chat-avatar--user {
  background: var(--fg-strong);
  color: var(--bg);
}

.chat-avatar--ai {
  background: var(--accent-bg);
  color: var(--fg-strong);
}

.chat-bubble {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 12px;
}

.chat-msg--user .chat-bubble {
  background: var(--fg-strong);
  color: var(--bg);
  border-bottom-right-radius: 4px;
}

.chat-msg--ai .chat-bubble {
  background: var(--accent-bg);
  color: var(--fg);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

[data-terminal-anim].is-animating .chat-msg {
  animation: chat-fade-in 0.4s ease forwards;
}

[data-terminal-anim].is-animating .chat-msg:nth-child(1) {
  animation-delay: 0.2s;
}
[data-terminal-anim].is-animating .chat-msg:nth-child(2) {
  animation-delay: 0.7s;
}
[data-terminal-anim].is-animating .chat-msg:nth-child(3) {
  animation-delay: 1.2s;
}
[data-terminal-anim].is-animating .chat-msg:nth-child(4) {
  animation-delay: 1.7s;
}
[data-terminal-anim].is-animating .chat-msg:nth-child(5) {
  animation-delay: 2.2s;
}
[data-terminal-anim].is-animating .chat-msg:nth-child(6) {
  animation-delay: 2.7s;
}

@keyframes chat-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Video Placeholder (AI section) --- */
.video-placeholder {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  overflow: hidden;
  position: relative;
}

.video-placeholder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.video-placeholder .placeholder-label {
  color: var(--muted-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: var(--font-mono);
}

/* --- Image Placeholder (Template Builder section) --- */
.editor-image-placeholder {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  overflow: hidden;
  position: relative;
}

.editor-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.editor-image-placeholder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.editor-image-placeholder .placeholder-label {
  color: var(--muted-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: var(--font-mono);
}

/* --- Angled Showcase (Product Catalog section) --- */
.angled-showcase {
  position: relative;
  overflow: hidden;
  height: 480px;
  border-radius: var(--radius);
  mask-image: radial-gradient(
    ellipse 80% 70% at center,
    black 40%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 80% 70% at center,
    black 40%,
    transparent 100%
  );
}

.angled-showcase-inner {
  transform: rotate(-15deg) scale(1.4);
  transform-origin: center center;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  height: 100%;
}

.angled-showcase-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  will-change: transform;
}

.angled-showcase-col--up {
  animation: scroll-up 25s linear infinite;
}

.angled-showcase-col--down {
  animation: scroll-down 25s linear infinite;
}

.angled-showcase .tpl-card {
  transform: scale(0.85);
  transform-origin: top center;
}

.angled-showcase .tpl-img-card {
  transform: scale(0.85);
  transform-origin: top center;
}

@media (prefers-reduced-motion: reduce) {
  .angled-showcase-col--up,
  .angled-showcase-col--down {
    animation: none;
  }
}

/* --- Wireframe Mini Editor (Template Builder section) --- */
.wireframe-editor {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 320px;
}

.wireframe-editor .wireframe-side {
  display: flex;
  width: auto;
}

.wireframe-editor-canvas {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid var(--border);
}

.wireframe-toolbar {
  display: flex;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.wireframe-toolbar-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border-2);
  background: transparent;
}

.wireframe-toolbar-btn.is-on {
  background: var(--border-2);
}

/* --- Brand Kit Cards --- */
.swatch-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.swatch {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
}

/* --- Integration Chips --- */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-3);
}

.chip {
  padding: 6px 12px;
  border: 1px solid var(--border-2);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* --- Flow Diagram (Campaigns section) --- */
.flow-diagram {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-3);
  flex-wrap: wrap;
}

.flow-node {
  padding: 8px 14px;
  border: 1px solid var(--border-2);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: rgba(9, 9, 11, 0.8);
}

.flow-arrow {
  color: var(--border-2);
  font-size: 14px;
}

/* --- Section Heading Utility --- */
.section-heading {
  text-align: center;
  margin-bottom: var(--space-5);
}

.section-heading .h2 {
  margin: 0 0 var(--space-2);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--fg-strong);
  line-height: 1.1;
}

.section-heading .lead {
  margin: 0 auto;
  text-align: center;
  border-left: 0;
  padding-left: 0;
}

/* --- CTA Section --- */
.cta-box {
  text-align: center;
  padding: var(--space-6);
  border: 1px solid var(--border);
  background: var(--card-bg);
  position: relative;
  border-radius: var(--radius);
}

.cta-box .h2 {
  margin: 0 0 var(--space-2);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--fg-strong);
  line-height: 1.1;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  flex-wrap: wrap;
}

/* --- Scroll Reveal — base --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Reveal variants (applied via data-reveal attribute) --- */

/* Slide from left */
.reveal[data-reveal="left"] {
  transform: translateX(-60px);
}
.reveal[data-reveal="left"].is-visible {
  transform: translateX(0);
}

/* Slide from right */
.reveal[data-reveal="right"] {
  transform: translateX(60px);
}
.reveal[data-reveal="right"].is-visible {
  transform: translateX(0);
}

/* Scale up from small */
.reveal[data-reveal="scale"] {
  transform: scale(0.85);
}
.reveal[data-reveal="scale"].is-visible {
  transform: scale(1);
}

/* Rotate in from perspective */
.reveal[data-reveal="flip"] {
  transform: perspective(800px) rotateX(8deg) translateY(40px);
  transform-origin: bottom center;
}
.reveal[data-reveal="flip"].is-visible {
  transform: perspective(800px) rotateX(0) translateY(0);
}

/* Blur in */
.reveal[data-reveal="blur"] {
  filter: blur(10px);
  transform: translateY(30px);
}
.reveal[data-reveal="blur"].is-visible {
  filter: blur(0);
  transform: translateY(0);
}

/* Clip reveal — wipe up from bottom */
.reveal[data-reveal="clip"] {
  clip-path: inset(100% 0 0 0);
  transform: none;
  opacity: 1;
}
.reveal[data-reveal="clip"].is-visible {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Staggered child reveals --- */
.reveal [data-stagger] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal.is-visible [data-stagger="1"] {
  transition-delay: 0.1s;
}
.reveal.is-visible [data-stagger="2"] {
  transition-delay: 0.2s;
}
.reveal.is-visible [data-stagger="3"] {
  transition-delay: 0.35s;
}
.reveal.is-visible [data-stagger="4"] {
  transition-delay: 0.5s;
}

/* --- Staggered card reveal (slide in from edges) --- */
.reveal .card {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(4px);
}

/* 3-column grid: left card from left, center from below, right card from right */
.reveal .grid-3 .card:nth-child(1) {
  transform: translateX(-50px) rotate(-2deg);
}
.reveal .grid-3 .card:nth-child(2) {
  transform: translateY(30px) scale(0.95);
}
.reveal .grid-3 .card:nth-child(3) {
  transform: translateX(50px) rotate(2deg);
}

/* 2-column grid: left card from left, right card from right */
.reveal .grid-2 .card:nth-child(1) {
  transform: translateX(-50px) rotate(-2deg);
}
.reveal .grid-2 .card:nth-child(2) {
  transform: translateX(50px) rotate(2deg);
}

/* Animate in — cards settle into a tilted resting position */
.reveal.is-visible .card {
  opacity: 1;
  filter: blur(0);
}

/* Resting bent positions (3-col grid) */
.reveal.is-visible .grid-3 .card:nth-child(1) {
  transform: translateX(-10px) rotate(-1.5deg);
  transition-delay: 0.15s;
}
.reveal.is-visible .grid-3 .card:nth-child(2) {
  transform: translateY(10px) scale(0.97);
  transition-delay: 0.3s;
}
.reveal.is-visible .grid-3 .card:nth-child(3) {
  transform: translateX(10px) rotate(1.5deg);
  transition-delay: 0.45s;
}

/* Resting bent positions (2-col grid) */
.reveal.is-visible .grid-2 .card:nth-child(1) {
  transform: translateX(-10px) rotate(-1.5deg);
  transition-delay: 0.15s;
}
.reveal.is-visible .grid-2 .card:nth-child(2) {
  transform: translateX(10px) rotate(1.5deg);
  transition-delay: 0.3s;
}

/* Hover — card unbends to flat normal position */
.reveal.is-visible .grid-3 .card:hover,
.reveal.is-visible .grid-2 .card:hover {
  transform: translate(0, 0) rotate(0deg) scale(1);
  transition-delay: 0s;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.04);
}

/* --- Feature split content stagger --- */
.reveal .feature-text .h2,
.reveal .feature-text .lead,
.reveal .feature-checklist li,
.reveal .section-heading .h2,
.reveal .section-heading .lead {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible .feature-text .h2,
.reveal.is-visible .section-heading .h2 {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.reveal.is-visible .feature-text .lead,
.reveal.is-visible .section-heading .lead {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.reveal.is-visible .feature-checklist li:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}
.reveal.is-visible .feature-checklist li:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}
.reveal.is-visible .feature-checklist li:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}
.reveal.is-visible .feature-checklist li:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.6s;
}

/* --- Feature visual slide in --- */
.reveal .feature-visual {
  opacity: 0;
  transform: translateX(40px) scale(0.96);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.2s;
}

.reveal.is-visible .feature-visual {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Reversed split — visual slides from left */
.reveal .feature-split--reverse .feature-visual {
  transform: translateX(-40px) scale(0.96);
}

/* Pricing plan cards — rise up staggered */
.reveal .plan {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(3px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible .plan {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal.is-visible .plan:nth-child(1) {
  transition-delay: 0.1s;
}
.reveal.is-visible .plan:nth-child(2) {
  transition-delay: 0.25s;
}
.reveal.is-visible .plan:nth-child(3) {
  transition-delay: 0.4s;
}
.reveal.is-visible .plan:nth-child(4) {
  transition-delay: 0.55s;
}

/* --- Showcase pause on out-of-viewport --- */
.showcase.is-paused .showcase-col--up,
.showcase.is-paused .showcase-col--down {
  animation-play-state: paused;
}

/* --- Product Wireframe Grid --- */
.product-grid-wireframe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-card-wireframe {
  border: 1px solid var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(9, 9, 11, 0.6);
}

.product-card-wireframe .tpl-hero-img {
  height: 50px;
}

/* ============================================================
   RESPONSIVE OVERRIDES — New Sections
   ============================================================ */

@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-copy .lead {
    text-align: center;
  }

  .feature-split,
  .feature-split--reverse {
    grid-template-columns: 1fr;
  }

  .feature-split--reverse .feature-text {
    order: 1;
  }

  .feature-split--reverse .feature-visual {
    order: 2;
  }

  .feature-split--reverse .feature-visual {
    display: flex;
    justify-content: center;
  }

  .editor-image-placeholder {
    width: 100%;
    max-width: 520px;
  }

  .wireframe-editor {
    grid-template-columns: 1fr;
  }

  .wireframe-editor .wireframe-side {
    display: none;
  }

  .wireframe-editor-canvas {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 640px) {
  .showcase,
  .angled-showcase {
    display: none;
  }

  .hero-split {
    grid-template-columns: 1fr;
  }

  .product-grid-wireframe {
    grid-template-columns: 1fr;
  }

  .pricing {
    grid-template-columns: 1fr;
  }
}

.text-center {
  text-align: center;
}

/* ============================================================
   AGENT PIPELINE ANIMATION
   ============================================================ */

.agent-pipeline {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pipeline-top {
  height: 44px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-3);
  background: rgba(24, 24, 27, 0.4);
}

.pipeline-top-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pipeline-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pipeline-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}

.pipeline-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
  transition: background 0.3s ease;
}

.pipeline-status.is-processing .pipeline-status-dot {
  background: #ffffff;
  animation: status-pulse 1s ease-in-out infinite;
}

.pipeline-status.is-complete .pipeline-status-dot {
  background: #ffffff;
  animation: none;
}

.pipeline-status.is-processing .pipeline-status-label,
.pipeline-status.is-complete .pipeline-status-label {
  color: var(--fg-strong);
}

.pipeline-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- Pipeline Node (base) --- */
.pipeline-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  opacity: 0.4;
  transition: opacity 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.pipeline-node--input {
  border-style: dashed;
}

.pipeline-node--output {
  border-style: dashed;
}

.pipeline-node.is-active {
  opacity: 1;
  border-color: var(--border-2);
}

.pipeline-node.is-complete {
  opacity: 1;
  border-color: var(--fg-strong);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.06);
}

.pipeline-node--output.is-complete {
  border-style: solid;
}

.pipeline-node-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: var(--accent-bg);
  color: var(--muted-2);
  flex-shrink: 0;
  transition: color 0.3s ease, background 0.3s ease;
}

.pipeline-node.is-active .pipeline-node-icon {
  color: var(--fg-strong);
}

.pipeline-node.is-complete .pipeline-node-icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--fg-strong);
}

.pipeline-node-content {
  flex: 1;
  min-width: 0;
}

.pipeline-node-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-strong);
}

.pipeline-node-detail {
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Agent node status spinner / check --- */
.pipeline-node-status {
  font-size: 16px;
  color: var(--muted-2);
  flex-shrink: 0;
  transition: color 0.3s ease;
}

.pipeline-node.is-active .pipeline-node-status {
  color: var(--fg-strong);
}

.pipeline-node.is-active .pipeline-node-status i {
  animation: spin 1s linear infinite;
}

.pipeline-node.is-complete .pipeline-node-status {
  color: var(--fg-strong);
}

.pipeline-node.is-complete .pipeline-node-status i {
  animation: none;
}

/* --- Typing animation for prompt node --- */
.pipeline-typing-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  border-right: 2px solid transparent;
}

.pipeline-node.is-active .pipeline-typing-text {
  animation: typing 1.8s steps(44, end) forwards,
    blink-caret 0.6s step-end infinite;
  border-right-color: var(--fg-strong);
}

.pipeline-node.is-complete .pipeline-typing-text {
  width: 100%;
  border-right-color: transparent;
  animation: none;
}

/* --- Pipeline Connector --- */
.pipeline-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 28px;
  position: relative;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.pipeline-connector.is-active {
  opacity: 1;
}

.pipeline-connector-line {
  width: 1px;
  height: 100%;
  background: var(--border-2);
}

.pipeline-connector-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-strong);
  opacity: 0;
  top: 0;
}

.pipeline-connector.is-active .pipeline-connector-dot {
  animation: pulse-down 0.6s ease-out forwards;
}

/* --- Keyframes --- */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  0%,
  100% {
    border-right-color: transparent;
  }
  50% {
    border-right-color: var(--fg-strong);
  }
}

@keyframes pulse-down {
  0% {
    top: 0;
    opacity: 1;
  }
  100% {
    top: calc(100% - 6px);
    opacity: 0;
  }
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .pipeline-node-label {
    font-size: 11px;
  }

  .pipeline-node-detail {
    font-size: 10px;
  }

  .pipeline-node {
    padding: 10px 12px;
    gap: 10px;
  }

  .pipeline-node-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .pipeline-node.is-active .pipeline-node-status i,
  .pipeline-connector.is-active .pipeline-connector-dot,
  .pipeline-node.is-active .pipeline-typing-text,
  .pipeline-status.is-processing .pipeline-status-dot {
    animation: none;
  }

  .pipeline-typing-text {
    width: 100% !important;
    border-right-color: transparent !important;
  }

  .pipeline-connector.is-active .pipeline-connector-dot {
    opacity: 0;
  }
}
