:root {
    /* â”€â”€ Dark mode (default) â”€â”€ */
    --bg-color: #0D1220;
    --bg-white: #080C14;
    --primary-blue: #1D6FD8;
    --dark-blue: rgba(238, 242, 255, 0.95);
    --accent-green: #18A96B;
    --text-main: #EEF2FF;
    --text-secondary: rgba(148, 163, 184, 0.9);
    --text-muted: #475569;
    --border-color: rgba(255, 255, 255, 0.05);
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --hover-border: rgba(29, 111, 216, 0.25);
    --hover-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 32px rgba(29, 111, 216, 0.08);
    --font-title: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    --main-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* â”€â”€ Light Mode: Liquid Glass theme â”€â”€ */
body.light-mode {
    --bg-color: #EEF3FB;
    --bg-white: #F4F7FD;
    --primary-blue: #1558C0;
    --dark-blue: #0F172A;
    --accent-green: #0E9157;
    --text-main: #0F172A;
    --text-secondary: rgba(30, 41, 59, 0.75);
    --text-muted: #64748B;
    --border-color: rgba(15, 23, 42, 0.07);
    --card-bg: rgba(255, 255, 255, 0.52);
    --card-border: rgba(255, 255, 255, 0.72);
    --hover-border: rgba(21, 88, 192, 0.3);
    --hover-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 32px rgba(21, 88, 192, 0.12);
    --main-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 24px rgba(15, 23, 42, 0.10);
    /* Liquid glass tokens */
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-blur: blur(20px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.68);
    --glass-shadow: 0 8px 32px rgba(15, 23, 42, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background: linear-gradient(160deg, #060B18 0%, #0A1628 50%, #060D1F 100%);
    background-attachment: fixed;
    line-height: 1.6;
    position: relative;
}

body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
}

body::before {
    top: -20%;
    left: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(29, 111, 216, 0.06) 0%, transparent 60%);
}

body::after {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(24, 169, 107, 0.04) 0%, transparent 60%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-title);
    color: var(--dark-blue);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.2s ease;
}

ul,
ol {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 96px 0;
    background: transparent;
    border-top: 1px solid var(--border-color);
}

section:nth-of-type(even) {
    background: transparent;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--main-shadow);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: #FFFFFF;
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: #2578E8;
    border-color: #2578E8;
    color: #FFFFFF;
    transform: scale(1.02);
}

.btn-secondary {
    background-color: transparent;
    color: #EEF2FF;
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
}

.btn-cta {
    background-color: var(--accent-green);
    color: #FFFFFF;
    border-color: var(--accent-green);
}

.btn-cta:hover {
    background-color: #1DBF7A;
    border-color: #1DBF7A;
    color: #FFFFFF;
    transform: scale(1.02);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.small-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: #60A5FA;
    display: block;
    margin-bottom: 1rem;
}

/* 1. Navbar fija */
.navbar-wrapper {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    padding: 0 1.5rem;
    opacity: 0;
    transform: scale(0.95);
    animation: nav-enter 0.8s ease-out forwards;
}

@keyframes nav-enter {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.navbar {
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 0 1.5rem;
    width: 100%;
    max-width: 1200px;
    height: 68px;
    display: flex;
    align-items: center;
    pointer-events: auto;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--dark-blue);
    display: inline-flex;
    align-items: center;
}

.navbar-logo-img {
    height: 48px;
    width: auto;
    filter: brightness(10);
    transition: filter 0.3s ease;
}

.nav-links ul {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: #FFFFFF;
}

