/* ==========================================================================
   Romelius theme — main stylesheet
   ========================================================================== */

:root {
	--navy-950: #070E24;
	--navy-900: #0A1330;
	--navy-800: #111C42;
	--navy-700: #1A2757;
	--blue: #4F7CFF;
	--blue-600: #3D66E8;
	--violet: #7B5CFF;
	--gold: #F5B841;
	--green: #1FB97A;
	--red: #E5484D;

	--ink: #0E1630;
	--ink-2: #3B4563;
	--ink-3: #6B7591;
	--line: #E3E8F2;
	--bg: #FFFFFF;
	--bg-alt: #F5F7FC;
	--card: #FFFFFF;

	--radius: 14px;
	--radius-lg: 22px;
	--shadow-sm: 0 1px 2px rgba(14, 22, 48, .06), 0 1px 1px rgba(14, 22, 48, .04);
	--shadow: 0 10px 30px -12px rgba(14, 22, 48, .18), 0 2px 6px rgba(14, 22, 48, .05);
	--shadow-lg: 0 40px 80px -30px rgba(7, 14, 36, .55);

	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Plus Jakarta Sans", var(--font);
	--container: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16.5px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
svg.icon { flex-shrink: 0; vertical-align: middle; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--violet); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--bg-alt); border: 1px solid var(--line); padding: .1em .4em; border-radius: 6px; }
:focus-visible { outline: 3px solid rgba(79, 124, 255, .55); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.muted { color: var(--ink-3); }
.small { font-size: .85rem; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font-family: var(--font-head); font-weight: 700; font-size: .98rem; line-height: 1;
	padding: .95em 1.4em; border-radius: 12px; border: 1px solid transparent;
	cursor: pointer; white-space: nowrap;
	transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { font-size: .9rem; padding: .72em 1.1em; border-radius: 10px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%); box-shadow: 0 8px 22px -8px rgba(79, 124, 255, .7); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 28px -8px rgba(123, 92, 255, .75); }
.btn-ghost { color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.btn-light { color: var(--navy-900); background: #fff; box-shadow: var(--shadow-sm); }
.btn-light:hover { color: var(--navy-900); box-shadow: var(--shadow); }
.btn-outline { color: var(--ink); background: #fff; border-color: var(--line); }
.btn-outline:hover { color: var(--ink); border-color: var(--blue); }

/* ---------- Announcement ---------- */
.announcement { background: var(--navy-950); color: #C9D3F5; font-size: .88rem; }
.announcement a { display: flex; align-items: center; justify-content: center; gap: .6em; padding: .55em 0; color: inherit; }
.announcement a:hover { color: #fff; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .25em .6em; border-radius: 99px; background: linear-gradient(135deg, var(--gold), #FF9F43); color: #2A1A00; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); transition: background .25s, border-color .25s; }
.has-dark-hero .site-header { background: rgba(10, 19, 48, .82); border-bottom-color: rgba(255, 255, 255, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { display: inline-flex; filter: drop-shadow(0 6px 14px rgba(79, 124, 255, .35)); }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.28rem; letter-spacing: -.02em; }
.brand-labs { font-weight: 600; color: var(--ink-3); margin-left: .28em; }
.has-dark-hero .site-header .brand, .site-footer .brand { color: #fff; }
.has-dark-hero .site-header .brand-labs, .site-footer .brand-labs { color: #8E9BC7; }
.custom-logo { max-height: 44px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav .menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu a { display: block; padding: .5em .85em; border-radius: 9px; color: var(--ink-2); font-weight: 500; font-size: .96rem; }
.primary-nav .menu a:hover, .primary-nav .menu .current-menu-item > a, .primary-nav .menu .current_page_item > a, .primary-nav .menu .current-page-ancestor > a { color: var(--ink); background: var(--bg-alt); }
.has-dark-hero .primary-nav .menu a { color: #B9C4E8; }
.has-dark-hero .primary-nav .menu a:hover, .has-dark-hero .primary-nav .menu .current-menu-item > a, .has-dark-hero .primary-nav .menu .current_page_item > a { color: #fff; background: rgba(255, 255, 255, .08); }
.primary-nav .sub-menu { display: none; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-account { display: inline-flex; align-items: center; gap: .45em; color: var(--ink-2); font-weight: 600; font-size: .94rem; }
.has-dark-hero .nav-account { color: #DCE3FA; }
.nav-account:hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; border-radius: 10px; }
.has-dark-hero .nav-toggle { color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-dark { background: radial-gradient(1200px 600px at 80% -10%, rgba(123, 92, 255, .35), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(79, 124, 255, .28), transparent 60%), linear-gradient(180deg, var(--navy-900), var(--navy-950)); color: #C9D3F5; padding: 88px 0 110px; }
.hero-dark h1 { color: #fff; }
.hero-glow { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .55em; font-size: .88rem; font-weight: 600; color: #DCE3FA; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); padding: .45em .9em; border-radius: 99px; margin-bottom: 22px; }
.eyebrow .icon { color: var(--gold); }
.lead { font-size: 1.16rem; color: #B9C4E8; max-width: 36em; }
.lead-dark { font-size: 1.12rem; color: var(--ink-2); max-width: 46em; }
.grad { background: linear-gradient(90deg, #8FB0FF, #B79CFF 60%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero-actions.center { justify-content: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; font-size: .92rem; color: #A9B5DD; }
.hero-trust li { display: inline-flex; align-items: center; gap: .45em; }
.hero-trust .icon { color: var(--green); }

/* ---------- App mockup ---------- */
.app-mock { background: #0D1738; border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255, 255, 255, .03); overflow: hidden; font-size: 12.5px; color: #C9D3F5; transform: perspective(1600px) rotateY(-6deg) rotateX(3deg); transition: transform .6s ease; }
.app-mock:hover { transform: perspective(1600px) rotateY(0) rotateX(0); }
.app-chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #0A1230; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.app-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.app-chrome i:nth-child(2) { background: #FEBC2E; }
.app-chrome i:nth-child(3) { background: #28C840; }
.app-chrome span { margin-left: 12px; font-size: 11px; color: #7C89B5; background: rgba(255, 255, 255, .05); padding: 3px 12px; border-radius: 6px; }
.app-body { display: grid; grid-template-columns: 150px 1fr; min-height: 340px; background: #F3F6FD; }
.app-side { background: #101B45; padding: 14px 10px; }
.app-side-brand { display: flex; align-items: center; gap: 7px; color: #fff; font-weight: 700; font-size: 12.5px; padding: 2px 6px 14px; line-height: 1.25; }
.app-side-brand b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--blue), var(--violet)); font-size: 12px; flex-shrink: 0; }
.app-side-brand em { font-style: normal; font-size: 9px; padding: 2px 5px; border-radius: 4px; background: var(--gold); color: #2A1A00; }
.app-side ul { list-style: none; margin: 0; padding: 0; }
.app-side li { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; color: #94A2D0; margin-bottom: 2px; }
.app-side li.on { background: rgba(79, 124, 255, .18); color: #fff; }
.app-main { padding: 14px; color: var(--ink); }
.app-banner { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); color: #fff; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; }
.app-banner small { display: block; color: #93A1D3; font-size: 10.5px; }
.app-banner strong { font-family: var(--font-head); font-size: 15px; }
.app-live { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; background: rgba(31, 185, 122, .16); color: #6EE7B7; padding: 4px 9px; border-radius: 99px; }
.app-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(31, 185, 122, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(31, 185, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 185, 122, 0); } }
.app-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.app-stats div { background: #fff; border: 1px solid #E5EAF5; border-radius: 9px; padding: 8px 10px; }
.app-stats small { display: block; font-size: 10px; color: var(--ink-3); }
.app-stats b { display: block; font-family: var(--font-head); font-size: 17px; line-height: 1.3; }
.app-stats em { font-style: normal; font-size: 9.5px; color: var(--green); }
.app-table { background: #fff; border: 1px solid #E5EAF5; border-radius: 9px; overflow: hidden; }
.app-row { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border-bottom: 1px solid #EEF1F8; }
.app-row:last-child { border-bottom: 0; }
.app-row .thumb { width: 30px; height: 30px; border-radius: 7px; }
.thumb.g1 { background: linear-gradient(135deg, #4F7CFF, #7B5CFF); }
.thumb.g2 { background: linear-gradient(135deg, #FF8A5B, #F5B841); }
.thumb.g3 { background: linear-gradient(135deg, #1FB97A, #4FD1C5); }
.thumb.g4 { background: linear-gradient(135deg, #E05BFF, #7B5CFF); }
.app-row .t b { display: block; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-row .t small { font-size: 10px; color: var(--ink-3); }
.app-row .p { font-weight: 700; font-size: 11.5px; }
.app-row .s { font-size: 9.5px; font-weight: 600; padding: 3px 8px; border-radius: 99px; }
.s-synced { background: #E3F8EF; color: #10865A; }
.s-ai { background: #EEE9FF; color: #5B3FD9; }
.s-draft { background: #FFF4DB; color: #A26A00; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding-top: 48px; padding-bottom: 80px; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.section-head.row-head { display: flex; justify-content: space-between; align-items: end; text-align: left; max-width: none; gap: 20px; }
.kicker { display: inline-block; font-family: var(--font-head); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 12px; }

/* Stats strip */
.stats-strip { margin-top: -54px; position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 0; max-width: calc(var(--container) - 48px); }
.stats-grid > div { padding: 26px 24px; text-align: center; border-right: 1px solid var(--line); }
.stats-grid > div:last-child { border-right: 0; }
.stats-grid b { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 800; background: linear-gradient(135deg, var(--blue), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.2; }
.stats-grid span { color: var(--ink-3); font-size: .92rem; }

/* Products */
.product-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
.product-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-card.is-featured { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--blue), var(--violet)) border-box; border: 1.5px solid transparent; }
.product-card.is-soon { background: linear-gradient(180deg, #fff, #FAFBFF); }
.product-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.product-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 10px 22px -10px rgba(79, 124, 255, .8); }
.product-icon.icon-violet { background: linear-gradient(135deg, #B05BFF, var(--violet)); }
.product-card h3 { font-size: 1.45rem; }
.product-card p { color: var(--ink-2); }
.product-card-actions { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price-from { color: var(--ink-3); font-size: .92rem; }
.price-from b { color: var(--ink); font-family: var(--font-head); font-size: 1.3rem; }

.badge { display: inline-flex; align-items: center; font-size: .76rem; font-weight: 700; padding: .32em .75em; border-radius: 99px; background: var(--bg-alt); color: var(--ink-3); border: 1px solid var(--line); }
.badge-green { background: #E3F8EF; color: #10865A; border-color: #C3EEDB; }
.badge-violet { background: #EEE9FF; color: #5B3FD9; border-color: #DCD2FF; }

.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { display: flex; gap: .6em; align-items: flex-start; padding: .3em 0; color: var(--ink-2); }
.checks .icon { color: var(--green); margin-top: .25em; }
.checks.muted .icon { color: var(--ink-3); }

/* Features */
.feature-grid { display: grid; gap: 20px; }
.feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.feature:hover { border-color: #C9D5FF; box-shadow: var(--shadow); transform: translateY(-2px); }
.feature h3 { margin-top: 16px; }
.feature p { color: var(--ink-2); font-size: .97rem; margin: 0; }
.feature-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: var(--blue-600); background: linear-gradient(135deg, #EAF0FF, #F1ECFF); flex-shrink: 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.steps p { color: var(--ink-2); margin: 0; }
.step-n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-family: var(--font-head); font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); margin-bottom: 16px; box-shadow: 0 0 0 6px #EEF2FF; }

/* Split / AI */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 40px; border-radius: var(--radius-lg); background: radial-gradient(400px 220px at 50% 50%, rgba(123, 92, 255, .18), transparent 70%), linear-gradient(180deg, var(--navy-900), var(--navy-950)); }
.chip { display: inline-flex; align-items: center; gap: .5em; padding: .75em 1.1em; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-weight: 600; }
.chip .icon { color: var(--gold); }

/* Sources */
.source-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.source { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border: 1px dashed #CBD3E6; border-radius: var(--radius); padding: 20px 22px; color: var(--ink-3); }
.source b { font-family: var(--font-head); }
.source.is-active { border: 1.5px solid #A9E6CC; color: var(--ink); box-shadow: var(--shadow-sm); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); gap: 24px; justify-content: center; }
.pricing-grid-3 { grid-template-columns: repeat(3, minmax(0, 360px)); }
.pricing-note { text-align: center; margin-top: 24px; }
.price-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.price-card .btn { margin-top: auto; }
.price-card .price { font-family: var(--font-head); font-size: 3rem; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 18px; }
.price-card .price small { font-size: .9rem; font-weight: 600; color: var(--ink-3); margin-left: .4em; letter-spacing: 0; }
.price-card.is-highlight { background: linear-gradient(180deg, var(--navy-800), var(--navy-950)); color: #C9D3F5; border-color: transparent; box-shadow: var(--shadow-lg); }
.price-card.is-highlight h3, .price-card.is-highlight .price { color: #fff; }
.price-card.is-highlight .checks li { color: #C9D3F5; }
.ribbon { position: absolute; top: 18px; right: 18px; font-size: .74rem; font-weight: 700; padding: .35em .8em; border-radius: 99px; background: var(--gold); color: #2A1A00; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-family: var(--font-head); font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--ink-2); }

/* CTA */
.cta-band { padding-top: 40px; }
.cta-card { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 52px 56px; border-radius: 28px; color: #DCE3FA; background: radial-gradient(600px 300px at 90% 0%, rgba(245, 184, 65, .22), transparent 60%), radial-gradient(700px 360px at 0% 100%, rgba(123, 92, 255, .4), transparent 60%), linear-gradient(135deg, var(--navy-800), var(--navy-950)); box-shadow: var(--shadow-lg); }
.cta-card h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .3em; }
.cta-card p { margin: 0; color: #B9C4E8; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* ---------- Inner pages ---------- */
.page-hero { padding: 56px 0 40px; background: linear-gradient(180deg, var(--bg-alt), #fff); border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: .3em; }
.page-hero-docs { background: radial-gradient(600px 240px at 85% 0%, rgba(123, 92, 255, .12), transparent 70%), linear-gradient(180deg, #F2F5FF, #fff); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--ink-3); margin-bottom: 16px; }
.breadcrumbs a { color: var(--ink-3); }
.breadcrumbs a:hover { color: var(--blue-600); }

.entry-content { font-size: 1.04rem; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 1.6rem; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.22rem; margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin: .35em 0; }
.entry-content li::marker { color: var(--blue); }
.entry-content pre { background: var(--navy-900); color: #DCE3FA; padding: 18px 20px; border-radius: 12px; overflow: auto; font-size: .88rem; line-height: 1.6; }
.entry-content pre code { background: none; border: 0; padding: 0; color: inherit; }
.entry-content blockquote { margin: 1.5em 0; padding: 16px 22px; border-left: 4px solid var(--blue); background: var(--bg-alt); border-radius: 0 12px 12px 0; }
.entry-content img { border-radius: 12px; }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(79, 124, 255, .35); text-underline-offset: 3px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.alignwide { max-width: 1100px; }

/* Docs */
.docs-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; padding-bottom: 90px; }
.docs-aside { position: sticky; top: 96px; align-self: start; }
.docs-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.docs-nav ul { list-style: none; margin: 4px 0 0; padding: 0; }
.docs-nav ul ul { padding-left: 12px; }
.docs-nav a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 9px; color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.docs-nav a:hover { background: var(--bg-alt); color: var(--ink); }
.docs-nav .current_page_item > a, .docs-nav .is-active { background: linear-gradient(135deg, #EAF0FF, #F1ECFF); color: var(--blue-600); font-weight: 600; }
.docs-nav-root { font-weight: 700 !important; color: var(--ink) !important; }
.docs-help { margin-top: 16px; padding: 18px; border-radius: var(--radius); background: var(--navy-900); color: #B9C4E8; font-size: .92rem; }
.docs-help strong { color: #fff; }
.docs-help p { margin: 4px 0 8px; }
.docs-help a { color: var(--gold); font-weight: 600; }
.docs-content { min-width: 0; }
.docs-content > h2:first-child, .docs-content > p:first-child { margin-top: 0; }
.docs-search { position: relative; max-width: 520px; margin-top: 20px; }
.docs-search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.docs-search input { width: 100%; padding: 15px 16px 15px 46px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: #fff; box-shadow: var(--shadow-sm); }
.doc-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 32px !important; }
.doc-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none !important; transition: border-color .2s, box-shadow .2s, transform .2s; }
.doc-card:hover { border-color: #C9D5FF; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.doc-card span { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #EAF0FF, #F1ECFF); color: var(--blue-600); }
.doc-card b { font-family: var(--font-head); }
.doc-card small { color: var(--ink-3); font-size: .86rem; line-height: 1.45; }
.doc-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px !important; }
.doc-pager a { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); font-weight: 700; color: var(--ink); text-decoration: none; }
.doc-pager a:hover { border-color: var(--blue); }
.doc-pager small { display: block; font-weight: 500; color: var(--ink-3); font-size: .82rem; }
.doc-pager .next { text-align: right; grid-column: 2; }
.doc-updated { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: .85rem; margin-top: 40px !important; }

/* Changelog */
.changelog { padding-bottom: 90px; }
.changelog h2 { display: inline-flex; align-items: center; gap: 10px; font-size: 1.4rem; padding: .25em .8em; border-radius: 10px; background: linear-gradient(135deg, #EAF0FF, #F1ECFF); }
.changelog h2:first-child { margin-top: 0; }
.changelog ul { list-style: none; padding: 0; border-left: 2px solid var(--line); margin-left: 12px; }
.changelog li { padding: 6px 0 6px 20px; position: relative; }
.changelog li::before { content: ""; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); }
.cl { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .05em; padding: .2em .55em; border-radius: 6px; margin-right: .5em; vertical-align: 1px; }
.cl-new { background: #E3F8EF; color: #10865A; }
.cl-imp { background: #EAF0FF; color: var(--blue-600); }
.cl-fix { background: #FFF4DB; color: #A26A00; }
.cl-rem { background: #FDE8E8; color: var(--red); }

/* Support / Account */
.support-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-bottom: 90px; align-items: start; }
.support-main .entry-content { margin-bottom: 28px; }
.support-aside { display: grid; gap: 14px; position: sticky; top: 96px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.card h2 { font-size: 1.4rem; }
.info-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); }
a.info-card:hover { border-color: #C9D5FF; box-shadow: var(--shadow); color: var(--ink); }
.info-card b { display: block; font-family: var(--font-head); }
.info-card small { color: var(--ink-3); font-size: .88rem; }
.account-layout { padding-bottom: 90px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.account-card h2 { margin-top: 14px; }
.account-card p, .account-card ol { color: var(--ink-2); }
.admin-only { margin-top: 24px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field span { font-size: .88rem; font-weight: 600; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], select, textarea {
	width: 100%; font: inherit; font-size: .98rem; color: var(--ink); background: #fff;
	border: 1px solid #D5DCEA; border-radius: 10px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(79, 124, 255, .15); }
textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: .85rem; color: var(--ink-3); margin: 14px 0 18px; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px; margin-bottom: 20px; font-size: .96rem; }
.notice-success { background: #E3F8EF; color: #0B6B47; border: 1px solid #C3EEDB; }
.notice-error { background: #FDECEC; color: #9B1C1F; border: 1px solid #F7CFCF; }
.notice-info { background: #EEF2FF; color: #2A3A86; border: 1px solid #D5DEFF; }
.search-form { display: flex; align-items: center; gap: 8px; max-width: 480px; margin: 20px auto; position: relative; }
.search-form .icon { position: absolute; left: 14px; color: var(--ink-3); }
.search-form input { padding-left: 42px; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card-media { display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #EAF0FF, #F1ECFF); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-placeholder { display: grid; place-items: center; height: 100%; color: var(--blue); }
.post-card-body { padding: 22px; }
.post-card h3 { font-size: 1.15rem; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--blue-600); }
.post-card p { color: var(--ink-2); font-size: .95rem; margin: 0; }
.post-meta { display: flex; gap: 8px; color: var(--ink-3); font-size: .86rem; margin-bottom: 8px; }
.single-cover { margin: 0 0 32px; }
.single-cover img { border-radius: var(--radius-lg); width: 100%; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.tag-list a { font-size: .85rem; padding: .35em .8em; border-radius: 99px; background: var(--bg-alt); color: var(--ink-2); border: 1px solid var(--line); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 40px 0; }
.post-navigation a { display: block; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 700; }
.post-navigation small { display: block; color: var(--ink-3); font-weight: 500; font-size: .82rem; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.pagination .nav-links { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.pagination .page-numbers.current { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.search-results { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.search-item { display: block; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.search-item:hover { border-color: var(--blue); color: var(--ink); }
.search-item small { display: block; color: var(--blue-600); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.search-item b { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.search-item span { color: var(--ink-3); font-size: .93rem; }
.empty-state { text-align: center; padding: 40px 0 80px; color: var(--ink-2); }
.empty-state > .icon { color: var(--ink-3); }
.big-404 { display: block; font-family: var(--font-head); font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; background: linear-gradient(135deg, var(--blue), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Comments */
.comments { margin: 48px 0 80px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 10px; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }

/* Widgets */
.widget { margin-bottom: 32px; }
.widget-title { font-size: 1rem; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; background: var(--navy-950); color: #94A2D0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 72px; padding-bottom: 48px; }
.footer-about p { margin: 18px 0; max-width: 34em; }
.footer-mail { display: inline-flex; align-items: center; gap: .5em; color: #DCE3FA; }
.site-footer h3 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 5px 0; }
.site-footer a { color: #B9C4E8; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #7C89B5; }
.soon { font-style: normal; font-size: .7rem; font-weight: 700; text-transform: uppercase; padding: .15em .5em; border-radius: 6px; background: rgba(123, 92, 255, .25); color: #CBBEFF; margin-left: .3em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .86rem; }
.footer-bottom p { margin: 0; }
.legal-menu { display: flex; gap: 18px; }
.site-main > .container:last-child { padding-bottom: 90px; }
.cta-band { padding-bottom: 96px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
	.app-mock { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.hero-grid, .split { grid-template-columns: 1fr; gap: 48px; }
	.hero-copy { text-align: center; }
	.hero-copy .lead { margin-left: auto; margin-right: auto; }
	.hero-actions, .hero-trust { justify-content: center; }
	.app-mock { transform: none; max-width: 640px; margin: 0 auto; }
	.feature-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
	.feature-grid.cols-3, .post-grid { grid-template-columns: repeat(2, 1fr); }
	.source-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.cta-card { flex-direction: column; text-align: center; padding: 44px 32px; }
	.support-layout { grid-template-columns: 1fr; }
	.support-aside { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 16px;
		background: #fff; padding: 20px 24px 28px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
		transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .2s ease;
		max-height: calc(100vh - 72px); overflow: auto;
	}
	.has-dark-hero .primary-nav { background: var(--navy-900); border-bottom-color: rgba(255, 255, 255, .08); }
	.nav-open .primary-nav { transform: none; opacity: 1; visibility: visible; }
	.primary-nav .menu { flex-direction: column; }
	.primary-nav .menu a { padding: .8em 1em; font-size: 1.05rem; }
	.nav-actions { flex-direction: column; align-items: stretch; }
	.nav-account { justify-content: center; padding: .6em; }
	.docs-layout { grid-template-columns: 1fr; gap: 28px; }
	.docs-aside { position: static; }
	.steps { grid-template-columns: 1fr; }
	.product-grid { grid-template-columns: 1fr; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
	.stats-grid > div:nth-child(2) { border-right: 0; }
	.stats-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.container { padding: 0 16px; }
	.section { padding: 68px 0; }
	.hero-dark { padding: 56px 0 96px; }
	.feature-grid.cols-3, .feature-grid.cols-4, .post-grid, .source-grid, .doc-cards, .form-grid, .account-grid, .support-aside, .pricing-grid, .pricing-grid-3 { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.app-body { grid-template-columns: 1fr; }
	.app-side { display: none; }
	.app-stats { grid-template-columns: repeat(2, 1fr); }
	.section-head.row-head { flex-direction: column; align-items: flex-start; }
	.card { padding: 22px; }
	.cta-card { padding: 36px 22px; border-radius: 22px; }
	.cta-actions, .hero-actions { flex-direction: column; align-items: stretch; }
	.announcement a { font-size: .8rem; text-align: left; justify-content: flex-start; }
	.doc-pager, .post-navigation .nav-links { grid-template-columns: 1fr; }
	.doc-pager .next, .post-navigation .nav-next { grid-column: auto; }
}
.site-footer .btn-light, .site-footer .btn-light:hover { color: var(--navy-900); }
