/* =============================================================
   GradeForAI Global Stylesheet
   Design language: Canny-inspired premium scoring authority
   Typography: Instrument Serif (headings) + Inter (body)
   Palette: warm near-black, parchment, blue accent
   ============================================================= */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* --- Design Tokens --- */
:root {
    /* Typography */
    --font-heading: 'Instrument Serif', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Backgrounds */
    --bg: #ffffff;
    --bg-soft: #f7f8fa;
    --bg-warm: #f4f3f1;
    --bg-dark: #0f172a;
    --bg-dark-card: #1e293b;
    --bg-navy: #1e3a5f;

    /* Text */
    --text: #222222;
    --text-body: #555555;
    --text-light: #999999;
    --text-inverse: #f8fafc;

    /* Accent -- blue, core brand */
    --accent: #4353ff;
    --accent-hover: #3644e0;
    --accent-soft: #eef0ff;
    --accent-deep: #2d3ae0;
    --accent-glow: rgba(67,83,255,0.12);

    /* Pastels for feature cards */
    --pastel-blue: #eef0ff;
    --pastel-green: #f0fdf4;
    --pastel-amber: #fffbeb;
    --pastel-rose: #fff1f2;

    /* Semantic colors */
    --red: #ef4444;
    --red-soft: #fef2f2;
    --green: #22c55e;
    --green-soft: #f0fdf4;
    --yellow: #f59e0b;
    --yellow-soft: #fffbeb;

    /* Borders & Shadows */
    --border: rgba(34,34,34,0.1);
    --border-strong: rgba(34,34,34,0.18);
    --shadow: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-xl: 0 16px 50px rgba(0,0,0,0.1);

    /* Radii */
    --radius-sm: 7px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-pill: 9999px;

    /* Layout */
    --container: 1200px;
    --container-narrow: 800px;
    --section-pad: 96px;
    --nav-height: 70px;
}

/* --- Accessibility --- */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* --- Base --- */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    min-height: 100vh;
}

html.mobile-menu-open,
body.mobile-menu-open {
    overflow: hidden;
    height: 100%;
}

/* Serif headings */
h1, h2 {
    font-family: var(--font-heading);
    color: var(--text);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -0.01em;
}

h3, h4 {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.3;
    font-weight: 600;
}

h1 { font-size: clamp(40px, 5vw, 62px); }
h2 { font-size: clamp(32px, 3.5vw, 48px); }
h3 { font-size: clamp(20px, 2.5vw, 24px); }
h4 { font-size: 18px; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--section-pad) 0;
}

.section--sm {
    padding: 64px 0;
}

.section--parchment,
.section--bg {
    background: var(--bg-warm);
}

.section--dark {
    background: var(--bg-dark);
    color: var(--text-inverse);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--text-inverse);
}

/* --- Breadcrumbs --- */
.breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-light);
    margin-top: var(--nav-height);
}
.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
}
.breadcrumb a:hover {
    color: var(--accent);
}
.breadcrumb .sep {
    margin: 0 8px;
    opacity: 0.5;
}

/* --- Skip Navigation (accessibility) --- */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 8px 16px;
    background: var(--accent);
    color: #fff;
    border-radius: 0 0 6px 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-nav:focus {
    top: 0;
}

/* Screen-reader only (visually hidden, accessible) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: var(--nav-height);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: var(--nav-height);
    overflow: hidden;
}

.nav-logo img {
    height: 150px;
    width: auto;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
    transition: color 0.2s;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-links a.active {
    position: relative;
}

.nav-links > a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0; right: 0;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
}

/* Dark CTA button */
.nav-cta {
    background: var(--text);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.nav-cta:hover {
    background: var(--accent-hover);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* --- Nav Dropdown --- */
.nav-dropdown {
    position: relative;
    display: inline-flex;
}
.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 0;
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
    z-index: 100;
    overflow: hidden;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}
.nav-dropdown-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--text-body);
    text-decoration: none;
    transition: background 0.15s;
}
.nav-dropdown-menu a:hover {
    background: var(--bg-warm);
    color: var(--text);
}
.nav-dropdown-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    padding: 6px 20px 4px;
}
.nav-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 16px;
}
.nav-dropdown-all {
    color: var(--accent) !important;
    font-weight: 600 !important;
}

