/* CSS Variables & Theme */
:root {
    /* AppTheme Light Mode */
    --primary-color: #4A8E8D;
    /* Soft Teal */
    --primary-glow: rgba(74, 142, 141, 0.2);
    --secondary-color: #C68E63;
    /* Soft Peach/Bronze */

    --bg-color: #FDFCF8;
    /* Warm Off-White */
    --bg-card: #FFFFFF;
    --bg-nav: rgba(253, 252, 248, 0.85);
    /* More translucent */

    --text-primary: #252321;
    /* Warm Dark - slightly darkened */
    --text-secondary: #6B6764;
    /* Darkened from #7A7672 for 4.5:1 contrast */
    --text-accent: #3E7C7B;
    /* Darkened from #4A8E8D */

    --border-color: rgba(94, 82, 64, 0.08);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --radius-card: 24px;
    --radius-btn: 16px;

    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);

    --transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --bg-color: #2C2A28;
    /* Warm Dark Grey */
    --bg-card: #353331;
    /* Slightly lighter warm grey */
    --bg-nav: rgba(44, 42, 40, 0.85);

    --text-primary: #F2F0EB;
    --text-secondary: #B0ADA9;
    --text-accent: #6FB3B2;

    --primary-color: #6FB3B2;
    --primary-glow: rgba(111, 179, 178, 0.2);
    --secondary-color: #FFD1A9;

    --border-color: rgba(255, 255, 255, 0.08);

    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;

    /* Dynamic Ambient Glow */
    background-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 0%),
            var(--primary-glow) 0%,
            transparent 50%);
    background-attachment: fixed;
    background-repeat: no-repeat;

    /* Performance optimization */
    will-change: background-image;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    letter-spacing: -0.01em;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Accessibility: Visible Focus Styles */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Skip Link for Keyboard Users */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}



/* Utility Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(10px);
    /* Apple-style mist effect */
    transition:
        opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
        filter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform, filter;
}

.visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Stagger Delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.small-container {
    max-width: 800px;
    /* For Text/FAQ focused sections */
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

[data-theme="dark"] .btn-primary {
    color: #fff;
    /* Ensure white text on buttons even in dark mode for contrast */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* App Store Badge - User Provided SVG Version */
.btn-appstore {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    /* Slight radius to match SVG if needed, or just 0 */
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s;
    border: none;
    background: transparent;
    padding: 0;
    line-height: 0;
    /* Remove line-height to fit SVG exactly */
}

.btn-appstore:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    /* Keep shadow for lift effect */
}

.btn-appstore svg,
.btn-appstore img {
    height: 48px;
    /* Standard accessible height */
    width: auto;
    display: block;
}

/* Dark Mode - The SVG carries its own colors (Black/Grey/White) so we don't need overrides */
[data-theme="dark"] .btn-appstore {
    background: transparent;
    border-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    /* Slightly taller for elegance */
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    transition: background 0.5s ease, border 0.5s ease;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Logo with Subtle Shine */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-heading);

    /* Shimmer Effect */
    background: linear-gradient(110deg,
            var(--text-primary) 45%,
            var(--text-accent) 50%,
            var(--text-primary) 55%);
    background-size: 250% 100%;
    background-position: 100% 0;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logo-shine 8s ease-in-out infinite;
}

.logo:hover {
    animation: logo-shine 2s ease-in-out infinite;
}

.logo img {
    border-radius: 10px;
    width: 36px;
    height: 36px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Ensure image isn't affected by text clip */
    -webkit-text-fill-color: initial;
}

@keyframes logo-shine {
    0% {
        background-position: 100% 0;
    }

    15% {
        background-position: 0% 0;
    }

    /* Shine passes through */
    100% {
        background-position: 0% 0;
    }

    /* Wait phase */
}

/* Easter Egg Spin Animation */
@keyframes spin-carousel {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(1080deg);
        /* 3 full rotations */
    }
}

.carousel-spin {
    animation: spin-carousel 3s ease-in-out !important;
    pointer-events: none;
    /* Prevent clicks while spinning */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Resize App Store button in navbar */
.nav-right .btn-appstore img,
.nav-right .btn-appstore svg {
    height: 40px;
}

/* Language Switcher Dropdown */
.lang-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-toggle {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-primary);
    cursor: pointer;
    padding: 6px 10px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 20px;
    height: 36px;
}

.lang-toggle:hover,
.lang-dropdown.active .lang-toggle {
    background: var(--bg-hover);
    border-color: var(--border-color);
}

.current-flag {
    display: flex;
    align-items: center;
    justify-content: center;
}

.current-flag svg {
    width: 22px;
    height: auto;
    border-radius: 2px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.dropdown-arrow {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.lang-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 6px;
    min-width: 150px;
    list-style: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.lang-dropdown.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    text-align: left;
    transition: all 0.15s ease;
}

.lang-option:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.lang-option.active {
    background: var(--primary-light);
    color: var(--primary-color);
}

.flag-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
}

