﻿/* DISSIPL Design System */

/* Variables */
:root {
    /* Premium Palette - 2026 Luxury EdTech */
    --color-primary: #D32F2F;          /* Corporate Red - CTAs & Highlights */
    --color-primary-dark: #B71C1C;     /* Darker red for hover states */
    --color-primary-light: #EF5350;    /* Light red for accents */
    --color-primary-glow: rgba(211, 47, 47, 0.4); /* Glow effect */
    --color-cream: #FFF8F0;            /* Warm cream base */
    --color-soft-gray: #F5F5F7;        /* Soft gray surface */
    --color-warm-white: #FAFAFA;       /* Warm white */
    --color-background: linear-gradient(135deg, #FFF8F0 0%, #F0F4FF 50%, #FFF0F5 100%);
    --color-surface: rgba(255, 255, 255, 0.7);
    --color-text-primary: #1f1f3d;
    --color-text-secondary: #4A5568;
    --color-text-light: #718096;
    --color-border: rgba(255, 255, 255, 0.3);
    --color-shadow: rgba(211, 47, 47, 0.15);
    --color-success: #4CAF50;
    --color-warning: #FFA726;
    
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-bg-strong: rgba(255, 255, 255, 0.35);
    --glass-bg-premium: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    --glass-blur: blur(15px);
    --glass-blur-strong: blur(20px);
    --glass-blur-premium: blur(25px);
    --glass-shadow: 0 25px 50px -12px rgba(211, 47, 47, 0.1);
    --glass-shadow-hover: 0 30px 60px -12px rgba(211, 47, 47, 0.2);
    --glass-shadow-inner: inset 0 1px 1px rgba(255, 255, 255, 0.5);
    
    --shadow-deep: rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 40px rgba(211, 47, 47, 0.15);
    --shadow-glow-hover: 0 0 60px rgba(211, 47, 47, 0.25);
    
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --font-primary: 'Fredoka', sans-serif;
    --font-secondary: 'Nunito', sans-serif;
    --color-text-dark: #1f1f3d;
    
    --fs-xs: 0.667rem;
    --fs-sm: 0.833rem;
    --fs-base: 1rem;
    --fs-lg: 1.2rem;
    --fs-xl: 1.44rem;
    --fs-2xl: 1.728rem;
    --fs-3xl: 2.074rem;
    --fs-4xl: 2.488rem;
    --fs-5xl: 2.986rem;
    
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;
    
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.2);
    
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; 
    scroll-padding-top: 120px; 
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background: linear-gradient(135deg, #FFF8F0 0%, #F0F4FF 50%, #FFF0F5 100%);
    background-attachment: fixed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography Hierarchy - ClassDojo Style */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    line-height: 1.15;
    color: var(--color-text-dark);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--fs-4xl);
    font-weight: 700;
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--fs-3xl);
    font-weight: 600;
}

h4 {
    font-size: var(--fs-2xl);
    font-weight: 600;
}

h5 {
    font-size: var(--fs-xl);
    font-weight: 600;
}

h6 {
    font-size: var(--fs-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

body, p, li, input, textarea, select {
    font-family: var(--font-body);
}

p {
    font-size: var(--fs-base);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

small {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
}

/* Links */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Header & Navigation */
header.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: 15px 20px 0;
}

.header-pill-container {
    max-width: 1200px;
    height: 70px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
}

.nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    color: var(--color-text-dark);
    text-decoration: none;
    padding: 25px 0;
    position: relative;
}

.nav-link.active {
    color: var(--color-primary);
}

.nav-caret {
    font-size: 0.7rem;
    margin-left: 4px;
}

.nav-item-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-item-dropdown .dropdown-menu {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #FFFFFF;
    border: none;
    border-radius: 20px;
    padding: 12px;
    width: 240px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    list-style: none;
    margin: 0;
    z-index: var(--z-dropdown);
}

/* Bridge gap between trigger and dropdown */
.nav-item-dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-item-dropdown .dropdown-menu li {
    margin: 0;
}

.nav-item-dropdown .dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--color-text-dark);
    text-decoration: none;
}

.nav-item-dropdown .dropdown-menu a:hover {
    background: rgba(211, 47, 47, 0.08);
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-actions .btn {
    padding: 8px 22px;
    font-size: 14px;
    border-radius: 50px;
}

.header-actions .btn-primary {
    background: var(--color-primary);
    box-shadow: none;
}

.header-actions .btn-primary::before,
.header-actions .btn-primary::after {
    display: none;
}

.header-actions .btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--color-primary-glow);
}

.header-faq-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text-dark);
    text-decoration: none;
    padding: 8px 12px;
    transition: color 0.3s ease;
}

.header-faq-link:hover {
    color: var(--color-primary);
}

/* Fix: le bouton "Mon Profil" a class="nav-link" pour le JS,
   mais on ne veut PAS le style .nav-link (padding 25px 0) dans header-actions */
.header-actions a.nav-link.btn {
  padding: 8px 22px;      /* même style que .header-actions .btn */
  text-decoration: none;
}

.header-actions a.nav-link.btn:hover {
  text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid #FAD1D1;
    padding: 10px 24px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--color-primary);
}

/* Mega-Menu System */
.mega-dropdown {
    position: relative;
}

.mega-dropdown > .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-chevron {
    transition: transform 0.3s ease;
    margin-left: 2px;
    opacity: 0.6;
}

