/* =====================================================================
   Home page
   ===================================================================== */

/* ---------- Hero ---------- */
.home-hero {
    position: relative;
    min-height: min(86vh, 760px);
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    background: var(--gt-navy) url('../../images/hero-poster.jpg') center / cover no-repeat;
    padding: 80px 0 140px;
}

.home-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 38, 64, 0.92) 0%, rgba(10, 38, 64, 0.72) 45%, rgba(10, 38, 64, 0.25) 100%),
        linear-gradient(0deg, rgba(10, 38, 64, 0.55) 0%, transparent 35%);
}

.home-hero-inner {
    position: relative;
    z-index: 1;
}

.home-hero-content {
    max-width: 680px;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.home-hero-badge i {
    color: var(--gt-green);
}

.home-hero h1 {
    font-size: clamp(36px, 5.4vw, 64px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.025em;
    color: #fff;
    margin: 0 0 22px;
}

.home-hero-lead {
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    max-width: 580px;
    margin: 0 0 34px;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.home-hero-actions .gt-btn {
    padding: 16px 30px;
    font-size: 16px;
}

.home-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.home-hero-chips a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.home-hero-chips a:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
}

.home-hero-chips i {
    color: var(--gt-green);
}

.home-hero-toggle {
    position: absolute;
    right: 28px;
    bottom: 110px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    background: rgba(10, 38, 64, 0.4);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.home-hero-toggle:hover {
    background: var(--gt-blue);
    border-color: var(--gt-blue);
}

.home-hero-toggle[hidden] {
    display: none;
}

/* ---------- Stats (overlaps the hero) ---------- */
.home-stats {
    position: relative;
    z-index: 2;
    margin-top: -80px;
}

.home-stats-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--gt-shadow-lg);
    border: 1px solid var(--gt-border);
    overflow: hidden;
}

.home-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 26px;
}

.home-stat + .home-stat {
    border-left: 1px solid var(--gt-border);
}

.home-stat-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--gt-blue-soft);
    color: var(--gt-blue);
    font-size: 21px;
}

.home-stat strong {
    display: block;
    font-family: var(--gt-font-head);
    font-size: 26px;
    font-weight: 800;
    color: var(--gt-navy);
    line-height: 1.1;
}

.home-stat div span {
    display: block;
    font-size: 14px;
    color: var(--gt-muted);
    line-height: 1.4;
    margin-top: 4px;
}

/* ---------- Client logos ---------- */
.home-clients {
    padding: 64px 0 56px;
}

.home-clients-title {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gt-muted);
    margin: 0 0 28px;
}

.home-marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.home-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: home-marquee 50s linear infinite;
}

.home-marquee:hover .home-marquee-track {
    animation-play-state: paused;
}

@keyframes home-marquee {
    to {
        transform: translateX(calc(-50% - 10px));
    }
}

.home-logo {
    flex-shrink: 0;
    width: 168px;
    height: 88px;
    display: grid;
    place-items: center;
    padding: 8px 14px;
    background: transparent;
}

/* Full-colour logos on a transparent background */
.home-logo img {
    max-width: 100%;
    max-height: 64px;
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.home-logo:hover img {
    transform: scale(1.06);
}

.home-clients-more {
    text-align: center;
    margin-top: 28px;
}

.home-clients-more a {
    color: var(--gt-blue);
    font-weight: 600;
    text-decoration: none;
}

.home-clients-more a:hover {
    text-decoration: underline;
}

.home-clients-more i {
    font-size: 13px;
    margin-left: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .home-marquee {
        overflow-x: auto;
    }

    .home-marquee-track {
        animation: none;
    }
}

/* ---------- Services ---------- */
.home-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.home-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1.5px solid var(--gt-border);
    background: #fff;
    color: var(--gt-navy);
    font-family: var(--gt-font-head);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.home-tab:hover {
    border-color: var(--gt-blue);
    color: var(--gt-blue);
}

.home-tab.is-active {
    background: var(--gt-navy);
    border-color: var(--gt-navy);
    color: #fff;
}

.home-tab-count {
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-size: 12px;
    background: var(--gt-bg);
    color: var(--gt-muted);
}

.home-tab.is-active .home-tab-count {
    background: var(--gt-green);
    color: var(--gt-navy);
}

.home-panel {
    display: none;
}

.home-panel.is-active {
    display: block;
    animation: home-fade 0.35s ease;
}

@keyframes home-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.home-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-service-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--gt-border);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--gt-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--gt-shadow-lg);
    border-color: transparent;
}

