/* ============================================
   GRIMASSO - TONGUE TRAINING FOR KIDS
   CSS layer on top of main styles.css
   Playful, kid-friendly aesthetic
   ============================================ */

/* Grimasso Color Palette */
:root {
    --grimasso-primary: #33C759;
    --grimasso-dark: #26A647;
    --grimasso-light: #66E080;
    --grimasso-yellow: #FFD933;
    --grimasso-orange: #FF9933;
    --grimasso-pink: #FF8099;
    --grimasso-blue: #66B3FF;
    --grimasso-purple: #B380FF;
    --grimasso-bg: #FAFAF2;
    --grimasso-text: #333340;
    --grimasso-font: 'Nunito', 'Space Grotesk', sans-serif;
}

/* ---- FORCE LIGHT THEME BY DEFAULT ---- */
/* Override main site's dark defaults with Grimasso's bright palette */
:root,
html:not([data-theme="dark"]) {
    --primary: #33C759;
    --primary-light: #66E080;
    --primary-dark: #26A647;

    --accent-cyan: #66B3FF;
    --accent-magenta: #FF8099;
    --accent-green: #33C759;
    --accent-purple: #B380FF;

    --bg-dark: #FAFAF2;
    --bg-darker: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F0F0E8;

    --text-primary: #333340;
    --text-secondary: #555566;
    --text-muted: #777788;

    --border-color: #E0E0D8;
    --border-accent: #CCCCBB;

    --glow-cyan: 0 0 20px rgba(102, 179, 255, 0.2);
    --glow-magenta: 0 0 20px rgba(255, 128, 153, 0.2);
    --glow-primary: 0 0 20px rgba(51, 199, 89, 0.25);
}

/* Light theme (explicit) - same as default */
[data-theme="light"] {
    --primary: #33C759;
    --primary-light: #66E080;
    --primary-dark: #26A647;

    --accent-cyan: #66B3FF;
    --accent-magenta: #FF8099;
    --accent-green: #33C759;
    --accent-purple: #B380FF;

    --bg-dark: #FAFAF2;
    --bg-darker: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F0F0E8;

    --text-primary: #333340;
    --text-secondary: #555566;
    --text-muted: #777788;

    --border-color: #E0E0D8;
    --border-accent: #CCCCBB;

    --glow-cyan: 0 0 20px rgba(102, 179, 255, 0.2);
    --glow-magenta: 0 0 20px rgba(255, 128, 153, 0.2);
    --glow-primary: 0 0 20px rgba(51, 199, 89, 0.25);
}

/* Dark mode - adjusted Grimasso colors for dark backgrounds */
[data-theme="dark"] {
    --primary: #33C759;
    --primary-light: #66E080;
    --primary-dark: #26A647;

    --accent-cyan: #66B3FF;
    --accent-magenta: #FF8099;
    --accent-green: #33C759;
    --accent-purple: #B380FF;

    --bg-dark: #1A1A2E;
    --bg-darker: #12122A;
    --bg-card: #222240;
    --bg-card-hover: #2A2A4A;

    --text-primary: #F0F0F8;
    --text-secondary: #B0B0C0;
    --text-muted: #808098;

    --border-color: #333355;
    --border-accent: #444466;

    --glow-cyan: 0 0 20px rgba(102, 179, 255, 0.3);
    --glow-magenta: 0 0 20px rgba(255, 128, 153, 0.3);
    --glow-primary: 0 0 20px rgba(51, 199, 89, 0.35);
}

/* ---- HIDE MAIN SITE BG ANIMATION ---- */
.bg-animation {
    display: none;
}

/* ---- BODY & FONT OVERRIDES ---- */
body {
    font-family: var(--grimasso-font);
    background: var(--bg-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--grimasso-font);
}

p, li, a, span, div {
    font-family: var(--grimasso-font);
}

/* ---- KEYFRAME ANIMATIONS ---- */
@keyframes grimasso-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes grimasso-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-18px) scale(1.02); }
    60% { transform: translateY(-8px) scale(1.01); }
}

@keyframes grimasso-spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes grimasso-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(8deg); }
    75% { transform: rotate(-8deg); }
}

@keyframes grimasso-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes grimasso-bubble-rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-120vh) scale(0.3);
        opacity: 0;
    }
}

