/* ==========================================================================
   Topify — marketing site
   ========================================================================== */

:root {
  --bg: #05070b;
  --bg-2: #0a0e15;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2f7;
  --text-2: #b9c2d0;
  --muted: #7f8a9c;
  --mint: #3bffc9;
  --mint-2: #19d9a6;
  --violet: #8b7bff;
  --sky: #38bdf8;
  --amber: #ffb35c;
  --rose: #ff6b8b;
  --grad: linear-gradient(100deg, #3bffc9 0%, #38bdf8 45%, #8b7bff 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--border);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
code, pre { font-family: var(--font-mono); }
::selection { background: rgba(59, 255, 201, 0.3); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.muted { color: var(--muted); }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shine 8s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--mint); color: #04110d; padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top 0.2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

/* ---------- icons ---------- */
.icon { width: 22px; height: 22px; flex: none; }
.icon--xs { width: 14px; height: 14px; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 28px; height: 28px; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; line-height: 1.2; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
  isolation: isolate;
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn--primary { background: var(--mint); color: #04110d; box-shadow: 0 0 0 1px rgba(59, 255, 201, 0.4), 0 10px 30px -8px rgba(59, 255, 201, 0.55); }
.btn--primary::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; background: var(--grad); z-index: -1; opacity: 0; filter: blur(14px); transition: opacity 0.3s; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(59, 255, 201, 0.6), 0 18px 40px -10px rgba(59, 255, 201, 0.7); }
.btn--primary:hover::before { opacity: 0.6; }
.btn--ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); backdrop-filter: blur(10px); }
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.btn--sm { padding: 9px 16px; font-size: 0.875rem; }
.btn--lg { padding: 15px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 0.78rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--mint);
  padding: 8px 12px; border-radius: 999px; background: rgba(59, 255, 201, 0.07); border: 1px solid rgba(59, 255, 201, 0.18);
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 640px; }

/* ---------- header ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); z-index: 60; pointer-events: none; }
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(5, 7, 11, 0.72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-color: var(--border); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.35rem/1 var(--font-display); letter-spacing: -0.03em; }
.brand__mark { width: 34px; height: auto; filter: drop-shadow(0 0 14px rgba(59, 255, 201, 0.45)); transition: transform 0.4s var(--ease); }
.brand:hover .brand__mark { transform: translateY(-2px) rotate(-4deg); }
.site-nav { display: flex; gap: 2px; margin-inline: auto; }
.site-nav a { display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: 999px; font-size: 0.92rem; color: var(--text-2); transition: color 0.2s, background 0.2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.site-header__cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); align-items: center; justify-content: center; }
.menu-toggle__close { display: none; }
.menu-open .menu-toggle__open { display: none; }
.menu-open .menu-toggle__close { display: block; }
.mobile-nav { display: none; }

@media (max-width: 1080px) {
  .site-nav { display: none; }
  .site-header__cta { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav { display: block; position: absolute; top: 100%; left: 0; right: 0; background: rgba(5, 7, 11, 0.96); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
  .menu-open .mobile-nav { max-height: 80vh; }
  .mobile-nav .container { display: grid; padding-block: 12px 24px; }
  .mobile-nav a { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 1.1rem; display: flex; align-items: center; gap: 6px; opacity: 0; transform: translateY(-8px); transition: opacity 0.3s, transform 0.3s var(--ease); transition-delay: calc(var(--i) * 40ms); }
  .menu-open .mobile-nav a { opacity: 1; transform: none; }
}
@media (max-width: 560px) { .hide-sm { display: none; } }

/* ---------- backgrounds ---------- */
.grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform; }
.aurora--a { width: 560px; height: 560px; background: radial-gradient(circle, rgba(59, 255, 201, 0.55), transparent 65%); top: -220px; left: -120px; animation: float-a 18s ease-in-out infinite; }
.aurora--b { width: 620px; height: 620px; background: radial-gradient(circle, rgba(139, 123, 255, 0.55), transparent 65%); top: -160px; right: -200px; animation: float-b 22s ease-in-out infinite; }
.aurora--c { width: 480px; height: 480px; background: radial-gradient(circle, rgba(56, 189, 248, 0.4), transparent 65%); bottom: -200px; left: 35%; animation: float-a 26s ease-in-out infinite reverse; }
@keyframes float-a { 50% { transform: translate(80px, 60px) scale(1.1); } }
@keyframes float-b { 50% { transform: translate(-90px, 80px) scale(0.92); } }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 90px) 0 0; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__orbits { position: absolute; width: 1100px; height: 1100px; right: -380px; top: -300px; fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-dasharray: 2 8; animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__inner { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__copy { display: grid; gap: 26px; justify-items: start; }
.hero h1 { max-width: 12ch; }

.pill { max-width: 100%; display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); font-size: 0.88rem; color: var(--text-2); transition: border-color 0.25s, background 0.25s; }
.pill:hover { border-color: rgba(59, 255, 201, 0.5); background: rgba(59, 255, 201, 0.06); }
.pill__tag { background: var(--grad); color: #04110d; font-weight: 700; font-size: 0.72rem; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; }

.social-proof { display: flex; align-items: center; gap: 14px; color: var(--text-2); font-size: 0.92rem; }
.avatars { display: flex; }
.avatars img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--bg); object-fit: cover; margin-left: -10px; }
.avatars img:first-child { margin-left: 0; }
.stars { display: flex; gap: 2px; color: var(--amber); margin-bottom: 2px; }
.stars .icon { fill: currentColor; }

