:root {
    --orange: #f36f00;
    --orange-dark: #d95f00;
    --purple: #6d5dfc;
    --green: #20b486;
    --dark: #101827;
    --text: #111827;
    --muted: #667085;
    --light: #f7f8fc;
    --border: #e7eaf0;
    --white: #ffffff;
    --shadow: 0 22px 60px rgba(16, 24, 39, .10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

a { color: inherit; text-decoration: none; }

.container {
    width: min(1160px, calc(100% - 40px));
    margin: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
}

.nav {
    position: relative;
    min-height: 74px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
}

.brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 13px;
    font-weight: 650;
    color: var(--muted);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--orange); }

.nav-cta {
    background: var(--dark);
    color: white !important;
    padding: 10px 16px;
    border-radius: 9px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: white;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--dark);
    transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    padding: 90px 0 85px;
    overflow: hidden;
    background:
        radial-gradient(circle at 7% 15%, rgba(243,111,0,.10), transparent 25%),
        radial-gradient(circle at 96% 30%, rgba(109,93,252,.10), transparent 28%),
        linear-gradient(#fff, #fafbff);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff7f0;
    border: 1px solid #ffd8bd;
    color: var(--orange-dark);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.eyebrow span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
}

h1 {
    font-size: clamp(43px, 6vw, 70px);
    line-height: 1.02;
    letter-spacing: -3px;
    margin-top: 21px;
}

h1 strong {
    display: block;
    background: linear-gradient(90deg, var(--orange), #ff9b53, var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content > p {
    margin-top: 22px;
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 19px;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 750;
    transition: .2s ease;
}

.btn-primary {
    color: white;
    background: var(--orange);
    border-color: var(--orange);
    box-shadow: 0 12px 28px rgba(243,111,0,.20);
}

.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
}

.btn-secondary { background: white; }

.btn-secondary:hover {
    border-color: #c9ced8;
    transform: translateY(-2px);
}

.dashboard-card {
    padding: 17px;
    background: var(--dark);
    border-radius: 25px;
    box-shadow: var(--shadow);
}

.dashboard-card,
.dashboard-card * { min-width: 0; }

.dashboard-header {
    height: 50px;
    padding: 0 15px;
    background: white;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-header strong { font-size: 12px; }
.dashboard-header strong span { color: var(--orange); }

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #eee;
    display: grid;
    place-items: center;
    font-size: 10px;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 125px 1fr;
    background: var(--light);
    border-radius: 0 0 15px 15px;
    overflow: hidden;
}

.dashboard-layout aside {
    padding: 16px 10px;
    background: white;
    border-right: 1px solid var(--border);
}

.side-item {
    padding: 9px 8px;
    margin-bottom: 3px;
    color: #8a93a3;
    font-size: 10px;
    border-radius: 8px;
}

.side-item.active {
    background: #fff1e6;
    color: var(--orange);
    font-weight: 800;
}

.dashboard-main { padding: 22px; }

.dashboard-main h3 { font-size: 17px; }
.dashboard-main > p { font-size: 10px; color: #8992a2; }

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 17px;
}

.stats div {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px;
}

.stats small {
    display: block;
    font-size: 8px;
    color: #8992a2;
}

.stats b {
    display: block;
    font-size: 17px;
    margin-top: 3px;
}

.learning-list {
    margin-top: 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 12px;
}

.learning-list h4 { font-size: 10px; margin-bottom: 7px; }

.learning-item {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-top: 1px solid #f0f1f4;
}

.course-icon {
    width: 34px;
    height: 29px;
    border-radius: 7px;
    background: #fff0e5;
    color: var(--orange);
    display: grid;
    place-items: center;
    flex: none;
}

.learning-item b {
    display: block;
    font-size: 8.5px;
}

.learning-item small {
    display: block;
    color: #8992a2;
    font-size: 7.5px;
}

.learning-item > strong {
    font-size: 8px;
    color: var(--green);
}

section { padding: 90px 0; }

.light-section { background: var(--light); }

.section-heading {
    max-width: 720px;
    margin-bottom: 40px;
}

