:root {
	--bg: #ffffff;
	--bg-alt: #f5f7fb;
	--ink: #0f172a;
	--muted: #5b6577;
	--line: #e3e8f0;
	--brand: #4f46e5;
	--brand-dark: #3730a3;
	--accent: #06b6d4;
	--navy: #0b1224;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(15, 23, 42, .08);
	--font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 3rem; }
.container { width: min(1160px, 92%); margin-inline: auto; }
.narrow { width: min(780px, 92%); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-block; padding: .85rem 1.5rem; border-radius: 10px; font-weight: 600; border: 2px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem; transition: transform .15s, background .15s, box-shadow .15s; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, .3); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { color: var(--brand-dark); background: #eef2ff; }
.btn-sm { padding: .55rem 1.1rem; font-size: .92rem; }
.btn-block { display: block; width: 100%; margin-top: .6rem; }
.link-arrow { font-weight: 600; }
.link-arrow::after { content: " \2192"; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 1.3rem; }
.brand-text { font-weight: 800; font-size: 1.25rem; display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-weight: 500; font-size: .62rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.primary-nav { display: flex; align-items: center; gap: 1.5rem; }
.primary-nav .menu { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; }
.primary-nav .menu a { color: var(--ink); font-weight: 500; }
.primary-nav .menu a:hover, .primary-nav .current-menu-item > a { color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 24px; height: 2px; background: var(--ink); position: relative; content: ""; }
.nav-toggle .bars::before { position: absolute; top: -7px; }
.nav-toggle .bars::after { position: absolute; top: 7px; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(6, 182, 212, .18), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(79, 70, 229, .14), transparent 60%), var(--bg); padding: clamp(3rem, 8vw, 6rem) 0; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); background: #eef2ff; padding: .35rem .8rem; border-radius: 99px; margin-bottom: 1.2rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.code-window { background: var(--navy); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(11, 18, 36, .35); overflow: hidden; }
.code-bar { display: flex; align-items: center; gap: 6px; padding: .8rem 1rem; background: #131c36; }
.code-bar i { width: 11px; height: 11px; border-radius: 50%; background: #334155; display: block; }
.code-bar i:nth-child(1) { background: #f87171; } .code-bar i:nth-child(2) { background: #fbbf24; } .code-bar i:nth-child(3) { background: #34d399; }
.code-bar span { margin-left: auto; font-family: var(--mono); font-size: .75rem; color: #7c8aa8; }
.code-window pre { margin: 0; padding: 1.4rem; overflow-x: auto; }
.code-window code { font-family: var(--mono); font-size: .88rem; color: #dbe4ff; line-height: 1.7; }
.code-window .c { color: #64748b; } .code-window .k { color: #c4b5fd; } .code-window .t { color: #67e8f9; } .code-window .f { color: #fde68a; } .code-window .s { color: #86efac; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.8rem; }
.page-hero { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Features */
.feature { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; color: var(--ink); transition: box-shadow .2s, transform .2s, border-color .2s; }
a.feature:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #c7d2fe; color: var(--ink); }
.feature p { color: var(--muted); }
.feature-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-weight: 800; font-family: var(--mono); margin-bottom: 1.1rem; font-size: 1.1rem; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-media { display: block; aspect-ratio: 16 / 10; background: var(--bg-alt); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { display: grid; place-items: center; height: 100%; font-family: var(--mono); font-size: 2.4rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.card-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 a { color: var(--ink); }
.card-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: .4rem; }
.price { font-weight: 700; }
.tag { display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-dark); background: #eef2ff; padding: .25rem .65rem; border-radius: 99px; margin-bottom: .7rem; }

/* Steps */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 0; margin: 0; }
.steps li { counter-increment: s; padding-top: 3.2rem; position: relative; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps p { color: var(--muted); }

/* CTA */
.cta { background: linear-gradient(135deg, var(--brand-dark), var(--brand) 60%, #0891b2); color: #fff; padding: 4rem 0; }
.cta-inner { text-align: center; max-width: 700px; }
.cta p { opacity: .9; font-size: 1.1rem; }

/* Lists / content */
.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .8rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: .8rem; font-weight: 700; display: grid; place-items: center; margin-top: .2rem; }
.content h2 { margin-top: 2rem; }
.content ul, .content ol { padding-left: 1.3rem; }
.content img { border-radius: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filters a { padding: .5rem 1.1rem; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); font-weight: 500; font-size: .92rem; }
.filters a.active, .filters a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination { margin-top: 2.5rem; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 8px; margin: 0 2px; color: var(--ink); }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Product single */
.product-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; }
.product-image { margin-bottom: 1.5rem; }
.side-card { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.small { font-size: .85rem; margin: 1rem 0 0; }
.side-price { font-size: 2rem; font-weight: 800; margin: 0; }

/* Forms */
.qoss-form { max-width: 640px; }
.form-row { margin-bottom: 1.2rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: .35rem; }
.qoss-form input[type="text"], .qoss-form input[type="email"], .qoss-form select, .qoss-form textarea { width: 100%; padding: .8rem 1rem; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; background: #fff; }
.qoss-form input:focus, .qoss-form select:focus, .qoss-form textarea:focus { border-color: var(--brand); outline: 3px solid rgba(79, 70, 229, .2); }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.5rem; max-width: 640px; }
.notice-ok { background: #dcfce7; color: #14532d; }
.notice-error { background: #fee2e2; color: #7f1d1d; }

/* Footer */
.site-footer { background: var(--navy); color: #cbd5e1; padding-top: 3.5rem; }
.site-footer a { color: #e2e8f0; }
.site-footer a:hover { color: #67e8f9; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: .4rem; }
.footer-title { font-weight: 700; color: #fff; margin-bottom: .7rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; padding: 1.4rem 0; border-top: 1px solid #1e293b; font-size: .9rem; }
.site-footer .muted { color: #94a3b8; }

/* Responsive */
@media (max-width: 900px) {
	.hero-inner, .product-layout { grid-template-columns: 1fr; }
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.side-card { position: static; }
}
@media (max-width: 760px) {
	.nav-toggle { display: block; }
	.primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1.2rem 4%; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
	.primary-nav.open { display: flex; }
	.primary-nav .menu { flex-direction: column; gap: .9rem; }
}
@media (max-width: 600px) {
	.grid-2, .grid-3, .steps, .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