/* hero dashboard */
.hero-visual { position: relative; perspective: 1400px; }
.dash {
  position: relative; border-radius: 22px; background: linear-gradient(180deg, rgba(20, 26, 36, 0.9), rgba(10, 14, 21, 0.92));
  box-shadow: 0 50px 120px -40px rgba(59, 255, 201, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotateY(var(--ry, -8deg)) rotateX(var(--rx, 6deg)); transform-style: preserve-3d; transition: transform 0.6s var(--ease);
  overflow: hidden; backdrop-filter: blur(20px);
}
.dash::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(59, 255, 201, 0.6), transparent 35%, transparent 65%, rgba(139, 123, 255, 0.6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.dash__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.78rem; color: var(--muted); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.dash__url { flex: 1; text-align: center; font-family: var(--font-mono); background: rgba(255, 255, 255, 0.04); padding: 4px 10px; border-radius: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash__live { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); font-weight: 600; }
.dash__live i, .terminal__status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.dash__body { padding: 18px; display: grid; gap: 16px; }
.dash__filters { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.76rem; color: var(--text-2); }
.dash__filters span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); }
.dash__chip { margin-left: auto; border-style: dashed !important; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); display: grid; gap: 2px; }
.kpi__label { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--muted); }
.kpi__label i { width: 8px; height: 8px; border-radius: 3px; }
.kpi strong { font: 600 1.35rem/1.2 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi__delta { display: inline-flex; align-items: center; gap: 3px; font-size: 0.72rem; color: var(--mint); }
.dash__chart { width: 100%; height: 170px; overflow: visible; }
.dash__grid line { stroke: rgba(255, 255, 255, 0.06); stroke-dasharray: 3 5; }
.dash__chart .area { opacity: 0; animation: fade-in 1.2s 1.4s var(--ease) forwards; }
.runner { filter: drop-shadow(0 0 8px var(--mint)); opacity: 0; animation: fade-in 0.5s 2.2s forwards; }
.dash__rows { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 1.4fr auto 1fr; gap: 12px; align-items: center; font-size: 0.8rem; color: var(--text-2); padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.025); }
.row span:first-child { font-family: var(--font-mono); font-size: 0.74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos b { color: var(--mint); }
.pos.up { color: var(--mint); font-weight: 600; }
.bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--grad); transform-origin: left; transform: scaleX(0); animation: grow 1.4s 1.2s var(--ease) forwards; }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes fade-in { to { opacity: 1; } }