@keyframes grimasso-pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(51, 199, 89, 0.3), 0 0 0 0 rgba(51, 199, 89, 0.4);
    }
    50% {
        box-shadow: 0 6px 25px rgba(51, 199, 89, 0.5), 0 0 30px 5px rgba(51, 199, 89, 0.2);
    }
}

@keyframes grimasso-float-horizontal {
    0%, 100% { transform: translateX(0) translateY(0); }
    33% { transform: translateX(8px) translateY(-5px); }
    66% { transform: translateX(-5px) translateY(3px); }
}

@keyframes grimasso-scale-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ---- NAVBAR OVERRIDES ---- */
.navbar {
    background: rgba(250, 250, 242, 0.9);
    border-bottom: 2px solid var(--grimasso-primary);
}

[data-theme="dark"] .navbar {
    background: rgba(26, 26, 46, 0.92);
}

.nav-logo {
    font-family: var(--grimasso-font);
    font-weight: 700;
    gap: 0.5rem;
}

.logo-text {
    background: linear-gradient(135deg, var(--grimasso-primary) 0%, var(--grimasso-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
    font-family: var(--grimasso-font);
    font-weight: 800;
}

.logo-cursor {
    display: none;
}

/* Grimasso nav links */
.nav-link {
    font-family: var(--grimasso-font);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-link::after {
    background: linear-gradient(90deg, var(--grimasso-primary), var(--grimasso-yellow));
}

/* Language switcher in nav */
.grimasso-lang-switcher {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.grimasso-lang-switcher .lang-switch {
    padding: 0.3rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 4px;
    font-weight: 700;
    font-family: var(--grimasso-font);
}

.grimasso-lang-switcher .lang-switch.active {
    background: var(--grimasso-primary);
    color: #fff;
    border-color: var(--grimasso-primary);
}

.grimasso-lang-switcher .lang-switch:not(.active):hover {
    color: var(--grimasso-primary);
    border-color: var(--grimasso-primary);
    box-shadow: 0 0 10px rgba(51, 199, 89, 0.2);
}

/* Back to main site link */
.back-to-main {
    font-family: var(--grimasso-font);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.back-to-main:hover {
    color: var(--grimasso-primary);
}

/* Theme toggle Grimasso override */
.theme-toggle:hover {
    color: var(--grimasso-primary);
    border-color: var(--grimasso-primary);
    box-shadow: 0 0 12px rgba(51, 199, 89, 0.3);
}

/* ============================================
   HERO SECTION - Playful & Animated
   ============================================ */
.grimasso-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg,
        rgba(51, 199, 89, 0.08) 0%,
        rgba(255, 217, 51, 0.06) 25%,
        rgba(102, 179, 255, 0.06) 50%,
        rgba(51, 199, 89, 0.08) 75%,
        rgba(179, 128, 255, 0.06) 100%
    );
    background-size: 300% 300%;
    animation: grimasso-gradient 12s ease infinite;
}

[data-theme="dark"] .grimasso-hero {
    background: linear-gradient(135deg,
        rgba(51, 199, 89, 0.12) 0%,
        rgba(255, 217, 51, 0.08) 25%,
        rgba(102, 179, 255, 0.08) 50%,
        rgba(51, 199, 89, 0.12) 75%,
        rgba(179, 128, 255, 0.08) 100%
    );
    background-size: 300% 300%;
    animation: grimasso-gradient 12s ease infinite;
}

/* Floating bubbles in hero background */
.hero-bubble {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: grimasso-bubble-rise linear infinite;
    z-index: 0;
}

.hero-bubble:nth-child(1) {
    width: 30px;
    height: 30px;
    left: 8%;
    bottom: -30px;
    background: rgba(51, 199, 89, 0.25);
    animation-duration: 14s;
    animation-delay: 0s;
}

.hero-bubble:nth-child(2) {
    width: 20px;
    height: 20px;
    left: 22%;
    bottom: -20px;
    background: rgba(255, 217, 51, 0.3);
    animation-duration: 11s;
    animation-delay: 2s;
}

.hero-bubble:nth-child(3) {
    width: 40px;
    height: 40px;
    left: 38%;
    bottom: -40px;
    background: rgba(102, 179, 255, 0.2);
    animation-duration: 16s;
    animation-delay: 4s;
}

.hero-bubble:nth-child(4) {
    width: 15px;
    height: 15px;
    left: 55%;
    bottom: -15px;
    background: rgba(255, 128, 153, 0.3);
    animation-duration: 10s;
    animation-delay: 1s;
}

.hero-bubble:nth-child(5) {
    width: 25px;
    height: 25px;
    left: 72%;
    bottom: -25px;
    background: rgba(179, 128, 255, 0.25);
    animation-duration: 13s;
    animation-delay: 3s;
}

.hero-bubble:nth-child(6) {
    width: 18px;
    height: 18px;
    left: 88%;
    bottom: -18px;
    background: rgba(255, 153, 51, 0.25);
    animation-duration: 15s;
    animation-delay: 5s;
}

.hero-bubble:nth-child(7) {
    width: 35px;
    height: 35px;
    left: 45%;
    bottom: -35px;
    background: rgba(51, 199, 89, 0.2);
    animation-duration: 17s;
    animation-delay: 7s;
}

.hero-bubble:nth-child(8) {
    width: 12px;
    height: 12px;
    left: 15%;
    bottom: -12px;
    background: rgba(255, 217, 51, 0.35);
    animation-duration: 9s;
    animation-delay: 6s;
}

/* Hero decorative emoji elements */
.hero-deco {
    position: absolute;
    font-size: 2rem;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

.hero-deco-1 {
    top: 15%;
    right: 8%;
    animation: grimasso-float 4s ease-in-out infinite;
    font-size: 2.5rem;
}

.hero-deco-2 {
    top: 25%;
    left: 5%;
    animation: grimasso-wiggle 3s ease-in-out infinite;
    animation-delay: 0.5s;
    font-size: 1.8rem;
}

.hero-deco-3 {
    bottom: 20%;
    right: 12%;
    animation: grimasso-float-horizontal 5s ease-in-out infinite;
    animation-delay: 1s;
    font-size: 2.2rem;
}

.hero-deco-4 {
    bottom: 15%;
    left: 8%;
    animation: grimasso-scale-pulse 3s ease-in-out infinite;
    animation-delay: 1.5s;
    font-size: 1.6rem;
}

.hero-deco-5 {
    top: 40%;
    left: 2%;
    animation: grimasso-float 5s ease-in-out infinite;
    animation-delay: 2s;
    font-size: 1.4rem;
}

.hero-deco-6 {
    top: 12%;
    left: 35%;
    animation: grimasso-wiggle 4s ease-in-out infinite;
    animation-delay: 0.8s;
    font-size: 1.5rem;
}

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

.hero-text {
    display: flex;
    flex-direction: column;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--grimasso-font);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--grimasso-primary);
    margin-bottom: 1rem;
    padding: 0.4rem 1rem;
    background: rgba(51, 199, 89, 0.12);
    border: 2px solid rgba(51, 199, 89, 0.3);
    border-radius: 24px;
    width: fit-content;
    letter-spacing: 0.02em;
}

.hero-title {
    font-family: var(--grimasso-font);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.hero-title .grimasso-name {
    background: linear-gradient(135deg, var(--grimasso-primary) 0%, var(--grimasso-blue) 50%, var(--grimasso-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: grimasso-gradient 6s ease infinite;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 500px;
    font-weight: 400;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* App icon in hero - with bounce animation */
.hero-app-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-app-icon video,
.hero-app-icon img {
    width: 280px;
    height: 280px;
    border-radius: 56px;
    box-shadow:
        0 20px 60px rgba(51, 199, 89, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.4s ease;
    animation: grimasso-bounce 4s ease-in-out infinite;
    object-fit: cover;
    display: block;
}

.hero-app-icon video:hover,
.hero-app-icon img:hover {
    box-shadow:
        0 24px 70px rgba(51, 199, 89, 0.35),
        0 12px 30px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(51, 199, 89, 0.2);
}

[data-theme="dark"] .hero-app-icon video,
[data-theme="dark"] .hero-app-icon img {
    box-shadow:
        0 20px 60px rgba(51, 199, 89, 0.25),
        0 8px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .hero-app-icon img:hover {
    box-shadow:
        0 24px 70px rgba(51, 199, 89, 0.4),
        0 12px 30px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(51, 199, 89, 0.25);
}

/* ---- BUTTONS ---- */
.btn-grimasso {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    font-family: var(--grimasso-font);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-grimasso-primary {
    background: linear-gradient(135deg, var(--grimasso-primary) 0%, var(--grimasso-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(51, 199, 89, 0.3);
    animation: grimasso-pulse-glow 3s ease-in-out infinite;
    position: relative;
}

.btn-grimasso-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(51, 199, 89, 0.5), 0 0 40px rgba(51, 199, 89, 0.25);
}

.btn-grimasso-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-accent);
    border-radius: 16px;
}

.btn-grimasso-secondary:hover {
    border-color: var(--grimasso-primary);
    color: var(--grimasso-primary);
    box-shadow: 0 0 20px rgba(51, 199, 89, 0.15);
    transform: translateY(-2px);
}

/* ---- WAVY SECTION DIVIDERS ---- */
.section-wave {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: -2px;
    position: relative;
    z-index: 2;
}

.section-wave-bottom {
    margin-top: -2px;
    margin-bottom: 0;
}

.section-wave path {
    transition: fill 0.3s ease;
}

/* ---- SECTION STYLES ---- */
.grimasso-section {
    padding: 5rem 0;
    position: relative;
}

/* Features section - green tint */
.grimasso-section#features {
    background: linear-gradient(180deg,
        rgba(51, 199, 89, 0.04) 0%,
        rgba(51, 199, 89, 0.07) 50%,
        rgba(51, 199, 89, 0.04) 100%
    );
}

[data-theme="dark"] .grimasso-section#features {
    background: linear-gradient(180deg,
        rgba(51, 199, 89, 0.06) 0%,
        rgba(51, 199, 89, 0.1) 50%,
        rgba(51, 199, 89, 0.06) 100%
    );
}

/* How it works section - blue tint */
.grimasso-section#how-it-works {
    background: linear-gradient(180deg,
        rgba(102, 179, 255, 0.04) 0%,
        rgba(102, 179, 255, 0.07) 50%,
        rgba(102, 179, 255, 0.04) 100%
    );
}

[data-theme="dark"] .grimasso-section#how-it-works {
    background: linear-gradient(180deg,
        rgba(102, 179, 255, 0.06) 0%,
        rgba(102, 179, 255, 0.1) 50%,
        rgba(102, 179, 255, 0.06) 100%
    );
}

/* Benefits section - purple tint */
.grimasso-section#benefits {
    background: linear-gradient(180deg,
        rgba(179, 128, 255, 0.04) 0%,
        rgba(179, 128, 255, 0.07) 50%,
        rgba(179, 128, 255, 0.04) 100%
    );
}

[data-theme="dark"] .grimasso-section#benefits {
    background: linear-gradient(180deg,
        rgba(179, 128, 255, 0.06) 0%,
        rgba(179, 128, 255, 0.1) 50%,
        rgba(179, 128, 255, 0.06) 100%
    );
}

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

.grimasso-section-label {
    display: inline-block;
    font-family: var(--grimasso-font);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--grimasso-primary);
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.8rem;
    background: rgba(51, 199, 89, 0.1);
    border-radius: 20px;
}

.grimasso-section-title {
    font-family: var(--grimasso-font);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
}

.grimasso-section-subtitle {
    font-family: var(--grimasso-font);
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ---- FEATURES GRID ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

/* Color accents for each feature card */
.feature-card:nth-child(1) { border-top: 4px solid var(--grimasso-pink); }
.feature-card:nth-child(2) { border-top: 4px solid var(--grimasso-blue); }
.feature-card:nth-child(3) { border-top: 4px solid var(--grimasso-yellow); }
.feature-card:nth-child(4) { border-top: 4px solid var(--grimasso-purple); }

.feature-card:nth-child(1):hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(255, 128, 153, 0.15), 0 0 20px rgba(255, 128, 153, 0.08);
    border-color: var(--grimasso-pink);
}

.feature-card:nth-child(2):hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(102, 179, 255, 0.15), 0 0 20px rgba(102, 179, 255, 0.08);
    border-color: var(--grimasso-blue);
}

