/* ──────────────────────────────────────────────────────────────────────────
   Ayasoftware — Corporate Website
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --orange:      #f47b20;
  --orange-deep: #d35e0c;
  --orange-soft: #fff1e3;
  --orange-tint: #fdf6ee;
  --ink:         #14110d;
  --ink-2:       #4a443c;
  --ink-3:       #80776c;
  --line:        #ece6dc;
  --line-2:      #f4efe6;
  --bg:          #fbf9f4;
  --bg-2:        #f5f0e6;
  --surface:     #ffffff;
  --surface-2:  #faf7f0;
  --on-orange:   #ffffff;
  --font-sans:   "Roboto", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono:   "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max:    1280px;
  --pad:    clamp(20px, 4vw, 56px);
  --radius: 14px;
  --radius-lg: 22px;
}

:root[data-theme="dark"] {
  --ink:        #f5efe4;
  --ink-2:      #b9b1a3;
  --ink-3:      #80776c;
  --line:       #2a2520;
  --line-2:     #1f1b17;
  --bg:         #0d0b09;
  --bg-2:       #15120e;
  --surface:    #17130f;
  --surface-2: #1d1812;
  --orange-soft: #2a1c0d;
  --orange-tint: #1c140a;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ── Typography ─────────────────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.eyebrow-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--orange);
  text-transform: none;
}
.eyebrow-mono::before { display: none; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}
.h-display {
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.h-display em { font-style: italic; color: var(--orange); font-weight: 500; }
.h-section {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.028em;
}
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}
.muted { color: var(--ink-3); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: var(--orange-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13px; }
.btn .arrow { transition: transform 160ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Nav ─────────────────────────────────────────────────────────────────── */

.topbar { height: 4px; background: var(--orange); }
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}
:root[data-theme="dark"] .brand-logo {
  mix-blend-mode: screen;
  filter: invert(1) hue-rotate(180deg) saturate(1.3) brightness(1.05);
}
.nav-links {
  display: flex; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: inline-flex; align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 120ms ease, background 120ms ease;
}
.nav-links a:hover { color: var(--ink); background: var(--line-2); }
.nav-mcp {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink) !important;
  font-weight: 600 !important;
}
.nav-mcp::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 22%, transparent);
}
.nav-right { display: flex; align-items: center; gap: 14px; }
.search {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: 13px;
  width: 200px;
}
.search input { flex: 1; border: 0; background: transparent; font: inherit; color: var(--ink); outline: none; min-width: 0; }
.search svg { flex-shrink: 0; }
/* burger button */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 38px; height: 38px;
  background: none; border: none; cursor: pointer; padding: 4px;
  border-radius: 8px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 250ms ease, opacity 250ms ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.nav-drawer {
  display: none;
  position: fixed; inset: 72px 0 0 0; z-index: 49;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 16px 20px 24px;
  overflow-y: auto;
  transform: translateY(-8px); opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}
