/* ==========================================================================
   MachineLabs — components & home sections
   ========================================================================== */

/* ---------- Background FX ---------- */
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 25%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 65% at 50% 25%, #000 25%, transparent 75%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.6; }
.hero-glow--1 { width: 640px; height: 640px; left: -180px; top: -260px; background: radial-gradient(circle, rgba(139, 92, 246, 0.55), transparent 65%); }
.hero-glow--2 { width: 560px; height: 560px; right: -160px; top: 60px; background: radial-gradient(circle, rgba(34, 211, 238, 0.32), transparent 65%); }
.neural-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 65% 40%, #000 15%, transparent 80%); mask-image: radial-gradient(ellipse 70% 70% at 65% 40%, #000 15%, transparent 80%); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); isolation: isolate; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero-copy .display { margin-bottom: 26px; }
.hero-copy .lead { font-size: clamp(1.05rem, 1.5vw, 1.24rem); }
.hero-actions { margin-top: 34px; --gap: 12px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; color: var(--text-2); font-size: 0.9rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 16px; height: 16px; color: var(--lime); }
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 640px; width: 100%; margin-inline: auto; }
}

/* ---------- Console (hero visual) ---------- */
.hero-visual { position: relative; }
.console {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(21, 24, 37, 0.92), rgba(9, 11, 18, 0.95));
  border: 1px solid var(--border-2);
  box-shadow: 0 50px 120px -40px rgba(139, 92, 246, 0.5), var(--shadow-lg);
  overflow: hidden;
}
.console::before, .plan.is-featured::before, .gradient-border::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(196, 181, 253, 0.65), rgba(139, 92, 246, 0.1) 30%, transparent 55%, rgba(34, 211, 238, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.console-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.74rem; color: var(--text-3); }
.console-head .mono { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-dots { display: flex; gap: 6px; }
.console-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2b3043; }
.console-dots i:nth-child(1) { background: rgba(255, 95, 87, 0.75); }
.console-dots i:nth-child(2) { background: rgba(254, 188, 46, 0.75); }
.console-dots i:nth-child(3) { background: rgba(40, 200, 64, 0.75); }
.console-head .badge { margin-left: auto; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); animation: pulse-dot 1.6s ease-in-out infinite; }
.console-body { display: grid; gap: 14px; padding: 18px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.metric { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.metric-label { display: block; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.metric-value { display: block; margin-top: 4px; font-size: 1.22rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.chart { padding: 14px 14px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.loss-chart { width: 100%; height: 140px; overflow: visible; }
.loss-chart .gridline { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; stroke-dasharray: 3 5; }
.loss-train, .loss-val { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw-line 3.4s var(--ease) 0.4s forwards; vector-effect: non-scaling-stroke; }
.loss-train { stroke: url(#lossStroke); }
.loss-val { stroke: rgba(34, 211, 238, 0.55); stroke-width: 1.6; animation-delay: 0.7s; }
.loss-area { fill: url(#lossFill); opacity: 0; animation: fade-in 1.4s ease 2.6s forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
.chart-legend { display: flex; gap: 16px; margin-top: 8px; font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-3); }
.legend-swatch { display: inline-block; width: 12px; height: 3px; margin-right: 6px; border-radius: 2px; vertical-align: middle; }
.legend-swatch--train { background: var(--grad); }
.legend-swatch--val { background: rgba(34, 211, 238, 0.6); }
.stream { border-radius: 12px; border: 1px solid var(--border); overflow: hidden; background: rgba(255, 255, 255, 0.015); }
.stream-head { display: flex; justify-content: space-between; padding: 8px 12px; font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); background: var(--surface); border-bottom: 1px solid var(--border); }
.stream-head [data-count] { color: var(--text-2); letter-spacing: 0.02em; }
.stream-rows { height: 132px; overflow: hidden; }
.stream-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 12px; align-items: center; height: 44px; padding: 0 12px; border-bottom: 1px solid var(--border); font-size: 0.8rem; color: var(--text-2); }
.stream-row > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stream-row .mono { font-size: 0.72rem; color: var(--text-3); }
.stream-row.is-new { animation: row-in 0.7s var(--ease) both; }
@keyframes row-in { from { opacity: 0; transform: translateY(-12px); background: rgba(139, 92, 246, 0.16); } }
.float-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(14, 17, 26, 0.88); border: 1px solid var(--border-2); backdrop-filter: blur(10px); font-size: 0.78rem; color: var(--text); box-shadow: var(--shadow-lg); animation: float-y 6s ease-in-out infinite; white-space: nowrap; }
.float-chip .icon { width: 15px; height: 15px; color: var(--cyan); }
.float-chip--a { left: -30px; bottom: -20px; }
.float-chip--a .icon { color: var(--lime); }
.float-chip--b { right: 48px; top: -46px; animation-delay: -3s; }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 1180px) { .float-chip--a { left: -8px; } .float-chip--b { right: 8px; } }
@media (max-width: 560px) { .float-chip { display: none; } .metric-value { font-size: 1rem; } .metric { padding: 10px; } .stream-row { grid-template-columns: 60px minmax(0, 1fr) auto; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 7vw, 88px); border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(10, 12, 19, 0.55); backdrop-filter: blur(8px); overflow: hidden; }
.stat { padding: clamp(18px, 2.4vw, 28px); }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-value { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; background: linear-gradient(180deg, #fff 30%, #9ea4bb); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { margin-top: 10px; font-size: 0.86rem; color: var(--text-3); }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
}

/* ---------- Marquee ---------- */
.marquee-section { padding: 8px 0 clamp(24px, 4vw, 48px); }
.marquee-label { text-align: center; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; padding-right: 12px; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.tech-pill { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 0.9rem; white-space: nowrap; }
.tech-pill::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--grad); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card { position: relative; border-radius: var(--radius-lg); border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)); padding: clamp(22px, 2.4vw, 30px); overflow: hidden; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease); }
.card:hover { border-color: var(--border-2); }
[data-spotlight] { --mx: 50%; --my: 50%; }
[data-spotlight]::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.35s var(--ease); background: radial-gradient(460px circle at var(--mx) var(--my), rgba(139, 92, 246, 0.13), transparent 45%); }
[data-spotlight]:hover::after { opacity: 1; }

/* ---------- Bento services ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.bento-item { grid-column: span 2; display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
.bento-item:nth-child(6n + 1), .bento-item:nth-child(6n + 2) { grid-column: span 3; }
.bento-item:nth-child(6n + 6) { grid-column: span 6; min-height: 0; }
.bento-item h3 { margin: 8px 0 0; font-size: 1.28rem; }
.bento-item p { margin: 0; color: var(--text-2); font-size: 0.95rem; max-width: 56ch; }
.bento-list { list-style: none; display: grid; gap: 8px; margin-top: 2px; font-size: 0.88rem; color: var(--text-2); }
.bento-list li { display: flex; gap: 9px; align-items: flex-start; }
.bento-list .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--violet-2); }
.bento-item .link-arrow { margin-top: auto; padding-top: 8px; position: relative; z-index: 1; }
.card-num { position: absolute; top: 24px; right: 26px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); }
@media (max-width: 1024px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento-item, .bento-item:nth-child(n) { grid-column: span 1; min-height: 0; } }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.process-step { position: relative; padding: clamp(24px, 3vw, 36px); background: var(--bg-elev); transition: background 0.3s var(--ease); }
.process-step:hover { background: #0d1019; }
.step-index { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--violet-2); }
.step-index::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(167, 139, 250, 0.45), transparent); }
.process-step h3 { font-size: 1.2rem; }
.process-step p { margin: 0; color: var(--text-2); font-size: 0.94rem; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .process { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Dataset cards ---------- */
.dataset-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)); overflow: hidden; transition: border-color 0.3s var(--ease), transform 0.35s var(--ease); }
.dataset-card:hover { border-color: rgba(167, 139, 250, 0.38); transform: translateY(-3px); }
.dataset-card__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.dataset-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dataset-card__top .icon-tile { width: 40px; height: 40px; }
.dataset-card h3 { margin: 6px 0 0; font-size: 1.1rem; line-height: 1.3; }
.dataset-card p { margin: 0; font-size: 0.9rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dataset-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 4px 0 0; padding-top: 14px; border-top: 1px dashed var(--border-2); }
.dataset-specs dt { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.dataset-specs dd { margin: 3px 0 0; font-size: 0.86rem; color: var(--text); }
.dataset-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.format-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.format-pill { font-family: var(--font-mono); font-size: 0.66rem; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }
.price-tag { text-align: right; line-height: 1.15; flex: none; }
.price-tag strong { display: block; font-size: 1.22rem; font-weight: 600; letter-spacing: -0.02em; }
.price-tag span { font-size: 0.72rem; color: var(--text-3); }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 20px; padding: clamp(26px, 2.6vw, 34px); border-radius: var(--radius-xl); border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)); overflow: hidden; }
.plan.is-featured { border-color: transparent; background: linear-gradient(180deg, rgba(139, 92, 246, 0.16), rgba(34, 211, 238, 0.045) 55%, rgba(255, 255, 255, 0.01)); box-shadow: 0 40px 100px -40px rgba(139, 92, 246, 0.6); }
.plan-badge { position: absolute; top: 26px; right: 24px; }
.plan-head h3 { margin: 0; font-size: 1.45rem; }
.plan-audience { margin: 4px 0 0; font-size: 0.86rem; color: var(--text-3); }
.plan-price { display: flex; align-items: baseline; gap: 8px; }
.plan-price .amount { font-size: clamp(2.3rem, 3.4vw, 3rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.plan-price .per { font-size: 0.92rem; color: var(--text-3); }
.plan-usd { margin-top: 8px; font-size: 0.78rem; color: var(--text-3); }
.plan-tagline { margin: 0; color: var(--text-2); font-size: 0.94rem; min-height: 3.2em; }
.plan-features { list-style: none; display: grid; gap: 12px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 0.92rem; color: var(--text-2); }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; }
.plan-features .icon { width: 17px; height: 17px; margin-top: 3px; color: var(--success); }
.plan.is-featured .plan-features .icon { color: var(--lime); }
.plan .btn { position: relative; z-index: 1; }
@media (max-width: 1024px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 540px; margin-inline: auto; } .plan-tagline { min-height: 0; } }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.compare { width: 100%; min-width: 760px; font-size: 0.92rem; }
.compare th, .compare td { padding: 14px 20px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; }
.compare th:first-child, .compare td:first-child { text-align: left; width: 34%; }
.compare thead th { background: var(--bg-elev-2); font-size: 1rem; font-weight: 600; }
.compare thead th small { display: block; margin-top: 2px; font-size: 0.8rem; font-weight: 400; color: var(--text-3); }
.compare .group-row th { text-align: left; background: rgba(139, 92, 246, 0.07); font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet-2); padding-block: 10px; }
.compare td:first-child { color: var(--text-2); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .is-featured { background: rgba(139, 92, 246, 0.06); }
.compare .val-yes .icon { width: 18px; height: 18px; margin-inline: auto; color: var(--success); }
.compare .val-no { color: var(--text-3); }

/* ---------- Industries ---------- */
.industry-card { display: flex; flex-direction: column; gap: 14px; }
.industry-card h3 { margin: 6px 0 0; font-size: 1.16rem; }
.industry-card p { margin: 0; color: var(--text-2); font-size: 0.93rem; }
.industry-points { list-style: none; display: grid; gap: 9px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--text-2); }
.industry-points li { display: flex; gap: 10px; }
.industry-points li::before { content: '→'; color: var(--violet-2); font-family: var(--font-mono); }

