@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-var.woff2') format('woff2');
}

:root {
    color-scheme: dark;
    /* Base surfaces (neutral charcoal) */
    --bg-top: #24272C;
    --bg-base: #17191D;
    --bg-deep: #0B0C0E;
    /* Opaque surfaces that sit on the background: 1 lightest, 3 darkest.
       Use these instead of glass when a panel must hide what's behind it
       (sticky header, dialogs, badges over imagery). */
    --surface-1: #24272C;
    --surface-2: #1B1E24;
    --surface-3: #12151C;
    --surface-header: rgba(23, 25, 29, 0.82);
    /* A genuinely light surface, for third-party logos that need one. */
    --surface-light: #FFFFFF;
    /* Glass (things that float above the background) */
    --glass-fill: linear-gradient(160deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.035) 100%);
    --glass-fill-hover: linear-gradient(160deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
    --glass-border: rgba(255, 255, 255, 0.14);
    --glass-border-hover: rgba(255, 255, 255, 0.24);
    --glass-blur: blur(16px) saturate(140%);
    /* White washes, lightest to heaviest. --hairline is for 1px rules. */
    --fill-subtle: rgba(255, 255, 255, 0.03);
    --fill-quiet: rgba(255, 255, 255, 0.05);
    --fill-input: rgba(255, 255, 255, 0.06);
    --fill-hover: rgba(255, 255, 255, 0.07);
    --hairline: rgba(255, 255, 255, 0.08);
    /* Text. --text-strong is emphasis (headings, prices), --text-hover is
       what a muted link becomes, --on-brand is text over a gradient fill. */
    --text: #ECEEF2;
    --text-soft: #B7BCC6;
    --text-muted: #9399A5;
    --text-strong: #FFFFFF;
    --text-hover: #FFFFFF;
    --on-brand: #FFFFFF;
    /* Brand (the devforge.com orange/gold pair). Drives every "primary"
       role: main CTAs, links, focus, active states. The gradient's light
       stop is a deepened gold with full #FFD131 washed out white button text. */
    --brand: #FA7921;
    --grad-brand: linear-gradient(135deg, #F59E0B 0%, #FA7921 100%);
    --brand-tint: rgba(250, 121, 33, 0.14);
    --brand-ring: rgba(250, 121, 33, 0.38);
    --brand-edge: rgba(250, 121, 33, 0.5);
    /* Accent solids (text, borders, icons) */
    --blue: #57C7FF;
    --green: #3DDC97;
    --red: #FF6B84;
    --orange: #FFA34D;
    --violet: #B18CFF;
    /* Accent gradients (fills) */
    --grad-blue: linear-gradient(135deg, #5AD2FF 0%, #2B6BFF 100%);
    /* Light stop kept dark enough for white text, matching --grad-brand. */
    --grad-green: linear-gradient(135deg, #2EC985 0%, #12A05E 100%);
    --grad-red: linear-gradient(135deg, #FF7A8A 0%, #E01E45 100%);
    --grad-orange: linear-gradient(135deg, #FFC96B 0%, #F26A1B 100%);
    --grad-violet: linear-gradient(135deg, #C79BFF 0%, #7539E0 100%);
    --grad-slate: linear-gradient(135deg, #8A9BB8 0%, #46567A 100%);
    /* Raised effect: outer drop shadow + lit top edge */
    --shadow-raised: 0 18px 35px -12px rgba(0, 0, 0, 0.65), 0 4px 12px -4px rgba(0, 0, 0, 0.45);
    --shadow-soft: 0 10px 22px -10px rgba(0, 0, 0, 0.55);
    --shadow-btn: 0 8px 18px -8px rgba(0, 0, 0, 0.6);
    --shadow-btn-hover: 0 14px 26px -10px rgba(0, 0, 0, 0.7);
    --shadow-card: 0 10px 24px -12px rgba(0, 0, 0, 0.7), 0 2px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 18px 34px -14px rgba(0, 0, 0, 0.75), 0 4px 10px -4px rgba(0, 0, 0, 0.45);
    --edge-top: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    /* Corners */
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-pill: 999px;
    /* Type */
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* Type scale. Pick a step; don't invent a new size. Values match the
       sizes already in use, so adopting the scale never resizes text. */
    --fs-2xs: 0.72rem;
    --fs-xs: 0.75rem;
    --fs-sm: 0.82rem;
    --fs-md: 0.9rem;
    --fs-base: 0.95rem;
    --fs-lg: 1.05rem;
    --fs-xl: 1.35rem;
    /* Spacing. Every gap and padding should land on this scale. */
    --sp-1: 0.35rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1.25rem;
    --sp-5: 1.75rem;
    --sp-6: 2.5rem;
    /* Line lengths. Three choices, not eleven. */
    --measure-narrow: 55ch;
    --measure: 60ch;
    --measure-wide: 70ch;
    /* Layout */
    --header-h: 5rem;
    --z-header: 50;
    --z-skip: 100;
}

/* Course-tier accents. One class on a card, chip, or page section themes
   every accent-aware element inside it (borders, chips, buttons).
   Each class picks a colour; the tint and edge are derived from it, so
   there is one tint ladder on the site rather than one per palette entry. */
.tier-mastercourse { --accent: var(--green);  --accent-grad: var(--grad-green); }
.tier-training     { --accent: var(--orange); --accent-grad: var(--grad-orange); }
.tier-accelerate   { --accent: var(--blue);   --accent-grad: var(--grad-blue); }
.tier-skillcheck   { --accent: var(--violet); --accent-grad: var(--grad-violet); }
.tier-leadmagnet   { --accent: var(--green);  --accent-grad: var(--grad-green); }
.tier-legacy       { --accent: var(--text-muted); --accent-grad: var(--grad-slate); }

.tier-mastercourse, .tier-training, .tier-accelerate, .tier-skillcheck,
.tier-leadmagnet, .tier-legacy, .chip-sale, .chip-new, .chip-free {
    --accent-tint: color-mix(in srgb, var(--accent) 14%, transparent);
    --accent-edge: color-mix(in srgb, var(--accent) 32%, transparent);
}

/* ------------------------------------------------------------
   BASE
   ------------------------------------------------------------ */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    background-color: var(--bg-deep);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: -0.006em;
    color: var(--text);
    background-color: var(--bg-base);
    /* Top-lit vertical ramp plus soft light pools, so large empty areas
       never read as a flat block of grey. */
    background-image:
        radial-gradient(900px 620px at 12% -8%, rgba(255, 255, 255, 0.085), transparent 62%),
        radial-gradient(820px 520px at 88% -2%, rgba(255, 255, 255, 0.05), transparent 58%),
        radial-gradient(760px 620px at 50% 112%, rgba(255, 255, 255, 0.04), transparent 62%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-base) 45%, var(--bg-deep) 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Display type: large, tight, sentence case. Presence comes from size and
   negative tracking, weight separates headings from body copy. */
h1, h2, h3, h4 {
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -0.022em;
    color: var(--text-strong);
    margin: 0 0 var(--sp-2);
    text-wrap: balance;
}

h1 {
    font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
    letter-spacing: -0.032em;
}

    /* FocusOnNavigate lands focus on the h1 after navigation; that focus is
       useful to screen readers but shouldn't paint a ring. */
    h1:focus,
    h1:focus-visible {
        outline: none;
    }

h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2rem);
    letter-spacing: -0.028em;
}

h3 {
    font-size: 1.2rem;
}

h4 {
    font-size: 1rem;
}

p {
    margin: 0 0 1rem;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--text-strong);
    text-decoration: none;
    transition: color 0.15s ease;
}

    a:hover {
        color: var(--brand);
    }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 2px;
}

::selection {
    background: var(--brand-ring);
}

* {
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
    scrollbar-width: thin;
}

.tabular {
    font-variant-numeric: tabular-nums;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0.5rem;
    z-index: var(--z-skip);
    padding: 0.5rem 1rem;
    background: var(--bg-deep);
    border-radius: var(--radius-sm);
}

    .skip-link:focus {
        left: 0.5rem;
    }

/* ------------------------------------------------------------
   PRIMITIVES
   ------------------------------------------------------------ */

.container {
    width: min(100% - 2.5rem, 1200px);
    margin-inline: auto;
}

.section {
    padding-block: 3rem;
}

@media (min-width: 960px) {
    .section {
        padding-block: 4.5rem;
    }
}

/* Small, muted, letter-spaced label. .section-label is the accent-coloured
   eyebrow above a heading; .eyebrow is the quiet grey version used to head
   a column or a list. */
.section-label {
    display: block;
    color: var(--accent, var(--brand));
    font-size: var(--fs-2xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: var(--sp-2);
}

.eyebrow {
    display: block;
    color: var(--text-muted);
    font-size: var(--fs-2xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-sub {
    color: var(--text-soft);
    max-width: var(--measure);
}

    .section-sub.centered {
        margin-inline: auto;
    }

.text-center {
    text-align: center;
}

/* Frosted panel that floats above the background. Padding is the caller's
   job - cards, buy boxes and banners all want different amounts. */
.glass {
    background: var(--glass-fill);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-card), var(--edge-top);
}

.glass-hover {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

    .glass-hover:hover {
        transform: translateY(-2px);
        border-color: var(--glass-border-hover);
        box-shadow: var(--shadow-card-hover), var(--edge-top);
    }

/* Lifts a panel above the ordinary card depth - flagship blocks, the buy
   box, the plan the page is steering you toward. */
.raised {
    box-shadow: var(--shadow-raised), var(--edge-top);
}

/* Centred column: heading, copy and buttons stacked and centred. */
.stack-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-3);
}

/* A row of buttons that wraps on narrow screens. */
.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-top: var(--sp-2);
}

    .btn-row.centered {
        justify-content: center;
    }

/* Corner ribbon on the option a page is steering you toward. */
.ribbon {
    position: absolute;
    top: -0.8rem;
    left: 1.5rem;
    padding: 0.25rem 0.8rem;
    border-radius: var(--radius-pill);
    background: var(--grad-brand);
    color: var(--on-brand);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: var(--shadow-btn);
}

/* Numbered circle marking a step in a sequence. Never shrinks - as a flex
   item next to long text it would otherwise squash into an oval. */
.node-badge {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--grad-brand);
    color: var(--on-brand);
    font-weight: 700;
    box-shadow: var(--shadow-btn), var(--edge-top);
}

/* Round portrait. */
.avatar {
    border-radius: 50%;
    border: 3px solid var(--glass-border);
}

/* Number over label. --stat-size tunes the number per context. */
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

    .stat dt,
    .stat .stat-value {
        font-size: var(--stat-size, var(--fs-xl));
        font-weight: 750;
        letter-spacing: -0.02em;
        color: var(--stat-color, var(--text-strong));
        font-variant-numeric: tabular-nums;
    }

    .stat dd,
    .stat .stat-label {
        margin: 0;
        color: var(--text-muted);
        font-size: var(--fs-xs);
    }

/* Buttons. .btn is the shape; a variant supplies the fill. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border: 0;
    border-radius: var(--radius-md);
    font-family: var(--font-ui);
    font-size: var(--fs-base);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.4;
    color: var(--on-brand);
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow-btn), var(--edge-top);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

    .btn:hover {
        color: var(--on-brand);
        filter: brightness(1.12);
        transform: translateY(-2px);
        box-shadow: var(--shadow-btn-hover), var(--edge-top);
    }

    .btn:focus-visible {
        box-shadow: var(--shadow-btn), var(--edge-top);
    }

.btn-primary {
    background: var(--grad-brand);
}

.btn-buy {
    background: var(--grad-green);
}

.btn-accent {
    background: var(--accent-grad, var(--grad-brand));
}

.btn-ghost {
    background: var(--fill-input);
    border: 1px solid var(--glass-border);
    box-shadow: var(--edge-top);
}

    .btn-ghost:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--glass-border-hover);
    }

.btn-lg {
    padding: 0.8rem 1.9rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* Chips: small pill labels with a tinted wash and a gradient dot. */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    padding: 0.2rem 0.65rem 0.2rem 0.5rem;
    border: 1px solid var(--accent-edge, var(--glass-border));
    border-radius: var(--radius-pill);
    background-color: var(--accent-tint, rgba(255, 255, 255, 0.06));
    color: var(--accent, var(--text-muted));
    font-size: var(--fs-xs);
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

    .chip::before {
        content: "";
        flex: none;
        width: 0.5rem;
        height: 0.5rem;
        border-radius: 50%;
        background: var(--accent-grad, var(--grad-slate));
    }

    .chip.chip-plain::before {
        display: none;
    }

.chip-sale    { --accent: var(--red);    --accent-grad: var(--grad-red); }
.chip-new     { --accent: var(--orange); --accent-grad: var(--grad-orange); }
.chip-free    { --accent: var(--green);  --accent-grad: var(--grad-green); }

/* Plain technology tags (no dot, quieter than chips). */
.tag {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    background: var(--fill-quiet);
    color: var(--text-soft);
    font-size: var(--fs-sm);
    font-weight: 500;
    white-space: nowrap;
}

/* A wrapping row of tags or chips. */
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Text inputs. */
.field {
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: var(--fill-input);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: var(--fs-base);
    box-shadow: var(--edge-top);
}

    .field:focus {
        outline: none;
        border-color: var(--brand-edge);
        box-shadow: var(--edge-top), 0 0 0 2px var(--brand-ring);
    }

/* Responsive card grid. The min(100%, …) keeps a track from ever forcing
   horizontal overflow inside narrow or padded containers. Set --card-min
   to change the track floor instead of restating the whole template. */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--card-min, 280px)), 1fr));
    gap: var(--sp-4);
}