.navbar .btn-cta {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.navbar .btn-cta:hover {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

/* Navbar â€” Estado scrolled (fuera del hero) */
.navbar.scrolled {
    background: rgba(6, 11, 24, 0.85);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 20px;
    box-shadow: var(--main-shadow);
}

.navbar.scrolled .navbar-logo-img {
    filter: none;
}

.navbar.scrolled .nav-links a {
    color: var(--text-main);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--primary-blue);
}

.navbar.scrolled .btn-cta {
    background: rgba(29, 111, 216, 0.9);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.navbar.scrolled .btn-cta:hover {
    background: #1DBF7A;
    border-color: #1DBF7A;
    box-shadow: var(--main-shadow);
    transform: scale(1.02);
}

/* 2. Hero */
.hero-section {
    padding: 0;
    text-align: center;
    background: linear-gradient(180deg, #0F1117 0%, #0F1117 100%);
    position: relative;
    overflow: hidden;
    border-top: none;
    /* No separator for hero */
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.15) 0%,
            rgba(0, 0, 0, 0.05) 50%,
            rgba(0, 0, 0, 0.25) 100%);
    z-index: 1;
}

.hero-section .small-label {
    color: rgba(255, 255, 255, 0.8);
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 100vh;
    width: 100%;
}

.hero-left {
    position: absolute;
    left: 1.5rem;
    top: calc(50% - 12rem);
    transform: translateY(-100%);
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 60%;
    width: auto;
}

.hero-left .small-label {
    font-size: clamp(13px, 1.5vw, 16px);
    margin-bottom: 0.75rem;
    white-space: nowrap;
}

.hero-left .hero-brand-name {
    font-size: clamp(18px, 2vw, 24px);
    margin-bottom: 0;
    justify-content: flex-start;
    width: auto;
    white-space: nowrap;
}

.hero-right {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    padding: 40px 0;
    max-width: 480px;
    width: 100%;
    text-align: left;
    overflow: visible;
}

.hero-right .hero-subtitle {
    margin: 0 0 2.5rem;
    max-width: 100%; /* fill the right panel instead of the generic 650px cap */
}

.hero-right .hero-actions {
    justify-content: flex-start;
}

.hero-metallic-text {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 900;
    font-family: var(--font-title);
    background: linear-gradient(135deg,
            #60a5fa 0%,
            #93c5fd 25%,
            #ffffff 45%,
            #ffffff 50%,
            #ffffff 55%,
            #93c5fd 75%,
            #60a5fa 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 4s linear infinite;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 16px;
}

@keyframes shine {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 600;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    color: #FFFFFF;
    line-height: 1.5;

    /* ── Aggressive Legibility Halo (multi-layer, no bubble/blur) ── */
    /* Layer 1: sharp dark edge — defines letter boundaries */
    /* Layer 2: medium diffuse halo — separates text from mid-tones */
    /* Layer 3: wide dark glow — creates a dark reading area around the paragraph */
    text-shadow:
        0 1px 1px rgba(0, 0, 0, 0.9),
        0 2px 10px rgba(0, 0, 0, 0.8),
        0 4px 25px rgba(0, 0, 0, 0.6);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-note {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.stats-container {
    background: rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.hero-brand-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-title);
    font-size: clamp(13px, 1.5vw, 16px);
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 12px;
    justify-content: center;
    width: 100%;
}

.hero-brand-name::before,
.hero-brand-name::after {
    content: '';
    display: inline-block;
    width: 32px;
    border-top: 1.5px solid #FFFFFF;
}

/* Mission & Vision Section */
.mission-vision-section {
    padding: 96px 0;
}

.mv-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 40px;
}

.mv-column {
    flex: 1;
    position: relative;
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--main-shadow);
    border: 1px solid var(--card-border);
    transition: transform 300ms ease-out, border-color 300ms ease-out, box-shadow 300ms ease-out, background 300ms ease-out;
}

.mv-column:hover {
    transform: scale(1.02);
    border-color: var(--hover-border);
    box-shadow: var(--hover-shadow);
    background: rgba(255, 255, 255, 0.06);
}

.mv-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 1rem;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mv-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    font-weight: 600;
    text-transform: uppercase;
    color: #60A5FA;
    display: block;
    margin-bottom: 0.5rem;
}

.mv-decorator {
    width: 40px;
    height: 3px;
    background-color: var(--primary-blue);
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.mv-title {
    font-family: var(--font-title);
    color: var(--dark-blue);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.mv-text {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Section Global */
.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
}

/* 4. Features — Zig-Zag Showcase Layout */

/* Section wrapper — inherits the global section padding */
.showcase-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Very subtle directional glow per section */
.showcase-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 20% 50%,
            rgba(29, 111, 216, 0.05) 0%,
            transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.showcase-reverse::before {
    background: radial-gradient(ellipse 70% 60% at 80% 50%,
            rgba(24, 169, 107, 0.05) 0%,
            transparent 70%);
}

/* Two-column grid */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
    position: relative;
    z-index: 1;
}

/* ── Image column ─────────────────────────────────────────── */
.showcase-image-col {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

/* Ambient halo glow behind image */
.showcase-image-col::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 20px;
    background: linear-gradient(135deg,
            rgba(29, 111, 216, 0.20) 0%,
            rgba(24, 169, 107, 0.12) 100%);
    filter: blur(24px);
    z-index: -1;
    transform: translateY(12px);
}

.showcase-image-col img {
    width: 100%;
    height: auto;
    /* ¡Liberamos la altura! */
    border-radius: 24px;
    display: block;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.06),
        0 8px 32px rgba(0, 0, 0, 0.22),
        0 24px 64px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.55s ease;
}

