/*
 * EWB Courses — Reusable component styles (glassmorphism, buttons, cards,
 * chips, nav, footer, FAQ accordion, WhatsApp button, forms, etc).
 * Consumes the tokens defined in theme.css.
 */

/* ---------------------------------------------------------------------
   Decorative glow blobs — sit behind hero/CTA sections for ambient light.
--------------------------------------------------------------------- */
.bg-blob {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    opacity: 0.15;
}

.bg-blob--cyan { background: var(--color-electric-cyan); }
.bg-blob--lime { background: var(--color-neon-lime); }

/* ---------------------------------------------------------------------
   Glass surfaces (bento cards)
--------------------------------------------------------------------- */
.glass-card {
    position: relative;
    z-index: 1;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 45%), var(--color-surface-alpha);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-default) var(--ease-premium), border-color var(--transition-default), box-shadow var(--transition-default);
}

@media (min-width: 992px) {
    .glass-card {
        padding: 32px;
    }
}

.glass-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.glass-card--interactive:hover,
.glass-card--interactive:focus-within {
    transform: translateY(-4px) scale(1.015);
    border-color: var(--color-border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 136, 255, 0.25), 0 0 32px rgba(166, 255, 0, 0.12);
}

@media (prefers-reduced-motion: reduce) {
    .glass-card--interactive:hover,
    .glass-card--interactive:focus-within {
        transform: none;
    }
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gutter);
}

@media (min-width: 768px) {
    .bento-grid--2 { grid-template-columns: repeat(2, 1fr); }
    .bento-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 992px) {
    .bento-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------- */
.btn-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-label-md);
    border-radius: var(--radius-full);
    padding: 0.875rem 1.75rem;
    min-height: 48px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
    text-decoration: none;
}

.btn-brand:hover,
.btn-brand:focus-visible {
    transform: translateY(-1px);
}

.btn-brand-primary {
    position: relative;
    overflow: hidden;
    background: var(--gradient-primary);
    color: var(--color-deep-navy);
}

.btn-brand-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-brand-primary:hover::before {
    left: 130%;
}

.btn-brand-primary:hover,
.btn-brand-primary:focus-visible {
    color: var(--color-deep-navy);
    box-shadow: 0 0 28px rgba(0, 136, 255, 0.55), 0 8px 20px rgba(0, 0, 0, 0.25);
}

.btn-brand-secondary {
    background: transparent;
    border-color: var(--color-neon-lime);
    color: var(--color-neon-lime);
}

.btn-brand-secondary:hover,
.btn-brand-secondary:focus-visible {
    background: rgba(166, 255, 0, 0.1);
    color: var(--color-neon-lime);
    box-shadow: 0 0 20px rgba(166, 255, 0, 0.3);
}

.btn-brand-ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-border);
    color: var(--color-text);
}

.btn-brand-ghost:hover,
.btn-brand-ghost:focus-visible {
    border-color: var(--color-border-hover);
    color: var(--color-text);
}

.btn-whatsapp {
    background: var(--color-whatsapp-green);
    color: #fff;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
    color: #fff;
    box-shadow: 0 0 24px rgba(37, 211, 102, 0.5);
}

.btn-brand-sm {
    padding: 0.5rem 1.125rem;
    min-height: 40px;
    font-size: 0.8125rem;
}

/* ---------------------------------------------------------------------
   Chips / category badges
--------------------------------------------------------------------- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    background: rgba(166, 255, 0, 0.12);
    color: var(--color-neon-lime);
    border: 1px solid transparent;
    min-height: 32px;
}

.chip--accent {
    background: color-mix(in srgb, var(--chip-color, var(--color-neon-lime)) 15%, transparent);
    color: var(--chip-color, var(--color-neon-lime));
}

.chip-filter {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-label-md);
    padding: 0.625rem 1.25rem;
    min-height: 48px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chip-filter[aria-pressed="true"] {
    background: var(--color-electric-cyan);
    border-color: var(--color-electric-cyan);
    color: var(--color-deep-navy);
    font-weight: 700;
}

.chip-filter:hover {
    border-color: var(--color-border-hover);
}

.badge-level {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

/* ---------------------------------------------------------------------
   Forms
--------------------------------------------------------------------- */
.form-label-brand {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-label-md);
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.form-control-brand {
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-bottom: 2px solid var(--color-border);
    border-radius: var(--radius-default);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--fs-body-md);
    padding: 0.75rem 1rem;
    min-height: 48px;
    transition: border-color var(--transition-fast);
}