/* --- Hamburger Menu --- */
.nav-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    margin: 4px 0;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 99;
    box-shadow: var(--shadow-lg);
}

.mobile-menu.open { display: block; }

.mobile-menu-scroll {
    height: 100%;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    padding: 16px 24px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}

.mobile-menu a {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.mobile-menu a:hover { background: var(--bg-warm); }

.mobile-menu .mobile-cta {
    margin-top: 8px;
    background: var(--text);
    color: #fff;
    text-align: center;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.mobile-menu .mobile-cta:hover { background: var(--accent-hover); }

.mobile-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    padding: 16px 16px 4px;
}
.mobile-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 16px;
}

@media (max-width: 768px) {
    .nav-burger { display: block; }
    .nav-links { display: none; }
}

/* --- Footer --- */
.footer {
    background: var(--bg-dark);
    color: var(--text-inverse);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 64px;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
    margin-top: 0;
    max-width: 320px;
}

.footer-col h4 {
    color: var(--text-inverse);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: #94a3b8;
    font-size: 14px;
    padding: 5px 0;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #64748b;
}

.footer-bottom a {
    color: #64748b;
    text-decoration: none;
}

.footer-bottom a:hover { color: #94a3b8; }

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 20px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
    .footer-subscribe {
        grid-column: 1 / -1;
    }
    .footer {
        padding: 48px 0 32px;
    }
    .footer-grid {
        margin-bottom: 32px;
    }
    .footer-col h4 {
        margin-bottom: 12px;
    }
    .footer-col a {
        padding: 3px 0;
        font-size: 13px;
    }
    .footer-brand p {
        font-size: 13px;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}

/* Primary: dark fill */
.btn--primary {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}

.btn--secondary:hover {
    border-color: var(--text);
    background: var(--bg-warm);
    color: var(--text);
}

/* Accent button */
.btn--accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn--accent:hover {
    background: var(--accent-deep);
    border-color: var(--accent-deep);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(67,83,255,0.2);
}

.btn--sm {
    font-size: 13px;
    padding: 8px 20px;
}

.btn--lg {
    font-size: 17px;
    padding: 18px 40px;
}

/* White button for dark sections */
.btn--white {
    background: #fff;
    color: var(--text);
    border-color: #fff;
}

.btn--white:hover {
    background: var(--bg-warm);
    color: var(--text);
    transform: translateY(-1px);
}

/* --- Cards --- */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card--flat {
    border: none;
    background: var(--bg-warm);
}

.card--pastel-blue { background: var(--pastel-blue); border: none; }
.card--pastel-green { background: var(--pastel-green); border: none; }
.card--pastel-amber { background: var(--pastel-amber); border: none; }
.card--pastel-rose { background: var(--pastel-rose); border: none; }

/* --- Badge / Tag --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.02em;
}

.badge--accent {
    background: var(--accent-soft);
    color: var(--accent);
}

.badge--green {
    background: var(--green-soft);
    color: var(--green);
}

.badge--red {
    background: var(--red-soft);
    color: var(--red);
}

/* --- Stats Row --- */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

/* --- Blog Cards --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.blog-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    color: inherit;
}

.blog-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-warm);
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.blog-card:hover .blog-card-img img {
    transform: scale(1.03);
}

.blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 8px;
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.25;
}

.blog-card-excerpt {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-light);
}

/* --- Blog Post Layout --- */
.post-header {
    text-align: center;
    padding: 105px 0 48px;
}

.post-header .badge {
    margin-bottom: 20px;
}

.post-header h1 {
    max-width: 720px;
    margin: 0 auto 20px;
}

.post-meta {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.post-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.post-content h2 {
    margin-top: 48px;
    margin-bottom: 16px;
}

.post-content h3 {
    margin-top: 32px;
    margin-bottom: 12px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul, .post-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 16px 24px;
    margin: 32px 0;
    background: var(--accent-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 18px;
    color: var(--text);
    font-style: italic;
}

/* --- Scan Form --- */
.scan-form {
    display: flex;
    max-width: 520px;
    margin: 0 auto;
    gap: 8px;
}

.scan-input {
    flex: 1;
    padding: 14px 20px;
    font-size: 16px;
    font-family: var(--font-body);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s;
    outline: none;
}

.scan-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(67,83,255,0.08);
}

.scan-input::placeholder {
    color: var(--text-light);
}

.scan-btn {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-body);
    background: var(--text);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.scan-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 520px) {
    .scan-form {
        flex-direction: column;
    }
}

/* --- Trust Bar --- */
.trust-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    padding: 16px 0;
    font-size: 14px;
    color: var(--text-light);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-item strong {
    color: var(--text);
    font-weight: 600;
}

/* --- FAQ / Accordion --- */
.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.faq-question:hover { color: var(--accent); }

.faq-question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--text-light);
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer-inner {
    padding-bottom: 24px;
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    max-height: 2000px;
}

