/* News Ticker - demo website */
:root {
	--ink: #0b0d14;
	--ink-2: #151925;
	--text: #1d2230;
	--muted: #5b6475;
	--line: #e4e7ee;
	--soft: #f5f7fb;
	--red: #e11d2a;
	--red-2: #b3121e;
	--white: #fff;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(15, 20, 35, .08);
	--max: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
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(--red); }
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: var(--ink); border-bottom: 3px solid var(--red); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 38px; height: 38px; border-radius: 9px; background: var(--red); display: grid; place-items: center; color: #fff; }
.logo-mark svg { width: 22px; height: 22px; }
.logo-text { display: flex; flex-direction: column; font-family: "Poppins", sans-serif; font-weight: 800; line-height: .95; letter-spacing: .5px; }
.logo-text b { color: var(--red); font-size: 19px; }
.logo-text span { color: #fff; font-size: 19px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: #e9ebf2; text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: .6px; text-transform: uppercase; padding: 10px 14px; border-radius: 8px; transition: background .2s, color .2s; }
.nav a:hover, .nav a.active { background: rgba(255, 255, 255, .08); color: #fff; }
.nav a.nav-cta { background: var(--red); color: #fff; }
.nav a.nav-cta:hover { background: var(--red-2); }
.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(1200px 500px at 85% -10%, rgba(225, 29, 42, .35), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(58, 134, 255, .25), 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: 44px 44px; mask-image: linear-gradient(to bottom, #000, transparent); -webkit-mask-image: linear-gradient(to bottom, #000, transparent); }
.hero .container { position: relative; padding-top: 84px; padding-bottom: 90px; 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, .15); font-size: 13px; font-weight: 600; letter-spacing: .3px; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.hero h1 { color: #fff; font-size: clamp(32px, 5vw, 58px); font-weight: 800; margin: 22px auto 18px; max-width: 900px; letter-spacing: -.5px; }
.hero h1 em { font-style: normal; color: #ff4d58; }
.hero p.lead { font-size: clamp(16px, 1.6vw, 19px); color: #c9cedb; 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: 10px; font-weight: 700; font-size: 15px; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(225, 29, 42, .35); }
.btn-red:hover { background: var(--red-2); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.btn-dark { background: var(--ink); color: #fff; }
.hero-demo { max-width: 920px; margin: 54px auto 0; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); text-align: left; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 920px; margin: 40px auto 0; }
.stat { padding: 16px; border-radius: 12px; 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: #aab1c2; }

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

/* Demo cards */
.demo-list { display: grid; gap: 28px; }
.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: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); 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: 620px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.tag { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: #374151; white-space: nowrap; }
.demo-stage { padding: 26px 28px; background: #eef1f6; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-stage.dark { background: #1b1f2b; }
.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); }
.sc { display: inline-flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); }
.sc code { font-size: 13px; color: var(--ink); }
.copy { border: 0; background: var(--ink); color: #fff; font: inherit; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.copy:hover { background: var(--red); }

/* Variants grid */
.variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.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: 16px; margin: 0 0 4px; }
.variant p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

/* Positions */
.positions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pos { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.pos h4 { font-size: 18px; margin: 18px 0 6px; }
.pos p { margin: 0; color: var(--muted); font-size: 15px; }
.browser { height: 170px; border-radius: 10px; border: 1px solid var(--line); background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.browser-bar { height: 24px; background: #eef0f4; display: flex; align-items: center; gap: 5px; padding: 0 10px; flex: 0 0 auto; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #cfd3dc; }
.browser-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 0; position: relative; }
.mock-line { height: 8px; border-radius: 4px; background: #e8ebf1; margin: 0 14px; }
.mock-line.w60 { width: 60%; }
.mock-line.w80 { width: 80%; }
.mock-ticker { height: 22px; background: var(--ink); display: flex; align-items: center; gap: 8px; }
.mock-ticker::before { content: ""; width: 46px; height: 100%; background: var(--red); }
.mock-ticker::after { content: ""; flex: 1; height: 5px; margin-right: 12px; border-radius: 3px; background: rgba(255, 255, 255, .35); }
.mock-ticker.inline { margin: 0 14px; border-radius: 4px; overflow: hidden; }
.browser-body .spacer { flex: 1; }
.pt { padding-top: 12px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 24px; 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: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(225, 29, 42, .1); color: var(--red); 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(225, 29, 42, .15); position: absolute; top: 14px; right: 20px; }
.step h4 { font-size: 18px; margin: 0 0 8px; }
.step p { margin: 0; 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: #ffb4b9; font-weight: 600; }
.tree .z { color: #7dd3fc; }
.tree .m { color: #6b7280; }

/* CTA */
.cta { border-radius: 20px; padding: 56px 40px; text-align: center; color: #fff; background: radial-gradient(600px 300px at 90% 0%, rgba(255, 255, 255, .15), transparent), linear-gradient(135deg, #e11d2a, #8b0f18); }
.cta h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); }
.cta p { color: #ffe1e3; font-size: 17px; margin: 0 auto 26px; max-width: 620px; }
.cta .btn-white { background: #fff; color: var(--red-2); }

/* Footer */
.site-footer { background: var(--ink); color: #9aa2b4; 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; }

/* ---------- 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: #c9cedb; margin: 0; max-width: 720px; }
.doc-layout { display: grid; grid-template-columns: 260px 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(--red); color: var(--red); background: rgba(225, 29, 42, .05); }
.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 { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--red); 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: #f1f3f8; border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; font-size: .88em; color: #b3121e; }
.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 code { overflow-wrap: anywhere; }
td:first-child { width: 34%; }
.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: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.note.ok { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.note b { white-space: nowrap; }
.doc-demo { margin: 14px 0 22px; padding: 16px; border-radius: 12px; background: #eef1f6; border: 1px solid var(--line); }

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