.float-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: rgba(14, 19, 28, 0.82); border: 1px solid var(--border-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 0.8rem; color: var(--text-2); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7); white-space: nowrap;
  animation: bob 6s ease-in-out infinite; z-index: 2;
}
.float-chip b { color: var(--text); }
.float-chip .icon { color: var(--mint); }
.float-chip--a { left: -40px; top: 60%; animation-delay: -1s; }
.float-chip--b { right: -18px; top: -18px; animation-delay: -3s; }
.float-chip--c { right: 24px; bottom: -20px; animation-delay: -4.5s; }
.float-chip--c .icon { color: var(--violet); }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* marquee */
.marquee { position: relative; margin-top: clamp(56px, 8vw, 96px); border-block: 1px solid var(--border); background: rgba(255, 255, 255, 0.015); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; gap: 40px; padding: 18px 0; animation: marquee 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 0.95rem; white-space: nowrap; }
.marquee .icon { color: var(--mint); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding-top: clamp(24px, 4vw, 48px); }
.section--alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.018) 20%, rgba(255, 255, 255, 0.018) 80%, transparent); }
.section-head { display: grid; gap: 16px; justify-items: center; text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-head p { color: var(--text-2); font-size: 1.08rem; }
.section-head p a { color: var(--mint); }
.section-head--left { justify-items: start; text-align: left; margin: 0; align-content: start; }
.section-head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; text-align: left; flex-wrap: wrap; }
.section-head--row > div { display: grid; gap: 14px; justify-items: start; }

.stats-band { padding-block: clamp(40px, 6vw, 72px); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: 28px 24px; display: grid; gap: 6px; }
.stat strong { font: 600 clamp(2rem, 3.4vw, 2.8rem)/1 var(--font-display); letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 0.92rem; }

/* cards with pointer glow */
[data-glow] { position: relative; isolation: isolate; }
[data-glow]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(59, 255, 201, 0.12), transparent 45%);
}
[data-glow]:hover::after { opacity: 1; }

.icon-badge { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--mint); background: linear-gradient(145deg, rgba(59, 255, 201, 0.16), rgba(139, 123, 255, 0.12)); border: 1px solid rgba(59, 255, 201, 0.22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { display: grid; gap: 14px; align-content: start; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform 0.4s var(--ease), border-color 0.3s; overflow: hidden; }
.feature-card:hover { transform: translateY(-6px); border-color: rgba(59, 255, 201, 0.3); }
.feature-card p { color: var(--text-2); }
.feature-card__shot { margin: 10px -26px -26px; padding: 14px 14px 0; background: linear-gradient(180deg, rgba(59, 255, 201, 0.08), transparent); border-top: 1px solid var(--border); }
.feature-card__shot img { border-radius: 12px 12px 0 0; box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, 0.6); transition: transform 0.6s var(--ease); transform-origin: top center; }
.feature-card:hover .feature-card__shot img { transform: scale(1.03) translateY(-4px); }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.bento--3 { grid-template-columns: repeat(3, 1fr); margin: 0; }
.bento--4 { margin: 0; }
.bento__item { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 10px; align-content: start; transition: border-color 0.3s, transform 0.4s var(--ease); }
.bento__item:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.bento__item > .icon { color: var(--mint); margin-bottom: 6px; }
.bento__item p { color: var(--text-2); font-size: 0.95rem; }
.bento__item a { color: var(--mint); }
.bento__item--wide { grid-column: span 2; background: linear-gradient(135deg, rgba(59, 255, 201, 0.07), rgba(139, 123, 255, 0.06)); }

/* steps */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.steps__line { position: absolute; top: 34px; left: 0; width: 100%; height: 40px; z-index: 0; }
.step { position: relative; z-index: 1; display: grid; gap: 12px; justify-items: center; text-align: center; padding: 0 12px; }
.step__num { font: 500 0.8rem var(--font-mono); color: var(--muted); letter-spacing: 0.1em; }
.step__icon { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; color: var(--mint); background: var(--bg-2); border: 1px solid rgba(59, 255, 201, 0.3); box-shadow: 0 0 0 8px var(--bg), 0 0 40px -6px rgba(59, 255, 201, 0.5); order: -1; }
.step p { color: var(--text-2); max-width: 300px; }

/* mcp */
.mcp-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.mcp-split__copy { display: grid; gap: 22px; justify-items: start; }
.mcp-split__copy > p { color: var(--text-2); font-size: 1.05rem; }
.endpoint { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 560px; padding: 8px 8px 8px 16px; border-radius: 14px; background: rgba(59, 255, 201, 0.05); border: 1px solid rgba(59, 255, 201, 0.25); font-size: 0.9rem; }
.endpoint__label { font: 500 0.7rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); white-space: nowrap; }
.endpoint code { flex: 1; color: var(--mint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.endpoint__copy { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2); font-size: 0.82rem; font-weight: 600; transition: background 0.2s; }
.endpoint__copy:hover { background: rgba(255, 255, 255, 0.12); }
.endpoint.is-copied .endpoint__copy { color: var(--mint); border-color: var(--mint); }
.endpoint--hero { margin-inline: auto; }
.client-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.client-list li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 0.85rem; color: var(--text-2); }