.home-service-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gt-bg);
}

.home-service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-service-card:hover .home-service-img img {
    transform: scale(1.06);
}

.home-service-icon {
    position: absolute;
    left: 20px;
    bottom: -22px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--gt-gradient);
    color: #fff;
    font-size: 19px;
    box-shadow: 0 8px 18px rgba(0, 119, 200, 0.3);
}

.home-service-body {
    padding: 34px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-service-body h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--gt-navy);
    margin: 0 0 8px;
}

.home-service-body p {
    color: var(--gt-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 18px;
    flex: 1;
}

.home-service-more {
    color: var(--gt-blue);
    font-weight: 700;
    font-size: 14.5px;
}

.home-service-more i {
    font-size: 12px;
    margin-left: 4px;
    transition: margin-left 0.2s ease;
}

.home-service-card:hover .home-service-more i {
    margin-left: 10px;
}

/* ---------- Why Gaptech ---------- */
.home-why {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 72px;
    align-items: center;
}

.home-why-media {
    position: relative;
}

.home-why-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 24px;
    background: var(--gt-bg);
    box-shadow: var(--gt-shadow);
}

.home-why-media::before {
    content: "";
    position: absolute;
    inset: -18px 18px 18px -18px;
    border-radius: 28px;
    background: var(--gt-gradient);
    opacity: 0.14;
    z-index: -1;
}

.home-why-float {
    position: absolute;
    right: -18px;
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--gt-shadow-lg);
}

.home-why-float-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--gt-green-soft);
    color: var(--gt-green-dark);
    font-size: 18px;
}

.home-why-float strong {
    display: block;
    color: var(--gt-navy);
    font-family: var(--gt-font-head);
}

.home-why-float span {
    font-size: 13.5px;
    color: var(--gt-muted);
}

.home-why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 36px;
}

.home-why-item {
    padding: 22px;
    border: 1px solid var(--gt-border);
    border-radius: var(--gt-radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-why-item:hover {
    border-color: var(--gt-blue);
    box-shadow: var(--gt-shadow-sm);
}

.home-why-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--gt-blue-soft);
    color: var(--gt-blue);
    font-size: 18px;
    margin-bottom: 14px;
}

.home-why-item h3 {
    font-size: 17px;
    color: var(--gt-navy);
    margin: 0 0 6px;
}

.home-why-item p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--gt-muted);
    margin: 0;
}

/* ---------- How it works ---------- */
.home-steps-section {
    background: var(--gt-blue);   /* same blue as the "Request a demo" button */
    color: #fff;
}

.home-steps-section .gt-heading {
    color: #fff;
}

.home-steps-section .gt-eyebrow {
    color: #fff;
}

.home-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: none;
}

