:root {
    --ink: #1f1932;
    --muted: #6d667d;
    --purple: #62429c;
    --purple-dark: #4c317c;
    --purple-soft: #f1edf8;
    --line: #ded8e8;
    --surface: #ffffff;
    --background: #f8f7fb;
    --success: #296c52;
    --warning: #8b4d23;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--background);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.55; background: var(--background); }
a { color: var(--purple-dark); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.35rem, 6vw, 4.7rem); line-height: 1.03; letter-spacing: -.045em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.14; letter-spacing: -.025em; }
h3 { font-size: 1.25rem; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(620px, calc(100% - 40px)); }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: .09em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: white; background: var(--purple); font-size: 1.15rem; }
.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links > a:not(.button) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem; }
.nav-toggle { display: none; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 0 22px; border: 1px solid var(--purple); border-radius: 8px; color: white; background: var(--purple); font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; box-shadow: 0 7px 18px rgba(98,66,156,.17); }
.button:hover { background: var(--purple-dark); }
.button-secondary, .button-outline { color: var(--purple-dark); background: white; box-shadow: none; }
.button-small { min-height: 38px; padding: 0 15px; font-size: .9rem; }
.button.full { width: 100%; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero { padding: 90px 0 100px; background: radial-gradient(circle at 88% 18%, #e5dafa 0, transparent 31%), linear-gradient(135deg,#fff 0,#f7f4fb 60%,#f0ebf8 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 70px; align-items: center; }
.lead { max-width: 680px; color: var(--muted); font-size: 1.22rem; }
.eyebrow { display: block; margin-bottom: 14px; color: var(--purple); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.microcopy, .small-note { margin: 18px 0 0; color: var(--muted); font-size: .9rem; }
.hero-panel { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.92); box-shadow: 0 28px 70px rgba(49,35,78,.14); transform: rotate(1deg); }
.hero-panel-title { margin-bottom: 22px; font-size: 1.35rem; font-weight: 800; }
.metric-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 25px; }
.metric-row div { padding: 13px; border-radius: 10px; background: var(--purple-soft); }
.metric-row strong, .metric-row span { display: block; }
.metric-row strong { color: var(--purple); font-size: 1.4rem; }
.metric-row span { color: var(--muted); font-size: .75rem; }
.mock-table { display: grid; grid-template-columns: .8fr 1.3fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.mock-table > * { padding: 11px; background: white; font-size: .79rem; }
.mock-table > span { color: var(--muted); background: #faf9fc; font-weight: 700; }
.section { padding: 86px 0; }
.section-tint { background: var(--purple-soft); border: solid var(--line); border-width: 1px 0; }
.section-heading { max-width: 710px; margin: 0 auto 42px; text-align: center; }
.section-heading.left { margin-left: 0; text-align: left; }
.section-heading p { color: var(--muted); }
.card-grid { display: grid; gap: 24px; }
.card-grid.two { grid-template-columns: repeat(2,1fr); }
.card-grid.three { grid-template-columns: repeat(3,1fr); }
.card { padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 9px 30px rgba(39,26,63,.05); }
.card.featured { border-color: #a98cd7; box-shadow: 0 15px 38px rgba(82,53,127,.12); }
.card.compact { padding: 28px; }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; border-radius: 12px; color: white; background: var(--purple); font-size: 1.5rem; }
.solution-card p, .compact p { color: var(--muted); }
.check-list { padding: 0; margin: 23px 0; list-style: none; }
.check-list li { position: relative; margin: 11px 0; padding-left: 26px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--purple); font-weight: 900; }
.text-link { font-weight: 750; text-decoration: none; }
.callout { display: flex; justify-content: space-between; align-items: center; gap: 45px; padding: 42px; border-radius: 19px; color: white; background: var(--ink); }
.callout p { margin-bottom: 0; color: #d9d2e6; }
.callout .eyebrow { color: #c4aef0; }
.auth-section { min-height: 650px; }
.form-card { padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; }
input, textarea, select { width: 100%; padding: 12px 13px; border: 1px solid #bbb2ca; border-radius: 7px; color: var(--ink); background: white; font: inherit; }
input:focus, textarea:focus, select:focus { outline: 3px solid #dfd3f2; border-color: var(--purple); }
.field small { display: block; margin-top: 5px; color: var(--muted); }
.field span, .validation, body > span { display: block; color: #a02e39; font-size: .9rem; }
.checkbox { display: flex; gap: 9px; align-items: flex-start; margin: 18px 0; }
.checkbox input { width: auto; margin-top: 5px; }
.checkbox.small { margin: 0; font-size: .8rem; }
.form-foot { margin: 20px 0 0; text-align: center; color: var(--muted); }
.notice { margin: 20px 0; padding: 23px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.notice.success { border-color: #acd3c1; background: #f1faf6; color: var(--success); }
.notice.warning { border-color: #e3c2a7; background: #fff8f1; color: var(--warning); }
.notice h1 { font-size: 2rem; }
.notice h2 { font-size: 1.3rem; }
.dev-link { padding-top: 12px; border-top: 1px solid #c9e2d6; }
.account-head { display: flex; justify-content: space-between; gap: 25px; align-items: flex-start; margin-bottom: 35px; }
.account-head h1 { margin-bottom: 8px; font-size: clamp(2rem,4vw,3.3rem); }
.account-head p { color: var(--muted); }
.account-actions { margin-top: 28px; }
.account-actions form { margin-top: 15px; }
.text-button { padding: 0; border: 0; color: var(--purple-dark); background: none; font: inherit; font-weight: 750; text-decoration: underline; cursor: pointer; }
.activation-box { margin: 25px 0; padding: 25px; border: 2px solid var(--purple); border-radius: 14px; background: var(--purple-soft); }
.activation-box span, .activation-box strong, .activation-box p { display: block; }
.activation-box strong { margin: 8px 0; font: 800 clamp(1.35rem,4vw,2.1rem) ui-monospace, monospace; letter-spacing: .08em; }
.activation-box p { margin: 0; color: var(--muted); }
.license-section { margin-top: 48px; }
.license-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.license-row { display: flex; justify-content: space-between; gap: 25px; padding: 20px; background: white; border-bottom: 1px solid var(--line); }
.license-row:last-child { border-bottom: 0; }
.license-row strong, .license-row span { display: block; }
.license-row span { color: var(--muted); }
.empty { padding: 25px; color: var(--muted); background: white; border: 1px dashed var(--line); border-radius: 12px; }
.download-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 25px; }
.download-card { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.download-card > div { display: flex; gap: 18px; align-items: center; }
.download-card h2, .download-card p { margin-bottom: 3px; }
.file-badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 13px; color: white; background: var(--purple); font-weight: 900; }
details code { display: block; overflow-wrap: anywhere; padding-top: 10px; }
.steps { padding-left: 22px; }
.steps li { margin: 11px 0; }
.prose { max-width: 800px; }
.prose h1 { font-size: clamp(2.2rem,5vw,3.7rem); }
.prose h2 { margin-top: 35px; font-size: 1.5rem; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: white; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { background: #f7f5fa; }
.admin-table td span, .admin-table td small { color: var(--muted); }
.admin-form { display: grid; min-width: 190px; gap: 8px; }
.site-footer { padding: 45px 0; border-top: 1px solid var(--line); color: var(--muted); background: white; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; }
.footer-grid p { margin: 6px 0 0; }
.footer-links { display: flex; gap: 22px; align-items: center; }

@media (max-width: 800px) {
    .nav-toggle { display: inline-flex; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: white; font: inherit; }
    .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 22px; background: white; border-bottom: 1px solid var(--line); }
    .nav-links.open { display: flex; }
    .hero { padding: 65px 0; }
    .hero-grid, .card-grid.two, .card-grid.three, .download-layout { grid-template-columns: 1fr; }
    .hero-grid { gap: 45px; }
    .hero-panel { transform: none; }
    .callout, .footer-grid { align-items: flex-start; flex-direction: column; }
    .account-head, .license-row { flex-direction: column; }
    .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