.section-heading > span,
.contact-box > span {
    color: var(--orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.section-heading h2,
.contact-box h2 {
    margin-top: 9px;
    font-size: clamp(31px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -1.7px;
}

.section-heading p,
.contact-box p {
    margin-top: 13px;
    color: var(--muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.card {
    padding: 26px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    transition: .2s;
}

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

.icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #fff1e6;
    color: var(--orange);
    font-weight: 800;
}

.icon svg { width: 24px; height: 24px; display: block; }
.icon.purple { background: #efedff; color: var(--purple); }
.icon.green { background: #e9fbf5; color: var(--green); }

.card h3 { margin-top: 19px; font-size: 18px; }
.card p { margin-top: 8px; color: var(--muted); font-size: 13px; }

.dark-section {
    color: white;
    background: var(--dark);
    overflow: hidden;
}

.dark-section .section-heading p { color: #aeb8c8; }

.lms-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: 75px;
}

.coming-soon {
    display: inline-block;
    margin-top: 23px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(243,111,0,.16);
    color: #ffad73;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.feature {
    padding: 18px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.045);
    border-radius: 14px;
}

.feature > b {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #ff9b5b;
    background: rgba(243,111,0,.17);
}

.feature h3 { font-size: 13px; margin-top: 13px; }
.feature p { color: #9da8b9; font-size: 11px; margin-top: 4px; }

.journey {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.journey > div {
    padding: 23px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: white;
}

.journey b {
    color: var(--orange);
    font-size: 10px;
}

.journey h3 { margin-top: 14px; font-size: 16px; }
.journey p { color: var(--muted); font-size: 12px; margin-top: 6px; }

.contact-section {
    text-align: center;
    background: linear-gradient(135deg, #fff7f0, #fff, #f6f5ff);
}

.contact-box { max-width: 800px; margin: auto; }
.contact-box p { max-width: 610px; margin: 13px auto 25px; }

footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    color: #7b8493;
    font-size: 11px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-content strong { color: var(--text); font-size: 16px; }
.footer-content p { margin-top: 3px; }

@media (max-width: 850px) {
    .nav-toggle { display: flex; }

    /* Off-canvas dropdown: hidden by default, opened via .nav-links.open
       (toggled by script.js). With JS disabled the toggle button simply
       doesn't do anything and .nav-links falls back to this same panel
       styling but stays closed — see the no-JS fallback rule below. */
    .nav-links {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: white;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 16px 30px rgba(16, 24, 39, .08);
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height .25s ease;
    }

    .nav-links.open {
        max-height: 420px;
        visibility: visible;
    }

    .nav-links a {
        padding: 14px 20px;
        border-top: 1px solid var(--border);
    }

    .nav-links .nav-cta {
        margin: 12px 20px;
        padding: 12px 16px;
        text-align: center;
    }

    /* No-JS fallback: without has-js, script.js never runs so the
       toggle button can't open/close .nav-links. Show the links as a
       normal static in-flow list instead of a hidden dropdown, so
       navigation and Contact Support stay reachable either way. */
    html:not(.has-js) .nav-toggle { display: none; }

    html:not(.has-js) .nav {
        flex-wrap: wrap;
    }

    html:not(.has-js) .nav-links {
        position: static;
        flex: 1 0 100%;
        max-height: none;
        visibility: visible;
        box-shadow: none;
        border-bottom: none;
        border-top: 1px solid var(--border);
        margin-top: 14px;
        padding-top: 4px;
    }

    .hero-grid, .lms-grid { grid-template-columns: 1fr; gap: 42px; }
    .cards, .journey { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; }
    .hero { padding-top: 62px; }
}

@media (max-width: 520px) {
    .container { width: calc(100% - 28px); }
    section { padding: 68px 0; }
    h1 { letter-spacing: -2px; }
    .dashboard-layout { grid-template-columns: 92px 1fr; }
    .dashboard-main { padding: 15px; }
    .stats { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; text-align: center; }
}

/*
 * Scroll-reveal animation only applies once JS confirms it can run
 * (html.has-js is added synchronously by an inline script in <head>).
 * With JavaScript disabled, blocked, erroring, or unsupported, this
 * rule never applies and all content is visible by default — nothing
 * depends on the IntersectionObserver in script.js to be seen.
 */
.has-js .card, .has-js .feature, .has-js .journey > div {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .55s ease, transform .55s ease, box-shadow .2s ease;
}

.card, .feature, .journey > div {
    transition: opacity .55s ease, transform .55s ease, box-shadow .2s ease;
}

.card.visible, .feature.visible, .journey > div.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Keep the hover lift working after the reveal rules above. */
.card.visible:hover {
    transform: translateY(-5px);
}

/* ===== Contact form ===== */
.contact-form {
    max-width: 680px;
    margin: 6px auto 0;
    padding: 26px;
    text-align: left;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 14px;
}
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-field { display: grid; gap: 5px; align-content: start; }
.cf-field label { font-size: 13px; font-weight: 700; }
.cf-field label span { color: var(--orange); }
.cf-field label small { color: var(--muted); font-weight: 500; }
.cf-field input,
.cf-field select,
.cf-field textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1.5px solid #cfd5df;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    color: var(--text);
    background: white;
}
.cf-field textarea { resize: vertical; min-height: 120px; }
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(243,111,0,.15); }
.cf-field [aria-invalid="true"] { border-color: #e5484d; }
.cf-error { color: #c62a2f; font-size: 12px; }
.cf-error:empty { display: none; }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cf-foot .btn { cursor: pointer; font-family: inherit; }
.cf-foot .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.contact-box .cf-status { margin: 0; max-width: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.contact-box .cf-status.ok { color: #127a5b; }
.contact-box .cf-status.bad { color: #c62a2f; }

@media (max-width: 640px) {
    .contact-form { padding: 18px; }
    .cf-row { grid-template-columns: 1fr; }
}

/* Keep section headings clear of the sticky header when jumping to #links */
section[id] { scroll-margin-top: 80px; }