.terminal { border-radius: 20px; background: #070a10; border: 1px solid var(--border-strong); box-shadow: 0 40px 100px -40px rgba(139, 123, 255, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04); overflow: hidden; font-size: 0.9rem; }
.terminal__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 0.8rem; }
.terminal__bar > span:nth-child(2) { flex: 1; }
.terminal__status { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); }
.terminal__body { padding: 22px; display: grid; gap: 14px; min-height: 380px; align-content: start; }
.t-line { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); line-height: 1.55; }
.t-line.is-visible { opacity: 1; transform: none; }
.t-user { justify-self: end; max-width: 85%; padding: 12px 16px; border-radius: 16px 16px 4px 16px; background: linear-gradient(135deg, rgba(139, 123, 255, 0.28), rgba(56, 189, 248, 0.18)); border: 1px solid rgba(139, 123, 255, 0.35); }
.t-tool { display: block; font: 0.8rem var(--font-mono); color: var(--muted); padding: 8px 12px; border-radius: 10px; border: 1px dashed var(--border-strong); width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
.t-tool b { color: var(--mint); font-weight: 500; }
.t-tool .icon { color: var(--violet); display: inline-block; vertical-align: -2px; margin-right: 6px; }
.t-ai { color: var(--text-2); padding-left: 14px; border-left: 2px solid var(--mint); }
.t-ai b { color: var(--text); }
.t-ai b.neg { color: var(--rose); }
.t-ai code { font-size: 0.82em; background: rgba(255, 255, 255, 0.07); padding: 2px 6px; border-radius: 6px; color: var(--sky); }
.t-caret { width: 9px; height: 18px; background: var(--mint); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.question-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; }
.question-list li { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); transition: border-color 0.25s, transform 0.3s var(--ease); }
.question-list li:hover { border-color: rgba(59, 255, 201, 0.35); transform: translateX(4px); }
.question-list .icon { color: var(--mint); }