.nav-drawer.open { transform: translateY(0); opacity: 1; }
.nav-drawer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nav-drawer a { display: block; padding: 12px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav-drawer a:hover { background: var(--line-2); color: var(--ink); }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .search { display: none; }
  .nav-cta-desktop { display: none; }
  .nav-burger { display: flex; }
  .nav-drawer { display: block; pointer-events: none; }
  .nav-drawer.open { pointer-events: auto; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(48px, 8vw, 112px) 0 clamp(64px, 9vw, 128px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: -1px -1px;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse at 30% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-copy .lead { max-width: 50ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.hero-meta b { color: var(--ink); font-weight: 600; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }
.hero-art { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 580px; justify-self: end; }
.hero-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero-art .float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 24px 60px -24px rgba(20,17,13,0.18);
  font-size: 13px; color: var(--ink-2);
  display: flex; align-items: center; gap: 10px;
}
.hero-art .fc-pr   { top: 12%; right: -6%; }
.hero-art .fc-deploy { bottom: 14%; left: -6%; }
.hero-art .fc-dot { width: 8px; height: 8px; border-radius: 50%; background: #21c46c; box-shadow: 0 0 0 3px color-mix(in srgb, #21c46c 22%, transparent); }
.hero-art .fc-pr .fc-dot { background: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 22%, transparent); }
.hero-art .fc-mono { font-family: var(--font-mono); color: var(--ink); font-size: 12px; }
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { justify-self: start; max-width: 380px; margin-top: 8px; }
  .hero-art .fc-pr, .hero-art .fc-deploy { display: none; }
}

/* ── Section scaffolding ─────────────────────────────────────────────────── */

section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head .head-l { display: flex; flex-direction: column; gap: 16px; }
.section-head .lead { max-width: 52ch; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; align-items: start; } }

/* ── MCP Server section ──────────────────────────────────────────────────── */

.mcp { background: var(--bg); }
.mcp-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(32px, 4vw, 64px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: clamp(16px, 2vw, 24px);
  overflow: hidden;
}
.mcp-card::before {
  content: "";
  position: absolute;
  left: -8%; bottom: -38%;
  width: 42%; aspect-ratio: 1 / 1;
  background: var(--orange-soft);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: 0.9;
  pointer-events: none;
}
.mcp-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 20px; }
.mcp-copy h2 em { font-style: italic; color: var(--orange); }
.mcp-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; font-size: 15px; color: var(--ink-2); }
.mcp-bullets li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; line-height: 1.5; }
.mcp-bullets li b { color: var(--ink); font-weight: 600; }
.mcp-bullet-tri { width: 12px; height: 12px; margin-top: 5px; background: var(--orange); clip-path: polygon(50% 0%, 100% 100%, 0% 100%); flex-shrink: 0; }
.mcp-cta { margin-top: 4px; }
/* terminal */
.mcp-art { position: relative; }
.terminal { position: relative; z-index: 1; background: #14110d; border-radius: 14px; box-shadow: 0 32px 80px -36px rgba(20,17,13,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset; overflow: hidden; color: #e9e3d6; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: linear-gradient(180deg, #1f1a14 0%, #17130e 100%); border-bottom: 1px solid rgba(255,255,255,0.05); }
.tb-dot { width: 11px; height: 11px; border-radius: 50%; display: block; }
.tb-r { background: #ff5f57; }
.tb-y { background: #febc2e; }
.tb-g { background: #28c840; }
.terminal-title { margin-left: 12px; font-family: var(--font-mono); font-size: 11.5px; color: rgba(233,227,214,0.55); letter-spacing: 0.02em; }
.terminal-body { margin: 0; padding: 18px 22px 22px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: #e9e3d6; white-space: pre-wrap; word-break: break-word; }
.tk-prompt { color: var(--orange); }
.tk-cmd    { color: #fff; font-weight: 600; }
.tk-str    { color: #f6c177; }
.tk-ok     { color: #6dd99b; }
.tk-call   { color: #ffb070; }
.tk-dim    { color: rgba(233,227,214,0.55); }
.tk-link   { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
/* floating pills */
.mcp-pill { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 36px -16px rgba(20,17,13,0.25); font-family: var(--font-mono); font-size: 12px; color: var(--ink); white-space: nowrap; }
.mcp-pill code { font-family: inherit; }
.mcp-pill-tag { font-family: var(--font-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; background: var(--orange); color: #fff; }
.mcp-pill-1 { top: -14px; right: -18px; }
.mcp-pill-2 { bottom: -14px; left: -10px; }
@media (max-width: 860px) {
  .mcp-card { grid-template-columns: 1fr; }
  .mcp-pill-1, .mcp-pill-2 { display: none; }
  .terminal-body { font-size: 11.5px; }
}

/* ── Services ────────────────────────────────────────────────────────────── */

.services { background: var(--bg); }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.svc-card {
  position: relative;
  display: flex; flex-direction: column;
  gap: 22px;
  padding: 28px 26px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  min-height: 360px;
}
.svc-card:hover {
  border-color: color-mix(in srgb, var(--orange) 55%, var(--line));
  transform: translateY(-2px);
  box-shadow: 0 28px 60px -34px rgba(212,94,12,0.35);
}
.svc-card.is-featured {
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: var(--on-orange);
  border-color: transparent;
}
.svc-card.is-featured h3,
.svc-card.is-featured .svc-num { color: var(--on-orange); }
.svc-card.is-featured .svc-body { color: color-mix(in srgb, var(--on-orange) 84%, transparent); }
.svc-card.is-featured .svc-tag { background: rgba(255,255,255,0.18); color: var(--on-orange); }
.svc-card.is-featured .svc-link { color: var(--on-orange); border-color: rgba(255,255,255,0.4); }
.svc-card.is-featured .svc-link:hover { background: rgba(255,255,255,0.12); }
.svc-tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 6px;
  background: var(--orange-soft); color: var(--orange-deep);
}
.svc-card h3 { font-size: 22px; line-height: 1.18; letter-spacing: -0.015em; }
.svc-body { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.svc-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding-top: 12px;
}
.svc-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: -0.005em;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px; color: var(--ink);
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.svc-link:hover { background: var(--line-2); }
.svc-link .arrow { transition: transform 160ms ease; }
.svc-link:hover .arrow { transform: translateX(3px); }
@media (max-width: 1024px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .svc-grid { grid-template-columns: 1fr; } }

/* ── Process ─────────────────────────────────────────────────────────────── */

.process {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proc-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-left: 1px solid var(--line);
}
.proc-step {
  position: relative;
  padding: 28px 22px 32px;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
}
.proc-step:nth-child(even) { background: var(--surface-2); }
.proc-num {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600; color: var(--orange);
}
.proc-num::before {
  content: "";
  width: 14px; height: 14px; margin-right: 8px;
  background: var(--orange);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.proc-step h4 { font-size: 18px; line-height: 1.22; letter-spacing: -0.012em; font-weight: 600; }
.proc-step p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.proc-step .proc-tag { margin-top: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ink-3); }
@media (max-width: 1100px) { .proc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .proc-grid { grid-template-columns: 1fr; } }

/* ── Tech ────────────────────────────────────────────────────────────────── */

.tech { background: var(--bg); }
.tech-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px,5vw,80px); align-items: center; }
.tech-copy { display: flex; flex-direction: column; gap: 18px; }
.tech-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); overflow: hidden;
}
.tech-cell {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 28px; padding: 28px 24px 22px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  min-height: 168px; transition: background 160ms ease;
}
.tech-cell:hover { background: var(--surface-2); }
.tech-cell:nth-child(3n) { border-right: 0; }
.tech-cell:nth-last-child(-n+3) { border-bottom: 0; }
.tech-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--orange); }
.tech-icon svg { width: 100%; height: 100%; }
.tech-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tech-meta b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.tech-meta span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
@media (max-width: 880px) {
  .tech-inner { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-cell:nth-child(3n) { border-right: 1px solid var(--line); }
  .tech-cell:nth-child(2n) { border-right: 0; }
  .tech-cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .tech-cell:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ── CTA ─────────────────────────────────────────────────────────────────── */

.cta { padding-top: 0; }
.cta-card {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--bg);
  border-radius: clamp(20px,3vw,32px);
  padding: clamp(40px,6vw,80px) clamp(28px,5vw,72px);
  display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
  gap: clamp(24px,4vw,56px); align-items: center;
}
.cta-card::after {
  content: ""; position: absolute; right: -8%; top: -20%;
  width: 60%; aspect-ratio: 1/1;
  background: var(--orange);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: 0.92; pointer-events: none;
}
.cta-card::before {
  content: ""; position: absolute; right: 18%; bottom: -30%;
  width: 38%; aspect-ratio: 1/1;
  background: var(--orange-deep);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(180deg);
  opacity: 0.55; pointer-events: none;
}
.cta-card .cta-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 14px; }
.cta-card h2 { color: var(--bg); font-size: clamp(30px,3.6vw,48px); line-height: 1.05; letter-spacing: -0.025em; }
.cta-card .cta-action { position: relative; z-index: 2; justify-self: end; }
.cta-card .btn-primary { background: var(--bg); color: var(--ink); }
.cta-card .btn-primary:hover { background: color-mix(in srgb, var(--bg) 80%, var(--orange)); }
@media (max-width: 760px) { .cta-card { grid-template-columns: 1fr; } .cta-card .cta-action { justify-self: start; } }

/* ── Footer ──────────────────────────────────────────────────────────────── */

footer.foot { padding: clamp(56px,7vw,96px) 0 32px; background: var(--bg); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: clamp(24px,4vw,56px); }
.foot-brand { display: flex; flex-direction: column; gap: 18px; max-width: 36ch; }
.foot-brand .lead { font-size: 14px; }
.foot-col h5 { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 18px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-2); }
.foot-col li a:hover { color: var(--orange); }
.foot-bar {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--ink-3);
}
.foot-bar a:hover { color: var(--orange); }
.foot-bar .foot-links { display: flex; gap: 22px; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ── Misc ────────────────────────────────────────────────────────────────── */

.divider-tris { display: flex; gap: 6px; }
.divider-tris i { width: 10px; height: 10px; background: var(--orange); clip-path: polygon(50% 0%, 100% 100%, 0% 100%); display: block; }
.divider-tris i:nth-child(2) { opacity: 0.65; }
.divider-tris i:nth-child(3) { opacity: 0.35; }

/* ── Individual Page View ────────────────────────────────────────────────── */

.page-hero {
  padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse at 20% 50%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 20% 50%, #000 20%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; display: flex; flex-direction: column; gap: 20px; max-width: 860px; }
.page-hero .eyebrow { margin-bottom: 4px; }
.page-hero .lead { max-width: 60ch; }

.page-body {
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 9vw, 128px);
  background: var(--surface);
}
.page-content {
  max-width: 820px;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
}
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4 { margin: 1.6em 0 0.5em; letter-spacing: -0.015em; }
.page-content h2 { font-size: clamp(26px, 3vw, 38px); }
.page-content h3 { font-size: clamp(20px, 2vw, 26px); }
.page-content p  { margin: 0 0 1.1em; }
.page-content ul,
.page-content ol { margin: 0 0 1.1em 1.4em; }
.page-content li { margin-bottom: 0.4em; }
.page-content a  { color: var(--orange); border-bottom: 1px solid color-mix(in srgb, var(--orange) 35%, transparent); transition: border-color 120ms; }
.page-content a:hover { border-color: var(--orange); }
.page-content a.btn { color: var(--on-orange); border-bottom: none; }
.page-content a.btn:hover { border-bottom: none; }
.page-content a.btn-ghost { color: var(--ink); }
.page-content blockquote {
  margin: 1.6em 0;
  padding: 16px 20px;
  border-left: 3px solid var(--orange);
  background: var(--orange-tint);
  border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--ink-2);
}
.page-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--line-2);
  padding: 2px 6px;
  border-radius: 4px;
}
.page-content pre {
  background: var(--ink);
  color: #f5efe4;
  padding: 20px 24px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1.4em 0;
}
.page-content pre code { background: none; padding: 0; font-size: 0.9em; }
.page-content img { max-width: 100%; border-radius: 10px; margin: 1.4em 0; }
.page-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.page-content th,
.page-content td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; font-size: 15px; }
.page-content th { background: var(--bg-2); font-weight: 600; }