.home-steps li {
    position: relative;
    padding: 30px 26px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.home-steps li:not(:last-child)::after {
    content: "\f061";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: -20px;
    top: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.home-step-num {
    display: inline-block;
    font-family: var(--gt-font-head);
    font-size: 15px;
    font-weight: 800;
    color: var(--gt-navy);
    background: var(--gt-green);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.home-steps h3 {
    color: #fff;
    font-size: 21px;
    margin: 0 0 8px;
}

.home-steps p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* ---------- Contact ---------- */
.home-contact {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: start;
}

.home-contact-list {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: grid;
    gap: 18px;
}

.home-contact-list li {
    display: flex;
    gap: 16px;
    align-items: center;
}

.home-contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--gt-blue);
    font-size: 19px;
    box-shadow: var(--gt-shadow-sm);
    border: 1px solid var(--gt-border);
}

.home-contact-icon-wa {
    color: #1ea952;
}

.home-contact-list strong {
    display: block;
    color: var(--gt-navy);
    font-family: var(--gt-font-head);
}

.home-contact-list span {
    color: var(--gt-muted);
    font-size: 15px;
}

.home-contact-list a {
    color: var(--gt-blue);
    text-decoration: none;
    font-weight: 500;
}

.home-contact-list a:hover {
    text-decoration: underline;
}

.home-contact-form {
    background: #fff;
    border-radius: 22px;
    padding: 36px;
    box-shadow: var(--gt-shadow);
    border: 1px solid var(--gt-border);
}

.home-contact-form h3 {
    font-size: 22px;
    color: var(--gt-navy);
    margin: 0 0 22px;
}

.home-contact-form form {
    display: grid;
    gap: 16px;
}

.home-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.home-contact-form label {
    display: grid;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gt-navy);
}

.home-optional {
    font-weight: 400;
    color: var(--gt-muted);
}

.home-contact-form input,
.home-contact-form select,
.home-contact-form textarea {
    width: 100%;
    font: inherit;
    font-weight: 400;
    font-size: 15px;
    color: var(--gt-text);
    padding: 13px 15px;
    border: 1.5px solid var(--gt-border);
    border-radius: var(--gt-radius-sm);
    background: #fbfcfe;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-contact-form input:focus,
.home-contact-form select:focus,
.home-contact-form textarea:focus {
    outline: none;
    border-color: var(--gt-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 119, 200, 0.12);
}

.home-contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.home-contact-form .gt-btn {
    justify-self: start;
    margin-top: 4px;
}

/* ---------- Newsletter ---------- */
.home-newsletter {
    padding: 48px 0;
    border-top: 1px solid var(--gt-border);
}

.home-newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.home-newsletter h2 {
    font-size: 24px;
    color: var(--gt-navy);
    margin: 0 0 4px;
}

.home-newsletter p {
    color: var(--gt-muted);
    margin: 0;
}

.home-newsletter-form {
    position: relative;
    display: flex;
    gap: 10px;
    width: min(100%, 480px);
    flex-wrap: wrap;
}

.home-newsletter-form input {
    flex: 1;
    min-width: 200px;
    font: inherit;
    font-size: 15px;
    padding: 13px 20px;
    border: 1.5px solid var(--gt-border);
    border-radius: 999px;
}

.home-newsletter-form input:focus {
    outline: none;
    border-color: var(--gt-blue);
    box-shadow: 0 0 0 4px rgba(0, 119, 200, 0.12);
}

.home-newsletter-form .gt-btn[disabled] {
    opacity: 0.7;
    cursor: wait;
}

.home-newsletter-msg {
    width: 100%;
    font-size: 14px;
    min-height: 20px;
}

.home-newsletter-msg.is-success {
    color: var(--gt-green-dark);
}

.home-newsletter-msg.is-error {
    color: #c0392b;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .home-stats-card {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-stat:nth-child(3) {
        border-left: 0;
    }

    .home-stat:nth-child(n + 3) {
        border-top: 1px solid var(--gt-border);
    }

    .home-service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-steps li::after {
        display: none;
    }
}