.mega-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.mega-menu-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    
    /* THE BRIDGE - Invisible padding catches mouse movement */
    padding-top: 18px;
    margin-top: 0 !important;
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: var(--z-dropdown);
}

.mega-dropdown:hover .mega-menu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Arrow tip for mega-menu */
.mega-menu-panel::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid rgba(255, 255, 255, 0.92);
    z-index: 2;
    filter: drop-shadow(0 -2px 6px rgba(0,0,0,0.10));
}

.mega-menu-inner {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 12px;
    min-width: 340px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Floating Card Link */
.mega-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 14px;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mega-card:hover {
    background: rgba(211, 47, 47, 0.06);
    transform: translateX(4px);
    text-decoration: none !important;
}

.mega-card:hover .mega-card-icon {
    transform: scale(1.12) rotate(-4deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

/* 3D/Clay Icon in Mega Menu */
.mega-card-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

/* Clay/gloss highlight on icons */
.mega-card-icon::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    right: 6px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0) 100%);
    border-radius: 10px 10px 50% 50%;
    pointer-events: none;
}

.mega-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--color-text-dark);
    line-height: 1.3;
}

.mega-card-desc {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

/* Mobile Mega Menu */
@media (max-width: 991px) {
    .mega-menu-panel {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        padding-top: 0;
        display: none;
    }
    
    .mega-dropdown:hover .mega-menu-panel,
    .mega-dropdown.show .mega-menu-panel {
        display: block;
    }
    
    .mega-menu-inner {
        min-width: unset;
        border-radius: 14px;
        margin-top: 8px;
        background: rgba(255, 255, 255, 0.8);
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 48px 60px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 30%, rgba(211, 47, 47, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(33, 150, 243, 0.10) 0%, transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(244, 143, 177, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.hero-bg-blob {
    position: absolute;
    top: 10%;
    left: -8%;
    width: 550px;
    height: 550px;
    background: radial-gradient(ellipse at center, rgba(255, 193, 7, 0.18) 0%, rgba(255, 152, 0, 0.10) 40%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(60px);
    pointer-events: none;
    opacity: 0.7;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 56px;
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1 1 50%;
    min-width: 0;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.18;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.welcome-text {
    color: var(--color-text-dark);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-video {
    flex: 1 1 50%;
    min-width: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.hero-video video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    object-fit: cover;
}

/* Tablet Hero */
@media (max-width: 991px) {
    .hero-section {
        padding: 100px 32px 48px;
    }
    .hero-content {
        gap: 36px;
    }
    .hero-text h1 {
        font-size: clamp(1.8rem, 4vw, 2.4rem);
    }
}

/* Mobile Hero */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding: 100px 20px 40px;
    }
    .hero-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    .hero-text, .hero-video {
        flex: 1 1 100%;
        width: 100%;
    }
    .hero-text h1 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }
    .hero-text p {
        font-size: 1rem;
        line-height: 1.7;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 24px;
    }
    .hero-text .btn {
        display: inline-block;
    }
    .hero-video {
        border-radius: 14px;
        max-width: 560px;
        margin: 0 auto;
    }
    .hero-video video {
        border-radius: 14px;
    }
    .hero-bg-blob {
        width: 250px;
        height: 250px;
        top: 5%;
        left: -15%;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 100svh;
        padding: 90px 16px 32px;
    }
    .hero-content {
        gap: 24px;
    }
    .hero-text h1 {
        font-size: 1.4rem;
    }
    .hero-text p {
        font-size: 0.92rem;
        line-height: 1.65;
    }
    .hero-text .btn {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
    }
    .hero-video {
        border-radius: 12px;
    }
    .hero-video video {
        border-radius: 12px;
    }
}

/* Card System */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    padding: var(--space-2xl) 0;
    max-width: 900px;
    margin: 0 auto;
}

.card {
    background: #FFFFFF;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 1.5rem 1.2rem 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(33, 150, 243, 0.3);
}

/* Circular Icon Container */
.circle-icon {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.card:hover .circle-icon {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Card Body Center */
.card-body-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

/* Card Title */
.card-title-center {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* Blue Arrow */
.card-arrow {
    transition: all 0.3s ease;
    opacity: 0.7;
}

.card:hover .card-arrow {
    transform: translateX(5px);
    opacity: 1;
}

/* Remove old card styles */
.card::before,
.card::after {
    display: none;
}

.card:hover::after {
    opacity: 1;
}

/* Button System */
.btn {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-base);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--color-primary-glow), var(--glass-shadow-inner);
    background-size: 200% 200%;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 30px var(--color-primary-glow), var(--shadow-glow-hover);
}

.btn-primary.magnetic {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-dark);
}

.btn-block {
    display: flex;
    width: 100%;
    justify-content: center;
}

/* Layout & Containers */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

main {
    min-height: calc(100vh - 200px);
    padding-top: 0;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

/* Content Columns */
.column-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.column-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

/* Image Container */
.image-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.image-container:hover img {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: white;
    padding: var(--space-3xl) var(--space-lg);
    margin-top: var(--space-3xl);
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--fs-sm);
    margin-bottom: var(--space-md);
}

footer a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

footer a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

footer .footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

footer .footer-links a {
    font-size: var(--fs-sm);
    transition: all var(--transition-fast);
    display: block;
    margin-bottom: var(--space-sm);
}

footer .footer-links a:hover {
    transform: translateX(5px);
    color: white;
}

/* Responsive Design */

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--color-text-dark);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.mobile-menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile-only actions (hidden by default on desktop) */
.mobile-nav-actions {
    display: none;
}

/* Prevent scroll when mobile menu is open */
body.mobile-menu-active {
    overflow: hidden;
}



/* Large Screens (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Desktop (1024px–1399px) */
@media (min-width: 1024px) {
    .column-images {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .column-images .image-container {
        aspect-ratio: 1/1;
    }
}

/* Below 1200px */
@media (max-width: 1199px) {
    .nav-list {
        gap: 14px;
    }
    .nav-link {
        font-size: 13px;
    }
    .header-actions .btn {
        padding: 7px 16px;
        font-size: 13px;
    }
}

/* Tablet & Mobile Header (≤991px) */
@media (max-width: 991px) {
    /* Show hamburger, hide desktop actions */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-actions {
        display: none !important;
    }

    .header-pill-container {
        height: 60px;
        padding: 0 20px;
    }

    /* Mobile Nav Panel */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        height: 100dvh;
        background: #FFFFFF;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        flex-direction: column;
        justify-content: flex-start;
        padding: 90px 24px 40px;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav.mobile-open {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-list > li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-link {
        display: block;
        padding: 16px 0;
        font-size: 16px;
    }

    /* Mobile dropdown submenus */
    .nav-item-dropdown {
        flex-direction: column;
        align-items: stretch;
        height: auto;
    }

    .nav-item-dropdown .dropdown-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: hidden;
        pointer-events: none;
        max-height: 0;
        overflow: hidden;
        box-shadow: none;
        border-radius: 12px;
        padding: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.03);
        transition: max-height 0.35s ease, padding 0.35s ease, visibility 0s linear 0.35s;
    }

    .nav-item-dropdown.sub-open .dropdown-menu {
        visibility: visible;
        pointer-events: auto;
        max-height: 400px;
        padding: 8px 0;
        transition: max-height 0.35s ease, padding 0.35s ease, visibility 0s linear 0s;
    }

    .nav-item-dropdown .dropdown-menu a {
        padding: 12px 20px;
        font-size: 15px;
    }

    .nav-caret {
        float: right;
        transition: transform 0.3s ease;
    }

    .nav-item-dropdown.sub-open .nav-caret {
        transform: rotate(180deg);
    }

    /* Show mobile action buttons */
    .mobile-nav-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .mobile-nav-actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
        border-radius: 12px;
    }

    .mobile-nav-actions .header-faq-link {
        text-align: center;
        padding: 12px;
        font-size: 15px;
    }

    /* Backdrop overlay */
    .main-nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: -100vw;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        transition: opacity 0.35s ease;
        pointer-events: none;
        z-index: -1;
    }

    .main-nav.mobile-open::before {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Tablet (768px–991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        padding: 0 var(--space-xl);
    }

    main {
        padding: var(--space-2xl) 0;
    }
    
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        justify-content: center;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (≤767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 var(--space-md);
    }

    main {
        padding: var(--space-lg) 0;
    }

    h1 {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }

    h2 {
        font-size: var(--fs-2xl);
    }

    h3 {
        font-size: var(--fs-xl);
    }

    /* Card grid: 2 columns on mobile */
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        max-width: 100%;
    }

    .circle-icon {
        width: 72px;
        height: 72px;
    }

    .circle-icon svg {
        width: 60px !important;
        height: 60px !important;
    }

    .card {
        padding: 1rem 0.8rem;
    }

    .card-title-center {
        font-size: 0.85rem;
    }

    /* Contact grid */
    .contact-grid {
        padding: 0 16px;
    }
    
    .contact-info-card {
        padding: 32px 24px;
        max-width: none;
    }
    
    .contact-info-card .contact-icon {
        width: 64px;
        height: 64px;
        line-height: 64px;
        font-size: 2.2rem;
    }

    /* Tools grid */
    .tools-grid {
        grid-template-columns: 1fr;
    }

    /* Hero features: Stack image & text */
    .row.align-items-center {
        flex-direction: column;
    }
    
    .col-md-6 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .col-md-6.ps-md-4 {
        padding-left: 0;
        margin-top: var(--space-lg);
        text-align: center;
    }

    .col-md-6.ps-md-4 .btn {
        display: inline-block;
        margin: 0 auto;
    }

    .image-container {
        aspect-ratio: 16/10;
    }
}

/* Small phones (≤480px) */
@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .circle-icon {
        width: 60px;
        height: 60px;
    }

    .circle-icon svg {
        width: 48px !important;
        height: 48px !important;
    }

    .card {
        padding: 0.8rem 0.5rem;
        border-radius: 10px;
    }

    .card-title-center {
        font-size: 0.78rem;
    }

    .card-arrow {
        width: 18px;
        height: 18px;
    }

    .content-card {
        padding: 20px 16px;
    }

    .faq-question {
        padding: 16px 16px;
        font-size: 0.95rem;
    }

    .faq-answer-inner {
        padding: 0 16px 20px;
        font-size: 0.92rem;
    }

    .tool-link-card {
        padding: 20px;
        gap: 14px;
    }

    .tool-link-card .tool-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }

    .tool-link-card h3 {
        font-size: var(--fs-lg);
    }

    .coming-soon-card {
        padding: 40px 24px;
    }

    /* Contact extra small */
    .contact-info-card {
        padding: 28px 20px;
    }
    
    .contact-info-card .contact-icon {
        width: 56px;
        height: 56px;
        line-height: 56px;
        font-size: 1.8rem;
    }
    
    .contact-info-card h3 {
        font-size: 1.2rem;
    }
    
    .contact-info-card a {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

/* Bootstrap 5 Polyfills */
.ps-md-4 {
    padding-left: 1.5rem;
}
.me-3 {
    margin-right: 1rem;
}

@media (max-width: 767px) {
    .ps-md-4 {
        padding-left: 0;
    }
    
    /* Stack CTA buttons vertically on mobile */
    section.text-center > div {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    section.text-center > div .me-3 {
        margin-right: 0;
    }
    
    section.text-center > div .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Utility Classes */
.fs-lg {
    font-size: var(--fs-lg);
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.text-secondary {
    color: var(--color-text-secondary);
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Testimonials & Pricing */
.testimonials-section {
    position: relative;
}

/* --- Premium Testimonial Carousel --- */
.testimonial-carousel {
    position: relative;
    max-width: 720px;
    margin: var(--space-xl) auto 0;
    background: var(--glass-bg-premium);
    backdrop-filter: var(--glass-blur-premium);
    -webkit-backdrop-filter: var(--glass-blur-premium);
    border-radius: 28px;
    box-shadow: var(--glass-shadow), var(--glass-shadow-inner);
    border: var(--glass-border);
    padding: 0;
    overflow: visible;
    transition: box-shadow 0.4s ease;
}

.testimonial-carousel:hover {
    box-shadow: var(--glass-shadow-hover), var(--glass-shadow-inner);
}

/* Progress bar */
.carousel-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.06);
    z-index: 5;
    border-radius: 28px 28px 0 0;
    overflow: hidden;
}

.carousel-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
    border-radius: 4px;
    transition: width 0.1s linear;
}

.testimonial-carousel-inner {
    position: relative;
    min-height: 260px;
    padding: 40px 48px 24px;
    overflow: hidden;
    border-radius: 28px;
}

/* Slide transitions */
.testimonial-slide {
    display: none;
    opacity: 0;
    transform: translateY(16px) scale(0.98);
}

.testimonial-slide.active {
    display: block;
    animation: slideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Card inner */
.t-card {
    position: relative;
}

.t-quote-icon {
    font-size: 3.5rem;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.2;
    position: absolute;
    top: -8px;
    left: -4px;
    font-family: Georgia, serif;
    pointer-events: none;
}

.t-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--color-text-secondary);
    margin: 0 0 24px 0;
    padding-left: 4px;
    position: relative;
    z-index: 1;
}

/* Author row */
.t-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.t-avatar {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--avatar-bg, #E3F2FD);
    color: var(--avatar-color, #1565C0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.t-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.t-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-dark);
}

.t-role {
    font-size: 0.82rem;
    color: var(--color-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badges */
.t-badge {
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-heading);
    padding: 5px 12px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

.t-badge-student {
    background: rgba(33, 150, 243, 0.12);
    color: #1565C0;
}

.t-badge-teacher {
    background: rgba(211, 47, 47, 0.1);
    color: var(--color-primary);
}

/* Arrow buttons */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    z-index: 3;
    padding: 0;
}

.carousel-arrow:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 6px 20px var(--color-primary-glow);
    transform: translateY(-50%) scale(1.08);
}

.carousel-prev {
    left: -22px;
}

.carousel-next {
    right: -22px;
}

/* Navigation: counter + dots */
.carousel-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 8px 0 20px;
}

.carousel-counter {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--color-text-light);
    letter-spacing: 1px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: none;
}