.form-control-brand::placeholder {
    color: rgba(245, 241, 224, 0.5);
}

.form-control-brand:focus {
    outline: none;
    border-bottom-color: var(--color-electric-cyan);
    background: rgba(255, 255, 255, 0.07);
}

/* ---------------------------------------------------------------------
   Select dropdowns — the popup list is browser/OS-rendered, not part of
   the page's own box model, so it needs its own opaque background (the
   translucent rgba() on .form-control-brand only looks right composited
   over the navy body and won't render correctly on a native popup surface).
--------------------------------------------------------------------- */
select.form-control-brand {
    background-color: var(--color-graphite-grey);
    color: var(--color-text);
}

select.form-control-brand option {
    background-color: var(--color-graphite-grey);
    color: var(--color-text);
}

select.form-control-brand option:checked {
    background-color: var(--color-electric-cyan);
    color: var(--color-deep-navy);
}

select.form-control-brand option:hover,
select.form-control-brand option:focus {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--color-text);
}

.form-error {
    color: var(--color-error);
    font-size: 0.8125rem;
    margin-top: 0.375rem;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------------------------------------------------------------------
   Header / navigation
--------------------------------------------------------------------- */
/* Sticky shell — full-bleed and transparent; it only reserves the sticky
   top:0 slot and the "floating" gap around the pill. pointer-events:none
   here (with :auto restored on the actual pill below) stops the shell's
   empty margin area from intercepting clicks on page content that scrolls
   underneath it. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: clamp(10px, 2.5vw, 20px) clamp(12px, 3vw, 28px) 0;
    background: transparent;
    pointer-events: none;
}

/* The floating pill itself — dark glassmorphism, thin low-contrast border,
   soft shadow + very subtle brand-color ambient glow. */
.site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 12px;
    padding-inline: clamp(16px, 2vw, 24px);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 50%), rgba(10, 19, 48, 0.62);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 136, 255, 0.05), 0 0 40px rgba(0, 136, 255, 0.1), 0 0 60px rgba(166, 255, 0, 0.05);
    pointer-events: auto;
    transition: border-color var(--transition-default), box-shadow var(--transition-default);
}

.site-header__logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.site-header__logo img {
    display: block;
    height: 36px;
    width: auto;
}

@media (max-width: 575.98px) {
    .site-header__logo img {
        height: 30px;
    }
}

@media (min-width: 992px) {
    .site-header__logo img {
        height: 42px;
    }
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 1.8vw, 28px);
}

.site-nav__link {
    position: relative;
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--fs-label-md);
    color: var(--color-text-muted);
    padding-block: 4px;
    transition: color var(--transition-default), text-shadow var(--transition-default);
}

.site-nav__link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    transform: translateX(-50%);
    transition: width var(--transition-default);
}

.site-nav__link:hover,
.site-nav__link.is-active {
    color: var(--color-electric-cyan);
    text-shadow: 0 0 12px rgba(0, 136, 255, 0.35);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
    width: 100%;
}

/* Header-only search + WhatsApp treatment, scoped via new classes so the
   shared .form-control-brand / .btn-brand / .btn-whatsapp rules used
   elsewhere on the site (admin, lead forms, footer, floating WhatsApp
   button) are untouched. */
.nav-search-input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    padding-inline: 1rem;
    transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-search-input:focus {
    border-color: rgba(0, 136, 255, 0.5);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.15);
}

.nav-whatsapp-btn {
    box-shadow: 0 0 18px rgba(37, 211, 102, 0.22);
}

.nav-whatsapp-btn:hover,
.nav-whatsapp-btn:focus-visible {
    box-shadow: 0 0 24px rgba(37, 211, 102, 0.45);
}

.site-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
    transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.site-header__toggle:hover,
.site-header__toggle:focus-visible {
    border-color: rgba(0, 136, 255, 0.45);
    background: rgba(0, 136, 255, 0.1);
    box-shadow: 0 0 16px rgba(0, 136, 255, 0.25);
}