/* Lists that keep their own bullets: reset the browser's, lay out as a grid. */
.list-reset {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--sp-2);
}

/* Link list marked with an accent chevron. */
.chevron-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--sp-2);
}

    .chevron-list li {
        position: relative;
        padding-left: 1.1rem;
    }

        .chevron-list li::before {
            content: "\203A";
            position: absolute;
            left: 0;
            color: var(--accent, var(--brand));
            font-weight: 700;
        }

    .chevron-list a {
        color: var(--text-soft);
    }

        .chevron-list a:hover {
            color: var(--accent, var(--brand));
        }

/* details/summary accordion chrome, shared by FAQs, curricula and the
   collapsed legacy group. */
.accordion {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--glass-fill);
    box-shadow: var(--shadow-soft), var(--edge-top);
}

    .accordion > summary {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.9rem 1.1rem;
        cursor: pointer;
        list-style: none;
        font-weight: 600;
        color: var(--text);
        border-radius: var(--radius-md);
    }

        .accordion > summary::-webkit-details-marker {
            display: none;
        }

        .accordion > summary::after {
            content: "";
            margin-left: auto;
            flex: none;
            width: 0.55rem;
            height: 0.55rem;
            border-right: 2px solid var(--text-muted);
            border-bottom: 2px solid var(--text-muted);
            transform: rotate(45deg);
            transition: transform 0.18s ease;
        }

    .accordion[open] > summary::after {
        transform: rotate(225deg);
    }

    .accordion > *:not(summary) {
        padding-inline: 1.1rem;
    }

    .accordion > *:last-child:not(summary) {
        padding-bottom: 1rem;
    }

/* Long-form HTML content (course overviews). */
.prose {
    color: var(--text-soft);
}

    .prose a {
        color: var(--brand);
        font-weight: 600;
    }

        .prose a:hover {
            text-decoration: underline;
        }

    .prose p:last-child {
        margin-bottom: 0;
    }

/* Checkmark feature lists. */
.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

    .check-list li {
        display: flex;
        gap: 0.6rem;
        align-items: baseline;
        color: var(--text-soft);
    }

        /* Always green: a checkmark means "included", and that reads the same
           whatever tier section it sits in. */
        .check-list li::before {
            content: "\2713";
            flex: none;
            font-weight: 700;
            color: var(--green);
        }

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .btn:hover,
    .glass-hover:hover {
        transform: none;
    }
}
