:root {
    color-scheme: light;
    --primary: #4338ca;
    --primary-dark: #3730a3;
    --primary-soft: #eef0ff;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --bg: #fbfaf7;
    --bg-alt: #f3f1ea;
    --surface: #ffffff;
    --text: #1f2430;
    --text-muted: #5b6472;
    --border: #e7e3d8;
    --shadow: 0 10px 30px rgba(31, 36, 48, 0.08);
    --shadow-lg: 0 20px 50px rgba(31, 36, 48, 0.12);
    --radius: 16px;
    --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    --maxw: 1140px;
    --header-bg: rgba(251, 250, 247, 0.82);
    --footer-bg: #1f2430;
    --footer-text: #cfd3dc;
    --footer-muted: #8b92a0;
    --blob-1: rgba(67,56,202,0.35);
    --blob-2: rgba(245,158,11,0.28);
}

body.dark-mode {
    color-scheme: dark;
    --primary: #8b9cff;
    --primary-dark: #bac4ff;
    --primary-soft: #222b54;
    --accent: #fbbf24;
    --accent-dark: #f59e0b;
    --bg: #10131a;
    --bg-alt: #171b25;
    --surface: #1f2430;
    --text: #f6f7fb;
    --text-muted: #c3cad8;
    --border: #343b4d;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.38);
    --header-bg: rgba(16, 19, 26, 0.86);
    --footer-bg: #080a0f;
    --footer-text: #e6e8ef;
    --footer-muted: #aab2c1;
    --blob-1: rgba(139, 156, 255, 0.24);
    --blob-2: rgba(251, 191, 36, 0.18);
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; font-weight: 700; }
a { color: inherit; }
strong { font-weight: 600; }

/* --- Decorative background blobs --- */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.5;
}
.blob-1 { top: -150px; right: -120px; width: 500px; height: 500px; background: radial-gradient(circle, var(--blob-1), transparent 70%); }
.blob-2 { top: 40%; left: -150px; width: 460px; height: 460px; background: radial-gradient(circle, var(--blob-2), transparent 70%); }

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 70px;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
}
nav {
    max-width: var(--maxw);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.15rem;
    text-decoration: none; color: var(--text);
}
.logo-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    background: var(--primary); color: #fff;
    border-radius: 9px; font-size: 0.95rem; font-weight: 700;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
    text-decoration: none; color: var(--text-muted);
    font-size: 0.95rem; font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.05rem;
}
.theme-toggle:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.theme-toggle .moon { display: none; }
body.dark-mode .theme-toggle .sun { display: none; }
body.dark-mode .theme-toggle .moon { display: inline; }
.mobile-menu-toggle {
    display: none; background: none; border: none;
    width: 42px; height: 42px; padding: 10px;
    cursor: pointer;
}
.mobile-menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
    border-radius: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600; font-size: 1rem;
    cursor: pointer; border: 2px solid transparent;
    transition: var(--transition);
    font-family: var(--font);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(67,56,202,0.35); }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary-soft); transform: translateY(-2px); }