.setup-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 20px; }
.setup-card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.setup-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.setup-card h3 .icon { color: var(--mint); }
.setup-card ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--text-2); }
.setup-card ol li::marker { color: var(--mint); font-family: var(--font-mono); }
.setup-card code, .code-tabs__note code { font-size: 0.82em; color: var(--mint); background: rgba(59, 255, 201, 0.08); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.setup-card strong { color: var(--text); }

.code-tabs { border-radius: var(--radius); background: #070a10; border: 1px solid var(--border-strong); overflow: hidden; }
.code-tabs__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
.code-tabs__head > span { display: inline-flex; align-items: center; gap: 8px; }
.code-tabs__head [role="tablist"] { display: flex; flex-wrap: wrap; gap: 4px; }
.code-tabs__head [role="tab"] { background: none; border: 1px solid transparent; padding: 6px 12px; border-radius: 8px; color: var(--muted); font-size: 0.82rem; }
.code-tabs__head [role="tab"][aria-selected="true"] { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.code-tab { display: none; position: relative; }
.code-tab.is-active { display: block; }
.code-tab pre { margin: 0; padding: 22px; overflow-x: auto; font-size: 0.84rem; line-height: 1.6; color: #cfe8ff; }
.code-copy { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-strong); }
.code-copy.is-copied { color: var(--mint); border-color: var(--mint); }
.code-tabs__note { padding: 14px 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
.code-tabs__note a, .setup-card a { color: var(--mint); }

.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tool { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: border-color 0.25s, transform 0.3s var(--ease); }
.tool:hover { border-color: rgba(59, 255, 201, 0.3); transform: translateY(-3px); }
.tool > .icon { color: var(--mint); margin-top: 2px; }
.tool div { display: grid; gap: 4px; min-width: 0; }
.tool b { font-size: 0.95rem; font-weight: 600; }
.tool code { font-size: 0.74rem; color: var(--muted); overflow-wrap: anywhere; }

/* testimonials */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote-card { margin: 0; padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 24px; align-content: space-between; transition: transform 0.4s var(--ease), border-color 0.3s; }
.quote-card:hover { transform: translateY(-6px) rotate(-0.4deg); border-color: var(--border-strong); }
.quote-card__mark { width: 40px; fill: var(--mint); opacity: 0.8; }
.quote-card blockquote { margin: 0; font-size: 1.08rem; color: var(--text); line-height: 1.6; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; }
.quote-card figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(59, 255, 201, 0.4); }
.quote-card figcaption span { display: grid; font-size: 0.85rem; color: var(--muted); }
.quote-card figcaption b { color: var(--text); font-size: 0.95rem; }

/* faq */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq { display: grid; gap: 12px; }
.faq__item { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: border-color 0.3s, background 0.3s; }
.faq__item[open] { border-color: rgba(59, 255, 201, 0.3); background: rgba(59, 255, 201, 0.03); }
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item h3 { font-size: 1.05rem; font-family: var(--font); font-weight: 600; letter-spacing: -0.01em; }
.faq__icon { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); transition: transform 0.35s var(--ease), background 0.3s, color 0.3s; }
.faq__item[open] .faq__icon { transform: rotate(45deg); background: var(--mint); color: #04110d; }
.faq__answer { padding: 0 22px 20px; color: var(--text-2); animation: faq-in 0.4s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* cta */
.cta-banner { position: relative; overflow: hidden; text-align: center; display: grid; gap: 18px; justify-items: center; padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px); border-radius: 28px; background: radial-gradient(ellipse at 50% 120%, rgba(59, 255, 201, 0.28), transparent 60%), radial-gradient(ellipse at 100% 0%, rgba(139, 123, 255, 0.25), transparent 50%), var(--bg-2); border: 1px solid var(--border-strong); }
.cta-banner h2 { max-width: 760px; }
.cta-banner p { color: var(--text-2); max-width: 560px; font-size: 1.08rem; }
.cta-banner .btn-row { margin-top: 10px; }
.cta-banner__art { position: absolute; inset: auto 0 0 0; width: 100%; height: 60%; opacity: 0.5; pointer-events: none; }

/* page hero */
.page-hero, .post-hero, .not-found { position: relative; overflow: hidden; }
.page-hero { padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.page-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.page-hero__bg .aurora { opacity: 0.35; }
.page-hero__inner { position: relative; display: grid; gap: 22px; justify-items: center; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin-inline: auto; }

/* solutions */
.roles { display: grid; gap: clamp(64px, 9vw, 120px); }
.role { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.role--flip .role__copy { order: 2; }
.role__copy { display: grid; gap: 18px; justify-items: start; }
.role__copy > p { color: var(--text-2); font-size: 1.05rem; }
.role__visual { aspect-ratio: 4 / 3; border-radius: 24px; background: radial-gradient(circle at 30% 20%, rgba(59, 255, 201, 0.12), transparent 60%), var(--surface); border: 1px solid var(--border); display: grid; place-items: center; padding: 32px; }
.role-art { width: 100%; max-width: 380px; }
.role-art__bars rect { fill: rgba(139, 123, 255, 0.28); transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
.is-visible .role-art__bars rect { animation: bar-up 0.9s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 200ms); }
@keyframes bar-up { to { transform: scaleY(1); } }
.role-art .pop { fill: var(--bg); stroke: var(--mint); stroke-width: 3; }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 14; }
.ring { fill: none; stroke: var(--mint); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.8s var(--ease) 0.2s; }
.ring--b { stroke: var(--violet); }
.is-visible .ring { stroke-dashoffset: 28; }
.is-visible .ring--b { stroke-dashoffset: 46; }
.ring-label { fill: var(--text); font: 600 30px var(--font-display); }
.ring-sub { fill: var(--muted); font: 12px var(--font); }
.mail-mock { width: 100%; max-width: 380px; padding: 22px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--border-strong); display: grid; gap: 14px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.mail-mock__head { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.mail-mock__head span { margin-left: auto; font-family: var(--font-mono); font-size: 0.75rem; }
.mail-mock__head .icon { color: var(--mint); }
.mail-mock p { color: var(--text-2); }
.mail-mock p b { color: var(--mint); }
.mail-mock__bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.mail-mock__bar i { display: block; height: 100%; width: 72%; background: var(--grad); border-radius: inherit; transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease) 0.3s; }
.is-visible .mail-mock__bar i { transform: scaleX(1); }
.mail-mock__alert { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; padding: 10px 12px; border-radius: 10px; background: rgba(255, 179, 92, 0.1); color: var(--amber); border: 1px solid rgba(255, 179, 92, 0.25); }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; color: var(--text-2); }
.check-list .check { color: #04110d; background: var(--mint); border-radius: 50%; padding: 3px; width: 20px; height: 20px; margin-top: 3px; stroke-width: 3; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 24px; }
.plan { position: relative; padding: 34px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 18px; align-content: start; }
.plan h2 { font-size: 1.4rem; }
.plan > p { color: var(--text-2); }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__price span { font: 600 3.6rem/1 var(--font-display); letter-spacing: -0.04em; }
.plan__price small { color: var(--muted); }
.plan .check-list { padding-top: 18px; border-top: 1px solid var(--border); }
.plan--popular { background: linear-gradient(180deg, rgba(59, 255, 201, 0.08), rgba(139, 123, 255, 0.05)), var(--bg-2); border-color: rgba(59, 255, 201, 0.4); box-shadow: 0 40px 100px -40px rgba(59, 255, 201, 0.45); }
.plan--popular::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); background-size: 200% auto; animation: shine 6s linear infinite; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan__badge { position: absolute; top: 24px; right: 24px; padding: 6px 12px; border-radius: 999px; background: var(--grad); color: #04110d; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

/* about */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.timeline__line { position: absolute; left: 44px; top: 8px; bottom: 8px; width: 4px; height: calc(100% - 16px); }
.timeline__line line { stroke: var(--mint); stroke-width: 2; }
.timeline__item { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 20px; align-items: start; }
.timeline__year { position: relative; z-index: 1; justify-self: center; font: 600 0.85rem var(--font-mono); padding: 8px 10px; border-radius: 10px; background: var(--bg); border: 1px solid rgba(59, 255, 201, 0.4); color: var(--mint); }
.timeline__card { padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 8px; }
.timeline__card p { color: var(--text-2); }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 24px; }
.member { padding: 34px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 10px; justify-items: center; text-align: center; }
.member__avatar { position: relative; width: 120px; height: 120px; border-radius: 50%; padding: 3px; background: var(--grad); margin-bottom: 8px; }
.member__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); }
.member__role { color: var(--mint); font-weight: 600; font-size: 0.9rem; }
.member p:not(.member__role) { color: var(--text-2); }
.member a { color: var(--muted); transition: color 0.2s; }
.member a:hover { color: var(--mint); }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { padding: 30px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 14px; align-content: start; transition: transform 0.4s var(--ease), border-color 0.3s; }
.contact-card:hover { transform: translateY(-6px); border-color: rgba(59, 255, 201, 0.35); }
.contact-card h2 { font-size: 1.3rem; }
.contact-card p { color: var(--text-2); }
.contact-card__email { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); font-weight: 600; font-family: var(--font-mono); font-size: 0.9rem; }
.contact-extra { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.contact-extra__item { display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-radius: 20px; border: 1px solid var(--border); background: linear-gradient(135deg, rgba(59, 255, 201, 0.06), rgba(139, 123, 255, 0.05)); transition: border-color 0.3s; }
.contact-extra__item:hover { border-color: var(--border-strong); }
.contact-extra__item > .icon:first-child { color: var(--mint); }
.contact-extra__item span { flex: 1; display: grid; color: var(--text-2); font-size: 0.92rem; }
.contact-extra__item b { color: var(--text); font-size: 1.05rem; }

/* blog */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; padding: 4px 10px; border-radius: 999px; background: rgba(59, 255, 201, 0.08); color: var(--mint); border: 1px solid rgba(59, 255, 201, 0.18); }
.post-meta { display: inline-flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 0.82rem; }
.post-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { border-radius: 20px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s; }
.post-card:hover { transform: translateY(-6px); border-color: rgba(59, 255, 201, 0.3); box-shadow: 0 30px 60px -30px rgba(59, 255, 201, 0.35); }
.post-card[hidden] { display: none; }
.post-card__link { display: grid; height: 100%; grid-template-rows: auto 1fr; }
.post-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.06); }
.post-card__body { padding: 22px; display: grid; gap: 12px; align-content: start; }
.post-card h3 { font-size: 1.12rem; line-height: 1.3; }
.post-card p { color: var(--text-2); font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.featured-post { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 26px; overflow: hidden; background: var(--surface); border: 1px solid var(--border-strong); }
.featured-post__img { display: block; overflow: hidden; min-height: 320px; }
.featured-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.featured-post:hover .featured-post__img img { transform: scale(1.04); }
.featured-post__body { padding: clamp(26px, 4vw, 44px); display: grid; gap: 16px; align-content: center; justify-items: start; }
.featured-post h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.featured-post h2 a:hover { color: var(--mint); }
.featured-post p { color: var(--text-2); }
.author-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 0.88rem; }
.author-row img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.author-row > span:nth-child(2) { display: grid; line-height: 1.3; color: var(--muted); margin-right: 8px; }
.author-row b { color: var(--text); }