/* --- CTA Box (dark rounded) --- */
.cta-box {
    background: var(--text);
    color: var(--text-inverse);
    border-radius: var(--radius-lg);
    padding: 72px 48px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(67,83,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.cta-box h2 {
    color: var(--text-inverse);
    margin-bottom: 16px;
    position: relative;
}

.cta-box p {
    color: #94a3b8;
    font-size: 17px;
    max-width: 480px;
    margin: 0 auto 32px;
    position: relative;
}

.cta-box .btn--primary {
    background: #fff;
    color: var(--text);
    border-color: #fff;
}

.cta-box .btn--primary:hover {
    background: var(--bg-warm);
    color: var(--text);
    border-color: var(--bg-warm);
}

/* --- CTA Section (legacy compat) --- */
.cta-section {
    text-align: center;
    padding: var(--section-pad) 0;
    background: var(--bg-warm);
}

.cta-section h2 {
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--text-body);
    font-size: 18px;
    max-width: 560px;
    margin: 0 auto 32px;
}

/* --- Contact Form --- */
.contact-section {
    padding: 80px 0;
    background: var(--bg-warm);
}
.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 48px; max-width: 800px; margin: 0 auto;
}
.contact-info h3 { font-size: 18px; margin-bottom: 12px; }
.contact-info p {
    font-size: 15px; line-height: 1.7;
    color: var(--text-body); margin-bottom: 16px;
}
.contact-info a.contact-email {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 600; color: var(--accent);
}
.contact-form label {
    display: block; font-size: 13px; font-weight: 600;
    color: var(--text); margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
    width: 100%; padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14px; margin-bottom: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--bg); color: var(--text);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(67,83,255,0.08);
}
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form button {
    background: var(--text); color: #fff; border: none;
    padding: 14px 32px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer; transition: all 0.2s;
}
.contact-form button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* --- Newsletter Subscribe --- */
.blog-subscribe {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
}
.blog-subscribe h3 {
    font-size: 18px;
    margin-bottom: 6px;
}
.blog-subscribe p {
    font-size: 14px;
    color: var(--text-body);
    margin-bottom: 16px;
}
.subscribe-form {
    display: flex;
    gap: 8px;
    max-width: 400px;
    margin: 0 auto;
}
.subscribe-form input[type="email"] {
    flex: 1;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 14px;
    background: var(--bg);
}
.subscribe-form button {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    background: var(--text);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.subscribe-form button:hover {
    background: var(--accent-hover);
}
.footer-subscribe {
    grid-column: 1 / -1;
    max-width: 480px;
    margin-top: 8px;
}
.footer-subscribe h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}
.footer-subscribe-form {
    display: flex;
    gap: 8px;
}
.footer-subscribe-form input[type="email"] {
    flex: 1;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #1e293b;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.2s;
}
.footer-subscribe-form input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
}
.footer-subscribe-btn {
    padding: 10px 18px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.footer-subscribe-btn:hover {
    background: var(--accent-deep);
    transform: translateY(-1px);
}

/* --- Reveal animation --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.vis {
    opacity: 1;
    transform: translateY(0);
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- Industry Pages (shared across all 6 industry pages) --- */
.ind-hero { padding: 85px 0 60px; background: var(--bg-soft); text-align: center; }
.ind-hero .eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 5px 14px; border-radius: 100px; margin-bottom: 20px; }
.ind-hero h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.03em; margin-bottom: 16px; max-width: 720px; margin-left: auto; margin-right: auto; }
.ind-hero .subtitle { font-size: 18px; color: var(--text-body); max-width: 620px; margin: 0 auto 32px; line-height: 1.7; }
.ind-stat-bar { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.ind-stat { text-align: center; }
.ind-stat .val { font-size: 44px; font-weight: 700; font-family: var(--font-heading); line-height: 1; }
.ind-stat .val.red { color: var(--red); }
.ind-stat .val.accent { color: var(--accent); }
.ind-stat .lbl { font-size: 13px; color: var(--text-light); margin-top: 6px; max-width: 120px; margin-left: auto; margin-right: auto; line-height: 1.4; }
.ind-content { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.ind-content h2 { font-size: 28px; letter-spacing: -0.02em; margin: 56px 0 16px; }
.ind-content p { font-size: 16px; line-height: 1.8; color: var(--text-body); margin-bottom: 16px; }
.problem-list { list-style: none; padding: 0; margin: 24px 0; }
.problem-list li { padding: 14px 16px 14px 44px; position: relative; border-left: 3px solid var(--red-soft); background: var(--red-soft); border-radius: 0 8px 8px 0; margin-bottom: 10px; font-size: 15px; color: var(--text); line-height: 1.6; }
.problem-list li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.score-table { width: 100%; border-collapse: collapse; margin: 24px 0 32px; font-size: 15px; }
.score-table th { text-align: left; padding: 10px 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-light); border-bottom: 2px solid var(--border); }
.score-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text-body); vertical-align: middle; }
.score-table tr:last-child td { border-bottom: none; }
.score-table .dim-name { font-weight: 600; color: var(--text); }
.score-pill { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 13px; font-weight: 700; }
.score-pill.f { background: var(--red-soft); color: var(--red); }
.score-pill.d { background: var(--yellow-soft); color: var(--yellow); }
.score-pill.c { background: #fff7ed; color: #ea580c; }
.dim-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0 32px; }
.dim-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.dim-card h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.dim-card .score-line { font-size: 22px; font-weight: 700; font-family: var(--font-heading); color: var(--red); margin-bottom: 8px; }
.dim-card p { font-size: 14px; color: var(--text-body); line-height: 1.6; margin: 0; }
.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 20px 24px; border-radius: 0 10px 10px 0; margin: 32px 0; }
.callout p { margin: 0; font-size: 15px; color: var(--text); line-height: 1.7; }
.callout a { color: var(--accent); font-weight: 600; text-decoration: none; }
.ind-faq { margin: 48px 0; }
.ind-faq .faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; }
.ind-faq .faq-item:last-child { border-bottom: none; }
.ind-faq .faq-item h3 { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 10px; line-height: 1.4; }
.ind-faq .faq-item p { font-size: 15px; color: var(--text-body); line-height: 1.7; margin: 0; }
.ind-cta { text-align: center; padding: 80px 24px; background: var(--bg-dark); }
.ind-cta h2 { font-size: 32px; color: #fff; letter-spacing: -0.02em; margin-bottom: 12px; }
.ind-cta p { font-size: 17px; color: #94a3b8; max-width: 480px; margin: 0 auto 28px; line-height: 1.7; }
.ind-cta .btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-white { display: inline-block; padding: 14px 28px; background: #fff; color: var(--accent); border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none; transition: opacity 0.2s; }
.btn-white:hover { opacity: 0.9; text-decoration: none; }
.btn-ghost { display: inline-block; padding: 14px 28px; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.25); border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; transition: border-color 0.2s; }
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); text-decoration: none; }