.showcase-image-col:hover img {
    transform: scale(1.025) translateY(-6px);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.10),
        0 16px 48px rgba(0, 0, 0, 0.30),
        0 40px 80px rgba(29, 111, 216, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* ── Zig-Zag order reversal ───────────────────────────────── */
.showcase-reverse .showcase-image-col {
    order: 2;
}

.showcase-reverse .showcase-content-bubble {
    order: 1;
}

/* ── Liquid Glass content bubble ─────────────────────────── */
.showcase-content-bubble {
    /* Dark mode: subtle dark glass */
    background: rgba(255, 255, 255, 0.045);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 28px;
    padding: 3rem 3.5rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 8px 40px rgba(0, 0, 0, 0.28);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Top shimmer line */
.showcase-content-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.30) 50%,
            transparent);
    pointer-events: none;
}

.showcase-content-bubble:hover {
    border-color: rgba(29, 111, 216, 0.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 8px 40px rgba(0, 0, 0, 0.32),
        0 0 60px rgba(29, 111, 216, 0.07);
    transform: translateY(-2px);
}

/* Light mode: true Liquid Glass */
body.light-mode .showcase-content-bubble {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.80);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.90),
        0 8px 32px rgba(15, 23, 42, 0.10),
        0 2px 8px rgba(15, 23, 42, 0.06);
}

body.light-mode .showcase-content-bubble:hover {
    border-color: rgba(21, 88, 192, 0.30);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 12px 40px rgba(15, 23, 42, 0.13),
        0 0 40px rgba(21, 88, 192, 0.08);
}

/* Heading & text colours adapt to theme via existing vars */
.showcase-content-bubble h2 {
    font-size: clamp(1.65rem, 2.6vw, 2.25rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.showcase-content-bubble>p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.75rem;
}

/* Feature checkmark list */
.showcase-features {
    list-style: none;
    padding: 0;
    margin: 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.showcase-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
}

.showcase-features li:hover {
    color: var(--text-main);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.module-card {
    background-color: var(--card-bg);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--main-shadow);
    transition: transform 300ms ease-out, border-color 300ms ease-out, box-shadow 300ms ease-out, background-color 300ms ease-out;
}

.module-card:hover {
    transform: scale(1.02);
    border-color: var(--hover-border);
    box-shadow: var(--hover-shadow);
    background-color: rgba(255, 255, 255, 0.06);
}

.module-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.module-description {
    margin-bottom: 0;
}

/* 5. CÃ³mo funciona */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    counter-reset: steps;
}

.step-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-areas:
        "num title"
        "num desc";
    align-items: center;
    column-gap: 20px;
    row-gap: 4px;
    background-color: var(--card-bg);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--main-shadow);
    transition: transform 300ms ease-out, border-color 300ms ease-out, box-shadow 300ms ease-out, background-color 300ms ease-out;
}

.step-item:hover {
    transform: scale(1.02);
    border-color: var(--hover-border);
    box-shadow: var(--hover-shadow);
    background-color: rgba(255, 255, 255, 0.06);
}

.step-item::before {
    counter-increment: steps;
    content: counter(steps);
    grid-area: num;
    background-color: var(--primary-blue);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 18px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: var(--font-title);
}

.step-title {
    grid-area: title;
    color: var(--dark-blue);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.2;
    align-self: end;
}

.step-description {
    grid-area: desc;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.4;
    align-self: start;
}

/* 6. MÃ³dulos - EspecÃ­fico 2 columnas */
.modules-grid.two-columns {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* 6b. Truck Scroll Section (canvas image sequence) */
#truck-scroll-section {
    height: 400vh;
    position: relative;
    /* No border-top so it blends seamlessly between sections */
    border-top: none;
    padding: 0;
    background: transparent;
}

.truck-scroll-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

/* CSS mask on the canvas â€” top & bottom edges fade to transparent,
   letting the page's own background gradient show through on both sides.
   No hard colour dependency, works with any background. */
#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Estas dos lÃ­neas nuevas activan la Tarjeta GrÃ¡fica del celular */
    transform: translateZ(0);
    will-change: transform;
    /* Las mÃ¡scaras que ya tenÃ­as */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 85%, transparent 100%);
}