.flag-icon svg {
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-hover);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    max-width: 90%;
}

.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-banner a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: var(--text-primary);
    padding: 8px;
    display: flex;
    align-items: center;
    transition: transform 0.3s;
    opacity: 0.8;
}

.theme-toggle:hover {
    opacity: 1;
    transform: rotate(15deg);
}

/* Hero */
.hero {
    min-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 60px;
    position: relative;
    overflow: visible;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-text {
    flex: 1;
    text-align: left;
    max-width: 550px;
}

.hero h1 {
    font-size: clamp(48px, 6vw, 80px);
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-mockup {
    flex: 1;
    max-width: 50%;
    /* Image takes up half width roughly */
    border-radius: 0;
    /* No border radius for transparent phones */
    box-shadow: none;
    /* No box shadow for transparent phones */
    margin-top: 0;
    max-width: 550px;
    /* Increased further as requested */
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    animation: float-zoom 8s ease-in-out infinite;
    will-change: transform;
}

@keyframes float-zoom {
    0% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.05);
        /* Gentle float up + zoom in */
    }

    100% {
        transform: translateY(0px) scale(1);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    opacity: 0.7;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.scroll-indicator:hover {
    color: var(--primary-color);
    opacity: 1;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

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

@keyframes bounce-mobile {

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

    40% {
        transform: translateY(-10px);
    }

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

/* Mobile Responsiveness for Hero */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        /* Stack content and arrow */
        padding-bottom: 40px;
        /* Reduce padding, relying on flow */
        height: auto;
        /* Allow growth */
        min-height: 100vh;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .hero-text {
        text-align: center;
        margin: 0 auto;
    }

    .hero-mockup {
        max-width: 80%;
        margin-top: 80px;
        margin-bottom: 0;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Sections */
.section {
    padding: 120px 0;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

/* Legal Content Styling */
.legal-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.legal-content h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 40px;
    color: var(--text-primary);
    line-height: 1.2;
}

.legal-content h2 {
    font-size: 28px;
    margin-top: 60px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.legal-content h3 {
    font-size: 22px;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 700;
}

.legal-content p {
    margin-bottom: 24px;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 12px;
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.legal-content a:hover {
    color: var(--text-primary);
}

.bento-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    transition: transform 0.1s ease-out, box-shadow 0.4s ease;
    /* Fast transform for responsiveness */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    position: relative;
    overflow: hidden;
    /* Ensure hardware acceleration */
    will-change: transform;
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
    /* Subtle tint on hover */
}

/* Highlights Section */
.highlights-scroll-container {
    position: relative;
    margin-top: 40px;
    padding: 20px 60px;
    /* Space for arrows */
}

.highlights-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.highlights-scroll::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.highlight-card {
    flex: 0 0 200px;
    max-width: 85vw;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    scroll-snap-align: center;
    cursor: grab;
}

.highlight-card:active {
    cursor: grabbing;
}

.highlight-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.highlight-card:hover {
    transform: translateY(-4px) scale(1.01);
}

.highlight-card:hover img {
    transform: scale(1.05);
}

/* Highlights Nav Buttons - Positioned Left/Right */
.highlights-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    z-index: 10;
}

.highlights-nav-btn.prev {
    left: -24px;
}

.highlights-nav-btn.next {
    right: -24px;
}

.highlights-nav-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 1150px) {
    .highlights-nav-btn.prev {
        left: 0;
    }

    .highlights-nav-btn.next {
        right: 0;
    }
}

@media (max-width: 768px) {
    .highlights-scroll-container {
        padding: 20px 0;
    }

    .highlight-card {
        flex: 0 0 180px;
    }

    .highlights-nav {
        display: none;
        /* Hide buttons on mobile to rely on touch scroll */
    }
}

.bento-card.wide {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    /* justify-content: center; center alignment might be bad for list */
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-nav);
    margin-bottom: 24px;
    font-size: 28px;
    /* Reset text align for icon */
}

.card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.card-text {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.6;
}

.big-stat {
    font-size: 64px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 16px;
    display: block;
}

/* FAQ Styling */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-btn);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item[open] {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-soft);
}

.faq-item summary {
    padding: 24px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    list-style: none;
    /* Remove default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    transition: color 0.3s;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s;
    color: var(--primary-color);
}

.faq-item[open] summary:after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: -8px;
    /* Pull text closer to header */
    font-size: 16px;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
    background: var(--bg-card);
    /* Distinct footer bg */
}

.footer-links a {
    margin-right: 32px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Utility Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Mobile */
/* Mobile Sticky Button */
.mobile-sticky-btn {
    display: none;
}

/* Hide Mobile Elements by default */
.hamburger-btn,
.mobile-menu {
    display: none;
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-sticky-btn {
        display: inline-flex;
        position: fixed;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        /* Start slightly down */
        z-index: 1000;
        /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); Remove container shadow, rely on badge */
        width: auto;
        /* Fit to badge */
        /* max-width: 350px; Removed */
        /* backdrop-filter: blur(10px); Removed */
        /* -webkit-backdrop-filter: blur(10px); Removed */
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        justify-content: center;
        filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.2));
        /* Interact with SVG shape better */
    }

    .mobile-sticky-btn.visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    .mobile-sticky-btn:hover {
        transform: translate(-50%, -2px);
        /* Maintain X centering, add Y lift */
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    }

    .nav-links {
        display: none;
    }

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

    .bento-card.wide {
        grid-column: span 1;
    }

    /* Mobile Menu Toggle */
    .desktop-only {
        display: none !important;
        /* Hide desktop "Laden" button if needed, or keep it */
    }

    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 2000;
        /* Above menu overlay */
        padding: 0;
    }

    .hamburger-btn span {
        width: 100%;
        height: 2px;
        background-color: var(--text-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Hamburger Animation */
    .hamburger-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }

    /* We need 3 spans for standard hamburger, but HTMl had 2. Let's stick to 2 for a simple cross or add a 3rd in HTML? 
       Wait, I added 2 spans in HTML: <span></span><span></span>. 
       Let's adjust CSS for 2 spans to make a cross.
    */
    .hamburger-btn span:nth-child(1) {
        transform-origin: center;
    }

    .hamburger-btn span:nth-child(2) {
        transform-origin: center;
    }

    .hamburger-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger-btn.active span:nth-child(2) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Mobile Menu Overlay */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-card);
        /* or semi-transparent */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1500;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        padding-top: 60px;
    }

    .mobile-menu.active {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        width: 100%;
    }

    .mobile-link {
        font-size: 24px;
        font-weight: 700;
        color: var(--text-primary);
        font-family: var(--font-heading);
    }

    /* Hero Fixes */
    .hero h1 {
        font-size: 42px;
    }

    .hero {
        padding-top: 80px;
        /* Further reduced */
        min-height: auto;
        padding-bottom: 0;
        /* Minimal padding bottom */
    }

    .hero-mockup {
        max-width: 80%;
        margin-top: 0;
        /* Remove top margin completely */
        margin-bottom: 0;
    }

    /* Testimonials */
    .testimonial-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .testimonial-card {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-card);
        padding: 24px;
        display: flex;
        flex-direction: column;
        height: 100%;
        transition: var(--transition);
    }

    .testimonial-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-hover);
        border-color: var(--primary-color);
    }

    .testimonial-header {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 16px;
    }

    .user-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 24px;
        flex-shrink: 0;
    }

    .user-info {
        display: flex;
        flex-direction: column;
    }

    .user-name {
        font-weight: 700;
        color: var(--text-primary);
        font-size: 16px;
    }

    .user-age-role {
        font-size: 13px;
        color: var(--text-secondary);
    }

    .testimonial-quote {
        font-size: 15px;
        color: var(--text-primary);
        line-height: 1.6;
        margin-bottom: 24px;
        flex-grow: 1;
    }

    .testimonial-meta {
        border-top: 1px solid var(--border-color);
        padding-top: 16px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .tag-container {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tag {
        font-size: 11px;
        background: var(--bg-nav);
        color: var(--text-secondary);
        padding: 4px 8px;
        border-radius: 4px;
        font-weight: 500;
        border: 1px solid var(--border-color);
    }

    .used-for-badge {
        font-size: 12px;
        color: var(--primary-color);
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    @media (max-width: 900px) {
        .testimonial-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 600px) {
        .testimonial-grid {
            grid-template-columns: 1fr;
        }
    }
}

/* Carousel Styles (Grid Stack Technique) */
#testimonial-carousel {
    display: grid !important;
    /* Force grid layout */
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
    align-items: center;
    /* Vertical center if needed, or start */
}

.carousel-slide {
    grid-area: 1 / 1;
    /* Stack all slides on top of each other */
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
    z-index: 1;
    transform: translateX(20px);
    width: 100%;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
    transform: translateX(0);
}

.carousel-slide.exit {
    opacity: 0;
    transform: translateX(-20px);
}

.star-rating {
    color: #FFD700;
    letter-spacing: 2px;
}

/* Carousel Controls */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.carousel-arrow:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-hover);
}

.carousel-arrow:hover svg {
    transform: scale(1.1);
}

.carousel-arrow.prev {
    left: -80px;
}

.carousel-arrow.next {
    right: -80px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* App Showcase Gallery */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.showcase-item {
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.showcase-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.showcase-item:hover img {
    transform: scale(1.05);
}

.showcase-item.wide {
    grid-column: span 2;
    max-height: 400px;
}

@media (max-width: 768px) {
    .carousel-arrow {
        display: none;
        /* Hide arrows on mobile */
    }

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

    .showcase-item.wide {
        grid-column: span 1;
    }
}