.carousel-dot.active {
    width: 28px;
    background: var(--color-primary);
}

.carousel-dot:hover:not(.active) {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.2);
}

/* Color accent per slide (decorative left bar) */
.t-card::before {
    content: '';
    position: absolute;
    left: -48px;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 4px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

[data-color="blue"] .t-card::before { background: #2196F3; }
[data-color="green"] .t-card::before { background: #4CAF50; }
[data-color="amber"] .t-card::before { background: #FFA726; }
[data-color="purple"] .t-card::before { background: #9C27B0; }
[data-color="red"] .t-card::before { background: var(--color-primary); }
[data-color="teal"] .t-card::before { background: #009688; }

/* Responsive carousel */
@media (max-width: 768px) {
    .testimonial-carousel-inner {
        padding: 32px 24px 16px;
        min-height: 220px;
    }
    .carousel-prev { left: 4px; }
    .carousel-next { right: 4px; }
    .carousel-arrow {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
    .carousel-arrow svg {
        width: 18px;
        height: 18px;
    }
    .t-quote-icon { font-size: 2.5rem; }
    .t-text { font-size: 1rem; }
    .t-author { flex-wrap: wrap; }
    .t-badge { margin-left: auto; }
}

@media (max-width: 480px) {
    .testimonial-carousel-inner {
        padding: 24px 16px 12px;
        min-height: 200px;
    }
    .carousel-prev { left: 2px; }
    .carousel-next { right: 2px; }
    .carousel-arrow {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }
    .carousel-arrow svg {
        width: 16px;
        height: 16px;
    }
    .t-quote-icon { font-size: 2rem; }
    .t-text { font-size: 0.9rem; line-height: 1.6; }
    .t-name { font-size: 0.85rem; }
    .t-role { font-size: 0.75rem; }
    .t-badge { font-size: 0.65rem; padding: 4px 8px; }
    .t-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    .carousel-dots { gap: 4px; }
    .carousel-dot { width: 6px; height: 6px; }
    .carousel-dot.active { width: 22px; }
}

.pricing-section {
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 80px auto 0;
}

.pricing-card {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 40px 32px 36px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--pricing-accent, #4CAF50);
}

.pricing-green {
    --pricing-accent: #4CAF50;
}

.pricing-yellow {
    --pricing-accent: #FFB300;
}

.pricing-blue {
    --pricing-accent: #2196F3;
}

.pricing-card.popular {
    border: 2px solid rgba(255, 179, 0, 0.35);
    box-shadow: 0 16px 48px rgba(255, 179, 0, 0.15);
    transform: scale(1.03);
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-6px);
    box-shadow: 0 24px 55px rgba(255, 179, 0, 0.22);
}

.pricing-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 179, 0, 0.15);
    color: #B36A00;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 5px 14px;
    border-radius: 999px;
}

.pricing-icon {
    font-size: 2.8rem;
    margin-bottom: 8px;
    line-height: 1;
}

.pricing-header {
    margin-bottom: 8px;
}

.pricing-header h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--color-text-dark);
}

.pricing-price {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--pricing-accent, #4CAF50);
    margin: 16px 0 20px;
    line-height: 1.1;
}

.pricing-price small {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.pricing-divider {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.pricing-features {
    list-style: none;
    margin: 0 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pricing-features li::before {
    content: '\2713';
    color: var(--pricing-accent, #4CAF50);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.pricing-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--pricing-accent, #4CAF50);
    color: #FFFFFF;
    border-radius: 14px;
    padding: 14px 24px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
    margin-top: 28px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.pricing-btn:hover {
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.pricing-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* Pricing Responsive */
@media (min-width: 768px) and (max-width: 991px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        max-width: 760px;
        margin-top: 40px;
    }
    .pricing-card {
        max-width: none;
    }
    .pricing-card.popular {
        transform: none;
    }
    .pricing-card.popular:hover {
        transform: translateY(-6px);
    }
    .pricing-card:last-child {
        grid-column: 1 / -1;
        max-width: 360px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .pricing-grid {
        grid-template-columns: 1fr !important;
        max-width: 400px;
        margin: 40px auto 0;
        gap: 20px;
    }
    .pricing-card {
        padding: 32px 24px 28px;
        max-width: none;
        width: 100%;
    }
    .pricing-card.popular {
        transform: none;
    }
    .pricing-card.popular:hover {
        transform: translateY(-6px);
    }
    .pricing-card:last-child {
        max-width: none;
    }
    .pricing-header h3 {
        font-size: 1.3rem;
    }
    .pricing-price {
        font-size: 1.7rem;
        margin: 12px 0 16px;
    }
    .pricing-features {
        font-size: 0.9rem;
        gap: 10px;
    }
    .pricing-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .pricing-grid {
        max-width: 100% !important;
        padding: 0 4px;
    }
    .pricing-card {
        padding: 28px 20px 24px;
        border-radius: 18px;
    }
    .pricing-header h3 {
        font-size: 1.2rem;
    }
    .pricing-price {
        font-size: 1.5rem;
    }
    .pricing-badge {
        font-size: 0.6rem;
        padding: 4px 10px;
        top: 14px;
        right: 14px;
    }
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(211, 47, 47, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(211, 47, 47, 0.7));
    }
}

.fade-in {
    animation: fadeIn var(--transition-base) ease-out;
}

.slide-in {
    animation: slideIn var(--transition-base) ease-out;
}

/* Organic Blob Dividers */
.blob-divider {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.blob-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.blob-divider.top {
    transform: rotate(180deg);
}

/* Accessibility & Print */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@media print {
    body {
        background-color: white;
    }
    
    header, footer {
        display: none;
    }
    
    .no-print {
        display: none;
    }
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Premium Footer */

.premium-footer-2026 {
    background: linear-gradient(180deg, #121212 0%, #000000 100%);
    color: white;
    font-family: var(--font-body);
    position: relative;
}

/* Glowing Red Divider Line */
.footer-glow-divider {
    height: 1px;
    background: #D32F2F;
    box-shadow: 0 0 8px rgba(211, 47, 47, 0.5), 0 0 15px rgba(211, 47, 47, 0.3);
    width: 100%;
}

/* Main Footer Content */
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 2rem 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
}

/* Footer Blocks */
.footer-block {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

/* Footer Titles */
.footer-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: #FFFFFF;
    margin: 0;
}

/* Brand Block */
.brand-block {
    gap: 2.2rem;
}

.brand-mission {
    font-size: 0.95rem;
    color: #AAA;
    line-height: 1.7;
    margin: 0;
    margin-top: -0.5rem;
    font-weight: 400;
}

/* High-Gloss 3D Social Icons */
.social-icons-gloss {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.gloss-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #888;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.gloss-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 12px;
}

.gloss-icon:hover {
    color: #D32F2F;
    border-color: #D32F2F;
    background: rgba(211, 47, 47, 0.1);
    transform: translateY(-6px);
    box-shadow: 0 0 20px rgba(211, 47, 47, 0.5), 0 10px 30px rgba(211, 47, 47, 0.25);
}

.gloss-icon:hover::before {
    opacity: 1;
}

.gloss-icon svg {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 1;
}

/* Footer Navigation */
.footer-nav-2026 {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Liquid Links with Sliding Red Dot */
.liquid-link {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: #888;
    text-decoration: none;
    position: relative;
    padding-left: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.6;
    display: inline-block;
    width: fit-content;
}

.liquid-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #D32F2F;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.liquid-link:hover {
    color: #FFFFFF;
    padding-left: 1.8rem;
}

.liquid-link:hover::before {
    opacity: 1;
}

/* CTA Block */
.cta-block {
    gap: 2rem;
}

.cta-desc {
    font-size: 0.9rem;
    color: #AAA;
    line-height: 1.7;
    margin: 0;
    margin-top: -0.5rem;
}

/* Ghost CTA Button */
.ghost-cta-btn {
    background: transparent;
    border: 2px solid #D32F2F;
    color: #D32F2F;
    padding: 0.85rem 2rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ghost-cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #D32F2F;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.ghost-cta-btn:hover {
    color: white;
    border-color: #D32F2F;
}

.ghost-cta-btn:hover::before {
    transform: translateY(0);
}

/* Copyright Bar */
.footer-copyright-2026 {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 2rem;
    text-align: center;
}

.footer-copyright-2026 p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
    font-weight: 400;
}

/* Footer Responsive */

@media (max-width: 1200px) {
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 3.5rem;
        padding: 100px 1.5rem 50px;
    }
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 80px 1.5rem 40px;
    }

    .footer-block {
        text-align: center;
        align-items: center;
    }

    .brand-block {
        align-items: center;
    }

    .social-icons-gloss {
        justify-content: center;
    }

    .footer-nav-2026 {
        align-items: center;
    }

    .liquid-link {
        text-align: center;
    }

    .cta-block {
        align-items: center;
    }

    .cta-desc {
        text-align: center;
    }

    .ghost-cta-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 576px) {
    .footer-inner {
        gap: 2rem;
        padding: 60px 1rem 30px;
    }

    .footer-title {
        font-size: 0.7rem;
        letter-spacing: 0.15rem;
    }

    .brand-mission {
        font-size: 0.9rem;
    }

    .cta-desc {
        font-size: 0.85rem;
    }

    .liquid-link {
        font-size: 0.875rem;
    }

    .ghost-cta-btn {
        font-size: 0.75rem;
        padding: 0.75rem 1.5rem;
    }

    .gloss-icon {
        width: 44px;
        height: 44px;
    }

    .gloss-icon svg {
        width: 20px;
        height: 20px;
    }

    .footer-copyright-2026 {
        padding: 1.2rem 1rem;
    }

    .footer-copyright-2026 p {
        font-size: 0.7rem;
    }
}

/* Inner Pages */

/* Page Hero - Compact banner for inner pages */
.page-hero {
    padding: 140px 40px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(211, 47, 47, 0.10) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(33, 150, 243, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 12px;
}

.page-hero .page-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Page Content Container */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 60px;
    margin-top: 50px;
}

.page-content-wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* Content Card - Glassmorphic styled sections */
.content-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 36px 40px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10);
}

.content-card h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-card h3 {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: 600;
    color: var(--color-text-dark);
    margin-top: 24px;
    margin-bottom: 12px;
}

.content-card p, .content-card li {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
}

.content-card ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.content-card ul li {
    margin-bottom: 8px;
}

.content-card a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.content-card a:hover {
    color: var(--color-primary-dark);
}

/* Card accent colors (top border) */
.content-card.accent-red {
    border-top: 4px solid var(--color-primary);
}

.content-card.accent-blue {
    border-top: 4px solid #2196F3;
}

.content-card.accent-green {
    border-top: 4px solid #4CAF50;
}

.content-card.accent-yellow {
    border-top: 4px solid #FFC107;
}

.content-card.accent-purple {
    border-top: 4px solid #9C27B0;
}

/* Section icon badge */
.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.section-icon.red { background: rgba(211, 47, 47, 0.1); }
.section-icon.blue { background: rgba(33, 150, 243, 0.1); }
.section-icon.green { background: rgba(76, 175, 80, 0.1); }
.section-icon.yellow { background: rgba(255, 193, 7, 0.15); }
.section-icon.purple { background: rgba(156, 39, 176, 0.1); }

/* FAQ Accordion */
.faq-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-chevron {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    color: var(--color-primary);
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-inner {
    padding: 0 28px 24px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
}

/* Contact Card */
.contact-grid {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.contact-info-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 48px 56px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
    max-width: 480px;
    width: 100%;
    margin-top: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.10);
}

.contact-info-card .contact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    background: linear-gradient(135deg, rgba(211,47,47,0.08), rgba(211,47,47,0.02));
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}

.contact-info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-dark);
}

.contact-info-card p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.contact-info-card a {
    display: inline-block;
    color: #FFFFFF;
    background: var(--color-primary);
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 32px;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.18);
}