/* ── Arrow list ───────────────────────────────────────────────────────────── */
.arrow-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1em;
}
.arrow-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}
.arrow-list li:last-child { border-bottom: none; }
.arrow-list li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-color: var(--orange);
  clip-path: polygon(0 35%, 55% 35%, 55% 15%, 100% 50%, 55% 85%, 55% 65%, 0 65%);
}

/* light variant — for use on dark / orange backgrounds */
.arrow-list--light li { color: var(--on-orange); border-bottom-color: rgba(255,255,255,0.18); }
.arrow-list--light li::before { background-color: #fff; }

/* ── Managed AI Development landing page (.mad-page) ─────────────────────── */

/* Escape the page-body / page-content container constraints */
.page-body:has(.mad-page) { padding: 0; background: #fff; }
.page-content:has(.mad-page) { max-width: none; font-size: inherit; line-height: inherit; color: inherit; padding: 0; }

.mad-page {
  --mad-bg: #ffffff;
  --mad-surface: #f7f8fa;
  --mad-border: #e5e7eb;
  --mad-accent-bright: #ff8a00;
  --mad-text: #111827;
  --mad-muted: #6b7280;
  /* MCP section tokens (matching standalone design palette) */
  --orange: #f47b20;
  --orange-deep: #d35e0c;
  --orange-soft: #fff1e3;
  --ink:    #14110d;
  --ink-2:  #4a443c;
  --ink-3:  #80776c;
  --line:   #ece6dc;
  --bg:     #fbf9f4;
  --surface:#ffffff;
  --on-orange: #ffffff;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-sans: 'Roboto', sans-serif;
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--mad-text);
  overflow-x: hidden;
}

/* Hero */
.mad-page .hero {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 11vw, 130px) 2rem clamp(60px, 9vw, 110px);
}
.mad-page .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(255,138,0,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(255,100,0,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.mad-page .grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}
.mad-page .hero-inner {
  max-width: 760px;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: madFadeUp 0.8s ease both;
}
.mad-page .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: var(--mad-accent-bright);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  animation: madFadeUp 0.8s ease 0.1s both;
}
.mad-page .badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mad-accent-bright);
  box-shadow: 0 0 8px rgba(255,138,0,0.4);
  animation: madPulse 2s ease infinite;
}
.mad-page .hero-inner h1 {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  color: var(--mad-text);
  animation: madFadeUp 0.8s ease 0.2s both;
}
.mad-page .hero-inner h1 em { font-style: italic; color: var(--mad-accent-bright); }
.mad-page .hero .lead-p {
  font-size: 1.1rem;
  color: var(--mad-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  animation: madFadeUp 0.8s ease 0.3s both;
}
.mad-page .cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: madFadeUp 0.8s ease 0.4s both;
}
.mad-page .btn-primary {
  background: var(--mad-accent-bright);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  border-bottom: none !important;
  transition: transform 0.15s, box-shadow 0.15s;
}
.mad-page .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,138,0,0.25); }
.mad-page .btn-ghost {
  color: var(--mad-text);
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--mad-border) !important;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.mad-page .btn-ghost:hover { border-color: #9ca3af !important; background: rgba(0,0,0,0.03); }

/* Section wrapper */
.mad-page .section {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) 2rem;
}
.mad-page .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mad-accent-bright);
  margin-bottom: 1rem;
}
.mad-page .section h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--mad-text);
}
.mad-page .section-intro {
  color: var(--mad-muted);
  font-size: 1rem;
  max-width: 540px;
  margin-bottom: 3rem;
}