.blog-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.blog-filter button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: 0.85rem; transition: all 0.2s; }
.blog-filter button span { font-size: 0.72rem; color: var(--muted); }
.blog-filter button:hover { border-color: var(--border-strong); color: var(--text); }
.blog-filter button[aria-pressed="true"] { background: var(--mint); color: #04110d; border-color: var(--mint); font-weight: 600; }
.blog-filter button[aria-pressed="true"] span { color: rgba(4, 17, 13, 0.6); }
.blog-search { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); color: var(--muted); min-width: 260px; }
.blog-search:focus-within { border-color: var(--mint); }
.blog-search input { background: none; border: 0; outline: 0; color: var(--text); font: inherit; width: 100%; }
.empty-state { text-align: center; color: var(--muted); padding: 40px; }

/* post */
.reading-progress { position: fixed; top: var(--header-h); left: 0; height: 3px; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--rp, 0)); z-index: 49; }
.post-hero { padding: clamp(40px, 6vw, 72px) 0 0; }
.post-hero .container--narrow { position: relative; display: grid; gap: 20px; justify-items: start; }
.post-hero h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
.breadcrumbs { display: flex; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.breadcrumbs a:hover { color: var(--mint); }
.post-cover { position: relative; margin-top: clamp(32px, 5vw, 56px); }
.post-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 26px; border: 1px solid var(--border-strong); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9); }
.post-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.post-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 24px; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 8px; }
.toc h2, .share h3 { font: 600 0.75rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 0.88rem; color: var(--muted); line-height: 1.4; transition: color 0.2s, border-color 0.2s; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--mint); border-color: var(--mint); }
.share__links { display: flex; gap: 8px; }
.share__links a, .share__links button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); transition: all 0.2s; }
.share__links a:hover, .share__links button:hover, .share__links .is-copied { color: var(--mint); border-color: rgba(59, 255, 201, 0.4); }
.aside-cta { display: grid; gap: 6px; padding: 20px; border-radius: 18px; background: linear-gradient(145deg, rgba(59, 255, 201, 0.1), rgba(139, 123, 255, 0.08)); border: 1px solid rgba(59, 255, 201, 0.25); font-size: 0.88rem; color: var(--text-2); transition: transform 0.3s var(--ease); }
.aside-cta:hover { transform: translateY(-3px); }
.aside-cta b { color: var(--text); font-size: 1rem; }
.aside-cta__btn { display: inline-flex; align-items: center; gap: 6px; color: var(--mint); font-weight: 600; margin-top: 6px; }