@media (max-width: 900px) {
    .home-why,
    .home-contact {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .home-why-float {
        right: 12px;
    }

    .home-newsletter-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .home-hero {
        min-height: 0;
        padding: 56px 0 120px;
    }

    .home-hero-overlay {
        background: rgba(10, 38, 64, 0.78);
    }

    .home-hero-actions .gt-btn {
        width: 100%;
    }

    .home-hero-chips {
        display: none;
    }

    .home-hero-toggle {
        right: 16px;
        bottom: 96px;
    }

    .home-stats-card {
        grid-template-columns: 1fr 1fr;
    }

    .home-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px 18px;
    }

    .home-stat strong {
        font-size: 22px;
    }

    .home-service-grid,
    .home-steps,
    .home-why-grid,
    .home-field-row {
        grid-template-columns: 1fr;
    }

    .home-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -24px 32px;
        padding: 0 24px 4px;
        scrollbar-width: none;
    }

    .home-tab {
        flex-shrink: 0;
    }

    .home-contact-form {
        padding: 24px 20px;
    }

    .home-contact-form .gt-btn {
        width: 100%;
    }
}


/* ---------- Hero: Fleet Management Course promo ----------
   A frosted-glass card on the right of the hero: the video shows through it.
   It slides in after load, then stays alive: it floats gently, its green rim
   breathes, a live dot pulses, the arrow nudges, and every 7 seconds a glow
   ring and light sweep pass over it. */
.home-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.home-course-promo {
    flex: 0 0 310px;
    display: block;
    text-decoration: none;
    opacity: 0;
    transform: translateX(48px);
    animation: gt-promo-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.2s forwards;
}

/* The glass panel; floats inside the link so hover and float don't fight */
.home-course-promo-glass {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 24px 22px;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(122, 201, 67, 0.28), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(0, 119, 200, 0.30), transparent 60%),
        rgba(255, 255, 255, 0.10);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 20px 50px rgba(4, 20, 36, 0.40);
    animation:
        gt-promo-float 5s ease-in-out 2s infinite,
        gt-promo-rim 3.5s ease-in-out 2s infinite,
        gt-promo-glow 7s ease-in-out 2.4s infinite;
    transition: background 0.3s ease, transform 0.3s ease;
}

.home-course-promo-glass::after {
    /* light sweep */
    content: "";
    position: absolute;
    top: -10%;
    bottom: -10%;
    left: -70%;
    width: 45%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-18deg);
    animation: gt-promo-sweep 7s ease-in-out 2.4s infinite;
    pointer-events: none;
}

.home-course-promo:hover .home-course-promo-glass,
.home-course-promo:focus-visible .home-course-promo-glass {
    background:
        radial-gradient(circle at 100% 0%, rgba(122, 201, 67, 0.36), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(0, 119, 200, 0.38), transparent 60%),
        rgba(255, 255, 255, 0.16);
}

.home-course-promo-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 10px;
    border-radius: 999px;
    background: rgba(122, 201, 67, 0.22);
    border: 1px solid rgba(122, 201, 67, 0.55);
    color: #dff5cf;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-course-promo-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gt-green);
}

.home-course-promo-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--gt-green);
    animation: gt-promo-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.home-course-promo-title {
    font-family: var(--gt-font-head);
    font-size: 23px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.home-course-promo-text {
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.home-course-promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-weight: 800;
    color: var(--gt-green);
}

.home-course-promo-cta i {
    animation: gt-promo-nudge 2.4s ease-in-out infinite;
}

@keyframes gt-promo-in {
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes gt-promo-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes gt-promo-rim {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.28);
    }
    50% {
        border-color: rgba(122, 201, 67, 0.85);
    }
}

@keyframes gt-promo-glow {
    0%, 82%, 100% {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 20px 50px rgba(4, 20, 36, 0.40), 0 0 0 0 rgba(122, 201, 67, 0);
    }
    88% {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 20px 50px rgba(4, 20, 36, 0.40), 0 0 0 10px rgba(122, 201, 67, 0.35);
    }
    95% {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 20px 50px rgba(4, 20, 36, 0.40), 0 0 0 20px rgba(122, 201, 67, 0);
    }
}

