.qgp {
    --qgp-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;
    --qgp-ink: #1c1410;
    --qgp-muted: #6b5a52;
    --qgp-soft: #f3ece4;
    --qgp-rule: rgba(28, 20, 16, 0.08);
    --qgp-green: #589632; /* QGIS brand green, matches the logo gradient */

    font-family: var(--qgp-sans);
    color: var(--qgp-ink);
    line-height: 1.6;
}

.qgp ::selection {
    background: var(--my-red);
    color: #fff;
}

/* ─── PILL BADGE ─── */
.qgp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.45em 1em;
    background: var(--qgp-soft);
    color: var(--my-dark-red);
    border-radius: 999px;
    font-size: 0.825rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.qgp-badge i {
    font-size: 1em;
}

/* ─── BUTTONS ─── */
.qgp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    padding: 0.85em 1.6em;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
    cursor: pointer;
    line-height: 1.2;
    text-align: center;
}

.qgp-btn-primary {
    background: var(--my-red);
    color: #fff;
    box-shadow: 0 6px 18px rgba(191, 67, 66, 0.25);
}

.qgp-btn-primary:hover {
    background: var(--my-dark-red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(191, 67, 66, 0.32);
}

.qgp-btn-outline {
    background: #fff;
    color: var(--qgp-ink);
    border-color: rgba(28, 20, 16, 0.18);
}

.qgp-btn-outline:hover {
    border-color: var(--qgp-ink);
    color: var(--qgp-ink);
    transform: translateY(-2px);
}

.qgp-btn i {
    font-size: 1.05em;
    transition: transform 0.18s ease;
}

.qgp-btn:hover i.bi-arrow-right {
    transform: translateX(3px);
}

/* ─── HERO ─── */
.qgp-hero {
    padding: 3.5rem 0 4.5rem;
    text-align: center;
    position: relative;
}

.qgp-hero::before {
    content: "";
    position: absolute;
    inset: -2rem 0 0;
    background: radial-gradient(ellipse 80% 70% at 50% 0%, var(--qgp-soft) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.qgp-hero-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.qgp-hero-logos img {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(28, 20, 16, 0.08);
    border: 1px solid var(--qgp-rule);
}

.qgp-hero-logos i {
    font-size: 1.4rem;
    color: var(--qgp-muted);
}

.qgp-hero h1 {
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin: 1.5rem auto 1.25rem;
    max-width: 24ch;
    color: var(--qgp-ink);
    overflow-wrap: anywhere;
}

.qgp-hero h1 .accent {
    color: var(--qgp-green);
}

.qgp-hero p.lead {
    font-size: 1.1875rem;
    line-height: 1.55;
    color: var(--qgp-muted);
    max-width: 38em;
    margin: 0 auto 2.25rem;
}

.qgp-hero-cta {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── STATS STRIP ─── */
.qgp-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    padding: 2.5rem 0;
    border-top: 1px solid var(--qgp-rule);
    border-bottom: 1px solid var(--qgp-rule);
    margin: 1rem 0 4.5rem;
}

.qgp-stat {
    text-align: center;
    padding: 0.5rem;
}

.qgp-stat-value {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--my-red);
    line-height: 1.1;
}

.qgp-stat-label {
    font-size: 0.875rem;
    color: var(--qgp-muted);
    margin-top: 0.4rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .qgp-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

/* ─── SECTION ─── */
.qgp-section {
    padding: 3.5rem 0;
}

.qgp-section-head {
    text-align: center;
    max-width: 42em;
    margin: 0 auto 2.75rem;
}

.qgp-section-head h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 1rem 0 0.75rem;
    line-height: 1.15;
    color: var(--qgp-ink);
}

.qgp-section-head p {
    font-size: 1.0625rem;
    color: var(--qgp-muted);
    margin: 0;
    line-height: 1.55;
}

/* ─── LAYER-TYPE CARDS ─── */
.qgp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.qgp-card {
    background: #fff;
    border: 1px solid var(--qgp-rule);
    border-radius: 16px;
    padding: 2rem;
    color: inherit;
}

.qgp-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--qgp-soft);
    color: var(--my-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.qgp-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    letter-spacing: -0.015em;
    color: var(--qgp-ink);
}

.qgp-card p {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--qgp-muted);
    margin: 0;
}