.feature-card:nth-child(3):hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(255, 217, 51, 0.15), 0 0 20px rgba(255, 217, 51, 0.08);
    border-color: var(--grimasso-yellow);
}

.feature-card:nth-child(4):hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(179, 128, 255, 0.15), 0 0 20px rgba(179, 128, 255, 0.08);
    border-color: var(--grimasso-purple);
}

/* Feature icon with colored circular background */
.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1;
}

.feature-card:nth-child(1) .feature-icon {
    background: rgba(255, 128, 153, 0.15);
}

.feature-card:nth-child(2) .feature-icon {
    background: rgba(102, 179, 255, 0.15);
}

.feature-card:nth-child(3) .feature-icon {
    background: rgba(255, 217, 51, 0.15);
}

.feature-card:nth-child(4) .feature-icon {
    background: rgba(179, 128, 255, 0.15);
}

[data-theme="dark"] .feature-card:nth-child(1) .feature-icon {
    background: rgba(255, 128, 153, 0.2);
}

[data-theme="dark"] .feature-card:nth-child(2) .feature-icon {
    background: rgba(102, 179, 255, 0.2);
}

[data-theme="dark"] .feature-card:nth-child(3) .feature-icon {
    background: rgba(255, 217, 51, 0.2);
}

[data-theme="dark"] .feature-card:nth-child(4) .feature-icon {
    background: rgba(179, 128, 255, 0.2);
}

