:root {
	--brand: #4f46e5;
	--brand-dark: #3730a3;
	--accent: #0ea5e9;
	--text: #0f172a;
	--muted: #64748b;
	--border: #e2e8f0;
	--bg: #ffffff;
	--soft: #f6f7fb;
	--card: #ffffff;
	--radius: 16px;
	--shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px rgba(15, 23, 42, .07);
}

@media (prefers-color-scheme: dark) {
	:root {
		--text: #e2e8f0;
		--muted: #94a3b8;
		--border: #1f2a3d;
		--bg: #0b1120;
		--soft: #0f172a;
		--card: #111a2e;
	}
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
	margin: 0;
	font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--text);
	background: var(--bg);
}

a { color: var(--brand); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; }
.brand--small { font-size: 17px; }
.nav nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav nav a { padding: 8px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav nav a:hover, .nav nav a.is-active { color: var(--text); background: var(--soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 11px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn--primary { background: linear-gradient(120deg, var(--brand-dark), var(--brand) 55%, var(--accent)); color: #fff; }
.btn--primary:hover { filter: brightness(1.08); }
.btn--primary[disabled] { opacity: .5; cursor: not-allowed; }
.btn--light { background: #fff; color: var(--brand-dark); }
.btn--light:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

/* Hero */
.hero { color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgba(14, 165, 233, .55), transparent 60%), linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 60%, #6366f1 100%); }
.hero__in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding-top: 96px; padding-bottom: 110px; }
.eyebrow { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); margin: 18px 0 16px; }
.lead { font-size: 20px; opacity: .92; max-width: 620px; margin: 0 0 30px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.hero__art { display: grid; place-items: center; }
.hero__art img { width: 240px; filter: drop-shadow(0 30px 50px rgba(15, 23, 42, .35)); transform: rotate(-6deg); border-radius: 48px; }

/* Bands */
.band { padding: 90px 0; }
.band--soft { background: var(--soft); }
.band--brand { background: linear-gradient(120deg, var(--brand-dark), var(--brand)); color: #fff; padding: 64px 0; }
.band h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 10px; }
.sub { color: var(--muted); font-size: 19px; margin: 0 0 40px; max-width: 720px; }

/* Products */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.product { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.product:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(79, 70, 229, .18); }
.product__icon { width: 72px; height: 72px; border-radius: 18px; }
.product__icon--empty { background: var(--soft); }
.product h3 { margin: 2px 0 6px; font-size: 22px; }
.product p { margin: 0 0 12px; color: var(--muted); font-size: 16px; }
.product__meta { font-weight: 700; color: var(--brand); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; }
.tags li { padding: 3px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; margin-top: 30px; }
.feature { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); }
.feature h3 { margin: 14px 0 8px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }
.feature__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: #fff; background: linear-gradient(120deg, var(--brand-dark), var(--brand) 60%, var(--accent)); }
.feature__icon svg { width: 24px; height: 24px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.steps li { display: flex; gap: 16px; }
.steps h3 { margin: 4px 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }
.step { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); border: 2px solid var(--brand); color: var(--brand); font-weight: 800; }

.support { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.support h2 { margin: 0 0 8px; }
.support p { margin: 0; opacity: .9; max-width: 640px; }

/* Product page */
.product-hero { padding: 40px 0 10px; }
.banner { display: block; width: 100%; border-radius: 20px; box-shadow: var(--shadow); }
.product-hero__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 28px 0 10px; }
.product-hero__bar h1 { margin: 0 0 4px; font-size: 38px; }
.product-hero__bar p { margin: 0; color: var(--muted); font-size: 19px; }
.columns { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 20px; padding-bottom: 80px; }
.card { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); margin-bottom: 24px; }
.card h2 { margin-top: 0; font-size: 22px; }
.card h3, .card h4 { margin: 24px 0 8px; font-size: 18px; }
.card ul, .card ol { padding-left: 22px; }
.card li { margin: 4px 0; }
.card code { background: var(--soft); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-size: .88em; }
.card--download { border: 2px solid var(--brand); box-shadow: 0 14px 40px rgba(79, 70, 229, .15); }
.card--download form { display: grid; gap: 10px; }
.card--download label { font-weight: 700; font-size: 15px; }
.card--download input { font: inherit; font-size: 15px; letter-spacing: .04em; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--soft); color: var(--text); }
.card--download input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.card--log { font-size: 15px; }
.card--log h3, .card--log h4 { font-size: 16px; margin: 18px 0 4px; }
.alert { padding: 10px 14px; border-radius: 10px; background: #fee2e2; color: #991b1b; font-weight: 600; font-size: 15px; }
.small { color: var(--muted); font-size: 15px; margin: 14px 0 0; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: 15px; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 600; }

/* Plain pages */
.page { padding: 70px 0 90px; }
.page h1 { font-size: 40px; margin-top: 0; }
.plain { padding-left: 20px; }
.plain li { margin: 10px 0; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 44px 0 36px; background: var(--soft); }
.foot__in { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: start; }
.foot p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.foot nav a:hover { color: var(--text); }
.foot__legal { grid-column: 1 / -1; font-size: 13px !important; }

@media (max-width: 860px) {
	.hero__in { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; }
	.hero__art { display: none; }
	.columns { grid-template-columns: 1fr; }
	.band { padding: 64px 0; }
	.nav nav a { padding: 6px 8px; font-size: 14px; }
	.foot__in { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
	.nav nav { display: none; }
	.product { grid-template-columns: 1fr; }
	.wrap { padding: 0 16px; }
}

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.contact h1 { font-size: 40px; margin-top: 0; }
.contact__points { padding-left: 20px; color: var(--muted); }
.contact__points li { margin: 8px 0; }
.form { display: grid; gap: 16px; min-width: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; min-width: 0; }
.form input, .form select, .form textarea { width: 100%; min-width: 0; font: inherit; font-size: 16px; font-weight: 400; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--soft); color: var(--text); }
.form textarea { resize: vertical; min-height: 150px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .check input { width: auto; margin-top: 5px; padding: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done { text-align: center; padding: 40px 0; }
.done__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; color: #fff; background: linear-gradient(120deg, var(--brand-dark), var(--brand) 60%, var(--accent)); margin-bottom: 10px; }
.done__icon svg { width: 36px; height: 36px; }
.done .sub { margin: 0 auto 28px; }

@media (max-width: 860px) {
	.contact { grid-template-columns: 1fr; gap: 24px; }
	.form__row { grid-template-columns: 1fr; }
}