/* 7. YouTube Section */
.youtube-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    padding: 4rem 3rem;
    border-radius: 20px;
    box-shadow: var(--main-shadow);
    border: 1px solid var(--card-border);
    transition: transform 300ms ease-out, border-color 300ms ease-out, box-shadow 300ms ease-out, background 300ms ease-out;
}

.youtube-content:hover {
    transform: scale(1.02);
    border-color: var(--hover-border);
    box-shadow: var(--hover-shadow);
    background: rgba(255, 255, 255, 0.06);
}

.youtube-title {
    margin-bottom: 1.5rem;
}

.youtube-text {
    margin-bottom: 2rem;
}

.btn-youtube {
    background-color: #FF0000;
    border-color: #FF0000;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: bold;
}

.btn-youtube:hover {
    background-color: #e60000;
    border-color: #e60000;
    transform: scale(1.02);
}

/* 7. CTA final */
.cta-section.bg-primary {
    background: rgba(29, 111, 216, 0.12);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(29, 111, 216, 0.2);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    max-width: 1200px;
    margin: 0 1.5rem 6rem;
    padding: 6rem 0;
    box-shadow: 0 0 80px rgba(29, 111, 216, 0.08);
}

@media (min-width: 1240px) {
    .cta-section.bg-primary {
        margin: 0 auto 6rem auto;
    }
}

.cta-section h2,
.cta-section p {
    color: #FFFFFF;
}