.feature-card h3 {
    font-family: var(--grimasso-font);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.feature-card p {
    font-family: var(--grimasso-font);
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---- HOW IT WORKS ---- */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Connector line between steps */
.steps-container::before {
    content: '';
    position: absolute;
    top: 3rem;
    left: calc(16.67% + 1rem);
    right: calc(16.67% + 1rem);
    height: 3px;
    background: linear-gradient(90deg, var(--grimasso-primary), var(--grimasso-yellow), var(--grimasso-orange));
    border-radius: 2px;
    z-index: 0;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    color: #fff;
    font-family: var(--grimasso-font);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

/* Colorful step number circles */
.step-card:nth-child(1) .step-number {
    background: linear-gradient(135deg, var(--grimasso-primary) 0%, var(--grimasso-light) 100%);
    box-shadow: 0 6px 20px rgba(51, 199, 89, 0.35);
}

.step-card:nth-child(2) .step-number {
    background: linear-gradient(135deg, var(--grimasso-yellow) 0%, var(--grimasso-orange) 100%);
    box-shadow: 0 6px 20px rgba(255, 217, 51, 0.35);
    color: #333;
}

.step-card:nth-child(3) .step-number {
    background: linear-gradient(135deg, var(--grimasso-blue) 0%, var(--grimasso-purple) 100%);
    box-shadow: 0 6px 20px rgba(102, 179, 255, 0.35);
}

.step-card h3 {
    font-family: var(--grimasso-font);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-card p {
    font-family: var(--grimasso-font);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

.step-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

/* ---- BENEFITS SECTION ---- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.benefit-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    transition: all 0.3s ease;
    align-items: flex-start;
}

/* Subtle colored backgrounds for benefit cards */
.benefit-card:nth-child(1) {
    background: linear-gradient(135deg, rgba(51, 199, 89, 0.06) 0%, var(--bg-card) 60%);
    border-left: 4px solid var(--grimasso-primary);
}

.benefit-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(102, 179, 255, 0.06) 0%, var(--bg-card) 60%);
    border-left: 4px solid var(--grimasso-blue);
}

.benefit-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(255, 217, 51, 0.06) 0%, var(--bg-card) 60%);
    border-left: 4px solid var(--grimasso-yellow);
}

.benefit-card:nth-child(4) {
    background: linear-gradient(135deg, rgba(255, 128, 153, 0.06) 0%, var(--bg-card) 60%);
    border-left: 4px solid var(--grimasso-pink);
}

.benefit-card:nth-child(5) {
    background: linear-gradient(135deg, rgba(179, 128, 255, 0.06) 0%, var(--bg-card) 60%);
    border-left: 4px solid var(--grimasso-purple);
}

.benefit-card:nth-child(6) {
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.06) 0%, var(--bg-card) 60%);
    border-left: 4px solid var(--grimasso-orange);
}