.qgp-card-format {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--qgp-green);
    background: rgba(88, 150, 50, 0.1);
    border-radius: 6px;
    padding: 0.25em 0.7em;
}

@media (max-width: 768px) {
    .qgp-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ─── QUICK-START STEPS ─── */
.qgp-steps {
    list-style: none;
    counter-reset: qgp-step;
    padding: 0;
    max-width: 46em;
    margin: 0 auto;
}

.qgp-steps li {
    counter-increment: qgp-step;
    position: relative;
    padding: 0 0 1.9rem 3.6rem;
}

.qgp-steps li:last-child {
    padding-bottom: 0;
}

.qgp-steps li::before {
    content: counter(qgp-step);
    position: absolute;
    left: 0;
    top: -0.2rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--qgp-soft);
    color: var(--my-dark-red);
    font-weight: 800;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qgp-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 1.2rem;
    top: 2.5rem;
    bottom: 0.3rem;
    width: 1px;
    background: var(--qgp-rule);
}

.qgp-steps h3 {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 0.35rem;
    color: var(--qgp-ink);
}

.qgp-steps p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--qgp-muted);
    margin: 0;
    overflow-wrap: anywhere;
}

.qgp-steps p a {
    color: var(--my-red);
    font-weight: 600;
    text-decoration: none;
}

.qgp-steps p a:hover {
    color: var(--my-dark-red);
}

.qgp-step-note {
    margin-top: 0.4rem !important;
    font-size: 0.85rem !important;
    color: var(--qgp-muted);
    opacity: 0.85;
}

/* ─── FEATURE CHECKS ─── */
.qgp-checks {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 60em;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.25rem 2.5rem;
}

.qgp-checks li {
    position: relative;
    padding: 0.55rem 0 0.55rem 2rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--qgp-ink);
}

.qgp-checks li::before {
    content: "\F26E"; /* bi-check-lg */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 0.62rem;
    width: 22px;
    height: 22px;
    background: var(--qgp-soft);
    color: var(--my-red);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .qgp-checks {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ─── DEVELOPER CROSS-LINK ─── */
.qgp-devnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin: 1rem auto 0;
    padding: 1.4rem 1.75rem;
    max-width: 52em;
    background: #fff;
    border: 1px solid var(--qgp-rule);
    border-radius: 16px;
    font-size: 0.9375rem;
    color: var(--qgp-muted);
    text-align: center;
}

.qgp-devnote i {
    font-size: 1.35rem;
    color: var(--my-red);
}

.qgp-devnote a {
    color: var(--my-red);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.qgp-devnote a:hover {
    color: var(--my-dark-red);
}

/* ─── CTA BANNER ─── */
.qgp-cta-banner {
    margin: 4rem 0 3rem;
    padding: 3.5rem 2.5rem;
    background: linear-gradient(135deg, var(--my-red) 0%, var(--my-dark-red) 100%);
    border-radius: 24px;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 40px rgba(140, 28, 19, 0.18);
}

.qgp-cta-banner h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 0.75rem;
    color: #fff;
}

.qgp-cta-banner p {
    font-size: 1.0625rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 2rem;
    max-width: 36em;
}

.qgp-cta-banner .qgp-hero-cta {
    margin: 0;
}

.qgp-btn-on-dark {
    background: #fff;
    color: var(--qgp-ink);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.qgp-btn-on-dark:hover {
    background: var(--qgp-ink);
    color: #fff;
    transform: translateY(-2px);
}

.qgp-btn-ghost-on-dark {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.qgp-btn-ghost-on-dark:hover {
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .qgp-cta-banner {
        padding: 2.5rem 1.5rem;
        border-radius: 18px;
    }
}

/* ─── TRADEMARK FOOTNOTE ─── */
.qgp-footnote {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--qgp-muted);
    opacity: 0.75;
    margin: 0 0 2rem;
}