.cta-section .cta-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* 8. Footer */
.site-footer {
    padding: 5rem 0 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(4, 6, 16, 0.9);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.footer-watermark {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(80px, 15vw, 220px);
    opacity: 0.04;
    color: var(--dark-blue);
    font-family: var(--font-title);
    font-weight: 800;
    white-space: nowrap;
    pointer-events: none;
    z-index: 0;
    width: 100%;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.footer-brand .logo {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    opacity: 0.85;
    margin: 0 auto 0.5rem 0;
    display: block;
}

.copyright {
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #475569;
}

.legal-disclaimer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    max-width: 800px;
    margin: 1.5rem auto 0 auto;
    text-align: center;
    line-height: 1.5;
}

.footer-nav ul {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
}

.footer-nav a:hover {
    color: #EEF2FF;
}

/* Animaciones via JS classes */
@keyframes blur-in {
    0% {
        filter: blur(12px);
        opacity: 0;
        transform: translateY(8px);
    }

    100% {
        filter: blur(0);
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-blur-in {
    opacity: 0;
    animation: blur-in 0.8s ease-out forwards;
}

/* Card Scroll Animations */
.scroll-card {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 700ms ease-out, transform 700ms ease-out;
}

.scroll-card.visible {
    opacity: 1;
    transform: scale(1);
}

/* Phone Widget Styles (mockup popup only - FAB now in hero) */
.phone-widget-container {
    display: none;
}

.phone-fab {
    background-color: var(--primary-blue);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    box-shadow: 0 0 0 0 rgba(29, 111, 216, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-ring 2.5s infinite;
    border: none;
    outline: none;
}

.phone-fab-label {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
}

.phone-fab svg {
    width: 18px;
    height: 18px;
    fill: #FFFFFF;
    flex-shrink: 0;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(29, 111, 216, 0.4);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(29, 111, 216, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(29, 111, 216, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

.phone-mockup-fixed {
    width: 280px;
    height: 560px;
    background-color: #1A202C;
    border-radius: 36px;
    padding: 10px;
    position: relative;
    box-shadow: var(--main-shadow);
    transform-origin: bottom right;
    transform: scale(0.3);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
    position: absolute;
    bottom: 0;
    right: 0;
}

.phone-mockup-fixed.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.phone-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 26px;
    border: none;
}

.phone-fab.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
    animation: none;
}

.phone-notch-fixed {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 24px;
    background-color: #1A202C;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 2;
}

.phone-close-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    background-color: #1A1D27;
    color: #F0F4FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 10;
    font-weight: bold;
    font-family: var(--font-body);
    font-size: 16px;
    transition: background-color 0.2s;
}

.phone-close-btn:hover {
    background-color: #2A2D3A;
}

.btn-pwr {
    position: absolute;
    right: -2px;
    top: 120px;
    width: 2px;
    height: 40px;
    background: #333;
    border-radius: 0 4px 4px 0;
}

.btn-vl {
    position: absolute;
    left: -2px;
    top: 100px;
    width: 2px;
    height: 70px;
    background: #333;
    border-radius: 4px 0 0 4px;
}

.phone-home-indicator-fixed {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    z-index: 2;
}

/* Phone Modal Overlay */
.phone-modal-overlay {
    display: none;
    position: fixed;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    z-index: 2000;
    pointer-events: none;
}

.phone-modal-overlay.active {
    display: block;
}

.phone-modal-inner {
    position: relative;
    pointer-events: auto;
    animation: modal-pop-right 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes modal-pop-right {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.phone-modal-mockup {
    width: 240px;
    height: 480px;
    background-color: #1A202C;
    border-radius: 32px;
    padding: 8px;
    position: relative;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15);
    border: 4px solid #334155;
}

.phone-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    background: #1A1D27;
    color: #18A96B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #2A2D3A;
    z-index: 10;
}

.phone-modal-close:hover {
    background: #2A2D3A;
}

.phone-modal-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background-color: #1A202C;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 2;
}

.phone-modal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 26px;
}

.phone-modal-indicator {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    z-index: 2;
}

.footer-tagline {
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

/* Responsiveness */
@media (max-width: 768px) {
    .navbar-wrapper {
        top: 12px;
        padding: 0 1rem;
    }

    .navbar {
        height: 60px;
        padding: 0 1rem;
    }

    .navbar-logo-img {
        height: 32px;
    }

    .nav-links {
        display: none;
    }

    .hero-section {
        padding: 10rem 0 80px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 40px 20px;
    }

    .hero-left {
        position: relative;
        top: auto;
        left: auto;
        grid-column: 1;
        max-width: 100%;
        width: 100%;
        padding: 20px 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-left .small-label {
        font-size: 14px;
        margin-bottom: 0.5rem;
    }

    .hero-left .hero-brand-name {
        font-size: 20px;
        justify-content: center;
    }

    .hero-right {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        grid-column: 1;
        justify-self: center;
        max-width: 100%;
        padding: 20px 0;
        text-align: center;
    }

    .hero-right .hero-subtitle {
        margin: 0 auto 2.5rem;
        width: fit-content;
        max-width: 100%; /* never overflow on narrow viewports */
    }

    .hero-right .hero-actions {
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .mv-container {
        flex-direction: column;
        gap: 24px;
    }

    .stats-container {
        flex-direction: column;
    }

    /* .step-item automatically inherits Grid styles for mobile */

    .modules-grid.two-columns {
        grid-template-columns: 1fr;
    }

    .cta-section.bg-primary {
        margin: 0;
        border-radius: 0;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo-img {
        margin: 0 auto 0.5rem auto;
    }

    .footer-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .section-title {
        font-size: 2.25rem;
    }

    /* â”€â”€ Canvas scroll section â€” mobile â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
    /* Mobile frames are natively 9:16, so cover fills edge-to-edge     */
    /* without any black letterbox bars.                                 */
    #truck-scroll-section {
        height: 450vh;
        /* shorter scroll distance â€” less finger travel */
    }

    .truck-scroll-sticky {
        background-color: #000000;
    }

    /* The mask still applies â€” it targets the canvas element itself,  */
    /* so the top/bottom fade-out works regardless of fit mode.         */
    #hero-canvas {
        /* contain shows the full frame so no text is cropped on mobile. */
        object-fit: contain;
    }
}

/* ================================================================
   LIGHT MODE - glass surface overrides ONLY
   body background: light (#F8FAFC). Dark orbs (::before/::after)
   are NOT overridden - they remain visible on the light canvas.
   Hero, video masks, canvas: completely untouched.
   ================================================================ */

/* Body background + global text color */
body.light-mode {
    background: #F8FAFC;
    color: #0F172A;
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

body.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    backdrop-filter: blur(28px) saturate(180%);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.70);
    border-radius: 20px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

body.light-mode .navbar.scrolled .nav-links a {
    color: #0F172A;
}

body.light-mode .navbar.scrolled .nav-links a:hover {
    color: #1558C0;
}

body.light-mode .navbar.scrolled .btn-cta {
    background: rgba(21, 88, 192, 0.12);
    border: 1px solid rgba(21, 88, 192, 0.30);
    color: #1558C0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body.light-mode .navbar.scrolled .btn-cta:hover {
    background: #1558C0;
    border-color: #1558C0;
    color: #fff;
}

/* Hero text â€” stays WHITE because the video behind it is dark */
/* (NO overrides for .hero-section, .hero-overlay, .hero-subtitle,
    .hero-note, .hero-brand-name, .hero-metallic-text, or .hero-section
    .small-label â€” they all inherit their original dark-mode white values) */

/* â”€â”€ Glass cards â”€â”€ */
body.light-mode .feature-card,
body.light-mode .module-card,
body.light-mode .mv-column,
body.light-mode .step-item,
body.light-mode .youtube-content {
    background: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.90);
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    color: #0F172A;
    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        transform 300ms ease-out;
}

body.light-mode .feature-card:hover,
body.light-mode .module-card:hover,
body.light-mode .mv-column:hover,
body.light-mode .step-item:hover,
body.light-mode .youtube-content:hover {
    background: rgba(255, 255, 255, 0.80);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow:
        0 20px 48px rgba(31, 38, 135, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: scale(1.02);
}

/* Force text dark inside glass cards so it reads on white bg */
body.light-mode .feature-card h3,
body.light-mode .module-card h3,
body.light-mode .mv-column h3,
body.light-mode .step-item h3,
body.light-mode .youtube-content h2,
body.light-mode .feature-title,
body.light-mode .module-title,
body.light-mode .mv-title,
body.light-mode .step-title {
    color: #0F172A;
}

body.light-mode .feature-description,
body.light-mode .module-description,
body.light-mode .mv-text,
body.light-mode .step-description,
body.light-mode .youtube-text {
    color: #334155;
}

body.light-mode .mv-label,
body.light-mode .section-title {
    color: #0F172A;
}

body.light-mode .feature-icon {
    stroke: #1558C0;
}

body.light-mode .mv-icon {
    stroke: #1558C0;
}

body.light-mode .mv-decorator {
    background-color: #1558C0;
}

body.light-mode .step-item::before {
    background-color: #1558C0;
    color: #fff;
}

/* â”€â”€ Small-label glass pills (module tags, section pills) â”€â”€ */
/* Only target labels that are NOT inside the hero (hero labels stay white) */
body.light-mode .feature-card .small-label,
body.light-mode .module-card .small-label,
body.light-mode .mv-column .small-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.60);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.90);
    border-radius: 20px;
    padding: 4px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    color: #1558C0;
    letter-spacing: 0.15em;
}

/* â”€â”€ Language FAB â”€â”€ */
body.light-mode #lang-fab {
    background: rgba(255, 255, 255, 0.65);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    color: #0F172A;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

body.light-mode #lang-fab .lang-active {
    color: #1558C0;
}