[data-theme="dark"] .benefit-card:nth-child(1) {
    background: linear-gradient(135deg, rgba(51, 199, 89, 0.1) 0%, var(--bg-card) 60%);
}
[data-theme="dark"] .benefit-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(102, 179, 255, 0.1) 0%, var(--bg-card) 60%);
}
[data-theme="dark"] .benefit-card:nth-child(3) {
    background: linear-gradient(135deg, rgba(255, 217, 51, 0.1) 0%, var(--bg-card) 60%);
}
[data-theme="dark"] .benefit-card:nth-child(4) {
    background: linear-gradient(135deg, rgba(255, 128, 153, 0.1) 0%, var(--bg-card) 60%);
}
[data-theme="dark"] .benefit-card:nth-child(5) {
    background: linear-gradient(135deg, rgba(179, 128, 255, 0.1) 0%, var(--bg-card) 60%);
}
[data-theme="dark"] .benefit-card:nth-child(6) {
    background: linear-gradient(135deg, rgba(255, 153, 51, 0.1) 0%, var(--bg-card) 60%);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(51, 199, 89, 0.12);
    border-color: var(--grimasso-primary);
}

.benefit-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(51, 199, 89, 0.08);
}

.benefit-card:nth-child(1) .benefit-icon { background: rgba(51, 199, 89, 0.12); }
.benefit-card:nth-child(2) .benefit-icon { background: rgba(102, 179, 255, 0.12); }
.benefit-card:nth-child(3) .benefit-icon { background: rgba(255, 217, 51, 0.12); }
.benefit-card:nth-child(4) .benefit-icon { background: rgba(255, 128, 153, 0.12); }
.benefit-card:nth-child(5) .benefit-icon { background: rgba(179, 128, 255, 0.12); }
.benefit-card:nth-child(6) .benefit-icon { background: rgba(255, 153, 51, 0.12); }