.contact-info-card a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(211, 47, 47, 0.25);
    color: #FFFFFF;
    text-decoration: none;
}

/* Tools Grid for inner tools page */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.tool-link-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 32px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.tool-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
    text-decoration: none;
}

.tool-link-card .tool-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.tool-link-card h3 {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 6px;
}

.tool-link-card p {
    font-size: 0.92rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.tool-link-card .tool-arrow {
    margin-left: auto;
    color: var(--color-primary);
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.tool-link-card:hover .tool-arrow {
    transform: translateX(4px);
}

/* Game page hero (split layout) */
.game-hero {
    padding: 130px 40px 40px;
    position: relative;
    overflow: hidden;
}

.game-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(211, 47, 47, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(33, 150, 243, 0.06) 0%, transparent 40%);
    z-index: 0;
}

.game-hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.game-hero-text {
    flex: 1 1 55%;
    min-width: 0;
}

.game-hero-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 16px;
}

.game-hero-text p {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.game-hero-image {
    flex: 1 1 40%;
    min-width: 0;
}

.game-hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    object-fit: cover;
}

/* Unity Container (modern) */
.unity-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 24px;
}

.unity-wrapper {
    background: #1a1a2e;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.unity-wrapper canvas {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    display: block;
}

.unity-wrapper #unity-loading-bar {
    text-align: center;
    padding: 20px;
}