.site-nav-mobile {
    background: rgba(10, 19, 48, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
}

.site-nav-mobile .site-nav__link {
    display: block;
    padding: 0.875rem 0;
    font-size: 1rem;
}

.site-nav-mobile .site-nav__link::after {
    display: none;
}

/* ---------------------------------------------------------------------
   Footer
--------------------------------------------------------------------- */
.site-footer {
    position: relative;
    background: var(--color-graphite-grey);
    border-top: 1px solid var(--color-border);
    padding-block: 64px 32px;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 136, 255, 0.4), rgba(166, 255, 0, 0.35), transparent);
    pointer-events: none;
}

.site-footer h3 {
    font-size: 1rem;
    color: var(--color-secondary);
}

.site-footer p:not(.kicker) {
    color: rgba(255, 255, 255, 0.6);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.site-footer a:hover {
    color: var(--color-primary);
}

.site-footer__bottom {
    border-top: 1px solid var(--color-border);
    margin-top: 32px;
    padding-top: 24px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ---------------------------------------------------------------------
   Floating WhatsApp button
--------------------------------------------------------------------- */
.whatsapp-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: var(--color-whatsapp-green);
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    animation: whatsapp-pulse 2.5s ease-in-out infinite;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
    color: #fff;
}

@media (max-width: 575.98px) {
    .whatsapp-fab {
        width: 52px;
        height: 52px;
        right: 16px;
        bottom: 16px;
    }
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-fab {
        animation: none;
    }
}

/* ---------------------------------------------------------------------
   Persistent mobile course action bar (Individual Course page)
--------------------------------------------------------------------- */
.course-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(31, 35, 40, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border);
    padding: 12px 16px;
}

@media (min-width: 992px) {
    .course-action-bar {
        display: none;
    }
}

/* Extra bottom clearance on mobile so the closing CTA isn't hidden behind
   the fixed course-action-bar; not needed once that bar is display:none. */
.course-detail-closing {
    padding-bottom: calc(var(--section-gap-mobile) + 80px);
}

@media (min-width: 992px) {
    .course-detail-closing {
        padding-bottom: calc(var(--section-gap-desktop) / 2);
    }
}

/* ---------------------------------------------------------------------
   FAQ accordion
--------------------------------------------------------------------- */
.faq-item {
    border-bottom: 1px solid var(--color-border);
    border-radius: var(--radius-default);
    transition: background-color var(--transition-default);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: transparent;
    border: none;
    text-align: left;
    padding: 1.25rem 0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.faq-item__question:hover {
    color: var(--color-secondary);
}

.faq-item__icon {
    flex-shrink: 0;
    transition: transform var(--transition-default);
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__answer {
    padding-bottom: 1.25rem;
    color: var(--color-text-muted);
}

/* ---------------------------------------------------------------------
   Flash messages
--------------------------------------------------------------------- */
.flash-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: var(--radius-default);
    border: 1px solid var(--color-border);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.flash-message--success {
    background: rgba(166, 255, 0, 0.08);
    border-color: rgba(166, 255, 0, 0.3);
    color: var(--color-neon-lime);
}

.flash-message--error {
    background: rgba(255, 107, 107, 0.08);
    border-color: rgba(255, 107, 107, 0.3);
    color: var(--color-error);
}

/* ---------------------------------------------------------------------
   Breadcrumb
--------------------------------------------------------------------- */
.breadcrumb-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumb-brand a {
    color: var(--color-text-muted);
}

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

.breadcrumb-brand__sep {
    opacity: 0.5;
}

/* ---------------------------------------------------------------------
   Pagination
--------------------------------------------------------------------- */
.pagination-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
}

.pagination-brand a,
.pagination-brand span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: var(--radius-default);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-weight: 600;
}

.pagination-brand a:hover {
    border-color: var(--color-border-hover);
    color: var(--color-text);
}

.pagination-brand .is-active {
    background: var(--color-electric-cyan);
    border-color: var(--color-electric-cyan);
    color: var(--color-deep-navy);
}

/* ---------------------------------------------------------------------
   Empty states
--------------------------------------------------------------------- */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--color-text-muted);
}

/* ---------------------------------------------------------------------
   Lead forms & guaranteed-handoff modal
--------------------------------------------------------------------- */
.lead-form__context:empty {
    display: none;
}

.lead-form__success {
    color: var(--color-neon-lime);
    font-weight: 600;
}

.modal-brand .modal-content {
    background: var(--color-graphite-grey);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-text);
}