/* Steps */
.mad-page .steps { display: grid; gap: 0; }
.mad-page .step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--mad-border);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.mad-page .step.visible { opacity: 1; transform: none; }
.mad-page .step:first-child { border-top: 1px solid var(--mad-border); }
.mad-page .step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--mad-accent-bright);
  padding-top: 0.25rem;
  letter-spacing: 0.08em;
}
.mad-page .step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--mad-text); }
.mad-page .step p { font-size: 0.92rem; color: var(--mad-muted); margin: 0; }

/* Tiers */
.mad-page .tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.mad-page .tier {
  background: #fff;
  border: 1px solid var(--mad-border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s, box-shadow 0.2s;
}
.mad-page .tier.visible { opacity: 1; transform: none; }
.mad-page .tier:hover { border-color: #fdba74; box-shadow: 0 8px 30px rgba(255,138,0,0.08); }
.mad-page .tier.featured { border-color: #ff8a00; background: linear-gradient(145deg, #fff7ed, #fff3e0); }
.mad-page .tier.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -1px; right: 1.5rem;
  background: var(--mad-accent-bright);
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 0 0 8px 8px;
}
.mad-page .tier-hours {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mad-muted);
  margin-bottom: 0.75rem;
}
.mad-page .tier-price {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.3rem;
  color: var(--mad-text);
}
.mad-page .tier-price span { font-size: 1rem; font-weight: 400; color: var(--mad-muted); vertical-align: middle; }
.mad-page .tier-desc {
  font-size: 0.85rem;
  color: var(--mad-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--mad-border);
}
.mad-page .tier ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin: 0 0 2rem; padding: 0; }
.mad-page .tier ul li {
  font-size: 0.88rem;
  color: var(--mad-text);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
}
.mad-page .tier ul li::before { content: '✓'; color: var(--mad-accent-bright); font-size: 0.8rem; margin-top: 0.1rem; flex-shrink: 0; }
.mad-page .tier-cta {
  display: block;
  text-align: center;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: none !important;
  transition: background 0.15s, color 0.15s;
}
.mad-page .tier:not(.featured) .tier-cta { border: 1px solid var(--mad-border) !important; color: var(--mad-text); }
.mad-page .tier:not(.featured) .tier-cta:hover { background: var(--mad-surface); }
.mad-page .tier.featured .tier-cta { background: var(--mad-accent-bright); color: #fff; }
.mad-page .tier.featured .tier-cta:hover { background: #e07800; }

/* Includes grid */
.mad-page .includes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--mad-border);
  border: 1px solid var(--mad-border);
  border-radius: 16px;
  overflow: hidden;
}
.mad-page .include-item {
  background: #fff;
  padding: 1.75rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.mad-page .include-item.visible { opacity: 1; transform: none; }
.mad-page .include-item h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--mad-text); }
.mad-page .include-item p { font-size: 0.84rem; color: var(--mad-muted); margin: 0; }