.unity-wrapper #unity-progress-bar-empty {
    width: 200px;
    height: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    margin: 10px auto;
    overflow: hidden;
}

.unity-wrapper #unity-progress-bar-full {
    height: 100%;
    background: var(--color-primary);
    border-radius: 4px;
    width: 0;
    transition: width 0.3s ease;
}

.unity-wrapper #unity-footer {
    display: flex;
    justify-content: flex-end;
    padding: 8px 0 0;
}

.unity-wrapper #unity-fullscreen-button {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    cursor: pointer;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Coming soon placeholder */
.coming-soon-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 2px dashed rgba(211, 47, 47, 0.2);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
}

.coming-soon-card .coming-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.coming-soon-card h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

.coming-soon-card p {
    color: var(--color-text-secondary);
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-primary);
    text-decoration: none;
    margin-bottom: 20px;
    transition: gap 0.2s ease;
}

.back-link:hover {
    gap: 12px;
    color: var(--color-primary-dark);
    text-decoration: none;
}

/* Inner page responsive */
@media (max-width: 768px) {
    .page-hero {
        padding: 110px 20px 36px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }
    
    .page-hero .page-subtitle {
        font-size: 0.95rem;
    }

    .page-content, .page-content-wide {
        padding: 0 16px 40px;
    }

    .content-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .contact-grid {
        padding: 0 16px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .game-hero {
        padding: 110px 20px 30px;
    }

    .game-hero-content {
        flex-direction: column;
        gap: 24px;
    }

    .game-hero-text, .game-hero-image {
        flex: 1 1 100%;
    }

    .unity-section {
        padding: 0 16px;
    }
    
    /* Modals responsive */
    .modal-dialog {
        margin: 16px;
        max-width: calc(100vw - 32px);
    }
    
    .modal-content {
        border-radius: 16px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-footer {
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 95px 16px 28px;
    }
    
    .page-hero h1 {
        font-size: 1.5rem;
    }
    
    .page-hero .page-subtitle {
        font-size: 0.85rem;
    }
    
    .page-content, .page-content-wide {
        padding: 0 12px 32px;
    }
    
    .content-card {
        padding: 20px 16px;
        border-radius: 14px;
    }
    
    .content-card h2 {
        font-size: 1.2rem;
        gap: 8px;
    }
    
    .content-card h3 {
        font-size: 1rem;
    }
    
    .content-card p, .content-card li {
        font-size: 0.9rem;
    }
}

/* Tutorials Page */
.tutorials-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}

.tutorial-video-player {
    max-width: 900px;
    margin: 0 auto 28px;
    background: var(--glass-bg-premium);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.tutorial-video-player.is-collapsed {
    display: none;
}

.tutorial-video-title {
    margin: 0 0 12px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-text-dark);
}

.tutorial-video {
    width: 100%;
    display: block;
    border-radius: 14px;
    background: #000;
}

.tutorial-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 28px;
    background: var(--glass-bg-premium);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 18px;
    border: var(--glass-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: var(--color-text-dark);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.tutorial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    border-radius: 18px 0 0 18px;
    transition: width 0.35s ease;
}

.tutorial-card-1::before { background: #D32F2F; }
.tutorial-card-2::before { background: #2196F3; }
.tutorial-card-3::before { background: #4CAF50; }
.tutorial-card-4::before { background: #FF9800; }
.tutorial-card-5::before { background: #9C27B0; }

.tutorial-card:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--color-text-dark);
}

.tutorial-card.active {
    border-color: rgba(211, 47, 47, 0.35);
    box-shadow: 0 12px 34px rgba(211, 47, 47, 0.14);
}

.tutorial-card:hover::before {
    width: 8px;
}

.tutorial-number {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    color: rgba(0, 0, 0, 0.08);
    min-width: 40px;
    line-height: 1;
}

.tutorial-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.tutorial-info {
    flex: 1;
    min-width: 0;
}

.tutorial-info h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 4px;
    color: var(--color-text-dark);
}

.tutorial-info p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.4;
}

.tutorial-arrow {
    flex-shrink: 0;
    color: var(--color-text-light);
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
}

.tutorial-card:hover .tutorial-arrow {
    transform: translateX(4px);
    color: var(--color-primary);
}

.tutorials-cta {
    text-align: center;
    margin-top: 48px;
    padding: 32px;
    background: var(--glass-bg-premium);
    backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    border: var(--glass-border);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tutorials-cta p {
    font-family: var(--font-body);
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .tutorial-card {
        padding: 16px 20px;
        gap: 14px;
    }
    .tutorial-number {
        display: none;
    }
    .tutorial-icon {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
    .tutorial-info h3 {
        font-size: 0.95rem;
    }
}


/* Game / Tool Page */

.game-page-body {
    background: linear-gradient(135deg, #0f1729 0%, #1a2744 40%, #1e3a5f 100%);
    min-height: 100vh;
}

/* Premium Access Modal */

.premium-lock-modal .modal-content {
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.premium-lock-modal .modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.2rem 1.4rem;
}

.premium-lock-modal .modal-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.9rem;
    line-height: 1.25;
    color: #2b2f38;
}

.premium-lock-modal .close {
    font-size: 1.8rem;
    color: #999;
    opacity: 1;
}

.premium-lock-modal .modal-body {
    padding: 1.6rem 1.4rem;
}

.premium-lock-text {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2f3640;
    margin-bottom: 1rem;
}

.premium-subscription-btn {
    background: #0d6efd;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 0.85rem 1.6rem;
    text-decoration: none;
}

.premium-subscription-btn:hover {
    background: #0b5ed7;
    color: #fff;
}

.premium-lock-modal .modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem 1.4rem;
}

.premium-close-btn {
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.7rem 1.6rem;
}

.premium-close-btn:hover {
    background: #5a6268;
    color: #fff;
}

@media (max-width: 768px) {
    .premium-lock-modal .modal-title {
        font-size: 1.35rem;
    }

    .premium-lock-text {
        font-size: 1rem;
    }
}

.game-page-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 40px;
}

/* --- Premium Game Wrapper (Unity WebGL) --- */
.game-wrapper {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-height: 0;
    padding: 0;
    padding-top: 100px; /* clear the fixed header pill */
    background: #e9ecef;
}

#unity-container {
    position: relative;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 8px solid white;
    transition: all 0.3s ease;
}

#unity-canvas {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
    background: #000;
    border: 0;
}