.modal-brand .modal-header {
    border-bottom: 1px solid var(--color-border);
}

.modal-brand .modal-title {
    margin: 0;
}

/* ---------------------------------------------------------------------
   Contact / Bootcamp / Watch Demo pages
--------------------------------------------------------------------- */
.contact-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.day-card__label {
    color: var(--color-electric-cyan);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-label-md);
    margin-bottom: 0.5rem;
    display: block;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-graphite-grey);
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------------------------------------------------------------------
   Scroll-reveal — main.js adds `.reveal` + observes intersection, then
   adds `.is-visible` once a card/section scrolls into view. The class is
   only ever added by JS, so content stays fully visible with JS disabled.
--------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered entrance for cards within a grid — pure CSS, no JS math needed */
.bento-grid > .reveal:nth-child(2) { transition-delay: 80ms; }
.bento-grid > .reveal:nth-child(3) { transition-delay: 160ms; }
.bento-grid > .reveal:nth-child(4) { transition-delay: 240ms; }
.bento-grid > .reveal:nth-child(5) { transition-delay: 320ms; }
.bento-grid > .reveal:nth-child(6) { transition-delay: 400ms; }

/* Pure-CSS entrance animation for above-the-fold content (e.g. hero text)
   that's already in the initial viewport, so the scroll-triggered .reveal
   mechanism above never fires for it. Plays once on load; no JS involved. */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fade-in-up 800ms var(--ease-premium) both;
}

.fade-in-up--delay-1 { animation-delay: 120ms; }
.fade-in-up--delay-2 { animation-delay: 240ms; }
.fade-in-up--delay-3 { animation-delay: 360ms; }

/* ---------------------------------------------------------------------
   Hero typewriter heading — ghost span (same text/classes, invisible)
   reserves the max wrapped height via CSS grid stacking, so the typed
   span can grow/shrink character-by-character with zero layout shift.
--------------------------------------------------------------------- */
.typewriter {
    display: grid;
}

.typewriter__ghost,
.typewriter__typed {
    grid-area: 1 / 1;
}

.typewriter__ghost {
    visibility: hidden;
}

/* Premium gradient headline text (cyan -> lime). Solid --color-text stays as
   the fallback color for browsers without background-clip:text support. */
.typewriter__ghost,
.typewriter__typed {
    color: var(--color-text);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cursor is reserved on the ghost too (same width, always-visible-weight)
   so the typed span's trailing "|" never pushes past the space the ghost
   already reserved for the longest line. */
.typewriter__ghost::after,
.typewriter__typed::after {
    content: '|';
    margin-left: 2px;
    font-weight: 400;
    /* Reset the inherited transparent gradient fill above so the blinking
       cursor itself stays a solid, visible color instead of vanishing. */
    color: var(--color-neon-lime);
    -webkit-text-fill-color: var(--color-neon-lime);
}

.typewriter__typed::after {
    animation: typewriter-blink 1s steps(1, end) infinite;
}

@keyframes typewriter-blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .typewriter__typed::after {
        animation: none;
    }
}

/* ---------------------------------------------------------------------
   Hero illustration (device mockup) + floating info cards
--------------------------------------------------------------------- */
.hero-illustration {
    position: relative;
    min-height: 420px;
}

.hero-illustration__screen {
    position: relative;
    z-index: 2;
    max-width: 380px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-illustration__dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.hero-illustration__dot--cyan {
    background: var(--color-electric-cyan);
    box-shadow: 0 0 12px rgba(0, 136, 255, 0.6);
}

.hero-illustration__dot--lime {
    background: var(--color-neon-lime);
    box-shadow: 0 0 12px rgba(166, 255, 0, 0.6);
}

.hero-illustration__bar {
    height: 10px;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, rgba(0, 136, 255, 0.4), rgba(166, 255, 0, 0.25));
}

.hero-illustration__play {
    align-self: center;
    width: 64px;
    height: 64px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-electric-cyan);
    color: var(--color-deep-navy);
    box-shadow: 0 0 24px rgba(0, 136, 255, 0.35);
    animation: glow-pulse 2.8s ease-in-out infinite;
}

.hero-float-card {
    position: absolute;
    z-index: 3;
    white-space: nowrap;
    background: var(--color-surface-alpha);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 0.625rem 1.125rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--color-text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    animation: float 5s ease-in-out infinite;
}

