        :root {
            /* ── TiniBot Brand Colors ── */
            --primary-blue: var(--color-brand-blue);
            --primary-orange: var(--color-brand-orange);
            --primary-yellow: var(--color-brand-yellow);
            --primary-purple: var(--color-brand-blue);
            --primary-pink: var(--color-brand-orange);
            --primary-green: var(--color-green-500);
            --primary-cyan: var(--color-brand-blue);
            --tinibot-orange: var(--color-brand-orange);
            --tinibot-yellow: var(--color-brand-yellow);
            --tinibot-blue: var(--color-brand-blue);
            --dark-blue: var(--color-text);
            --light-bg: var(--color-slate-50);
            --white: var(--color-surface);
            --text-dark: var(--color-text);
            --text-muted: var(--color-slate-500);
            /* ── Gradients con paleta TiniBot ── */
            --gradient-1: linear-gradient(135deg, var(--color-brand-orange) 0%, var(--color-brand-yellow) 100%);
            --gradient-2: linear-gradient(135deg, var(--color-brand-blue) 0%, var(--color-blue-400) 100%);
            --gradient-3: linear-gradient(135deg, var(--color-brand-orange) 0%, var(--color-brand-blue) 100%);
            --gradient-hero: linear-gradient(135deg, var(--color-brand-orange) 0%, var(--color-brand-yellow) 50%, var(--color-brand-blue) 100%);
            --shadow-sm: 0 2px 8px color-mix(in srgb, var(--color-shadow) 8.000%, transparent);
            --shadow-md: 0 4px 20px color-mix(in srgb, var(--color-shadow) 12.000%, transparent);
            --shadow-lg: 0 8px 40px color-mix(in srgb, var(--color-shadow) 15.000%, transparent);
            --shadow-color: 0 8px 30px color-mix(in srgb, var(--color-brand-orange) 30.000%, transparent);
            --border-radius: 20px;
            --border-radius-lg: 32px;
        }

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

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Poppins', 'Nunito', sans-serif;
            background: var(--light-bg);
            color: var(--text-dark);
            line-height: 1.6;
            overflow-x: hidden;
            font-weight: 400;
        }

        h1,
        h2 {
            font-family: 'Fredoka', 'Nunito', sans-serif;
            font-weight: 700;
        }

        h3,
        h4,
        h5,
        h6 {
            font-family: 'Nunito', sans-serif;
            font-weight: 800;
        }

        /* Navbar */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: color-mix(in srgb, var(--color-surface) 97.000%, transparent);
            backdrop-filter: blur(20px);
            padding: 0.5rem 2rem;
            box-shadow: 0 1px 3px color-mix(in srgb, var(--color-shadow) 6.000%, transparent);
            transition: all 0.3s ease;
        }

        .navbar.scrolled {
            padding: 0.4rem 2rem;
            box-shadow: 0 2px 12px color-mix(in srgb, var(--color-shadow) 8.000%, transparent);
        }

        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1.5rem;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            text-decoration: none;
            flex-shrink: 0;
        }

        .logo-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: contain;
            flex-shrink: 0;
        }

        .logo-text {
            font-family: 'Baloo 2', 'Nunito', sans-serif;
            font-size: 1.4rem;
            font-weight: 800;
            letter-spacing: -0.3px;
        }

        .logo-mind {
            color: var(--primary-orange);
        }

        .logo-block {
            color: var(--primary-blue);
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            list-style: none;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--text-dark);
            font-weight: 600;
            font-size: 0.88rem;
            padding: 0.4rem 0.7rem;
            border-radius: 8px;
            position: relative;
            transition: all 0.2s ease;
            white-space: nowrap;
        }

        .nav-links a::after {
            display: none;
        }

        .nav-links a:hover {
            color: var(--primary-purple);
            background: color-mix(in srgb, var(--color-purple-500) 6.000%, transparent);
        }

        .nav-links a.active {
            color: var(--primary-purple);
            background: color-mix(in srgb, var(--color-purple-500) 8.000%, transparent);
        }

        .nav-link-icon {
            margin-right: 4px;
            font-size: 0.8em;
            opacity: 0.7;
        }

        .nav-link-create {
            background: linear-gradient(135deg, var(--color-brand-orange), var(--color-brand-yellow)) !important;
            color: var(--color-on-dark) !important;
            border-radius: 10px !important;
            font-weight: 800 !important;
            padding: 0.4rem 0.9rem !important;
            box-shadow: 0 2px 8px color-mix(in srgb, var(--color-brand-orange) 20.000%, transparent);
        }
        .nav-link-create:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 14px color-mix(in srgb, var(--color-brand-orange) 30.000%, transparent) !important;
            background: linear-gradient(135deg, var(--color-brand-orange), var(--color-brand-yellow)) !important;
            color: var(--color-on-dark) !important;
        }

        .nav-actions {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            flex-shrink: 0;
        }

        .user-avatar-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--color-slate-200);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: transform 0.3s ease;
            color: var(--color-purple-500);
            font-weight: 700;
            position: relative;
            /* Essential for overlaying image */
        }

        .user-avatar-btn:hover {
            transform: scale(1.05);
        }

        .user-avatar-btn img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* User Menu Dropdown */
        .user-menu-container {
            position: relative;
        }

        .dropdown-menu {
            position: absolute;
            top: 120%;
            right: 0;
            background: var(--color-surface);
            border-radius: 16px;
            box-shadow: 0 10px 40px color-mix(in srgb, var(--color-shadow) 10.000%, transparent);
            min-width: 260px;
            padding: 1rem;
            display: none;
            /* Hidden by default */
            flex-direction: column;
            gap: 0.5rem;
            z-index: 1001;
            transform-origin: top right;
            animation: scaleIn 0.2s ease-out;
        }

        .dropdown-menu.active {
            display: flex;
        }

        @keyframes scaleIn {
            from {
                opacity: 0;
                transform: scale(0.95);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .dropdown-header {
            padding: 0.5rem 1rem 1rem;
            border-bottom: 1px solid var(--color-slate-100);
            margin-bottom: 0.5rem;
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .dropdown-header .user-name {
            font-weight: 700;
            color: var(--dark-blue);
            font-size: 1rem;
        }

        .dropdown-header .user-email {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1rem;
            border-radius: 10px;
            color: var(--text-dark);
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .dropdown-item i {
            width: 20px;
            text-align: center;
            color: var(--primary-purple);
        }

        .dropdown-item:hover {
            background: var(--color-slate-50);
            color: var(--primary-purple);
            transform: translateX(5px);
        }

        .dropdown-item.danger {
            color: var(--color-red-500);
        }

        .dropdown-item.danger i {
            color: var(--color-red-500);
        }

        .dropdown-item.danger:hover {
            background: var(--color-red-50);
        }

        .btn {
            padding: 0.5rem 1.2rem;
            border-radius: 10px;
            font-family: 'Quicksand', sans-serif;
            font-weight: 700;
            font-size: 0.88rem;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            border: none;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            white-space: nowrap;
        }

        .btn-ghost {
            background: transparent;
            color: var(--text-dark);
        }

        .btn-ghost:hover {
            background: color-mix(in srgb, var(--color-purple-700) 8.000%, transparent);
            color: var(--primary-purple);
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--color-brand-orange), var(--color-brand-yellow));
            color: var(--color-on-dark);
            box-shadow: 0 4px 16px color-mix(in srgb, var(--color-brand-orange) 30.000%, transparent);
            text-shadow: 0 1px 2px color-mix(in srgb, var(--color-shadow) 12.000%, transparent);
        }

        .btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 6px 24px color-mix(in srgb, var(--color-brand-orange) 40.000%, transparent);
        }

        .btn-secondary {
            background: color-mix(in srgb, var(--color-surface) 10.000%, transparent);
            color: var(--color-on-dark);
            border: 2px solid color-mix(in srgb, var(--color-surface) 30.000%, transparent);
            backdrop-filter: blur(4px);
        }

        .btn-secondary:hover {
            background: color-mix(in srgb, var(--color-surface) 20.000%, transparent);
            border-color: color-mix(in srgb, var(--color-surface) 60.000%, transparent);
            color: var(--color-on-dark);
        }

        .btn-large {
            padding: 1rem 2.5rem;
            font-size: 1.1rem;
        }

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            border-radius: 10px;
            transition: background 0.2s ease;
            z-index: 1001;
        }

        .mobile-menu-btn:active {
            background: color-mix(in srgb, var(--color-shadow) 5.000%, transparent);
        }

        .mobile-menu-btn span {
            display: block;
            width: 24px;
            height: 2.5px;
            background: var(--text-dark);
            margin: 5px 0;
            border-radius: 3px;
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            transform-origin: center;
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            background: linear-gradient(160deg, var(--color-text) 0%, var(--color-action) 40%, var(--color-text) 100%);
            position: relative;
            overflow: hidden;
            padding: 8rem 2rem 4rem;
            display: flex;
            align-items: center;
            color: var(--color-on-dark);
        }

        .hero-bg-shapes {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            pointer-events: none;
            overflow: hidden;
        }

        .shape {
            position: absolute;
            border-radius: 50%;
            opacity: 0.6;
            animation: float 6s ease-in-out infinite;
        }

        .shape-1 {
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, color-mix(in srgb, var(--color-brand-orange) 15.000%, transparent) 0%, transparent 70%);
            top: -150px;
            right: -100px;
            animation-delay: 0s;
        }

        .shape-2 {
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, color-mix(in srgb, var(--color-brand-yellow) 12.000%, transparent) 0%, transparent 70%);
            bottom: -100px;
            left: -100px;
            animation-delay: 2s;
        }

        .shape-3 {
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, color-mix(in srgb, var(--color-brand-blue) 10.000%, transparent) 0%, transparent 70%);
            top: 40%;
            left: 10%;
            animation-delay: 4s;
        }

        .shape-4 {
            width: 250px;
            height: 250px;
            background: radial-gradient(circle, color-mix(in srgb, var(--color-brand-orange) 10.000%, transparent) 0%, transparent 70%);
            top: 20%;
            right: 20%;
            animation-delay: 1s;
        }

        @keyframes float {

            0%,
            100% {
                transform: translateY(0) rotate(0deg);
            }

            50% {
                transform: translateY(-30px) rotate(5deg);
            }
        }

        .hero-container {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        .hero-content {
            animation: slideInLeft 0.8s ease-out;
        }

        @keyframes slideInLeft {
            from {
                opacity: 0;
                transform: translateX(-50px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: linear-gradient(135deg, var(--color-brand-orange), var(--color-brand-yellow));
            padding: 0.6rem 1.2rem;
            border-radius: 50px;
            font-size: 0.85rem;
            font-weight: 800;
            color: var(--color-on-dark);
            box-shadow: 0 4px 20px color-mix(in srgb, var(--color-brand-orange) 30.000%, transparent);
            margin-bottom: 1.5rem;
            animation: bounce 2s ease-in-out infinite;
            text-shadow: 0 1px 2px color-mix(in srgb, var(--color-shadow) 15.000%, transparent);
            letter-spacing: 0.3px;
        }

        @keyframes bounce {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-5px);
            }
        }

        .hero-badge span {
            font-size: 1.2rem;
        }

        .hero-title {
            font-size: 4rem;
            font-weight: 900;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            color: var(--color-on-dark);
        }

        .hero-title .highlight {
            background: var(--gradient-1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            position: relative;
        }

        .hero-title .highlight-2 {
            background: var(--gradient-2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-description {
            font-size: 1.15rem;
            color: color-mix(in srgb, var(--color-on-dark) 75.000%, transparent);
            margin-bottom: 2rem;
            max-width: 540px;
            line-height: 1.7;
        }

        .hero-description strong {
            color: color-mix(in srgb, var(--color-on-dark) 95.000%, transparent);
        }

        .hero-buttons {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .hero-stats {
            display: flex;
            gap: 3rem;
            margin-top: 3rem;
        }

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

        .stat-number {
            font-family: 'Nunito', sans-serif;
            font-size: 2.5rem;
            font-weight: 900;
            background: linear-gradient(135deg, var(--color-brand-orange), var(--color-brand-yellow));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .stat-label {
            font-size: 0.85rem;
            color: color-mix(in srgb, var(--color-on-dark) 50.000%, transparent);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .hero-visual {
            position: relative;
            animation: slideInRight 0.8s ease-out;
        }

        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(50px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .hero-mockup {
            background: var(--color-surface);
            border-radius: var(--border-radius-lg);
            box-shadow: var(--shadow-lg);
            padding: 1.5rem;
            position: relative;
            transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
            transition: transform 0.5s ease;
        }

        .hero-mockup:hover {
            transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
        }

        .mockup-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid var(--color-slate-100);
            margin-bottom: 1rem;
        }

        .mockup-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .mockup-dot.red {
            background: var(--color-red-500);
        }

        .mockup-dot.yellow {
            background: var(--color-yellow-400);
        }

        .mockup-dot.green {
            background: var(--color-green-500);
        }

        .mockup-title {
            margin-left: 1rem;
            font-weight: 600;
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        .mockup-content {
            display: grid;
            grid-template-columns: 200px 1fr;
            gap: 1rem;
            min-height: 350px;
        }

        .blocks-panel {
            background: var(--color-slate-50);
            border-radius: 16px;
            padding: 1rem;
        }

        .blocks-panel h4 {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-bottom: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .block-item {
            padding: 0.75rem 1rem;
            border-radius: 12px;
            margin-bottom: 0.5rem;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--color-on-dark);
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .block-item:hover {
            transform: translateX(5px);
            box-shadow: var(--shadow-md);
        }

        .block-motion {
            background: var(--primary-blue);
        }

        .block-looks {
            background: var(--primary-purple);
        }

        .block-sound {
            background: var(--primary-pink);
        }

        .block-events {
            background: var(--primary-orange);
        }

        .block-control {
            background: var(--primary-yellow);
            color: var(--text-dark);
        }

        .block-sensing {
            background: var(--primary-cyan);
        }

        .code-area {
            background: var(--color-text);
            border-radius: 16px;
            padding: 1.5rem;
            position: relative;
            overflow: hidden;
        }

        .code-blocks {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .code-block {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.75rem 1rem;
            border-radius: 10px;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--color-on-dark);
            animation: slideIn 0.5s ease-out forwards;
            opacity: 0;
        }

        .code-block:nth-child(1) {
            animation-delay: 0.2s;
        }

        .code-block:nth-child(2) {
            animation-delay: 0.4s;
        }

        .code-block:nth-child(3) {
            animation-delay: 0.6s;
        }

        .code-block:nth-child(4) {
            animation-delay: 0.8s;
        }

        .code-block:nth-child(5) {
            animation-delay: 1s;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(-20px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .code-block.nested {
            margin-left: 1.5rem;
        }

        .floating-elements {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            pointer-events: none;
        }

        .floating-block {
            position: absolute;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--color-on-dark);
            box-shadow: var(--shadow-md);
            animation: floatBlock 4s ease-in-out infinite;
        }

        .floating-block-1 {
            background: var(--primary-green);
            top: -30px;
            right: 20px;
            animation-delay: 0s;
        }

        .floating-block-2 {
            background: var(--primary-pink);
            bottom: -20px;
            left: -30px;
            animation-delay: 1s;
        }

        .floating-block-3 {
            background: var(--primary-orange);
            top: 50%;
            right: -40px;
            animation-delay: 2s;
        }

        @keyframes floatBlock {

            0%,
            100% {
                transform: translateY(0) rotate(-5deg);
            }

            50% {
                transform: translateY(-15px) rotate(5deg);
            }
        }

        /* Features Section */
        .features {
            padding: 6rem 2rem;
            background: var(--color-surface);
            position: relative;
        }

        .section-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .section-header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .section-badge {
            display: inline-block;
            background: linear-gradient(135deg, var(--color-brand-orange), var(--color-brand-yellow));
            color: var(--color-on-dark);
            padding: 0.5rem 1.25rem;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 800;
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            text-shadow: 0 1px 2px color-mix(in srgb, var(--color-shadow) 10.000%, transparent);
            box-shadow: 0 4px 15px color-mix(in srgb, var(--color-brand-orange) 25.000%, transparent);
        }

        .section-title {
            font-size: 2.8rem;
            font-weight: 900;
            color: var(--dark-blue);
            margin-bottom: 1rem;
        }

        .section-subtitle {
            font-size: 1.2rem;
            color: var(--text-muted);
            max-width: 600px;
            margin: 0 auto;
        }

        .features-grid {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 2rem;
        }

        .feature-card {
            flex: 0 1 calc(33.333% - 1.34rem);
            min-width: 280px;
            background: var(--color-surface);
            border-radius: var(--border-radius);
            padding: 2.5rem;
            text-align: center;
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            border: 1px solid color-mix(in srgb, var(--color-shadow) 5.000%, transparent);
            box-shadow: 0 2px 12px color-mix(in srgb, var(--color-shadow) 4.000%, transparent);
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient-1);
            transform: scaleX(0);
            transition: transform 0.4s ease;
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-lg);
            background: var(--color-surface);
        }

        .feature-card:hover::before {
            transform: scaleX(1);
        }

        .feature-icon {
            width: 80px;
            height: 80px;
            border-radius: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            font-size: 2rem;
            transition: transform 0.4s ease;
        }

        .feature-icon i {
            font-size: 1.8rem;
        }

        .feature-card:hover .feature-icon {
            transform: scale(1.1) rotate(5deg);
        }

        .feature-icon.blue {
            background: linear-gradient(135deg, var(--color-blue-100), var(--color-blue-200));
            color: var(--color-brand-blue);
        }

        .feature-icon.purple {
            background: linear-gradient(135deg, var(--color-orange-50), var(--color-orange-100));
            color: var(--color-brand-orange);
        }

        .feature-icon.pink {
            background: linear-gradient(135deg, var(--color-yellow-100), var(--color-yellow-200));
            color: var(--color-brand-orange);
        }

        .feature-icon.green {
            background: linear-gradient(135deg, var(--color-green-100), var(--color-green-200));
            color: var(--color-green-500);
        }

        .feature-icon.orange {
            background: linear-gradient(135deg, var(--color-orange-100), var(--color-orange-200));
            color: var(--color-brand-orange);
        }

        .feature-icon.cyan {
            background: linear-gradient(135deg, var(--color-blue-100), var(--color-blue-300));
            color: var(--color-brand-blue);
        }

        .feature-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--dark-blue);
            margin-bottom: 0.75rem;
        }

        .feature-description {
            color: var(--text-muted);
            font-size: 1rem;
            line-height: 1.7;
        }

        .feature-description a {
            color: var(--primary-orange);
            font-weight: 700;
            text-decoration: none;
        }

        .feature-description a:hover {
            text-decoration: underline;
        }

        /* Notebooks Section */
        .notebooks {
            padding: 6rem 2rem;
            background: linear-gradient(180deg, var(--color-slate-50) 0%, var(--color-blue-50) 100%);
            position: relative;
            overflow: hidden;
        }

        .notebooks-container {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

        .notebooks-visual {
            position: relative;
        }

        .notebook-preview {
            position: relative;
            z-index: 2;
        }

        .notebook-card {
            background: var(--color-surface);
            border-radius: var(--border-radius-lg);
            padding: 0;
            box-shadow: var(--shadow-lg);
            position: relative;
            transition: transform 0.4s ease;
        }

        .notebook-card:hover {
            transform: translateY(-10px);
        }

        .notebook-main {
            position: relative;
            z-index: 3;
        }

        .notebook-secondary {
            position: absolute;
            top: -20px;
            right: -30px;
            transform: rotate(5deg) scale(0.9);
            z-index: 2;
            opacity: 0.8;
        }

        .notebook-tertiary {
            position: absolute;
            top: -35px;
            right: -50px;
            transform: rotate(10deg) scale(0.8);
            z-index: 1;
            opacity: 0.6;
        }

        .notebook-cover {
            height: 200px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            position: relative;
            overflow: hidden;
        }

        .notebook-cover.gradient-1 {
            background: var(--gradient-1);
        }

        .notebook-cover.gradient-2 {
            background: var(--gradient-2);
        }

        .notebook-cover.gradient-3 {
            background: var(--gradient-3);
        }

        .notebook-cover-icon {
            font-size: 4rem;
            opacity: 0.9;
        }

        .notebook-info h4 {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--dark-blue);
            margin-bottom: 0.5rem;
        }

        .notebook-meta {
            display: flex;
            align-items: center;
            gap: 1rem;
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .notebook-meta span {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .notebooks-content h2 {
            font-size: 3rem;
            font-weight: 700;
            color: var(--dark-blue);
            margin-bottom: 1.5rem;
        }

        .notebooks-content h2 .highlight {
            background: var(--gradient-1);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .notebooks-content h2 .highlight-2 {
            background: var(--gradient-2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .notebooks-content p {
            font-size: 1.15rem;
            color: var(--text-muted);
            margin-bottom: 2rem;
            line-height: 1.8;
        }

        .notebooks-features {
            display: grid;
            gap: 1.25rem;
            margin-bottom: 2rem;
        }

        .notebook-feature {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            padding: 1rem;
            background: var(--color-surface);
            border-radius: 16px;
            box-shadow: var(--shadow-sm);
            transition: all 0.3s ease;
        }

        .notebook-feature:hover {
            transform: translateX(10px);
            box-shadow: var(--shadow-md);
        }

        .notebook-feature-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .notebook-feature-icon.blue {
            background: var(--color-blue-100);
            color: var(--color-brand-blue);
        }

        .notebook-feature-icon.green {
            background: var(--color-green-100);
            color: var(--color-green-500);
        }

        .notebook-feature-icon.purple {
            background: var(--color-orange-50);
            color: var(--color-brand-orange);
        }

        .notebook-feature-icon i {
            font-size: 1.3rem;
        }

        .notebook-feature-text h4 {
            font-size: 1rem;
            font-weight: 700;
            color: var(--dark-blue);
            margin-bottom: 0.25rem;
        }

        .notebook-feature-text p {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin: 0;
        }

        /* Challenges Section */
        /* Challenges CTA Section */
        .challenges-cta {
            padding: 6rem 2rem;
            background: linear-gradient(135deg, var(--color-blue-950) 0%, var(--color-blue-900) 50%, var(--color-purple-900) 100%);
            position: relative;
            overflow: hidden;
        }

        .challenges-cta::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background:
                radial-gradient(circle at 10% 90%, color-mix(in srgb, var(--color-purple-600) 40.000%, transparent) 0%, transparent 40%),
                radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--color-pink-500) 30.000%, transparent) 0%, transparent 40%),
                radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--color-cyan-500) 15.000%, transparent) 0%, transparent 60%);
            pointer-events: none;
        }

        .challenges-cta-container {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .challenges-cta-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }

        .challenges-cta-text {
            color: var(--color-on-dark);
        }

        .challenges-cta-text .section-badge {
            background: linear-gradient(135deg, var(--color-yellow-500), var(--color-yellow-400));
            color: var(--color-text);
        }

        .challenges-cta-title {
            font-family: 'Fredoka', sans-serif;
            font-size: 3rem;
            font-weight: 700;
            color: var(--color-on-dark);
            margin-bottom: 1.5rem;
            line-height: 1.2;
        }

        .challenges-cta-title .highlight {
            background: linear-gradient(135deg, var(--color-yellow-500), var(--color-yellow-400), var(--color-orange-500));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .challenges-cta-description {
            font-size: 1.15rem;
            color: color-mix(in srgb, var(--color-on-dark) 80.000%, transparent);
            line-height: 1.7;
            margin-bottom: 2rem;
        }

        .challenges-cta-stats {
            display: flex;
            gap: 2rem;
            margin-bottom: 2.5rem;
        }

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

        .cta-stat-number {
            font-family: 'Fredoka', sans-serif;
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--color-yellow-400);
            line-height: 1;
        }

        .cta-stat-label {
            font-size: 0.9rem;
            color: color-mix(in srgb, var(--color-on-dark) 70.000%, transparent);
            margin-top: 0.5rem;
        }

        .challenges-cta-btn {
            background: linear-gradient(135deg, var(--color-yellow-500), var(--color-orange-500)) !important;
            color: var(--color-on-dark) !important;
            padding: 1rem 2.5rem !important;
            font-size: 1.1rem !important;
            box-shadow: 0 8px 30px color-mix(in srgb, var(--color-yellow-500) 40.000%, transparent);
        }

        .challenges-cta-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 40px color-mix(in srgb, var(--color-yellow-500) 50.000%, transparent);
        }

        /* Challenge Preview Card */
        .challenges-cta-visual {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .challenge-preview-card {
            background: var(--color-surface);
            border-radius: 24px;
            padding: 2rem;
            width: 100%;
            max-width: 320px;
            box-shadow: 0 20px 60px color-mix(in srgb, var(--color-shadow) 30.000%, transparent);
            transform: rotate(3deg);
            transition: transform 0.4s ease;
        }

        .challenge-preview-card:hover {
            transform: rotate(0deg) scale(1.02);
        }

        .preview-header {
            margin-bottom: 1.5rem;
        }

        .preview-badge {
            background: linear-gradient(135deg, var(--color-yellow-500), var(--color-orange-500));
            color: var(--color-on-dark);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 800;
            letter-spacing: 1px;
        }

        .preview-robot {
            font-size: 5rem;
            text-align: center;
            margin: 1.5rem 0;
            animation: bounce 2s ease-in-out infinite;
        }

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

        .preview-content h4 {
            font-family: 'Fredoka', sans-serif;
            font-size: 1.2rem;
            color: var(--dark-blue);
            text-align: center;
            margin-bottom: 1rem;
        }

        .preview-levels {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .preview-levels .level {
            padding: 0.4rem 0.8rem;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 700;
        }

        .preview-levels .level.easy {
            background: var(--color-green-100);
            color: var(--color-green-800);
        }

        .preview-levels .level.medium {
            background: var(--color-yellow-100);
            color: var(--color-yellow-800);
        }

        .preview-levels .level.hard {
            background: var(--color-red-100);
            color: var(--color-red-800);
        }

        /* Floating Badges */
        .floating-badges {
            position: absolute;
            width: 100%;
            height: 100%;
            pointer-events: none;
        }

        .floating-badge {
            position: absolute;
            background: var(--color-surface);
            padding: 0.5rem 1rem;
            border-radius: 12px;
            font-weight: 700;
            font-size: 0.9rem;
            box-shadow: 0 8px 25px color-mix(in srgb, var(--color-shadow) 15.000%, transparent);
            animation: float 4s ease-in-out infinite;
        }

        .floating-badge.badge-1 {
            top: 10%;
            right: 0;
            background: linear-gradient(135deg, var(--color-green-500), var(--color-green-600));
            color: var(--color-on-dark);
            animation-delay: 0s;
        }

        .floating-badge.badge-2 {
            bottom: 20%;
            left: 0;
            font-size: 1.5rem;
            animation-delay: 1s;
        }

        .floating-badge.badge-3 {
            top: 50%;
            right: -10%;
            background: linear-gradient(135deg, var(--color-brand-orange), var(--color-brand-yellow));
            color: var(--color-on-dark);
            animation-delay: 2s;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-15px) rotate(3deg); }
        }

        /* Responsive */
        @media (max-width: 900px) {
            .challenges-cta-content {
                grid-template-columns: 1fr;
                gap: 3rem;
                text-align: center;
            }

            .challenges-cta-title {
                font-size: 2.25rem;
            }

            .challenges-cta-stats {
                justify-content: center;
            }

            .challenges-cta-visual {
                order: -1;
            }

            .challenge-preview-card {
                transform: rotate(0deg);
            }

            .floating-badges {
                display: none;
            }
        }

        /* Discover Section */
        .discover {
            padding: 6rem 2rem;
            background: var(--color-surface);
        }

        .discover-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .discover-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 3rem;
        }

        .discover-tabs {
            display: flex;
            gap: 0.5rem;
            background: var(--light-bg);
            padding: 0.5rem;
            border-radius: 50px;
        }

        .discover-tab {
            padding: 0.75rem 1.5rem;
            border-radius: 50px;
            border: none;
            background: transparent;
            font-family: 'Quicksand', sans-serif;
            font-weight: 600;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .discover-tab.active {
            background: var(--color-surface);
            color: var(--primary-purple);
            box-shadow: var(--shadow-sm);
        }

        .discover-tab:hover:not(.active) {
            color: var(--text-dark);
        }

        .discover-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1.5rem;
        }

        .project-card {
            background: var(--light-bg);
            border-radius: var(--border-radius);
            overflow: hidden;
            transition: all 0.4s ease;
            cursor: pointer;
        }

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

        .project-thumbnail {
            height: 180px;
            position: relative;
            overflow: hidden;
        }

        .project-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

        .project-card:hover .project-thumbnail img {
            transform: scale(1.1);
        }

        .project-thumbnail-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 4rem;
        }

        .project-thumbnail-placeholder.bg-1 {
            background: var(--gradient-1);
        }

        .project-thumbnail-placeholder.bg-2 {
            background: var(--gradient-2);
        }

        .project-thumbnail-placeholder.bg-3 {
            background: var(--gradient-3);
        }

        .project-thumbnail-placeholder.bg-4 {
            background: linear-gradient(135deg, var(--color-green-500), var(--color-cyan-500));
        }

        .project-play {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0);
            width: 60px;
            height: 60px;
            background: var(--color-surface);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: var(--primary-purple);
            box-shadow: var(--shadow-lg);
            transition: transform 0.3s ease;
        }

        .project-card:hover .project-play {
            transform: translate(-50%, -50%) scale(1);
        }

        .project-info {
            padding: 1.25rem;
        }

        .project-info h4 {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--dark-blue);
            margin-bottom: 0.5rem;
        }

        .project-author {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
        }

        .project-author-avatar {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--gradient-1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            position: relative;
        }

        .project-author-name {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .project-stats {
            display: flex;
            gap: 1rem;
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .project-stats span {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        /* Testimonials */
        .testimonials {
            padding: 6rem 2rem;
            background: linear-gradient(180deg, var(--color-slate-50) 0%, var(--color-blue-50) 100%);
        }

        .testimonials-container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
        }

        .testimonial-card {
            background: var(--color-surface);
            border-radius: var(--border-radius);
            padding: 2rem;
            box-shadow: var(--shadow-md);
            position: relative;
            transition: all 0.4s ease;
        }

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

        .testimonial-stars {
            display: flex;
            gap: 2px;
            margin-bottom: 1rem;
        }

        .testimonial-stars i {
            color: var(--color-yellow-400);
            font-size: 0.9rem;
        }

        .testimonial-quote {
            position: absolute;
            top: 1.5rem;
            right: 1.5rem;
            font-size: 3rem;
            color: var(--primary-purple);
            opacity: 0.2;
            font-family: Georgia, serif;
        }

        .testimonial-content {
            font-size: 1rem;
            color: var(--text-muted);
            line-height: 1.8;
            margin-bottom: 1.5rem;
            font-style: italic;
        }

        .testimonial-author {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .testimonial-avatar {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
        }

        .testimonial-avatar.bg-1 {
            background: linear-gradient(135deg, var(--color-blue-100), var(--color-blue-200));
        }

        .testimonial-avatar.bg-2 {
            background: linear-gradient(135deg, var(--color-orange-100), var(--color-orange-200));
        }

        .testimonial-avatar.bg-3 {
            background: linear-gradient(135deg, var(--color-green-100), var(--color-green-200));
        }

        .testimonial-info h4 {
            font-size: 1rem;
            font-weight: 700;
            color: var(--dark-blue);
            margin-bottom: 0.25rem;
        }

        .testimonial-info p {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        /* CTA Section */
        .cta {
            padding: 6rem 2rem;
            background: var(--gradient-1);
            position: relative;
            overflow: hidden;
        }

        .cta::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background:
                radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--color-surface) 15.000%, transparent) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, color-mix(in srgb, var(--color-surface) 10.000%, transparent) 0%, transparent 50%);
            pointer-events: none;
        }

        .cta-container {
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
            position: relative;
            z-index: 1;
        }

        .cta-title {
            font-size: 3.5rem;
            font-weight: 700;
            color: var(--color-on-dark);
            margin-bottom: 1.5rem;
        }

        .cta-description {
            font-size: 1.25rem;
            color: color-mix(in srgb, var(--color-on-dark) 90.000%, transparent);
            margin-bottom: 2.5rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .cta-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn-white {
            background: var(--color-surface);
            color: var(--color-brand-orange);
            box-shadow: var(--shadow-lg);
            font-weight: 800;
        }

        .btn-white:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px color-mix(in srgb, var(--color-shadow) 20.000%, transparent);
        }

        .btn-outline-white {
            background: transparent;
            color: var(--color-on-dark);
            border: 2px solid color-mix(in srgb, var(--color-surface) 50.000%, transparent);
        }

        .btn-outline-white:hover {
            background: color-mix(in srgb, var(--color-surface) 10.000%, transparent);
            border-color: var(--color-surface);
        }

        .cta-note {
            margin-top: 2rem;
            font-size: 0.9rem;
            color: color-mix(in srgb, var(--color-on-dark) 70.000%, transparent);
        }

        .cta-trust-badges {
            display: flex;
            gap: 2rem;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 2rem;
        }

        .cta-trust-badges span {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.9rem;
            color: color-mix(in srgb, var(--color-on-dark) 80.000%, transparent);
            font-weight: 600;
        }

        .cta-trust-badges i {
            color: var(--color-green-500);
        }

        /* ═══ Games Showcase Section ═══ */
        .games-showcase {
            padding: 6rem 2rem;
            background: linear-gradient(135deg, var(--color-text) 0%, var(--color-action) 40%, var(--color-text) 100%);
            position: relative;
            overflow: hidden;
        }

        .games-showcase-bg {
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--color-brand-orange) 15.000%, transparent) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--color-brand-yellow) 12.000%, transparent) 0%, transparent 40%),
                radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--color-brand-blue) 8.000%, transparent) 0%, transparent 60%);
            pointer-events: none;
        }

        .games-badge {
            background: linear-gradient(135deg, var(--color-green-500), var(--color-green-500)) !important;
            color: var(--color-text) !important;
        }

        .games-scroll-wrapper {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
            margin: 0 -1rem;
            padding: 0 1rem;
        }

        .games-scroll-wrapper::-webkit-scrollbar {
            display: none;
        }

        .games-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 1.25rem;
        }

        .game-card {
            background: color-mix(in srgb, var(--color-surface) 6.000%, transparent);
            border: 1px solid color-mix(in srgb, var(--color-surface) 8.000%, transparent);
            border-radius: 20px;
            padding: 1.75rem 1.5rem;
            text-align: center;
            text-decoration: none;
            color: var(--color-on-dark);
            position: relative;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .game-card-glow {
            position: absolute;
            inset: 0;
            opacity: 0;
            transition: opacity 0.4s ease;
        }

        .game-card:hover {
            transform: translateY(-8px);
            border-color: color-mix(in srgb, var(--color-surface) 20.000%, transparent);
            background: color-mix(in srgb, var(--color-surface) 10.000%, transparent);
        }

        .game-card:hover .game-card-glow {
            opacity: 1;
        }

        .game-card:hover .game-card-play {
            opacity: 1;
            transform: scale(1);
        }

        .game-card-icon {
            width: 56px;
            height: 56px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.4rem;
            color: var(--color-on-dark);
            margin-bottom: 1rem;
            position: relative;
            z-index: 1;
        }

        .game-card-title {
            font-family: 'Fredoka', sans-serif;
            font-size: 1.05rem;
            font-weight: 700;
            margin-bottom: 0.4rem;
            position: relative;
            z-index: 1;
        }

        .game-card-desc {
            font-size: 0.8rem;
            color: color-mix(in srgb, var(--color-on-dark) 60.000%, transparent);
            line-height: 1.4;
            margin-bottom: 0.75rem;
            position: relative;
            z-index: 1;
        }

        .game-card-tags {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            justify-content: center;
            position: relative;
            z-index: 1;
        }

        .game-card-tags span {
            background: color-mix(in srgb, var(--color-surface) 10.000%, transparent);
            color: color-mix(in srgb, var(--color-on-dark) 80.000%, transparent);
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.7rem;
            font-weight: 600;
        }

        .game-card-play {
            position: absolute;
            top: 12px;
            right: 12px;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: color-mix(in srgb, var(--color-surface) 15.000%, transparent);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            color: var(--color-on-dark);
            opacity: 0;
            transform: scale(0.8);
            transition: all 0.3s ease;
            z-index: 1;
        }

        /* Footer */
        /* Footer styles moved to footer.blade.php component */

        /* ═══ Responsive ═══ */
        @media (max-width: 1200px) {
            .hero-container {
                grid-template-columns: 1fr;
                text-align: center;
            }

            .hero-content {
                order: 1;
            }

            .hero-visual {
                display: none;
            }

            .hero-description {
                margin: 0 auto 2rem;
            }

            .hero-buttons {
                justify-content: center;
            }

            .hero-stats {
                justify-content: center;
            }

            .notebooks-container {
                grid-template-columns: 1fr;
            }

            .notebooks-visual {
                order: 1;
            }

            .notebooks-content {
                order: 2;
                text-align: center;
            }

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

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

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

            .games-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        /* Tablet Navigation (768px - 1100px): compact desktop nav */
        @media (max-width: 1100px) and (min-width: 768px) {
            .navbar {
                padding: 0.35rem 0.75rem;
            }

            .nav-container {
                gap: 0.75rem;
            }

            .logo-icon {
                width: 30px;
                height: 30px;
                border-radius: 50%;
            }

            .logo-text {
                font-size: 1.15rem;
            }

            .nav-links {
                gap: 0.1rem;
            }

            .nav-links a {
                font-size: 0.78rem;
                padding: 5px 5px;
            }

            .nav-link-icon {
                display: none;
            }

            .nav-actions {
                gap: 0.35rem;
            }

            .nav-actions .btn {
                padding: 6px 10px;
                font-size: 0.78rem;
            }

            .nav-actions .btn span {
                display: none;
            }

            .user-avatar-btn {
                width: 36px;
                height: 36px;
            }

            .mobile-menu-btn {
                display: none;
            }

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

        /* Small tablet / large phone landscape (600px - 767px): compact nav */
        @media (max-width: 767px) and (min-width: 600px) {
            .navbar {
                padding: 0.3rem 0.5rem;
            }

            .nav-container {
                gap: 0.5rem;
            }

            .logo-icon {
                width: 28px;
                height: 28px;
                border-radius: 50%;
            }

            .logo-text {
                font-size: 1rem;
            }

            .logo {
                gap: 0.3rem;
            }

            .nav-links {
                gap: 0;
            }

            .nav-links a {
                font-size: 0.72rem;
                padding: 4px 3px;
            }

            .nav-actions {
                gap: 0.2rem;
            }

            .nav-actions .btn {
                padding: 5px 6px;
                font-size: 0.72rem;
            }

            .nav-actions .btn span {
                display: none;
            }

            .user-avatar-btn {
                width: 34px;
                height: 34px;
            }

            .user-avatar-btn span {
                font-size: 0.8rem !important;
            }

            .mobile-menu-btn {
                display: none;
            }

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

        /* Mobile Navigation (below 600px): hamburger menu */
        @media (max-width: 599px) {
            .navbar {
                padding: 0.4rem 0.75rem;
            }

            .nav-links {
                display: none;
            }

            .nav-actions {
                display: none;
            }

            /* Logueados: mostrar avatar en mobile */
            body.has-sb .nav-actions {
                display: flex;
            }

            .nav-link-icon {
                display: none;
            }

            .mobile-menu-btn {
                display: block;
            }

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

        @media (max-width: 768px) {
            .hero {
                padding: 5.5rem 1.25rem 2.5rem;
                min-height: auto;
            }

            .hero-container {
                gap: 0;
            }

            .hero-title {
                font-size: clamp(1.8rem, 7vw, 2.4rem);
                line-height: 1.15;
            }

            .hero-badge {
                font-size: 0.75rem;
                padding: 0.4rem 0.8rem;
                margin-bottom: 1rem;
            }

            .hero-description {
                font-size: 0.95rem;
                line-height: 1.6;
                margin-bottom: 1.5rem;
            }

            .hero-buttons {
                flex-direction: column;
                gap: 10px;
                align-items: center;
            }

            .hero-buttons .btn {
                width: 100%;
                max-width: 320px;
                justify-content: center;
                padding: 14px 20px;
                font-size: 1rem;
                min-height: 50px;
            }

            .hero-mockup {
                transform: none;
            }

            .mockup-content {
                grid-template-columns: 1fr;
                min-height: 200px;
            }

            .blocks-panel {
                display: none;
            }

            .hero-stats {
                gap: 1.5rem;
                margin-top: 1.5rem;
            }

            .stat-number {
                font-size: 1.5rem;
            }

            .stat-label {
                font-size: 0.75rem;
            }

            .section-title {
                font-size: clamp(1.6rem, 5vw, 2rem);
            }

            .section-subtitle {
                font-size: 1rem;
            }

            .features {
                padding: 4rem 1rem;
            }

            .features-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
            }

            .feature-card {
                padding: 1.5rem 1rem;
            }

            .feature-icon {
                width: 60px;
                height: 60px;
                font-size: 2rem;
                margin-bottom: 1rem;
            }

            .feature-title {
                font-size: 1.1rem;
            }

            .feature-description {
                font-size: 0.85rem;
            }

            .notebooks {
                padding: 4rem 1rem;
            }

            .notebooks-content h2 {
                font-size: clamp(1.8rem, 5vw, 2.5rem);
            }

            .challenges-cta {
                padding: 4rem 1rem;
            }

            /* Games - horizontal scroll on mobile */
            .games-showcase {
                padding: 4rem 1rem;
            }

            .games-scroll-wrapper {
                margin: 0 -1rem;
                padding: 0 1rem 1rem;
            }

            .games-grid {
                grid-template-columns: repeat(10, 160px);
                gap: 1rem;
                width: max-content;
            }

            .game-card {
                padding: 1.25rem 1rem;
            }

            .game-card-icon {
                width: 48px;
                height: 48px;
                font-size: 1.2rem;
            }

            .game-card-title {
                font-size: 0.9rem;
            }

            .game-card-desc {
                font-size: 0.72rem;
            }

            .game-card-play {
                opacity: 1;
                transform: scale(1);
            }

            .discover-header {
                flex-direction: column;
                gap: 1.5rem;
            }

            .discover-tabs {
                width: 100%;
                overflow-x: auto;
                white-space: nowrap;
                justify-content: flex-start;
                -webkit-overflow-scrolling: touch;
                -ms-overflow-style: none;
                scrollbar-width: none;
                padding-bottom: 5px;
            }

            .discover-tabs::-webkit-scrollbar {
                display: none;
            }

            .discover {
                padding: 4rem 1rem;
            }

            .discover-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
            }

            .project-thumbnail {
                height: 130px;
            }

            .project-info {
                padding: 0.75rem;
            }

            .project-info h4 {
                font-size: 0.9rem;
            }

            .project-author-name,
            .project-stats span {
                font-size: 0.75rem;
            }

            .testimonials {
                padding: 4rem 1rem;
            }

            .testimonials-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .testimonial-card {
                padding: 1.5rem;
            }

            .cta {
                padding: 4rem 1.5rem;
            }

            .cta-title {
                font-size: clamp(1.6rem, 6vw, 2.2rem);
            }

            .cta-description {
                font-size: 1rem;
            }

            .cta-buttons {
                flex-direction: column;
                align-items: center;
            }

            .cta-trust-badges {
                gap: 1rem;
                flex-direction: column;
                align-items: center;
            }

            .cta-trust-badges span {
                font-size: 0.8rem;
            }

            /* General mobile button improvements */
            .btn-large {
                padding: 0.9rem 2rem;
                font-size: 1rem;
            }

            .section-header {
                margin-bottom: 2.5rem;
            }
        }

        @media (max-width: 480px) {
            .hero {
                padding: 5rem 1rem 2rem;
            }

            .hero-title {
                font-size: clamp(1.5rem, 8vw, 1.9rem);
            }

            .hero-description {
                font-size: 0.88rem;
            }

            .hero-badge {
                font-size: 0.7rem;
                padding: 0.35rem 0.7rem;
            }

            .hero-buttons .btn {
                max-width: 100%;
                font-size: 0.95rem;
                padding: 13px 16px;
            }

            .hero-stats {
                gap: 1rem;
            }

            .stat-number {
                font-size: 1.3rem;
            }

            .stat-label {
                font-size: 0.7rem;
            }

            .hero-mockup {
                padding: 1rem;
                border-radius: 20px;
            }

            .code-area {
                padding: 1rem;
            }

            .code-block {
                font-size: 0.75rem;
                padding: 0.5rem 0.75rem;
            }

            .floating-elements {
                display: none;
            }

            .features-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.75rem;
            }

            .feature-card {
                padding: 1.25rem 0.75rem;
            }

            .notebook-preview {
                transform: scale(0.85);
            }

            .games-grid {
                grid-template-columns: repeat(10, 145px);
            }

            .discover-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.75rem;
            }

            .project-thumbnail {
                height: 100px;
            }
        }

        /* Mobile Menu - styles are in header component */

        /* ═══ 8" Tablet (1280x800 landscape) - touch targets & spacing ═══ */
        @media (min-width: 1200px) and (max-height: 850px) {
            .navbar {
                padding: 0.4rem 1.5rem;
            }

            .hero {
                min-height: auto;
                padding: 4.5rem 2rem 2rem;
            }

            .hero-title {
                font-size: clamp(2rem, 4vw, 2.8rem);
            }

            .features,
            .discover,
            .notebooks,
            .testimonials,
            .cta,
            .challenges-cta,
            .games-showcase {
                padding: 2.5rem 2rem;
            }

            .section-header {
                margin-bottom: 1.5rem;
            }

            .dropdown-item {
                padding: 0.85rem 1rem;
                min-height: 44px;
            }

        }

        /* ═══ Tablet touch targets (all tablets 768px+) ═══ */
        @media (min-width: 768px) and (max-width: 1400px) and (pointer: coarse) {
            .nav-links a {
                min-height: 44px;
                display: inline-flex;
                align-items: center;
            }

            .nav-clases-btn,
            .nav-games-btn {
                min-height: 44px !important;
            }

            .user-avatar-btn {
                width: 40px;
                height: 40px;
            }

            .btn {
                min-height: 44px;
            }

            .dropdown-item {
                min-height: 44px;
            }
        }

        /* ═══ Tablet Landscape (1024px-1200px width) ═══ */
        @media (min-width: 993px) and (max-width: 1200px) {
            .navbar {
                padding: 0.4rem 1rem;
            }

            .nav-container {
                gap: 1rem;
            }

            .nav-links {
                gap: 0.15rem;
            }

            .nav-links a {
                font-size: 0.84rem;
                padding: 5px 6px;
            }

            .nav-actions {
                gap: 0.5rem;
            }

            .nav-actions .btn {
                padding: 6px 12px;
                font-size: 0.82rem;
            }

            .logo-icon {
                width: 34px;
                height: 34px;
            }

            .logo-text {
                font-size: 1.3rem;
            }
        }

        /* Short viewport (landscape tablets ~768-850px height) */
        @media (max-height: 850px) and (min-width: 768px) {
            .hero {
                min-height: auto;
                padding: 6rem 2rem 2.5rem;
            }

            .hero-title {
                font-size: clamp(2rem, 4vw, 2.8rem);
            }

            .hero-description {
                font-size: 1rem;
                margin-bottom: 1.5rem;
            }

            .hero-stats {
                gap: 1.5rem;
                margin-top: 1.5rem;
            }

            .stat-number {
                font-size: 1.8rem;
            }

            .features {
                padding: 3rem 2rem;
            }

            .section-header {
                margin-bottom: 2rem;
            }

            .discover {
                padding: 3rem 2rem;
            }

            .notebooks {
                padding: 3rem 2rem;
            }

            .testimonials {
                padding: 3rem 2rem;
            }

            .cta {
                padding: 3rem 2rem;
            }

            .challenges-cta {
                padding: 3rem 2rem;
            }

            .games-showcase {
                padding: 3rem 2rem;
            }
        }

        /* Very short viewport (landscape phones or small tablets) */
        @media (max-height: 600px) and (min-width: 768px) {
            .hero {
                padding: 5rem 2rem 1.5rem;
            }

            .hero-mockup {
                display: none;
            }

            .features-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 0.75rem;
            }

            .feature-card {
                padding: 1.25rem 1rem;
            }

            .feature-icon {
                width: 50px;
                height: 50px;
                font-size: 1.5rem;
            }
        }

        /* Animations on scroll */
        .animate-on-scroll {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease-out;
        }

        .animate-on-scroll.animated {
            opacity: 1;
            transform: translateY(0);
        }

        /* TiniBot bounce animation (global) */
        @keyframes tb-robot-bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-12px); }
        }