@media (max-width: 768px) {
    .dim-breakdown { grid-template-columns: 1fr; }
    .ind-stat-bar { gap: 28px; }
    .ind-cta h2 { font-size: 24px; }
}

/* --- City Pages (shared across all 6 city pages) --- */
.city-hero {
    padding: 75px 0 64px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}
.city-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    padding: 5px 14px;
    background: var(--accent-soft);
    border-radius: 100px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}
.city-hero h1 {
    font-size: clamp(32px, 4.5vw, 52px);
    letter-spacing: -0.03em;
    max-width: 720px;
    margin-bottom: 20px;
}
.city-hero .subtitle {
    font-size: 18px;
    color: var(--text-body);
    max-width: 600px;
    line-height: 1.7;
}

.city-stats-band {
    background: var(--bg-dark);
    padding: 48px 0;
}
.city-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.city-stat {
    text-align: center;
}
.city-stat .num {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
}
.city-stat .num.red { color: var(--red); }
.city-stat .num.accent { color: #818cf8; }
.city-stat .label {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 8px;
    line-height: 1.4;
}

.vertical-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin: 32px 0;
}
.vertical-table th {
    text-align: left;
    padding: 14px 16px;
    background: var(--bg-soft);
    border-bottom: 2px solid var(--border);
    font-weight: 600;
    color: var(--text);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.vertical-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.vertical-table tr:last-child td { border-bottom: none; }
.vertical-table tr:hover td { background: var(--bg-soft); }

.grade-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
}
.grade-f { background: var(--red-soft); color: var(--red); }