.hero-float-card--1 { top: 0;      left: 0;      animation-delay: 0s;   border-color: rgba(0, 136, 255, 0.35); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(0, 136, 255, 0.2); }
.hero-float-card--2 { top: 36px;   right: 0;     animation-delay: 0.8s; border-color: rgba(166, 255, 0, 0.35); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(166, 255, 0, 0.2); }
.hero-float-card--3 { top: 190px;  left: -16px;  animation-delay: 1.6s; border-color: rgba(0, 136, 255, 0.35); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(0, 136, 255, 0.2); }
.hero-float-card--4 { top: 210px;  right: -8px;  animation-delay: 2.4s; border-color: rgba(166, 255, 0, 0.35); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(166, 255, 0, 0.2); }
.hero-float-card--5 { bottom: 30px; left: 24px;  animation-delay: 1.2s; border-color: rgba(0, 136, 255, 0.35); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(0, 136, 255, 0.2); }
.hero-float-card--6 { bottom: 6px;  right: 16px; animation-delay: 2s;   border-color: rgba(166, 255, 0, 0.35); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(166, 255, 0, 0.2); }

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

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 24px rgba(0, 136, 255, 0.35); }
    50% { box-shadow: 0 0 40px rgba(0, 136, 255, 0.6); }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .fade-in-up {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .hero-float-card,
    .hero-illustration__play {
        animation: none;
    }

    .btn-brand-primary::before {
        display: none;
    }
}

/* ---------------------------------------------------------------------
   Batch tables (public Upcoming / Ongoing Batches pages)
--------------------------------------------------------------------- */
.batch-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
}

.batch-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--color-surface-alpha);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.batch-table--fixed {
    table-layout: fixed;
    min-width: 1180px;
}

.batch-table th,
.batch-table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9375rem;
    line-height: 1.45;
}

.batch-table thead th {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--color-border-hover);
    white-space: nowrap;
}

.batch-table tbody tr {
    transition: background-color var(--transition-fast);
}

.batch-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.batch-table tbody tr:hover {
    background: rgba(0, 136, 255, 0.07);
}

.batch-table tbody tr:last-child td {
    border-bottom: none;
}

.batch-table td a {
    font-weight: 600;
}

/* Actions column — equal-size buttons, centered as a group. flex-wrap is a
   safety net: if a cell is ever narrower than both buttons combined (e.g. a
   squeezed mobile card), they stack vertically instead of compressing. */
.batch-table-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.batch-table-actions .btn-brand {
    flex: 0 0 auto;
    min-width: 96px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    white-space: nowrap;
}

.batch-table-actions .badge-level {
    display: inline-flex;
    flex: 0 0 auto;
    min-width: 96px;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    border-radius: var(--radius-full);
    text-align: center;
}

/* ---------------------------------------------------------------------
   Gallery — auto-scrolling mixed media strip
--------------------------------------------------------------------- */
.gallery-scroll {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.gallery-track {
    display: flex;
    gap: var(--gutter);
    width: max-content;
    padding-inline: var(--gutter);
    animation: gallery-scroll 45s linear infinite;
    will-change: transform;
}

.gallery-track:hover,
.gallery-track.is-playing {
    animation-play-state: paused;
}

@keyframes gallery-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.gallery-card {
    position: relative;
    flex: 0 0 auto;
    width: 240px;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-surface-alpha);
    border: 1px solid var(--color-border);
    transition: border-color var(--transition-default), box-shadow var(--transition-default);
}

.gallery-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

@media (min-width: 768px) {
    .gallery-card { width: 300px; }
}

@media (min-width: 992px) {
    .gallery-card { width: 340px; }
}

.gallery-media,
.gallery-media-wrap {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-media {
    object-fit: cover;
    background: var(--color-surface-alpha);
}

.gallery-media-wrap {
    position: relative;
}

.gallery-media-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.gallery-play {
    all: unset;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-play::after {
    content: '\25B6';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
    pointer-events: none;
}

.gallery-caption__title {
    color: #fff;
    font-weight: 700;
    font-size: var(--fs-label-md);
    margin: 0;
}

.gallery-caption__text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    margin: 0.15rem 0 0;
}

@media (prefers-reduced-motion: reduce) {
    .gallery-track {
        animation: none;
    }

    .gallery-scroll {
        overflow-x: auto;
    }
}