/* ---------- Testimonials & posts ---------- */
.testimonial blockquote { margin: 0 0 20px; font-size: 1.02rem; line-height: 1.65; color: var(--text); }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; }
.testimonial img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.testimonial small { display: block; color: var(--text-3); font-size: 0.82rem; }
.post-card { display: flex; flex-direction: column; gap: 12px; }
.post-card h3 { margin: 4px 0 0; font-size: 1.16rem; line-height: 1.35; }
.post-card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.post-card p { margin: 0; color: var(--text-2); font-size: 0.92rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); letter-spacing: 0.02em; }
.post-card .link-arrow { margin-top: auto; }
.post-cover { margin: calc(-1 * clamp(22px, 2.4vw, 30px)) calc(-1 * clamp(22px, 2.4vw, 30px)) 8px; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--grad-soft); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover--placeholder { position: relative; display: grid; place-items: center; }
.post-cover--placeholder::before { content: ''; 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: 28px 28px; }
.post-cover--placeholder .icon { position: relative; width: 44px; height: 44px; color: #ddd6fe; opacity: 0.85; }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 900px) { .faq-layout { grid-template-columns: minmax(0, 1fr); } .faq-aside { position: static; } }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color 0.25s, background 0.25s; }
.faq-item:hover { border-color: var(--border-2); }
.faq-item[open] { border-color: var(--border-2); background: var(--surface-2); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; list-style: none; cursor: pointer; font-weight: 500; font-size: 1rem; line-height: 1.45; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--border-2); transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s; }
.faq-icon .icon { width: 14px; height: 14px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: rgba(139, 92, 246, 0.2); border-color: rgba(167, 139, 250, 0.55); }
.faq-answer { padding: 0 20px 20px; font-size: 0.95rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(36px, 6vw, 76px); border-radius: var(--radius-xl); border: 1px solid var(--border-2); background: radial-gradient(120% 140% at 0% 0%, rgba(139, 92, 246, 0.3), transparent 50%), radial-gradient(120% 140% at 100% 100%, rgba(34, 211, 238, 0.18), transparent 50%), var(--bg-elev); }
.cta-grid-bg { position: absolute; inset: 0; z-index: -1; 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: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 75% 50%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 75% 50%, #000, transparent 70%); }
.cta-content { position: relative; z-index: 1; max-width: 640px; }
.cta-content h2 { margin-bottom: 16px; }
.cta-orbit { position: absolute; z-index: -1; right: -60px; top: 50%; width: 440px; height: 440px; transform: translateY(-50%); }
.cta-orbit span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(167, 139, 250, 0.25); animation: spin 32s linear infinite; }
.cta-orbit span:nth-child(2) { inset: 64px; border-color: rgba(34, 211, 238, 0.25); animation-duration: 22s; animation-direction: reverse; }
.cta-orbit span:nth-child(3) { inset: 128px; border-color: rgba(195, 245, 60, 0.2); animation-duration: 15s; }
.cta-orbit span::before { content: ''; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--violet-2); box-shadow: 0 0 16px var(--violet); }
.cta-orbit span:nth-child(2)::before { background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
.cta-orbit span:nth-child(3)::before { background: var(--lime); box-shadow: 0 0 16px var(--lime); }
@media (max-width: 860px) { .cta-orbit { opacity: 0.35; right: -220px; } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(52px, 8vw, 100px) 0 clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--border); }
.page-hero .bg-grid { -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 15%, transparent 70%); mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 15%, transparent 70%); }
.page-hero .hero-glow--1 { left: 50%; top: -360px; margin-left: -320px; opacity: 0.5; }
.page-hero .hero-glow--2 { top: -200px; right: -260px; opacity: 0.35; }
.page-hero h1 { max-width: 22ch; }
.page-hero .lead { margin-top: 18px; }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center .lead { margin-inline: auto; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-3); }
.page-hero--center .crumbs { justify-content: center; }
.crumbs a { transition: color 0.2s; }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { opacity: 0.45; }