/* --- Top Control Bar --- */
.game-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
}

.game-top-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.game-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.25s;
}
.game-back-link:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    text-decoration: none;
    transform: translateX(-2px);
}

.game-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 0.02em;
}

.game-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.25);
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.game-top-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.game-ctrl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.25s;
}
.game-ctrl-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.25);
    transform: scale(1.05);
}
.game-ctrl-btn.muted {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
    background: rgba(248, 113, 113, 0.1);
}

/* --- Game Canvas Area --- */
.game-canvas-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 960 / 640;
    background: #231F20;
    overflow: hidden;
    border-left: 1px solid rgba(255,255,255,0.1);
    border-right: 1px solid rgba(255,255,255,0.1);
}

.game-iframe-scaler {
    position: absolute;
    top: 0;
    left: 0;
    width: 960px;
    height: 640px;
    transform-origin: top left;
}

.game-iframe {
    display: block;
    width: 960px;
    height: 640px;
    border: none;
}

.game-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Fullscreen mode */
.game-canvas-wrap:fullscreen {
    border-radius: 0;
    border: none;
}
.game-canvas-wrap:fullscreen canvas {
    width: 100vw !important;
    height: 100vh !important;
}

/* --- Loading Overlay --- */
.game-loading-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a2744;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.game-loading-overlay.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.game-preview-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    filter: blur(6px);
}