body.light-mode #lang-fab:hover {
    background: rgba(21, 88, 192, 0.15);
    border-color: rgba(21, 88, 192, 0.35);
    box-shadow: 0 6px 28px rgba(21, 88, 192, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

/* â”€â”€ Language FAB â”€â”€ */
#lang-fab {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.10);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #EEF2FF;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    -webkit-user-select: none;
    user-select: none;
}

#lang-fab:hover {
    background: rgba(29, 111, 216, 0.55);
    border-color: rgba(29, 111, 216, 0.6);
    box-shadow: 0 6px 28px rgba(29, 111, 216, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform: translateY(-2px) scale(1.04);
}

#lang-fab:active {
    transform: scale(0.97);
}

#lang-fab .lang-globe {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

#lang-fab .lang-active {
    color: #60A5FA;
}

#lang-fab .lang-sep {
    opacity: 0.45;
    margin: 0 1px;
}

/* â”€â”€ Utility classes â”€â”€ */
.tags-wrapper {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-2rem {
    margin-bottom: 2rem !important;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   THEME TOGGLE BUTTON â€” Liquid Glass
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
#theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Liquid-glass base */
    background: radial-gradient(ellipse at 30% 25%,
            rgba(255, 255, 255, 0.55) 0%,
            rgba(255, 255, 255, 0.18) 60%,
            rgba(180, 200, 240, 0.22) 100%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    backdrop-filter: blur(20px) saturate(200%);
    /* Multi-layer gloss shadows */
    box-shadow:
        /* outer ambient */
        0 8px 32px rgba(0, 0, 0, 0.28),
        /* outer coloured glow */
        0 2px 8px rgba(100, 160, 255, 0.20),
        /* sharp top-left specular */
        inset 0 1.5px 0 rgba(255, 255, 255, 0.75),
        /* bottom inner shadow for depth */
        inset 0 -1px 0 rgba(0, 0, 0, 0.18),
        /* subtle rim */
        inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.25s ease,
        background 0.35s ease;
    -webkit-user-select: none;
    user-select: none;
    /* Sheen overlay via pseudo */
    overflow: hidden;
}

#theme-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.55) 0%,
            rgba(255, 255, 255, 0.0) 55%);
    pointer-events: none;
}