.score-bar-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.score-bar {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    max-width: 120px;
}
.score-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--red);
}
.score-num {
    font-weight: 600;
    color: var(--text);
    font-size: 15px;
    min-width: 28px;
}

.insight-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.insight-card h4 {
    margin-bottom: 8px;
    font-size: 16px;
}
.insight-card p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.city-cta {
    background: var(--accent);
    padding: 80px 0;
    text-align: center;
}
.city-cta h2 {
    color: #fff;
    margin-bottom: 16px;
}
.city-cta p {
    color: rgba(255,255,255,0.85);
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.city-cta .btn-city {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.city-cta .btn-city--white {
    background: #fff;
    color: var(--accent);
}
.city-cta .btn-city--white:hover {
    background: #f0f4ff;
    color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.city-cta .btn-city--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}
.city-cta .btn-city--outline:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #fff;
}

.section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 12px;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.related-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
    text-decoration: none;
    transition: all 0.2s;
}
.related-link:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 768px) {
    .city-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .city-stat .num { font-size: 36px; }
    .insight-grid { grid-template-columns: 1fr; }
    .city-hero { padding: 85px 0 48px; }
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    :root { --section-pad: 56px; }
    .section--sm { padding: 40px 0; }
    h1 { font-size: clamp(32px, 7vw, 44px); }
    h2 { font-size: clamp(26px, 5vw, 36px); }
    .stats-row { gap: 24px; }
    .stat-value { font-size: 28px; }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .section-head { margin-bottom: 32px; }
}

@media (max-width: 480px) {
    :root { --section-pad: 48px; }
    .section--sm { padding: 36px 0; }
}