.game-loading-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.game-spinner svg {
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.3));
}

.game-loading-label {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    margin: 0;
    letter-spacing: 0.04em;
}

.game-progress-track {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.12);
    border-radius: 4px;
    overflow: hidden;
}

.game-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #D32F2F, #ff6659);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* --- Bottom Info Bar --- */
.game-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: none;
    border-radius: 0 0 20px 20px;
}

.game-bottom-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-version-tag {
    display: inline-flex;
    padding: 2px 10px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    letter-spacing: 0.06em;
}

.game-author {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.game-bottom-right {
    display: flex;
    align-items: center;
}

.game-help-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 10px;
    transition: all 0.25s;
}
.game-help-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
    text-decoration: none;
}

/* --- Game Page Responsive --- */
@media (max-width: 768px) {
    .game-page-main {
        padding: 90px 12px 24px;
    }
    .game-top-bar {
        padding: 10px 16px;
        border-radius: 14px 14px 0 0;
    }
    .game-title {
        font-size: 1.05rem;
    }
    .game-badge {
        display: none;
    }
    .game-canvas-wrap {
        aspect-ratio: 960 / 600;
    }
    .game-bottom-bar {
        padding: 10px 16px;
        border-radius: 0 0 14px 14px;
    }
    .game-author {
        display: none;
    }
}

@media (max-width: 480px) {
    .game-page-main {
        padding: 85px 8px 16px;
    }
    .game-top-bar {
        padding: 8px 12px;
        border-radius: 10px 10px 0 0;
    }
    .game-back-link {
        width: 32px;
        height: 32px;
    }
    .game-ctrl-btn {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }
    .game-bottom-bar {
        padding: 8px 12px;
        border-radius: 0 0 10px 10px;
    }
}
