/* Team Showcase - demo website */
:root {
	--ink: #0b1020;
	--ink-2: #121a3a;
	--text: #1f2540;
	--muted: #5d6580;
	--line: #e6e9f2;
	--soft: #f5f7fc;
	--primary: #4f46e5;
	--primary-2: #4338ca;
	--violet: #7c3aed;
	--teal: #14b8a6;
	--white: #fff;
	--radius: 16px;
	--shadow: 0 12px 34px rgba(18, 26, 58, .08);
	--max: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 138px; }
body { margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3, h4 { font-family: "Poppins", "Inter", sans-serif; color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
code, pre { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(11, 16, 32, .92); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-mark { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--primary), var(--violet)); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, .45); }
.logo-mark svg { width: 22px; height: 22px; }
.logo-text { display: flex; flex-direction: column; font-family: "Poppins", sans-serif; font-weight: 700; line-height: 1; }
.logo-text b { color: #fff; font-size: 18px; letter-spacing: .3px; }
.logo-text span { color: #a5b4fc; font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: #d7dbee; text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 14px; border-radius: 9px; transition: background .2s, color .2s; }
.nav a:hover, .nav a.active { background: rgba(255, 255, 255, .08); color: #fff; }
.nav a.nav-cta { background: linear-gradient(135deg, var(--primary), var(--violet)); color: #fff; margin-left: 8px; }
.nav a.nav-cta:hover { filter: brightness(1.1); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1000px 520px at 88% -8%, rgba(124, 58, 237, .5), transparent 62%), radial-gradient(900px 520px at -8% 108%, rgba(20, 184, 166, .28), transparent 60%), var(--ink-2); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.hero .container { position: relative; padding-top: 84px; padding-bottom: 88px; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: 13px; font-weight: 600; letter-spacing: .3px; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .22); }
.hero h1 { color: #fff; font-size: clamp(32px, 5.2vw, 60px); font-weight: 800; margin: 22px auto 18px; max-width: 920px; letter-spacing: -.8px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #a5b4fc, #5eead4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 1.6vw, 19px); color: #c5cbe2; max-width: 760px; margin: 0 auto 32px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s, filter .2s, box-shadow .2s; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--violet)); color: #fff; box-shadow: 0 12px 26px rgba(79, 70, 229, .42); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .22); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--primary-2); }
.hero-demo { max-width: 1060px; margin: 54px auto 0; padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13); box-shadow: 0 34px 70px rgba(0, 0, 0, .38); text-align: left; }
.hero-demo .dctsc-dots button { background: rgba(255, 255, 255, .3); }
.hero-demo .dctsc-dots button.is-on { background: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 920px; margin: 40px auto 0; }
.stat { padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.stat b { display: block; font-family: "Poppins", sans-serif; font-size: 28px; color: #fff; }
.stat span { font-size: 13px; color: #a9b1cc; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.soft { background: var(--soft); }
.section-head { text-align: center; max-width: 740px; margin: 0 auto 52px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--primary); margin-bottom: 10px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.4px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* Layout chips */
.chips-bar { position: sticky; top: 74px; z-index: 900; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 20px; max-width: var(--max); margin: 0 auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #374151; font-size: 13px; font-weight: 600; text-decoration: none; transition: all .2s; }
.chip b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--ink); font-size: 12px; }
.chip:hover { border-color: #c7cdf7; color: var(--primary); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on b { background: var(--primary); color: #fff; }

/* Demo cards */
.demo-list { display: grid; gap: 30px; }
.demo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.demo-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 26px 28px 20px; }
.demo-title { display: flex; gap: 16px; align-items: flex-start; }
.demo-num { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--violet)); color: #fff; font-family: "Poppins", sans-serif; font-weight: 800; }
.demo-title h3 { font-size: 21px; margin: 0 0 4px; }
.demo-title p { margin: 0; color: var(--muted); max-width: 640px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.tag { font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: #374151; white-space: nowrap; }
.demo-stage { padding: 34px 28px; background: #eef1f8; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-stage.white { background: #fff; }
.demo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 28px; font-size: 14px; color: var(--muted); }
.demo-foot .right { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sc { display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border-radius: 9px; background: var(--soft); border: 1px solid var(--line); max-width: 100%; }
.sc code { font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.copy { border: 0; background: var(--ink); color: #fff; font: inherit; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 7px; cursor: pointer; }
.copy:hover { background: var(--primary); }
.open-link { font-size: 13px; font-weight: 700; text-decoration: none; }
.open-link:hover { text-decoration: underline; }

/* Variants */
.variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.demo, .variant, .pos, .feature, .step, .split > *, .hero-demo { min-width: 0; }
.variant { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.variant h4 { font-size: 17px; margin: 0 0 4px; }
.variant > p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.variant .sc { margin-top: 16px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ficon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: rgba(79, 70, 229, .1); color: var(--primary); margin-bottom: 14px; }
.ficon svg { width: 22px; height: 22px; }
.feature h4 { font-size: 16px; margin: 0 0 6px; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: "Poppins", sans-serif; font-size: 40px; font-weight: 800; color: rgba(79, 70, 229, .14); position: absolute; top: 14px; right: 20px; }
.step h4 { font-size: 18px; margin: 0 0 8px; }
.step p { margin: 0; color: var(--muted); }

/* Breakpoints */
.bps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bp { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-align: center; }
.bp b { display: block; font-family: "Poppins", sans-serif; font-size: 34px; color: var(--primary); line-height: 1; margin-bottom: 8px; }
.bp h4 { font-size: 16px; margin: 0 0 4px; }
.bp p { margin: 0; font-size: 14px; color: var(--muted); }

/* Package tree */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.split p { color: var(--muted); }
.tree { margin: 0; padding: 24px; border-radius: var(--radius); background: var(--ink); color: #d6dae4; font-size: 14px; line-height: 1.9; overflow-x: auto; box-shadow: var(--shadow); }
.tree .d { color: #c4b5fd; font-weight: 600; }
.tree .z { color: #7dd3fc; }
.tree .m { color: #6b7280; }

/* CTA */
.cta { border-radius: 22px; padding: 58px 40px; text-align: center; color: #fff; background: radial-gradient(600px 300px at 90% 0%, rgba(255, 255, 255, .18), transparent), linear-gradient(135deg, #4f46e5, #7c3aed 60%, #0d9488); }
.cta h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); }
.cta p { color: #e4e6ff; font-size: 17px; margin: 0 auto 26px; max-width: 620px; }

/* Footer */
.site-footer { background: var(--ink); color: #9aa2bd; padding: 48px 0 28px; font-size: 14px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: #d6dae4; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 28px; padding-top: 20px; text-align: center; }

/* ---------- Preview page ---------- */
.pv-head { background: var(--ink-2); color: #fff; padding: 40px 0 34px; }
.pv-head h1 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; margin: 10px 0 6px; }
.pv-head p { margin: 0; color: #c5cbe2; max-width: 720px; }
.pv-head a.back { color: #a5b4fc; text-decoration: none; font-weight: 600; font-size: 14px; }
.pv-stage { padding: 80px 0 90px; }
.pv-title { text-align: center; font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; margin-bottom: 44px; }
.pv-title span { color: #4dbdb1; font-weight: 600; }
.pv-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 56px; }

/* ---------- Documentation ---------- */
.doc-hero { background: var(--ink-2); color: #fff; padding: 56px 0 48px; }
.doc-hero h1 { color: #fff; font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin: 14px 0 10px; }
.doc-hero p { color: #c5cbe2; margin: 0; max-width: 720px; }
.doc-layout { display: grid; grid-template-columns: 270px 1fr; gap: 48px; padding-top: 48px; padding-bottom: 80px; }
.doc-nav { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 8px; }
.doc-nav p { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.doc-nav a { display: block; padding: 7px 12px; border-left: 2px solid var(--line); color: #374151; text-decoration: none; font-size: 14px; }
.doc-nav a:hover, .doc-nav a.on { border-left-color: var(--primary); color: var(--primary); background: rgba(79, 70, 229, .06); }
.doc-content { min-width: 0; }
.doc-content section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.doc-content section:last-child { border-bottom: 0; }
.doc-content h2 { font-size: 28px; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.doc-content h2 .n { min-width: 34px; height: 34px; padding: 0 8px; border-radius: 9px; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--violet)); color: #fff; font-size: 15px; flex: 0 0 auto; }
.doc-content h3 { font-size: 19px; margin-top: 28px; }
.doc-content p, .doc-content li { color: #3a4152; }
.doc-content ol, .doc-content ul { padding-left: 22px; }
.doc-content li { margin-bottom: 6px; }
.doc-content :not(pre) > code { background: #f1f3fa; border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; font-size: .88em; color: #4338ca; overflow-wrap: anywhere; }
.doc-content pre { background: var(--ink); color: #e5e7eb; padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-size: 14px; line-height: 1.7; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); font-weight: 700; color: var(--ink); }
tr:last-child td { border-bottom: 0; }
td:first-child { width: 30%; }
.note { display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; margin: 18px 0; font-size: 15px; }
.note.info { background: #eef2ff; border-color: #c7d2fe; color: #312e81; }
.note.ok { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.note b { white-space: nowrap; }
.doc-demo { margin: 14px 0 22px; padding: 18px; border-radius: 12px; background: #eef1f8; border: 1px solid var(--line); }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq details[open] summary { margin-bottom: 8px; }
.faq p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.features { grid-template-columns: repeat(2, 1fr); }
	.doc-layout { grid-template-columns: 1fr; gap: 0; }
	.doc-nav { display: none; }
}
@media (max-width: 860px) {
	.nav-toggle { display: block; }
	.nav { position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); padding: 8px 16px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); display: none; }
	.nav.open { display: flex; }
	.nav a { padding: 14px 12px; }
	.nav a.nav-cta { margin: 8px 0 0; text-align: center; }
	.steps, .variants, .split, .bps { grid-template-columns: minmax(0, 1fr); }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.section { padding: 72px 0; }
	html { scroll-padding-top: 130px; }
}
@media (max-width: 560px) {
	.container { padding: 0 16px; }
	.features { grid-template-columns: 1fr; }
	.demo-top, .demo-stage, .demo-foot { padding-left: 16px; padding-right: 16px; }
	.demo-stage { padding-top: 24px; padding-bottom: 24px; }
	.cta { padding: 40px 22px; }
	.hero .container { padding-top: 56px; padding-bottom: 64px; }
	.hero-demo { padding: 12px; }
}

.doc-demo-title { margin: 30px 0 8px; font-size: 1.05rem; }
.doc .demo-stage, section .demo-stage { border: 1px solid var(--line); border-radius: 12px; margin: 10px 0 22px; overflow: hidden; }