#theme-toggle:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.32),
        0 4px 12px rgba(100, 160, 255, 0.30),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.85),
        inset 0 -1px 0 rgba(0, 0, 0, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

#theme-toggle:active {
    transform: scale(0.94);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

/* Light-mode tint */
body.light-mode #theme-toggle {
    background: radial-gradient(ellipse at 30% 25%,
            rgba(255, 255, 255, 0.82) 0%,
            rgba(220, 235, 255, 0.55) 60%,
            rgba(180, 210, 255, 0.35) 100%);
    box-shadow:
        0 8px 32px rgba(15, 23, 42, 0.14),
        0 2px 8px rgba(21, 88, 192, 0.15),
        inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
        inset 0 -1px 0 rgba(15, 23, 42, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Icons inside the button */
#theme-toggle .icon-sun,
#theme-toggle .icon-moon {
    position: absolute;
    width: 22px;
    height: 22px;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

/* Dark mode: show sun (click to go light), hide moon */
#theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #FCD34D;
    fill: #FCD34D;
    filter: drop-shadow(0 0 4px rgba(252, 211, 77, 0.6));
}

#theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
    color: #93C5FD;
    fill: #93C5FD;
}

/* Light mode: show moon (click to go dark), hide sun */
body.light-mode #theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
}

body.light-mode #theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 0 4px rgba(147, 197, 253, 0.5));
}

/* ─── Topic Showcase: Split Layout ─────────────────────────── */
.topic-showcase {
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}

/* Subtle ambient glow behind the section */
.topic-showcase::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse at center,
            rgba(29, 111, 216, 0.07) 0%,
            rgba(24, 169, 107, 0.04) 50%,
            transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

/* ── Left column: image ───────────────────────────────────── */
.split-image-col {
    position: relative;
}

/* Decorative ambient glow behind image */
.split-image-col::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 24px;
    background: linear-gradient(135deg,
            rgba(29, 111, 216, 0.18) 0%,
            rgba(24, 169, 107, 0.10) 100%);
    z-index: -1;
    filter: blur(16px);
}

.split-image-col img,
.split-showcase-img {
    width: 100%;
    border-radius: 20px;
    display: block;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.07),
        0 12px 40px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 32px 80px rgba(29, 111, 216, 0.12);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}

.split-image-col:hover img,
.split-image-col:hover .split-showcase-img {
    transform: scale(1.02) translateY(-4px);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.10),
        0 20px 60px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 40px 100px rgba(29, 111, 216, 0.18);
}

/* ── Right column: content bubble ────────────────────────── */
.split-content-bubble {
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem 3.5rem;
    box-shadow: var(--main-shadow);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Inner shimmer highlight at the top edge */
.split-content-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.25) 50%,
            transparent);
}

.split-content-bubble:hover {
    border-color: var(--hover-border);
    box-shadow: var(--hover-shadow);
}

/* Overline / sub-label */
.topic-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: var(--accent-green);
    display: block;
    margin-bottom: 1.25rem;
    position: relative;
    padding-left: 1.25rem;
}

.topic-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 6px var(--accent-green);
    }

    50% {
        box-shadow: 0 0 16px var(--accent-green), 0 0 32px rgba(24, 169, 107, 0.3);
    }
}

.split-content-bubble h2 {
    font-size: clamp(1.75rem, 2.8vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--dark-blue);
}

.split-content-bubble>p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 2rem;
}

/* Feature list */
.topic-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.topic-features li {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.2s ease;
}

.topic-features li:hover {
    color: var(--text-main);
}

.check-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* CTA Button */
.btn-topic {
    background: linear-gradient(135deg,
            var(--primary-blue) 0%,
            #2578E8 100%);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 0.01em;
    display: inline-block;
    cursor: pointer;
    box-shadow:
        0 4px 20px rgba(29, 111, 216, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.btn-topic::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.08) 0%,
            transparent 60%);
    pointer-events: none;
}

