/* ==========================================================
   Dagster — dagster.app stylesheet
   Light theme · Poppins · 1140px layout
   ========================================================== */

@font-face{font-family:"Poppins";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/poppins-400.woff2") format("woff2")}
@font-face{font-family:"Poppins";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/poppins-500.woff2") format("woff2")}
@font-face{font-family:"Poppins";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/poppins-600.woff2") format("woff2")}
@font-face{font-family:"Poppins";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/poppins-700.woff2") format("woff2")}

:root{
  --p:#5b3fd9;
  --p-dark:#4527b8;
  --p-soft:#efeaff;
  --p-line:#e4ddff;
  --ink:#1d1640;
  --text:#4a4570;
  --muted:#6f6a8f;
  --bg:#f7f5ff;
  --white:#ffffff;
  --green:#16a34a;
  --amber:#d97706;
  --red:#dc2626;
  --shadow:0 18px 40px -22px rgba(70,45,190,.35);
  --shadow-lg:0 30px 60px -28px rgba(70,45,190,.45);
  --wrap:1140px;
  --sec:64px;
  --head-h:76px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--head-h) + 20px);-webkit-text-size-adjust:100%}
body{margin:0;font-family:"Poppins",Arial,sans-serif;font-size:16px;line-height:1.7;color:var(--text);background:var(--bg);overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:var(--p);text-decoration:none}
a:hover{color:var(--p-dark)}
h1,h2,h3,h4{font-family:"Poppins",Arial,sans-serif;color:var(--ink);line-height:1.25;margin:0 0 .5em;letter-spacing:-.3px}
p{margin:0 0 1em}
button{font-family:inherit}
svg{flex-shrink:0}
:focus-visible{outline:3px solid #a58cff;outline-offset:3px;border-radius:6px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.skip{position:absolute;left:-999px;top:10px;background:var(--p);color:#fff;padding:10px 16px;border-radius:8px;z-index:200}
.skip:focus{left:10px;color:#fff}

.wrap{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 20px}
@media (min-width:1180px){.wrap{padding:0}}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:600;font-size:15.5px;line-height:1;padding:15px 26px;border-radius:12px;border:2px solid transparent;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,background .2s ease,color .2s ease;white-space:nowrap}
.btn svg{width:18px;height:18px}
.btn-primary{background:var(--p);color:#fff;box-shadow:0 14px 26px -12px rgba(91,63,217,.75)}
.btn-primary:hover{background:var(--p-dark);color:#fff;transform:translateY(-2px)}
.btn-ghost{background:#fff;color:var(--p);border-color:var(--p)}
.btn-ghost:hover{background:var(--p-soft);color:var(--p-dark);transform:translateY(-2px)}

/* ---------- Header (floating pill) ---------- */
.site-header{position:sticky;top:0;z-index:100;padding:12px 0;transition:padding .25s ease}
.nav-shell{display:flex;align-items:center;justify-content:space-between;gap:16px;height:var(--head-h);padding:0 14px 0 18px;background:rgba(255,255,255,.82);backdrop-filter:saturate(160%) blur(14px);-webkit-backdrop-filter:saturate(160%) blur(14px);border:1px solid var(--p-line);border-radius:20px;box-shadow:0 10px 30px -22px rgba(70,45,190,.5);transition:box-shadow .25s ease,height .25s ease}
.site-header.is-scrolled{padding:6px 0}
.site-header.is-scrolled .nav-shell{box-shadow:0 18px 40px -20px rgba(70,45,190,.45);height:66px}
.brand{display:inline-flex;align-items:center;gap:10px;font-weight:700;font-size:22px;color:var(--ink);letter-spacing:-.5px}
.brand img{width:40px;height:40px;border-radius:50%}
.brand:hover{color:var(--ink)}
.nav{flex:1;display:flex;justify-content:center}
.nav ul{list-style:none;margin:0;padding:5px;display:flex;gap:2px;background:var(--p-soft);border-radius:14px}
.nav a{display:block;padding:9px 18px;border-radius:10px;font-weight:500;font-size:15px;color:var(--ink);transition:background .2s ease,color .2s ease}
.nav a:hover{background:#fff;color:var(--p)}
.nav a.is-active{background:#fff;color:var(--p);box-shadow:0 6px 14px -8px rgba(70,45,190,.5)}
.head-cta{padding:13px 20px;font-size:15px}
.menu-btn{display:none;width:46px;height:46px;border-radius:12px;border:1px solid var(--p-line);background:#fff;color:var(--ink);align-items:center;justify-content:center;cursor:pointer}
.menu-btn svg{width:24px;height:24px}
.menu-btn .i-close{display:none}
.menu-open .menu-btn .i-open{display:none}
.menu-open .menu-btn .i-close{display:block}

@media (max-width:1020px){
  .menu-btn{display:inline-flex}
  .nav{position:absolute;left:20px;right:20px;top:calc(100% - 4px);display:none}
  .menu-open .nav{display:block}
  .nav ul{flex-direction:column;background:#fff;border:1px solid var(--p-line);border-radius:18px;padding:10px;box-shadow:var(--shadow-lg)}
  .nav a{padding:13px 16px}
  .head-cta{margin-left:auto}
}
@media (max-width:520px){
  .head-cta{display:none}
  .menu-open .nav .nav-mobile-cta{display:block}
}
.nav-mobile-cta{display:none;margin-top:6px}
.nav-mobile-cta a{background:var(--p);color:#fff;text-align:center;font-weight:600}
.nav-mobile-cta a:hover{background:var(--p-dark);color:#fff}

/* ---------- Sections (same background, equal spacing) ---------- */
.section{padding:var(--sec) 0}
.sec-head{text-align:center;max-width:760px;margin:0 auto 46px}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;letter-spacing:1.6px;text-transform:uppercase;color:var(--p);background:var(--p-soft);border:1px solid var(--p-line);padding:6px 14px;border-radius:999px;margin-bottom:16px}
.eyebrow::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--p)}
.sec-head h2{font-size:clamp(28px,3.4vw,40px);font-weight:700;margin-bottom:14px}
.sec-head p{font-size:17px;color:var(--muted);margin:0}
.hl{color:var(--p)}

/* ---------- 1. Hero ---------- */
.hero{padding:44px 0 var(--sec);text-align:center}
.hero h1{font-size:clamp(32px,4.6vw,54px);font-weight:700;letter-spacing:-1px;max-width:900px;margin:0 auto 18px}
.hero-desc{max-width:760px;margin:0 auto 28px;font-size:18px;color:var(--muted)}
.hero-cta{display:flex;justify-content:center;gap:14px;flex-wrap:wrap}
.hero-trust{display:flex;justify-content:center;flex-wrap:wrap;gap:10px 26px;list-style:none;padding:0;margin:24px 0 0;font-size:14.5px;font-weight:500;color:var(--ink)}
.hero-trust li{display:flex;align-items:center;gap:8px}
.hero-trust svg{width:20px;height:20px;color:var(--p)}
.hero-visual{margin:40px auto 0;max-width:1000px;border-radius:24px;padding:10px;background:linear-gradient(135deg,#fff,#efeaff);box-shadow:var(--shadow-lg);border:1px solid var(--p-line)}
.hero-visual img{border-radius:18px;width:100%}

/* ---------- 2. What is (split panel) ---------- */
.about-panel{display:grid;grid-template-columns:1fr 1.05fr;gap:40px;align-items:center;background:linear-gradient(120deg,#fff 0%,#f3efff 100%);border:1px solid var(--p-line);border-radius:28px;padding:48px}
.about-copy>p{color:var(--text)}
.about-facts{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:12px}
.about-facts li{display:flex;gap:12px;align-items:flex-start;font-size:15px}
.about-facts svg{width:22px;height:22px;color:var(--p);margin-top:2px}
.about-facts b{color:var(--ink)}
.about-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.about-tags span{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--ink);padding:8px 14px;border-radius:10px;background:#fff;border:1px solid var(--p-line)}
.about-tags svg{width:18px;height:18px;color:var(--p)}
.about-img img{border-radius:20px}

/* ---------- 3. How it works (curved timeline) ---------- */
.flow{position:relative;display:grid;grid-template-columns:repeat(4,1fr);gap:28px}
.flow::before{content:"";position:absolute;left:12%;right:12%;top:46px;height:2px;background:repeating-linear-gradient(90deg,#b8a6ff 0 10px,transparent 10px 18px)}
.flow-step{position:relative;text-align:center;padding:0 6px}
.flow-ring{position:relative;width:92px;height:92px;margin:0 auto 22px;border-radius:50%;background:#fff;border:1px solid var(--p-line);display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow);transition:transform .25s ease}
.flow-ring svg{width:38px;height:38px;color:var(--p)}
.flow-num{position:absolute;top:-4px;right:-4px;width:30px;height:30px;border-radius:50%;background:var(--p);color:#fff;font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;border:3px solid var(--bg)}
.flow-step:hover .flow-ring{transform:translateY(-6px)}
.flow-step h3{font-size:18px;margin-bottom:8px}
.flow-step p{font-size:15px;color:var(--muted);margin:0}

/* ---------- 4. Features (bento) ---------- */
.bento{display:grid;grid-template-columns:1.25fr 1fr 1fr;grid-template-rows:auto auto;gap:18px}
.bento-hero{grid-row:span 2;position:relative;overflow:hidden;border-radius:24px;padding:36px;color:#fff;background:linear-gradient(150deg,#6d4aff 0%,#4527b8 100%);box-shadow:var(--shadow-lg);display:flex;flex-direction:column;justify-content:flex-end;min-height:360px;transition:transform .25s ease}
.bento-hero::after{content:"";position:absolute;right:-60px;top:-60px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.28),transparent 70%)}
.bento-hero .b-icon{width:64px;height:64px;border-radius:18px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);display:flex;align-items:center;justify-content:center;margin-bottom:auto}
.bento-hero .b-icon svg{width:34px;height:34px;color:#fff}
.bento-hero h3{color:#fff;font-size:26px;margin-top:40px}
.bento-hero p{color:#e5ddff;margin:0;font-size:16px}
.bento-hero:hover{transform:translateY(-4px)}
.bento-item{background:#fff;border:1px solid var(--p-line);border-radius:18px;padding:24px;display:flex;gap:16px;align-items:flex-start;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.bento-item .b-icon{width:48px;height:48px;border-radius:14px;background:var(--p-soft);display:flex;align-items:center;justify-content:center;transition:transform .25s ease}
.bento-item .b-icon svg{width:24px;height:24px;color:var(--p)}
.bento-item h3{font-size:17px;margin-bottom:6px}
.bento-item p{font-size:14.5px;color:var(--muted);margin:0}
.bento-item:hover{transform:translateY(-4px);box-shadow:var(--shadow);border-color:#c8b9ff}
.bento-item:hover .b-icon{transform:rotate(-8deg)}
.bento-wide{grid-column:1/-1;align-items:center}

/* ---------- 5. Why choose (banded image + checklist) ---------- */
.why{display:grid;grid-template-columns:.95fr 1.05fr;gap:50px;align-items:center}
.why-img{position:relative}
.why-img img{border-radius:24px;box-shadow:var(--shadow-lg)}
.why-list{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.why-list li{display:flex;gap:18px;padding:20px 4px;border-bottom:1px dashed #d7cdff}
.why-list li:last-child{border-bottom:0}
.why-check{width:34px;height:34px;border-radius:50%;background:var(--p);color:#fff;display:flex;align-items:center;justify-content:center;margin-top:2px;box-shadow:0 8px 16px -8px rgba(91,63,217,.8)}
.why-check svg{width:18px;height:18px}
.why-list h3{font-size:18px;margin-bottom:4px}
.why-list p{margin:0;color:var(--muted);font-size:15px}

/* ---------- 6. Use cases (divided row, no boxes) ---------- */
.uses{display:grid;grid-template-columns:repeat(4,1fr);border-top:2px solid var(--p);border-bottom:1px solid var(--p-line)}
.use{padding:30px 24px;border-right:1px solid var(--p-line);transition:background .25s ease}
.use:last-child{border-right:0}
.use:hover{background:#fff}
.use-icon{width:56px;height:56px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#fff;border:2px solid var(--p-line);margin-bottom:18px;transition:transform .25s ease,border-color .25s ease}
.use-icon svg{width:28px;height:28px;color:var(--p)}
.use:hover .use-icon{transform:translateY(-4px);border-color:var(--p)}
.use h3{font-size:18px;margin-bottom:8px}
.use p{margin:0;font-size:15px;color:var(--muted)}

/* ---------- 7. Integrations (hub + grouped columns) ---------- */
.integ{display:grid;grid-template-columns:260px 1fr;gap:34px;align-items:center}
.hub{position:relative;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#fff 0 46%,transparent 47%),repeating-radial-gradient(circle,#e3dbff 0 1px,transparent 1px 26px);display:flex;align-items:center;justify-content:center}
.hub img{width:110px;height:110px;border-radius:50%;box-shadow:0 18px 34px -12px rgba(69,39,184,.6)}
.integ-groups{display:grid;grid-template-columns:repeat(4,1fr);gap:0;background:#fff;border:1px solid var(--p-line);border-radius:22px;overflow:hidden}
.ig{padding:24px 20px;border-right:1px solid var(--p-line)}
.ig:last-child{border-right:0}
.ig h3{display:flex;align-items:center;gap:8px;font-size:15px;margin-bottom:16px;color:var(--p)}
.ig h3 svg{width:20px;height:20px}
.ig ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.ig li{display:flex;align-items:center;gap:10px;font-weight:600;color:var(--ink);font-size:15px;padding:8px 10px;border-radius:10px;transition:background .2s ease,transform .2s ease}
.ig li:hover{background:var(--p-soft);transform:translateX(4px)}
.mono-badge{width:32px;height:32px;border-radius:9px;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#fff;background:linear-gradient(135deg,#7c5cff,#4527b8)}

/* ---------- 8. Comparison table ---------- */
.table-wrap{overflow-x:auto;border-radius:22px;border:1px solid var(--p-line);background:#fff;box-shadow:var(--shadow)}
.cmp{width:100%;border-collapse:collapse;min-width:640px}
.cmp th,.cmp td{padding:18px 22px;text-align:left;font-size:15px;border-bottom:1px solid #f0ecff;vertical-align:middle}
.cmp thead th{font-size:15px;color:var(--ink);background:#faf8ff}
.cmp thead th.is-dag{background:var(--p);color:#fff}
.cmp thead th.is-dag span{display:inline-flex;align-items:center;gap:10px}
.cmp thead th.is-dag img{width:26px;height:26px;border-radius:50%;background:#fff}
.cmp td.is-dag{background:#f8f5ff;color:var(--ink);font-weight:500}
.cmp td.is-dag span,.cmp td.trad span{display:inline-flex;align-items:center;gap:10px}
.cmp td.is-dag svg{width:20px;height:20px;color:var(--green)}
.cmp td.trad{color:var(--muted)}
.cmp td.trad svg{width:18px;height:18px;color:#9ca3af}
.cmp tbody th{font-weight:600;color:var(--ink);width:22%}
.cmp tbody tr:last-child th,.cmp tbody tr:last-child td{border-bottom:0}
.cmp tbody tr:hover td,.cmp tbody tr:hover th{background:#f5f1ff}

/* ---------- 9. Getting started + download ---------- */
.start-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;counter-reset:st}
.start-card{position:relative;background:#fff;border:1px solid var(--p-line);border-radius:20px;padding:28px 26px 26px;transition:transform .25s ease,box-shadow .25s ease}
.start-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.start-top{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.start-top .s-icon{width:46px;height:46px;border-radius:50%;background:var(--p);color:#fff;display:flex;align-items:center;justify-content:center}
.start-top .s-icon svg{width:22px;height:22px}
.start-card h3{font-size:18px;margin:0}
.start-card p{font-size:15px;color:var(--muted)}
.mini-code{margin:0;background:#1e1a3a;color:#e6e1ff;border-radius:12px;padding:14px 16px;font-size:13.5px;line-height:1.7;overflow-x:auto;font-family:"Poppins",Arial,sans-serif}
.mini-code .k{color:#c4a5ff}.mini-code .d{color:#ffc56b}.mini-code .f{color:#7fd6ff}
.ticks{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.ticks li{display:flex;align-items:center;gap:10px;font-size:14.5px;font-weight:500;color:var(--ink);padding:9px 12px;border-radius:10px;background:#faf8ff;border:1px solid #efeaff}
.ticks svg{width:18px;height:18px;color:var(--green)}
.dl-band{margin-top:34px;display:grid;grid-template-columns:1fr 1.1fr;gap:40px;align-items:center;padding:40px;border-radius:28px;background:linear-gradient(120deg,#efeaff 0%,#fff 60%);border:1px solid var(--p-line)}
.dl-band img{border-radius:20px;box-shadow:var(--shadow-lg)}
.dl-band h3{font-size:clamp(24px,2.6vw,30px);margin-bottom:12px}
.dl-meta{list-style:none;margin:18px 0 24px;padding:0;display:grid;gap:10px}
.dl-meta li{display:flex;gap:12px;align-items:flex-start;font-size:15px;color:var(--text)}
.dl-meta svg{width:20px;height:20px;color:var(--p);margin-top:3px}
.dl-actions{display:flex;flex-wrap:wrap;gap:12px}

/* ---------- 10. FAQ (two categories) ---------- */
.faq-grid{display:grid;grid-template-columns:1fr 1fr;gap:30px}
.faq-cat h3{display:flex;align-items:center;gap:12px;font-size:20px;margin-bottom:16px;padding-bottom:14px;border-bottom:2px solid var(--p)}
.faq-cat h3 svg{width:26px;height:26px;color:var(--p)}
.faq-item{background:#fff;border:1px solid var(--p-line);border-radius:14px;margin-bottom:10px;overflow:hidden;transition:border-color .2s ease,box-shadow .2s ease}
.faq-item.is-open{border-color:#bfaeff;box-shadow:var(--shadow)}
.faq-q{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;background:none;border:0;padding:17px 20px;font-size:15.5px;font-weight:600;color:var(--ink);cursor:pointer;line-height:1.45}
.faq-q:hover{color:var(--p)}
.faq-ico{width:30px;height:30px;border-radius:50%;background:var(--p-soft);display:flex;align-items:center;justify-content:center;color:var(--p);transition:transform .25s ease,background .25s ease}
.faq-ico svg{width:16px;height:16px}
.faq-item.is-open .faq-ico{transform:rotate(180deg);background:var(--p);color:#fff}
.faq-a{display:grid;grid-template-rows:0fr;transition:grid-template-rows .3s ease}
.faq-item.is-open .faq-a{grid-template-rows:1fr}
.faq-a>div{overflow:hidden}
.faq-a p{padding:0 20px 18px;margin:0;font-size:15px;color:var(--text)}

/* ---------- Footer ---------- */
.site-footer{margin-top:20px;background:#fff;border-top:1px solid var(--p-line);padding:60px 0 0}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:40px}
.foot-brand p{margin:16px 0 0;font-size:15px;color:var(--muted);max-width:420px}
.foot-col h4{font-size:16px;margin-bottom:14px}
.foot-col ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.foot-col a{color:var(--text);font-size:15px;text-decoration:none}
.foot-col a:hover{color:var(--p)}
.foot-bottom{margin-top:44px;padding:22px 0;border-top:1px solid #efeaff;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-size:14px;color:var(--muted)}
.foot-bottom a{color:var(--p);font-weight:600;text-decoration:none}
.site-footer a{text-decoration:none}

/* ---------- Scroll top ---------- */
.to-top{position:fixed;right:20px;bottom:20px;z-index:90;width:48px;height:48px;border-radius:14px;border:0;background:var(--p);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 14px 26px -10px rgba(91,63,217,.8);opacity:0;visibility:hidden;transform:translateY(12px);transition:opacity .25s ease,transform .25s ease,visibility .25s}
.to-top.is-visible{opacity:1;visibility:visible;transform:none}
.to-top svg{width:22px;height:22px}

/* ---------- Reveal ---------- */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .6s ease,transform .6s ease}
.reveal.is-in{opacity:1;transform:none}
.no-js .reveal{opacity:1;transform:none}

/* ---------- Inner pages ---------- */
.page-hero{padding:40px 0 10px;text-align:center}
.crumbs{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0 0 18px;font-size:14px;color:var(--muted)}
.crumbs li+li::before{content:"/";margin-right:8px;color:#b9b0e6}
.crumbs a{color:var(--muted)}
.crumbs a:hover{color:var(--p)}
.page-hero h1{font-size:clamp(30px,4vw,46px);max-width:900px;margin:0 auto 14px}
.page-hero p{max-width:740px;margin:0 auto;color:var(--muted);font-size:17px}

.prose{background:#fff;border:1px solid var(--p-line);border-radius:24px;padding:46px 50px}
.prose h2{font-size:26px;margin:36px 0 14px}
.prose h2:first-child{margin-top:0}
.prose h3{font-size:20px;margin:26px 0 10px}
.prose ul{padding-left:22px;margin:0 0 1.2em}
.prose li{margin-bottom:6px}
.prose a{text-decoration:underline;text-underline-offset:3px}
.email-line{display:inline-flex;align-items:center;gap:12px;font-size:20px;font-weight:600;color:var(--ink);background:var(--p-soft);border:1px solid var(--p-line);padding:16px 22px;border-radius:14px;user-select:all}
.email-line svg{width:24px;height:24px;color:var(--p)}

/* Blog list */
.posts{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.post-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--p-line);border-radius:20px;overflow:hidden;transition:transform .25s ease,box-shadow .25s ease}
.post-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg)}
.post-card img{aspect-ratio:16/9;object-fit:cover;width:100%;transition:transform .4s ease}
.post-card:hover img{transform:scale(1.03)}
.post-thumb{overflow:hidden}
.post-body{padding:22px 22px 24px;display:flex;flex-direction:column;flex:1}
.post-tag{font-size:12px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:var(--p);margin-bottom:8px}
.post-card h2,.post-card h3{font-size:18.5px;margin-bottom:10px}
.post-card h2 a,.post-card h3 a{color:var(--ink)}
.post-card h2 a:hover,.post-card h3 a:hover{color:var(--p)}
.post-card p{font-size:14.5px;color:var(--muted);margin-bottom:16px}
.read-more{margin-top:auto;display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:14.5px}
.read-more svg{width:16px;height:16px;transition:transform .2s ease}
.post-card:hover .read-more svg{transform:translateX(4px)}

/* Article */
.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:36px;align-items:start}
.article{background:#fff;border:1px solid var(--p-line);border-radius:24px;overflow:hidden}
.article-cover img{width:100%;aspect-ratio:16/9;object-fit:cover}
.article-body{padding:40px 46px 46px;font-size:16.5px;color:var(--text)}
.article-body h1{font-size:clamp(28px,3.4vw,40px);margin-bottom:16px}
.article-body h2{font-size:26px;margin:38px 0 14px}
.article-body h3{font-size:20px;margin:26px 0 10px}
.article-body p{margin-bottom:1.1em}
.article-body ul{padding-left:0;list-style:none;margin:0 0 1.3em;display:grid;gap:9px}
.article-body ul li{position:relative;padding-left:30px}
.article-body ul li::before{content:"";position:absolute;left:4px;top:9px;width:10px;height:10px;border-radius:3px;background:var(--p);transform:rotate(45deg)}
.article-body a{text-decoration:underline;text-underline-offset:3px}
.article-body code{font-family:"Poppins",Arial,sans-serif;font-size:.92em;background:var(--p-soft);color:var(--p-dark);padding:2px 7px;border-radius:6px}
.article-body pre{background:#1e1a3a;color:#e6e1ff;border-radius:14px;padding:18px 20px;overflow-x:auto;font-size:14.5px;line-height:1.7;margin:0 0 1.3em}
.article-body pre code{background:none;color:inherit;padding:0}
.meta-line{display:flex;flex-wrap:wrap;gap:16px;font-size:14px;color:var(--muted);margin-bottom:22px}
.meta-line span{display:inline-flex;align-items:center;gap:6px}
.meta-line svg{width:16px;height:16px;color:var(--p)}
.art-table{overflow-x:auto;margin:0 0 1.4em;border:1px solid var(--p-line);border-radius:14px}
.art-table table{width:100%;border-collapse:collapse;min-width:520px}
.art-table th,.art-table td{padding:13px 16px;text-align:left;border-bottom:1px solid #f0ecff;font-size:15px;vertical-align:top}
.art-table th{background:#f6f3ff;color:var(--ink)}
.art-table tr:last-child td{border-bottom:0}
.art-faq{margin-top:10px}
.art-faq details{border:1px solid var(--p-line);border-radius:12px;margin-bottom:10px;background:#fcfbff}
.art-faq summary{cursor:pointer;padding:15px 18px;font-weight:600;color:var(--ink);list-style:none;display:flex;justify-content:space-between;gap:12px}
.art-faq summary::-webkit-details-marker{display:none}
.art-faq summary::after{content:"+";font-size:22px;line-height:1;color:var(--p)}
.art-faq details[open] summary::after{content:"−"}
.art-faq details p{padding:0 18px 16px;margin:0}

.sidebar{position:sticky;top:calc(var(--head-h) + 30px);max-height:calc(100vh - var(--head-h) - 50px);overflow-y:auto;overscroll-behavior:contain;display:grid;gap:20px;padding-right:4px;scrollbar-width:thin;scrollbar-color:#c9bbff transparent}
.sidebar::-webkit-scrollbar{width:6px}
.sidebar::-webkit-scrollbar-thumb{background:#c9bbff;border-radius:6px}
.side-box{background:#fff;border:1px solid var(--p-line);border-radius:18px;padding:22px}
.side-box h2{font-size:17px;margin-bottom:14px}
.toc{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.toc a{display:block;padding:7px 10px;border-radius:8px;font-size:14px;color:var(--text);border-left:2px solid transparent}
.toc a:hover,.toc a.is-active{background:var(--p-soft);color:var(--p);border-left-color:var(--p)}
.side-posts{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.side-posts a{display:flex;gap:12px;align-items:center;color:var(--ink);font-size:14px;font-weight:500;line-height:1.4}
.side-posts img{width:76px;height:46px;object-fit:cover;border-radius:8px}
.side-posts a:hover{color:var(--p)}
.side-cta{background:linear-gradient(150deg,#6d4aff,#4527b8);color:#e5ddff;border:0}
.side-cta h2{color:#fff}
.side-cta p{font-size:14.5px}
.side-cta .btn{background:#fff;color:var(--p);width:100%}
.side-cta .btn:hover{background:var(--p-soft);color:var(--p-dark)}
.related{margin-top:var(--sec)}
.related .posts{grid-template-columns:repeat(3,1fr)}

/* ---------- Responsive ---------- */
@media (max-width:1080px){
  .bento{grid-template-columns:1fr 1fr}
  .bento-hero{grid-row:auto;grid-column:span 2;min-height:260px}
  .integ{grid-template-columns:1fr}
  .hub{max-width:220px;margin:0 auto;width:100%}
  .article-layout{grid-template-columns:1fr}
  .sidebar{position:static;max-height:none;overflow:visible}
}
@media (max-width:960px){
  :root{--sec:68px}
  .about-panel,.why,.dl-band{grid-template-columns:1fr}
  .about-panel{padding:32px}
  .flow{grid-template-columns:1fr 1fr;row-gap:40px}
  .flow::before{display:none}
  .uses{grid-template-columns:1fr 1fr}
  .use:nth-child(2){border-right:0}
  .use:nth-child(-n+2){border-bottom:1px solid var(--p-line)}
  .integ-groups{grid-template-columns:1fr 1fr}
  .ig:nth-child(2){border-right:0}
  .ig:nth-child(-n+2){border-bottom:1px solid var(--p-line)}
  .start-steps{grid-template-columns:1fr}
  .faq-grid{grid-template-columns:1fr}
  .posts,.related .posts{grid-template-columns:1fr 1fr}
  .foot-grid{grid-template-columns:1fr 1fr}
  .foot-brand{grid-column:span 2}
}
@media (max-width:640px){
  :root{--sec:56px;--head-h:64px}
  body{font-size:15.5px}
  .hero{padding-top:26px}
  .hero-desc{font-size:16.5px}
  .hero-cta .btn{width:100%}
  .about-panel,.dl-band{padding:22px;border-radius:22px}
  .flow,.uses,.integ-groups{grid-template-columns:1fr}
  .use,.ig{border-right:0!important;border-bottom:1px solid var(--p-line)}
  .use:last-child,.ig:last-child{border-bottom:0}
  .bento{grid-template-columns:1fr}
  .bento-hero,.bento-wide{grid-column:auto}
  .posts,.related .posts{grid-template-columns:1fr}
  .prose,.article-body{padding:26px 20px}
  .foot-grid{grid-template-columns:1fr}
  .foot-brand{grid-column:auto}
  .dl-actions .btn{width:100%}
  .brand{font-size:20px}
  .brand img{width:36px;height:36px}
}
@media (max-width:360px){
  .btn{padding:14px 18px;font-size:15px;white-space:normal}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{transition:none!important;animation:none!important}
  .reveal{opacity:1;transform:none}
}