[data-theme="dark"] .benefit-card:nth-child(1) .benefit-icon { background: rgba(51, 199, 89, 0.18); }
[data-theme="dark"] .benefit-card:nth-child(2) .benefit-icon { background: rgba(102, 179, 255, 0.18); }
[data-theme="dark"] .benefit-card:nth-child(3) .benefit-icon { background: rgba(255, 217, 51, 0.18); }
[data-theme="dark"] .benefit-card:nth-child(4) .benefit-icon { background: rgba(255, 128, 153, 0.18); }
[data-theme="dark"] .benefit-card:nth-child(5) .benefit-icon { background: rgba(179, 128, 255, 0.18); }
[data-theme="dark"] .benefit-card:nth-child(6) .benefit-icon { background: rgba(255, 153, 51, 0.18); }

.benefit-card h3 {
    font-family: var(--grimasso-font);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.benefit-card p {
    font-family: var(--grimasso-font);
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- 5th FEATURE CARD COLOR ---- */
.feature-card:nth-child(5) { border-top: 4px solid var(--grimasso-orange); }

.feature-card:nth-child(5):hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(255, 153, 51, 0.15), 0 0 20px rgba(255, 153, 51, 0.08);
    border-color: var(--grimasso-orange);
}

.feature-card:nth-child(5) .feature-icon {
    background: rgba(255, 153, 51, 0.15);
}

[data-theme="dark"] .feature-card:nth-child(5) .feature-icon {
    background: rgba(255, 153, 51, 0.2);
}

/* Features grid variant for 5 cards */
.features-grid-5 {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

/* ---- APP FEATURES GRID ---- */
.app-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.app-feature-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.app-feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(51, 199, 89, 0.1);
    border-color: rgba(51, 199, 89, 0.3);
}

.app-feature-emoji {
    font-size: 1.8rem;
    flex-shrink: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(51, 199, 89, 0.08);
    margin-top: 0.1rem;
}

/* Alternating background tints for app feature items */
.app-feature-item:nth-child(odd) .app-feature-emoji {
    background: rgba(51, 199, 89, 0.1);
}

.app-feature-item:nth-child(even) .app-feature-emoji {
    background: rgba(102, 179, 255, 0.1);
}

[data-theme="dark"] .app-feature-item:nth-child(odd) .app-feature-emoji {
    background: rgba(51, 199, 89, 0.16);
}

[data-theme="dark"] .app-feature-item:nth-child(even) .app-feature-emoji {
    background: rgba(102, 179, 255, 0.16);
}

.app-feature-item h4 {
    font-family: var(--grimasso-font);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.app-feature-item p {
    font-family: var(--grimasso-font);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ---- STATISTICS SECTION ---- */
.grimasso-stats-section {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg,
        rgba(51, 199, 89, 0.06) 0%,
        rgba(255, 217, 51, 0.06) 25%,
        rgba(102, 179, 255, 0.06) 50%,
        rgba(179, 128, 255, 0.06) 75%,
        rgba(255, 128, 153, 0.06) 100%
    );
}

[data-theme="dark"] .grimasso-stats-section {
    background: linear-gradient(135deg,
        rgba(51, 199, 89, 0.1) 0%,
        rgba(255, 217, 51, 0.08) 25%,
        rgba(102, 179, 255, 0.08) 50%,
        rgba(179, 128, 255, 0.08) 75%,
        rgba(255, 128, 153, 0.08) 100%
    );
}

.stats-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.stat-number {
    font-family: var(--grimasso-font);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--grimasso-primary) 0%, var(--grimasso-blue) 50%, var(--grimasso-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-label {
    font-family: var(--grimasso-font);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Colorful stat numbers individually */
.stat-item:nth-child(1) .stat-number {
    background: linear-gradient(135deg, var(--grimasso-primary) 0%, var(--grimasso-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item:nth-child(2) .stat-number {
    background: linear-gradient(135deg, var(--grimasso-blue) 0%, var(--grimasso-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item:nth-child(3) .stat-number {
    background: linear-gradient(135deg, var(--grimasso-yellow) 0%, var(--grimasso-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item:nth-child(4) .stat-number {
    background: linear-gradient(135deg, var(--grimasso-pink) 0%, var(--grimasso-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item:nth-child(5) .stat-number {
    background: linear-gradient(135deg, var(--grimasso-orange) 0%, var(--grimasso-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- TRUST SECTION ---- */
.grimasso-trust-section {
    padding: 3rem 2rem;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.trust-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trust-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    line-height: 1;
}

.trust-item p {
    font-family: var(--grimasso-font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
}

/* ---- CTA SECTION ---- */
.grimasso-cta-section {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(51, 199, 89, 0.08) 0%, rgba(102, 179, 255, 0.06) 50%, rgba(255, 128, 153, 0.06) 100%);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .grimasso-cta-section {
    background: linear-gradient(135deg, rgba(51, 199, 89, 0.12) 0%, rgba(102, 179, 255, 0.1) 50%, rgba(255, 128, 153, 0.08) 100%);
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--grimasso-font);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-content p {
    font-family: var(--grimasso-font);
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Extra prominent App Store button in CTA */
.cta-content .btn-grimasso-primary {
    font-size: 1.1rem;
    padding: 1rem 2.2rem;
    border-radius: 20px;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-family: var(--grimasso-font);
}

/* ---- FOOTER OVERRIDES ---- */
.footer {
    border-top: 2px solid var(--grimasso-primary);
}

.footer-logo {
    background: linear-gradient(135deg, var(--grimasso-primary) 0%, var(--grimasso-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--grimasso-font);
    font-weight: 800;
}

.footer-logo .cursor {
    display: none;
}

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

.footer p,
.footer a {
    font-family: var(--grimasso-font);
}

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

    .hero-app-icon {
        order: -1;
    }

    .hero-app-icon img {
        width: 220px;
        height: 220px;
        border-radius: 44px;
    }

    .hero-tagline {
        max-width: 100%;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-deco-1 { right: 5%; font-size: 2rem; }
    .hero-deco-2 { left: 3%; font-size: 1.5rem; }
    .hero-deco-3 { right: 8%; font-size: 1.8rem; }
    .hero-deco-4 { left: 5%; font-size: 1.3rem; }
    .hero-deco-5 { display: none; }
    .hero-deco-6 { display: none; }
}

@media (max-width: 768px) {
    .grimasso-hero {
        padding: 5rem 1rem 3rem;
        min-height: auto;
    }

    .hero-app-icon img {
        width: 180px;
        height: 180px;
        border-radius: 36px;
    }

    .hero-deco { font-size: 1.2rem !important; }
    .hero-deco-3, .hero-deco-4, .hero-deco-5, .hero-deco-6 { display: none; }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .steps-container::before {
        display: none;
    }

    .grimasso-section {
        padding: 3.5rem 0;
    }

    .features-grid,
    .benefits-grid,
    .app-features-grid {
        padding: 0 1rem;
    }

    .app-features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        gap: 1.5rem 2rem;
    }

    .trust-grid {
        gap: 1.5rem 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .section-wave {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-app-icon img {
        width: 150px;
        height: 150px;
        border-radius: 30px;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .btn-grimasso {
        width: 100%;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        gap: 1.25rem 1.5rem;
    }

    .stat-item {
        min-width: 100px;
    }

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

    .trust-item {
        flex-direction: column;
        text-align: center;
    }

    .grimasso-lang-switcher .lang-switch {
        padding: 0.25rem 0.4rem;
        font-size: 0.65rem;
    }

    .hero-deco { display: none !important; }
    .hero-bubble { display: none; }

    .section-wave {
        height: 30px;
    }
}

/* ============================================
   INTERACTIVE ANIMATIONS & MICRO-INTERACTIONS
   ============================================ */

/* Scroll Progress Indicator */
.grimasso-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--grimasso-primary) 0%,
        var(--grimasso-yellow) 20%,
        var(--grimasso-orange) 40%,
        var(--grimasso-pink) 60%,
        var(--grimasso-blue) 80%,
        var(--grimasso-purple) 100%
    );
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease-out;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px rgba(51, 199, 89, 0.4);
}

/* Confetti Particles */
.grimasso-confetti {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    animation: grimasso-confetti-fall 1s ease-out forwards;
}

@keyframes grimasso-confetti-fall {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translate(var(--vx), calc(var(--vy) + 300px)) rotate(var(--rotation));
        opacity: 0;
    }
}

/* Emoji Burst Animation */
.grimasso-emoji-burst {
    position: fixed;
    font-size: 2rem;
    pointer-events: none;
    z-index: 9998;
    animation: grimasso-emoji-burst-out 1s ease-out forwards;
}

@keyframes grimasso-emoji-burst-out {
    0% {
        transform: translate(0, 0) scale(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(1.5) rotate(180deg);
        opacity: 0;
    }
}

/* App Icon Wobble */
.grimasso-wobble {
    animation: grimasso-wobble-shake 0.6s ease-in-out;
}

@keyframes grimasso-wobble-shake {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-15deg) scale(1.05); }
    30% { transform: rotate(15deg) scale(1.05); }
    45% { transform: rotate(-12deg) scale(1.03); }
    60% { transform: rotate(12deg) scale(1.03); }
    75% { transform: rotate(-8deg) scale(1.01); }
    90% { transform: rotate(8deg) scale(1.01); }
}

/* Card Tilt Effect - Enhanced for smooth transitions */
.feature-card,
.benefit-card,
.app-feature-item {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    will-change: transform;
}

.feature-card:hover,
.benefit-card:hover,
.app-feature-item:hover {
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-app-icon img,
    .hero-deco,
    .grimasso-hero,
    .hero-title .grimasso-name,
    .btn-grimasso-primary,
    .hero-bubble {
        animation: none;
    }

    .feature-card:hover,
    .benefit-card:hover,
    .app-feature-item:hover {
        transform: none;
    }

    .grimasso-scroll-progress {
        display: none;
    }

    .grimasso-confetti,
    .grimasso-emoji-burst,
    .grimasso-wobble {
        animation: none;
        display: none;
    }

    .animate-in {
        transition: opacity 0.3s ease !important;
    }
}

/* === Screenshot Gallery === */
.grimasso-screenshots-section { padding: 60px 0 40px; }

/* Device selector tabs */
.screenshots-device-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
}
.device-tab {
    padding: 10px 32px;
    border-radius: 100px;
    border: 2px solid var(--grimasso-primary);
    background: transparent;
    color: var(--grimasso-primary);
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.device-tab.active {
    background: var(--grimasso-primary);
    color: #fff;
}
.device-tab:hover:not(.active) {
    background: rgba(51,199,89,0.12);
}

/* Carousel container — shows/hides via JS */
.screenshots-carousel { display: block; }
.screenshots-carousel.hidden { display: none; }

/* Horizontal scroll track */
.screenshots-scroll {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 24px;
    padding: 16px 48px 28px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.screenshots-scroll::-webkit-scrollbar { display: none; }

/* Individual slide */
.screenshot-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* Device frame base */
.device-frame {
    background: #1a1a1a;
    border: 10px solid #2a2a2a;
    box-shadow:
        inset 0 0 0 1.5px #444,
        0 20px 40px rgba(0,0,0,0.22),
        0 6px 12px rgba(0,0,0,0.14);
    overflow: hidden;
    position: relative;
}
.device-frame img { display: block; width: 100%; height: auto; }

.device-frame-iphone {
    border-radius: 44px;
    width: 220px;
}
.device-frame-ipad {
    border-radius: 24px;
    width: 310px;
}

/* Caption */
.screenshot-label {
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--grimasso-primary);
    text-align: center;
    max-width: 200px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .screenshots-scroll { padding: 12px 24px 20px; gap: 16px; }
    .device-frame-iphone { width: 175px; border-radius: 36px; border-width: 8px; }
    .device-frame-ipad { width: 240px; border-radius: 18px; border-width: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .screenshots-scroll { scroll-behavior: auto; }
}