/* ---------- Prose (Markdown content) ---------- */
.prose { color: var(--text-2); font-size: 1.02rem; line-height: 1.8; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin: 2.1em 0 0.7em; font-size: 1.5rem; color: var(--text); letter-spacing: -0.02em; }
.prose h3 { margin: 1.8em 0 0.6em; font-size: 1.16rem; color: var(--text); }
.prose h4 { margin: 1.6em 0 0.5em; color: var(--text); }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--violet-2); text-decoration: underline; text-decoration-color: rgba(167, 139, 250, 0.4); text-underline-offset: 3px; }
.prose a:hover { color: #fff; text-decoration-color: currentColor; }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { font-style: italic; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 1.35em; }
.prose li { margin: 0.45em 0; padding-left: 0.25em; }
.prose ul > li::marker { color: var(--violet-2); }
.prose ol > li::marker { color: var(--text-3); font-family: var(--font-mono); font-size: 0.88em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--violet); color: var(--text); font-size: 1.08rem; }
.prose code { padding: 2px 6px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); font-family: var(--font-mono); font-size: 0.86em; color: #e9d5ff; }
.prose pre { margin: 1.5em 0; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--border); background: #07090e; overflow-x: auto; font-size: 0.85rem; line-height: 1.7; }
.prose pre code { padding: 0; border: 0; background: none; color: var(--text-2); }
.prose img { margin: 1.5em 0; border-radius: var(--radius); border: 1px solid var(--border); }
.prose hr { margin: 2.5em 0; }
.md-table { margin: 1.5em 0; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.md-table table { width: 100%; font-size: 0.92rem; line-height: 1.55; }
.md-table th, .md-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.md-table th { background: var(--surface-2); color: var(--text); font-weight: 600; }
.md-table tr:last-child td { border-bottom: 0; }
.md-meta p { margin: 0 0 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.02em; color: var(--text-3); }
.md-note, .md-info, .md-warning, .md-success { margin: 1.6em 0; padding: 16px 20px; border-radius: var(--radius); border: 1px solid rgba(167, 139, 250, 0.32); background: var(--grad-soft); color: var(--text); }
.md-info { border-color: rgba(34, 211, 238, 0.3); background: rgba(34, 211, 238, 0.06); }
.md-warning { border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.07); }
.md-success { border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.07); }
.md-note > :last-child, .md-info > :last-child, .md-warning > :last-child, .md-success > :last-child { margin-bottom: 0; }
.md-callout-title { margin-bottom: 6px !important; font-weight: 600; color: var(--text); }
.md-check ul, .md-cross ul { list-style: none; padding-left: 0; }
.md-check li, .md-cross li { position: relative; padding-left: 32px; }
.md-check li::before, .md-cross li::before { position: absolute; left: 0; top: 0.28em; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; font-size: 0.7rem; font-weight: 700; }
.md-check li::before { content: '✓'; background: rgba(52, 211, 153, 0.15); color: var(--success); }
.md-cross li::before { content: '✕'; background: rgba(248, 113, 113, 0.14); color: var(--danger); }
.md-steps ol { list-style: none; padding-left: 0; counter-reset: step; }
.md-steps li { position: relative; margin: 0; padding: 4px 0 20px 50px; counter-increment: step; }
.md-steps li::before { content: counter(step); position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--grad-strong); color: #fff; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; box-shadow: 0 0 0 5px rgba(139, 92, 246, 0.13); }
.md-steps li::after { content: ''; position: absolute; left: 15.5px; top: 42px; bottom: 2px; width: 1px; background: linear-gradient(var(--border-3), transparent); }
.md-steps li:last-child { padding-bottom: 6px; }
.md-steps li:last-child::after { display: none; }