@keyframes gt-promo-sweep {
    0%, 80% {
        left: -70%;
    }
    92%, 100% {
        left: 140%;
    }
}

@keyframes gt-promo-ping {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    80%, 100% {
        transform: scale(2.6);
        opacity: 0;
    }
}

@keyframes gt-promo-nudge {
    0%, 60%, 100% {
        transform: translateX(0);
    }
    70% {
        transform: translateX(5px);
    }
    80% {
        transform: translateX(0);
    }
    90% {
        transform: translateX(3px);
    }
}

/* Browsers without blur support: make the panel darker so text stays readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .home-course-promo-glass {
        background: rgba(10, 38, 64, 0.78);
    }
}

/* Tablets and phones: the card sits under the hero text, full width */
@media (max-width: 1023px) {
    .home-hero-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 32px;
    }

    .home-course-promo {
        flex: none;
        max-width: 520px;
        transform: translateY(24px);
    }
}

/* Phones: leave room under the promo for the video pause button */
@media (max-width: 640px) {
    .home-course-promo {
        margin-bottom: 52px;
    }
}

/* Visitors who prefer less motion: show the card, nothing moves */
@media (prefers-reduced-motion: reduce) {
    .home-course-promo,
    .home-course-promo-glass,
    .home-course-promo-glass::after,
    .home-course-promo-dot::after,
    .home-course-promo-cta i {
        animation: none;
    }

    .home-course-promo {
        opacity: 1;
        transform: none;
    }

    .home-course-promo-glass::after {
        display: none;
    }
}

/* ---------- Hero: right-hand column (course card + NTSA notice) ---------- */
.home-hero-side {
    flex: 0 0 310px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.home-hero-side .home-course-promo {
    flex: none;
}

/* NTSA card: blue accents, arrives a moment after the course card and
   floats out of step with it */
.home-ntsa-promo {
    animation-delay: 1.6s;
}

.home-ntsa-promo .home-course-promo-glass {
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 119, 200, 0.34), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(122, 201, 67, 0.16), transparent 60%),
        rgba(255, 255, 255, 0.10);
    animation:
        gt-promo-float 5s ease-in-out 3.2s infinite,
        gt-ntsa-rim 3.5s ease-in-out 3.2s infinite;
}

.home-ntsa-promo .home-course-promo-glass::after {
    animation-delay: 5.9s;            /* light sweep halfway between the course card's */
}

.home-ntsa-tag {
    background: rgba(0, 119, 200, 0.30);
    border-color: rgba(143, 208, 255, 0.6);
    color: #d6ecff;
}

.home-ntsa-tag i {
    font-size: 11px;
}

.home-ntsa-text {
    font-size: 14.5px;
}

.home-ntsa-text strong {
    color: #fff;
    font-weight: 700;
}

.home-ntsa-promo .home-course-promo-cta {
    color: #8fd0ff;
}

.home-ntsa-promo .home-course-promo-cta i {
    font-size: 12px;
}

.home-ntsa-promo:hover .home-course-promo-glass,
.home-ntsa-promo:focus-visible .home-course-promo-glass {
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 119, 200, 0.44), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(122, 201, 67, 0.22), transparent 60%),
        rgba(255, 255, 255, 0.16);
}

@keyframes gt-ntsa-rim {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.28);
    }
    50% {
        border-color: rgba(143, 208, 255, 0.85);
    }
}

@media (max-width: 1023px) {
    .home-hero-side {
        flex: none;
        width: 100%;
        max-width: 520px;
        gap: 14px;
    }

    .home-hero-side .home-course-promo {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .home-hero-side .home-course-promo {
        margin-bottom: 0;
    }

    .home-hero-side {
        margin-bottom: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-ntsa-promo .home-course-promo-glass {
        animation: none;
    }
}

/* How it works on brand blue: white accent bar next to the eyebrow */
.home-steps-section .gt-eyebrow::before {
    background: #fff;
}