/* prose */
.prose { font-size: 1.08rem; line-height: 1.8; color: var(--text-2); min-width: 0; overflow-wrap: break-word; }
.prose > * + *, .prose section > * + *, .prose header > * + *, .prose footer > * + * { margin-top: 1.1em; }
.prose section, .prose header, .prose footer { margin-top: 2.2em; }
.prose > section:first-child, .prose > header:first-child { margin-top: 0; }
.prose header > p:first-child { font-size: 1.18rem; color: var(--text); }
.prose footer { padding: 24px; border-radius: 18px; background: rgba(59, 255, 201, 0.05); border: 1px solid rgba(59, 255, 201, 0.2); }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--text); margin-top: 1.8em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose section > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.28rem; color: var(--text); margin-top: 1.6em; }
.prose h4 { font-size: 1.08rem; color: var(--text); margin-top: 1.4em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--mint); text-decoration: underline; text-decoration-color: rgba(59, 255, 201, 0.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--mint); }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.45em; }
.prose ul li::marker { color: var(--mint); }
.prose ol li::marker { color: var(--mint); font-family: var(--font-mono); font-size: 0.9em; }
.prose code { font-size: 0.86em; background: rgba(255, 255, 255, 0.07); color: var(--sky); padding: 2px 7px; border-radius: 6px; overflow-wrap: anywhere; }
.prose pre { background: #070a10; border: 1px solid var(--border-strong); border-radius: 14px; padding: 18px 20px; overflow-x: auto; font-size: 0.88rem; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: #cfe8ff; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.94rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.prose th { color: var(--text); font-weight: 600; background: var(--surface); }
.prose--legal { font-size: 1rem; }
.prose--legal section { padding-top: 1.6em; border-top: 1px solid var(--border); }
.prose--legal h2 { font-size: 1.4rem; margin-top: 0; }

/* 404 */
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.not-found__inner { position: relative; display: grid; gap: 18px; justify-items: center; }
.not-found__art { width: min(420px, 90%); }
.not-found h1 { font-size: clamp(5rem, 16vw, 10rem); line-height: 1; }
.not-found .lead { margin-inline: auto; }

/* footer */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--border); padding-top: clamp(56px, 7vw, 88px); margin-top: 40px; }
.site-footer__glow { position: absolute; top: -1px; left: 10%; right: 10%; height: 1px; background: var(--grad); box-shadow: 0 0 40px 4px rgba(59, 255, 201, 0.4); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding-bottom: 48px; }
.footer-about { display: grid; gap: 18px; align-content: start; }
.footer-about p { color: var(--muted); max-width: 340px; font-size: 0.95rem; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); color: var(--muted); transition: all 0.2s; }
.footer-social a:hover { color: var(--mint); border-color: rgba(59, 255, 201, 0.4); }
.footer-col h3 { font: 600 0.75rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 0.93rem; transition: color 0.2s, padding 0.2s; }
.footer-col a:hover { color: var(--mint); padding-left: 4px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
.footer-wordmark { font: 700 clamp(5rem, 17vw, 15rem)/0.8 var(--font-display); letter-spacing: -0.06em; text-align: center; background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; margin-bottom: -0.12em; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

.draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); animation: draw 2.4s 0.4s var(--ease) forwards; }
.draw--slow { animation-duration: 3.2s; animation-delay: 0.8s; }
.draw--scroll { animation: none; transition: stroke-dashoffset 2s var(--ease); }
.is-visible .draw--scroll, .draw--scroll.is-visible { stroke-dashoffset: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pop { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop 0.5s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 150ms + 1.4s); }
@keyframes pop { to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .draw { stroke-dashoffset: 0; }
  .t-line { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero__inner, .mcp-split, .faq-layout, .post-layout { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 16ch; }
  .hero-visual { max-width: 680px; margin: 20px auto 0; width: 100%; }
  .dash { --ry: 0deg !important; --rx: 0deg !important; }
  .float-chip--a { left: -8px; }
  .float-chip--b { right: 8px; }
  .feature-grid, .testimonials, .post-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .bento, .bento--4, .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-layout .section-head { position: static; }
  .post-aside { position: static; max-height: none; order: 2; }
  .toc { display: none; }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .testimonials, .post-grid, .contact-grid, .contact-extra, .setup-grid, .bento, .bento--3, .bento--4, .tool-grid, .plans, .team { grid-template-columns: 1fr; }
  .bento__item--wide { grid-column: auto; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps__line { display: none; }
  .role, .featured-post { grid-template-columns: minmax(0, 1fr); }
  .hero__copy > *, .mcp-split__copy > * { max-width: 100%; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .role--flip .role__copy { order: 0; }
  .featured-post__img { min-height: 0; aspect-ratio: 16 / 9; }
  .float-chip { font-size: 0.72rem; padding: 8px 10px; }
  .float-chip--a { display: none; }
  .row { grid-template-columns: 1fr auto; }
  .row .bar { display: none; }
  .dash__chip { display: none !important; }
  .endpoint { flex-wrap: wrap; }
  .endpoint__label { width: 100%; }
  .blog-search { min-width: 0; width: 100%; }
  .timeline__item { grid-template-columns: 70px 1fr; gap: 12px; }
  .timeline__line { left: 33px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .section-head--row { align-items: start; }
}