.cta-button {
    background: var(--accent); color: #1f2430 !important;
    padding: 9px 22px; border-radius: 50px; font-weight: 600;
}
.cta-button:hover { background: var(--accent-dark); color: #fff !important; }
.btn.full { width: 100%; text-align: center; }

/* --- Layout helpers --- */
.section { padding: 64px 24px; }
/* Sections short enough to fill the screen: centre their content so the
   landing leaves top breathing room and keeps the next section below the fold. */
.section-fill { min-height: calc(100vh - 70px); display: flex; flex-direction: column; justify-content: center; }
.section-fill > .container { width: 100%; }
/* Two stacked blocks sharing one screen, each centred in its own half. */
.section-split { justify-content: space-around; gap: 24px; }
.container { max-width: var(--maxw); margin: 0 auto; }
.container-narrow { max-width: 760px; }
.section-heading { font-size: 2.3rem; text-align: center; margin-bottom: 14px; }
.section-sub { text-align: center; color: var(--text-muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto 24px; }
.alt-bg { background: var(--bg-alt); }
.eyebrow { color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.82rem; margin-bottom: 12px; }
.text-grad { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 110px 24px 60px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(16, 19, 26, 0.78), rgba(16, 19, 26, 0.88)),
        url("images/staffordshire-ai-hero.webp") center / cover no-repeat;
    color: #f6f7fb;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 45%, rgba(139, 156, 255, 0.18), transparent 38%);
    pointer-events: none;
}
.hero-content { max-width: 820px; position: relative; z-index: 1; }
.hero h1 { --title: 4.6rem; font-weight: 800; margin-bottom: 22px; }
.hero h1 .brand { display: block; font-size: var(--title); font-weight: 800; line-height: 1.05; }
.hero h1 .tagline { display: block; font-size: calc(var(--title) / 1.593); font-weight: 600; line-height: 1.15; margin-top: 6px; }
.hero .eyebrow { color: #aeb8ff; }
.hero-desc { font-size: 1.18rem; color: #d8deec; max-width: 680px; margin: 0 auto 36px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-buttons .btn { min-width: 184px; text-align: center; }
.hero .btn-secondary { color: #c8d0ff; border-color: #8b9cff; }
.hero .btn-secondary:hover { background: rgba(139, 156, 255, 0.16); }
.hero-trust { margin-top: 26px; color: #c8cfdd; font-size: 0.95rem; }

/* --- Services grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.service-icon {
    display: block;
    margin-bottom: 14px;
    font-size: 2.2rem;
    line-height: 1;
}
.service-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.service-head .service-icon { margin-bottom: 0; }
.service-head h3 { margin-bottom: 0; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 16px; }

/* --- Two-column sections --- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.two-col h2 { font-size: 1.95rem; margin-bottom: 10px; }
.col-text p { color: var(--text-muted); margin-bottom: 14px; }
.tick-list { list-style: none; margin-bottom: 18px; }
.tick-list li {
    position: relative; padding-left: 32px; margin-bottom: 7px; color: var(--text);
}
.tick-list li::before {
    content: "✓";
    position: absolute; left: 0; top: 0;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--primary-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700;
}
.tick-list.small li { margin-bottom: 8px; font-size: 0.94rem; }
.quote-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 5px solid var(--accent);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
}
.quote { font-size: 1.25rem; font-style: italic; margin-bottom: 16px; }
.quote-by { color: var(--text-muted); font-weight: 600; }
.action-card h3 {
    font-size: 1.45rem;
    margin-bottom: 14px;
}
.action-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}
.quote-kicker {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.text-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}
.text-link:hover { text-decoration: underline; }

/* --- Pricing --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    align-items: stretch;
}
.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 30px;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column;
    position: relative;
    transition: var(--transition);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.featured { border: 2px solid var(--primary); }
.price-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff;
    padding: 5px 18px; border-radius: 50px;
    font-size: 0.78rem; font-weight: 600; white-space: nowrap;
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.price { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 6px; }
.price strong { font-size: 2.4rem; color: var(--text); font-weight: 800; }
.price span { font-size: 0.95rem; }
.price-note { color: var(--text-muted); margin-bottom: 20px; font-size: 0.96rem; }
.price-card .btn { margin-top: auto; text-align: center; }
.price-card .tick-list { margin-bottom: 26px; }
.price-breakdown { list-style: none; margin: 8px 0 26px; }
.price-breakdown li {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem;
}
.price-breakdown li:last-child { border-bottom: none; }
.price-breakdown li span { color: var(--text-muted); }
.price-breakdown li strong { color: var(--text); white-space: nowrap; font-weight: 700; }

/* --- Steps --- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.step {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 34px 28px; text-align: center;
    box-shadow: var(--shadow);
}
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--primary-soft); color: var(--primary);
    font-size: 1.4rem; font-weight: 800; margin-bottom: 18px;
}
.step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.96rem; }

/* --- Areas --- */
.areas-list {
    list-style: none; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.areas-list li {
    background: var(--surface); border: 1px solid var(--border);
    padding: 10px 22px; border-radius: 50px; font-weight: 500;
    box-shadow: var(--shadow); transition: var(--transition);
}
.areas-list li:hover { border-color: var(--accent); color: var(--accent-dark); transform: translateY(-3px); }

/* --- FAQ --- */
.faq-list details {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; margin-bottom: 14px; padding: 4px 24px;
    box-shadow: var(--shadow); transition: var(--transition);
}
.faq-list details[open] { border-color: var(--primary); }
.faq-list summary {
    cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 1.05rem;
    list-style: none; position: relative; padding-right: 30px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
    content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    font-size: 1.5rem; color: var(--primary); font-weight: 400; transition: var(--transition);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { color: var(--text-muted); padding: 0 0 20px; }

/* --- Contact form --- */
.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 16px; position: relative; }
.form-group label {
    display: block; margin-bottom: 8px;
    font-weight: 600; font-size: 0.9rem; color: var(--text);
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 14px 16px;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 10px; font-family: var(--font); font-size: 1rem;
    color: var(--text); transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--primary); background: var(--surface);
    box-shadow: 0 0 0 4px var(--primary-soft);
}
.form-group select option {
    background: var(--surface); color: var(--text);
}
.form-group textarea { height: 120px; resize: vertical; }
.error-message { color: #d33; font-size: 0.85rem; margin-top: 6px; display: none; }
.form-group input:invalid:not(:placeholder-shown) + .error-message,
.form-group textarea:invalid:not(:placeholder-shown) + .error-message { display: block; }
.status-message { padding: 16px; margin-bottom: 24px; border-radius: 10px; text-align: center; font-weight: 600; }
.status-success { background: #e7f7ec; color: #1b7a3d; border: 1px solid #b6e6c4; }
.status-error { background: #fdeaea; color: #b3261e; border: 1px solid #f3c4c1; }
.hidden { display: none; }
.honeypot-field { position: absolute; left: -9999px; visibility: hidden; }

/* --- Footer --- */
footer {
    background: var(--footer-bg); color: var(--footer-text);
    text-align: center; padding: 40px 24px;
}
footer .footer-sub { color: var(--footer-muted); font-size: 0.88rem; margin-top: 8px; }

/* --- Legal page (privacy.html) --- */
.legal-page { padding-top: 150px; }
.legal-page h2 { font-size: 1.25rem; margin: 30px 0 8px; }
.legal-page p, .legal-page li { color: var(--text-muted); }
.legal-page ul { padding-left: 22px; margin: 8px 0 0; }
.legal-page a { color: var(--primary); }
.legal-updated { font-size: 0.88rem; text-align: center; margin-bottom: 28px; }

/* --- Animations --- */
.fade-in, .fade-in-up, .fade-in-left { opacity: 0; transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.fade-in { transform: translateY(24px); }
.fade-in-up { transform: translateY(40px); }
.fade-in-left { transform: translateX(-30px); }
.fade-in.visible, .fade-in-up.visible, .fade-in-left.visible { opacity: 1; transform: none; }

/* --- Responsive --- */
@media (max-width: 860px) {
    .two-col, .two-col.reverse { grid-template-columns: 1fr; gap: 36px; }
    .two-col.reverse .col-card { order: 2; }
    .hero h1 { --title: 3.2rem; }
}
@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    .nav-links {
        position: fixed; top: 70px; left: 0; width: 100%;
        flex-direction: column; gap: 0;
        background: var(--bg); border-bottom: 1px solid var(--border);
        padding: 10px 0; display: none;
    }
    .nav-links.active { display: flex; }
    .nav-links a { padding: 14px 24px; width: 100%; }
    .theme-toggle { margin: 10px 24px; }
    .section { padding: 64px 20px; }
    .hero h1 { --title: 2.6rem; }
    .section-heading { font-size: 1.9rem; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 28px; }
}
