/* =========================================================
   Soft Perfect Infotech — base: tokens, reset, layout, type
   ========================================================= */
:root {
    --purple-900: #2a1157;
    --purple-800: #3b1a78;
    --purple-700: #4b1f8f;
    --purple-600: #5b2a99;
    --purple-500: #7a46bf;
    --purple-100: #efe8fa;
    --orange-600: #e87d0c;
    --orange-500: #f5a03a;
    --orange-100: #fff1de;

    --bg: #ffffff;
    --bg-soft: #f6f3fc;
    --surface: #ffffff;
    --text: #1d1633;
    --muted: #5f5978;
    --border: #e6e0f2;
    --shadow-sm: 0 2px 10px rgba(59, 26, 120, .08);
    --shadow-md: 0 14px 40px rgba(59, 26, 120, .14);
    --shadow-lg: 0 30px 80px rgba(42, 17, 87, .25);

    --grad: linear-gradient(120deg, var(--purple-600), var(--orange-500));
    --radius: 18px;
    --radius-sm: 12px;
    --container: 1180px;
    --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --header-h: 76px;
}

[data-theme="dark"] {
    --bg: #0f0a1e;
    --bg-soft: #150e29;
    --surface: #1a1233;
    --text: #efeaff;
    --muted: #b1a8cf;
    --border: #2d2250;
    --purple-100: #261a4a;
    --orange-100: #3a2410;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .4);
    --shadow-md: 0 14px 40px rgba(0, 0, 0, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    transition: background .3s, color .3s;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--purple-600); text-decoration: none; }
[data-theme="dark"] a { color: var(--orange-500); }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; position: relative; }
.section.soft { background: var(--bg-soft); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.center { text-align: center; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--purple-700); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 9999; }
.skip-link:focus { left: 12px; }

.eyebrow {
    display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .78rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--orange-600);
    background: var(--orange-100); padding: 6px 14px; border-radius: 99px; margin-bottom: 16px;
}
.lead { font-size: 1.12rem; color: var(--muted); max-width: 680px; }
.center .lead { margin-inline: auto; }
.section-head { margin-bottom: 48px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-head); font-weight: 700; font-size: 1rem;
    padding: 14px 28px; border-radius: 99px; border: 2px solid transparent;
    cursor: pointer; text-decoration: none !important; transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn-sm { padding: 10px 20px; font-size: .92rem; }
.btn-primary { background: var(--purple-700); color: #fff !important; box-shadow: 0 8px 24px rgba(75, 31, 143, .35); }
.btn-primary:hover { background: var(--purple-600); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(75, 31, 143, .45); }
.btn-accent { background: var(--orange-500); color: #2a1157 !important; box-shadow: 0 8px 24px rgba(245, 160, 58, .4); }
.btn-accent:hover { background: var(--orange-600); transform: translateY(-2px); }
.btn-outline { border-color: var(--purple-600); color: var(--purple-700) !important; background: transparent; }
.btn-outline:hover { background: var(--purple-700); color: #fff !important; }
[data-theme="dark"] .btn-outline { border-color: var(--orange-500); color: var(--orange-500) !important; }
[data-theme="dark"] .btn-outline:hover { background: var(--orange-500); color: #1a1233 !important; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .5); color: #fff !important; background: transparent; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .15); }
.ico { flex: none; }

@media (max-width: 980px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Utilities (CSP forbids inline style attributes) */
.mt-0 { margin-top: 0; } .mt-16 { margin-top: 16px; } .mt-32 { margin-top: 32px; } .mb-0 { margin-bottom: 0; }
.fig-reset { margin: 0; }
.narrow { max-width: 860px; }
.eyebrow-light { background: rgba(255, 255, 255, .14); color: #ffd08a; }
.stack > * + * { margin-top: 14px; }
.card-icon-c { margin-inline: auto; }
.split-top { align-items: start; }
.alert[hidden] { display: none; }
.big-404 { font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 18vw, 11rem); line-height: 1; }