.btn-topic:hover {
    background: linear-gradient(135deg,
            #2578E8 0%,
            #3A8AF0 100%);
    color: #FFFFFF;
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 32px rgba(29, 111, 216, 0.50),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-topic:active {
    transform: translateY(-1px) scale(1);
}

/* Mobile placement â€” nudge left so it clears the lang FAB */
@media (max-width: 768px) {

    /* Split Layout: single column on mobile */
    .split-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .split-content-bubble {
        padding: 2rem 1.75rem;
    }

    /* Showcase Zig-Zag: single column on mobile, image always on top */
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Reset order so image col is always first (top) regardless of .showcase-reverse */
    .showcase-reverse .showcase-image-col,
    .showcase-image-col {
        order: 1;
    }

    .showcase-reverse .showcase-content-bubble,
    .showcase-content-bubble {
        order: 2;
    }

    .showcase-image-col img {
        height: auto;
    }

    .showcase-content-bubble {
        padding: 2rem 1.75rem;
        border-radius: 20px;
    }

    #theme-toggle {
        bottom: 24px;
        right: 24px;
        width: 46px;
        height: 46px;
    }

    #lang-fab {
        bottom: 80px;
        /* stack above theme toggle */
    }
}

/* ─────────────────────────────────────────────────────────
   DUAL PATHWAYS SECTION
───────────────────────────────────────────────────────── */
.pathways-section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.pathways-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pathway-main-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-family: var(--font-title);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0;
}

/* Tablet adjustment */
@media (max-width: 992px) {
    .pathways-section-header {
        margin-bottom: 2rem;
    }
}

.pathways-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    width: 100%;
}

.pathway-card {
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 4rem 3.5rem;
    box-shadow: var(--main-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    /* Top shimmer line — matches showcase-content-bubble style */
    position: relative;
    overflow: hidden;
}

.pathway-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.25) 50%,
            transparent);
    pointer-events: none;
}

.pathway-card:hover {
    transform: translateY(-6px);
    border-color: var(--hover-border);
    box-shadow: var(--hover-shadow);
}

.pathway-card h2 {
    font-size: clamp(1.65rem, 2.4vw, 2.25rem);
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.pathway-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 0;
}

.pathway-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* Light Mode Overrides */
body.light-mode .pathway-card {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.90);
    box-shadow:
        0 8px 32px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.light-mode .pathway-card:hover {
    border-color: rgba(21, 88, 192, 0.35);
    box-shadow:
        0 12px 48px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .pathways-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pathway-card {
        padding: 2.5rem 2rem;
    }

    .pathway-actions {
        flex-direction: column;
    }

    .pathway-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* ══════════════════════════════════════════════════════════════
   MASTERY JOURNEY — 3-Node Visual Flow (replaces steps list)
══════════════════════════════════════════════════════════════ */
.mastery-journey-section {
    padding: 120px 0;
    position: relative;
}

.mastery-main-title {
    font-size: clamp(2rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 5rem;
}

.mastery-flow-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Connecting line removed — single card layout */

.pathway-node {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px; /* cap width on ultra-wide screens */
    width: 100%;
}

.node-content-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

/* Circular glass icon orb */
.node-icon-bubble {
    width: 9rem;
    height: 9rem;
    flex-shrink: 0;
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 2;
    /* Small downward overlap so orb sits on top of the card */
    margin-bottom: -1.5rem;
}

.node-icon {
    width: 3.5rem;
    height: 3.5rem;
}

/* Liquid Glass text card */
.node-bubble.liquid-glass {
    width: 100%;
    background: var(--card-bg);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 3.5rem 2.5rem 2.5rem;
    box-shadow: var(--main-shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Top shimmer line */
.node-bubble.liquid-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28) 50%, transparent);
    pointer-events: none;
}

.node-bubble.liquid-glass:hover {
    transform: translateY(-4px);
    border-color: rgba(29, 111, 216, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14),
                0 8px 40px rgba(0, 0, 0, 0.32),
                0 0 60px rgba(29, 111, 216, 0.08);
}

.node-bubble h3 {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    margin-bottom: 0.75rem;
    color: var(--dark-blue);
}

.node-bubble p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ── Responsive: single card is naturally centered at all sizes ── */
@media (max-width: 1200px) {
    .pathway-node {
        max-width: 640px;
    }
}

@media (max-width: 768px) {
    .pathway-node {
        max-width: 100%;
    }
}

/* ── Mobile ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .mastery-journey-section {
        padding: 80px 0;
    }

    .pathway-node {
        width: 100%;
    }

    .node-icon-bubble {
        width: 7rem;
        height: 7rem;
    }

    .node-icon {
        width: 2.8rem;
        height: 2.8rem;
    }

    .node-bubble.liquid-glass {
        padding: 3rem 1.75rem 2rem;
    }
}

/* ── Light Mode Overrides ──────────────────────────────── */
body.light-mode .node-icon-bubble,
body.light-mode .node-bubble.liquid-glass {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(255, 255, 255, 0.90);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body.light-mode .node-icon {
    stroke: var(--primary-blue);
}