/* FAQ */
.mad-page .faq { border-top: 1px solid var(--mad-border); }
.mad-page .faq-item { border-bottom: 1px solid var(--mad-border); padding: 1.5rem 0; cursor: pointer; }
.mad-page .faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  user-select: none;
  gap: 1rem;
  color: var(--mad-text);
}
.mad-page .faq-icon { color: var(--mad-accent-bright); font-size: 1.2rem; flex-shrink: 0; transition: transform 0.3s; }
.mad-page .faq-item.open .faq-icon { transform: rotate(45deg); }
.mad-page .faq-a {
  font-size: 0.88rem;
  color: var(--mad-muted);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin-top 0.2s;
}
.mad-page .faq-item.open .faq-a { max-height: 200px; margin-top: 0.85rem; }

/* CTA banner */
.mad-page .banner {
  max-width: 860px;
  margin: 0 auto clamp(48px, 6vw, 80px);
  padding: 2rem;
  background: linear-gradient(135deg, #fff7ed, #fff3e0);
  border: 1px solid #fed7aa;
  border-radius: 20px;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mad-page .banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,138,0,0.1), transparent 70%);
  pointer-events: none;
}
.mad-page .banner h2 { margin-bottom: 1rem; }
.mad-page .banner p { color: var(--mad-muted); margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* MCP Server section */
.mad-page .mcp-section { padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 56px); }
.mad-page .mcp-section .label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin-bottom: 1rem; }
.mad-page .mcp-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: clamp(32px, 4vw, 64px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: clamp(16px, 2vw, 24px);
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}
.mad-page .mcp-card::before {
  content: "";
  position: absolute;
  left: -8%; bottom: -38%;
  width: 42%; aspect-ratio: 1 / 1;
  background: var(--orange-soft);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  opacity: 0.9;
  pointer-events: none;
}
.mad-page .mcp-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 20px; }
.mad-page .mcp-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; color: var(--ink); }
.mad-page .mcp-copy h2 em { font-style: italic; color: var(--orange); }
.mad-page .mcp-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; font-size: 15px; color: var(--ink-2); }
.mad-page .mcp-bullets li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; line-height: 1.5; }
.mad-page .mcp-bullets li b { color: var(--ink); font-weight: 600; }
.mad-page .mcp-bullet-tri { width: 12px; height: 12px; margin-top: 5px; background: var(--orange); clip-path: polygon(50% 0%, 100% 100%, 0% 100%); flex-shrink: 0; }
.mad-page .mcp-cta { margin-top: 4px; }
.mad-page .mcp-cta a { display: inline-flex; align-items: center; gap: 10px; background: var(--orange); color: #fff !important; font-weight: 600; font-size: 0.9rem; padding: 0.8rem 1.8rem; border-radius: 8px; text-decoration: none; transition: background 0.15s; }
.mad-page .mcp-cta a:hover { background: var(--orange-deep); }
/* terminal */
.mad-page .mcp-art { position: relative; }
.mad-page .terminal { position: relative; z-index: 1; background: #14110d; border-radius: 14px; box-shadow: 0 32px 80px -36px rgba(20,17,13,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset; overflow: hidden; color: #e9e3d6; }
.mad-page .terminal-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: linear-gradient(180deg, #1f1a14 0%, #17130e 100%); border-bottom: 1px solid rgba(255,255,255,0.05); }
.mad-page .tb-dot { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mad-page .tb-r { background: #ff5f57; }
.mad-page .tb-y { background: #febc2e; }
.mad-page .tb-g { background: #28c840; }
.mad-page .terminal-title { margin-left: 12px; font-family: var(--font-mono); font-size: 11.5px; color: rgba(233,227,214,0.55); letter-spacing: 0.02em; }
.mad-page .terminal-body { margin: 0; padding: 18px 22px 22px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: #e9e3d6; white-space: pre-wrap; word-break: break-word; }
.mad-page .tk-prompt { color: var(--orange); }
.mad-page .tk-cmd    { color: #fff; font-weight: 600; }
.mad-page .tk-str    { color: #f6c177; }
.mad-page .tk-ok     { color: #6dd99b; }
.mad-page .tk-call   { color: #ffb070; }
.mad-page .tk-dim    { color: rgba(233,227,214,0.55); }
.mad-page .tk-link   { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
/* floating pills */
.mad-page .mcp-pill { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 36px -16px rgba(20,17,13,0.25); font-family: var(--font-mono); font-size: 12px; color: var(--ink); white-space: nowrap; }
.mad-page .mcp-pill code { font-family: inherit; }
.mad-page .mcp-pill-tag { font-family: var(--font-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; background: var(--orange); color: #fff; }
.mad-page .mcp-pill-1 { top: -14px; right: -18px; }
.mad-page .mcp-pill-2 { bottom: -14px; left: -10px; }
@media (max-width: 860px) {
  .mad-page .mcp-card { grid-template-columns: 1fr; }
  .mad-page .mcp-pill-1, .mad-page .mcp-pill-2 { display: none; }
  .mad-page .terminal-body { font-size: 11.5px; }
}

/* Animations */
@keyframes madFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes madPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── AI Pipeline page (.ai-pipeline-page) ──────────────────────────────── */

.ai-pipeline-page {
  background: #ffffff;
  color: #0f172a;
  --aip-accent: #ff8a00;
  --aip-surface: #f8f9fb;
  --aip-border: #e2e6ef;
  --aip-muted: #64748b;
}

/* Reset section padding for this page's own layout */
.ai-pipeline-page section { padding: 0; }

/* Hero */
.ai-pipeline-page .hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(72px, 11vw, 120px) 1.5rem clamp(56px, 9vw, 100px);
  overflow: hidden;
  background: #ffffff;
}
.ai-pipeline-page .hero::before { display: none; }
.ai-pipeline-page .hero::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,138,0,.07) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  pointer-events: none;
}

.ai-pipeline-page .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--aip-accent);
  border: 1px solid rgba(255,138,0,.3);
  padding: .3rem .85rem;
  border-radius: 999px;
  margin-bottom: 2rem;
  letter-spacing: .08em;
  animation: aipFadeDown .6s ease both;
}
.ai-pipeline-page .hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--aip-accent);
  animation: aipPulse 2s infinite;
}

.ai-pipeline-page .hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  max-width: 900px;
  animation: aipFadeUp .7s .1s ease both;
}

.ai-pipeline-page .hero-sub {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--aip-muted);
  max-width: 620px;
  line-height: 1.7;
  animation: aipFadeUp .7s .2s ease both;
}

.ai-pipeline-page .hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: aipFadeUp .7s .3s ease both;
}

/* Buttons (page-specific overrides) */
.ai-pipeline-page .btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
  height: auto;
}
.ai-pipeline-page .btn-primary {
  background: var(--aip-accent);
  color: #fff !important;
  border: none;
}
.ai-pipeline-page .btn-primary:hover {
  background: #e07a00;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,138,0,.3);
}
.ai-pipeline-page .btn-ghost {
  background: transparent;
  color: #0f172a;
  border: 1px solid var(--aip-border) !important;
}
.ai-pipeline-page .btn-ghost:hover {
  border-color: var(--aip-accent) !important;
  color: var(--aip-accent);
  background: transparent;
}

/* Pipeline flow section */
.ai-pipeline-page .pipeline {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.ai-pipeline-page .section-label {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--aip-accent);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.ai-pipeline-page .section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
  color: #0f172a;
}

.ai-pipeline-page .section-sub {
  color: var(--aip-muted);
  max-width: 560px;
  margin-bottom: 3.5rem;
  line-height: 1.7;
}

.ai-pipeline-page p { margin: 0; }

.ai-pipeline-page .flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding: 1rem 0;
}

.ai-pipeline-page .flow-step {
  flex: 1;
  min-width: 160px;
  background: var(--aip-surface);
  border: 1px solid var(--aip-border);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  transition: border-color .2s, transform .2s;
}
.ai-pipeline-page .flow-step:hover { border-color: var(--aip-accent); transform: translateY(-3px); }

.ai-pipeline-page .flow-arrow {
  display: flex;
  align-items: center;
  padding: 0 .5rem;
  color: var(--aip-muted);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.ai-pipeline-page .step-num {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--aip-muted);
  margin-bottom: .35rem;
  letter-spacing: .1em;
}

.ai-pipeline-page .flow-step h3 { font-size: .95rem; font-weight: 600; margin-bottom: .4rem; }
.ai-pipeline-page .flow-step p  { font-size: .8rem; color: var(--aip-muted); line-height: 1.5; }

/* Tools section */
.ai-pipeline-page .tools-section {
  position: relative;
  z-index: 1;
  background: var(--aip-surface);
  border-top: 1px solid var(--aip-border);
  border-bottom: 1px solid var(--aip-border);
  padding: 5rem 1.5rem;
}

.ai-pipeline-page .tools-inner { max-width: 1100px; margin: 0 auto; }

.ai-pipeline-page .tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.ai-pipeline-page .tool-card {
  background: #ffffff;
  border: 1px solid var(--aip-border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color .2s;
}
.ai-pipeline-page .tool-card:hover { border-color: var(--aip-accent); }

.ai-pipeline-page .tool-header { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.1rem; }

.ai-pipeline-page .tool-card h3 { font-size: 1rem; font-weight: 600; }

.ai-pipeline-page .tool-card .tag {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--aip-muted);
  border: 1px solid var(--aip-border);
  padding: .15rem .5rem;
  border-radius: 4px;
  margin-top: .2rem;
  display: inline-block;
}

.ai-pipeline-page .tool-card p { font-size: .875rem; color: var(--aip-muted); line-height: 1.65; }

/* Includes section */
.ai-pipeline-page .includes-section {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.ai-pipeline-page .includes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.ai-pipeline-page .include-item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  background: var(--aip-surface);
  border: 1px solid var(--aip-border);
  border-radius: 10px;
  padding: 1.25rem;
  opacity: 1;
  transform: none;
}

.ai-pipeline-page .include-check {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: rgba(255,138,0,.08);
  border: 1px solid rgba(255,138,0,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--aip-accent);
  font-size: .85rem;
}

.ai-pipeline-page .include-item h4 { font-size: .9rem; font-weight: 600; margin-bottom: .25rem; }
.ai-pipeline-page .include-item p  { font-size: .8rem; color: var(--aip-muted); line-height: 1.5; }

/* Code / terminal section */
.ai-pipeline-page .code-section {
  position: relative;
  z-index: 1;
  background: var(--aip-surface);
  border-top: 1px solid var(--aip-border);
  border-bottom: 1px solid var(--aip-border);
  padding: 5rem 1.5rem;
}

.ai-pipeline-page .code-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.ai-pipeline-page .code-desc {
  color: var(--aip-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.ai-pipeline-page .terminal {
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: .8rem;
  box-shadow: none;
}

.ai-pipeline-page .terminal-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  background: #161b22;
  border-bottom: 1px solid #21262d;
}

.ai-pipeline-page .dot { width: 10px; height: 10px; border-radius: 50%; }
.ai-pipeline-page .dot-r { background: #f85149; }
.ai-pipeline-page .dot-y { background: #d29922; }
.ai-pipeline-page .dot-g { background: #3fb950; }

.ai-pipeline-page .terminal-title {
  font-size: .7rem;
  color: #8b949e;
  margin-left: auto;
  margin-right: auto;
  padding-right: 2rem;
}

.ai-pipeline-page .terminal-body {
  padding: 1.25rem;
  line-height: 1.8;
  color: #e9e3d6;
  white-space: pre-wrap;
  font-size: .8rem;
}

.ai-pipeline-page .t-comment { color: #8b949e; }
.ai-pipeline-page .t-cmd     { color: #79c0ff; }
.ai-pipeline-page .t-arg     { color: #ffa657; }
.ai-pipeline-page .t-ok      { color: #3fb950; }
.ai-pipeline-page .t-branch  { color: #d2a8ff; }
.ai-pipeline-page .t-prompt  { color: #8b949e; }

/* CTA section */
.ai-pipeline-page .cta-section {
  position: relative;
  z-index: 1;
  padding: 6rem 1.5rem;
  text-align: center;
}

.ai-pipeline-page .cta-box {
  max-width: 680px;
  margin: 0 auto;
  background: var(--aip-surface);
  border: 1px solid var(--aip-border);
  border-radius: 20px;
  padding: 3.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.ai-pipeline-page .cta-box::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,138,0,.07) 0%, transparent 70%);
  top: -80px; right: -80px;
  pointer-events: none;
}

.ai-pipeline-page .cta-box h2 { margin-bottom: 1rem; letter-spacing: -.02em; }
.ai-pipeline-page .cta-box p  { color: var(--aip-muted); margin-bottom: 2rem; line-height: 1.7; }

/* Responsive */
@media (max-width: 768px) {
  .ai-pipeline-page .code-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ai-pipeline-page .flow { flex-direction: column; }
  .ai-pipeline-page .flow-arrow { transform: rotate(90deg); align-self: center; }
}

/* Animations */
@keyframes aipFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes aipFadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes aipPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}
