/* ==========================================================================
   MINIMATH - Premium Cosmic Ambient Theme
   ========================================================================== */

/* --- Variables & Theming --- */
:root {
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Default (Dark Mode) Variables */
    --bg-image: url('full_space.jpg');
    --bg-overlay: rgba(10, 10, 20, 0.4);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Glassmorphism Dark */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);

    /* Interactive */
    --primary-color: #3B82F6;
    /* Optional, mainly using gradients */
    --primary-gradient: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    --primary-hover: linear-gradient(135deg, #25D0FF 0%, #1A85FF 100%);

    --neon-blue: #00f0ff;
    --neon-purple: #b92b27;
    --neon-purple-grad: linear-gradient(135deg, #1565C0 0%, #b92b27 100%);
    --neon-gold: #f6d365;
    --neon-green: #00b09b;
    --neon-pink: #ff0844;
    --neon-orange: #f12711;

    --header-height: 80px;
}

@media (prefers-color-scheme: light) {
    :root {
        /* Light Mode Variables */
        --bg-image: url('full_space_light.jpg');
        --bg-overlay: rgba(255, 255, 255, 0.2);

        --text-primary: #111827;
        --text-secondary: rgba(17, 24, 39, 0.8);
        --text-muted: rgba(17, 24, 39, 0.6);

        /* Glassmorphism Light */
        --glass-bg: rgba(255, 255, 255, 0.25);
        --glass-border: rgba(255, 255, 255, 0.4);
        --glass-border-strong: rgba(255, 255, 255, 0.7);
        --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    }
}

/* --- Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: #0b0b1a;
    /* fallback */
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* --- Background & Animations --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -10;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    backdrop-filter: blur(2px);
    z-index: -9;
}

/* Very subtle star dust animation */
.stars-bg,
.twinkling {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -8;
    pointer-events: none;
}

.stars-bg {
    background: transparent url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.3)"/><circle cx="150" cy="80" r="1.5" fill="rgba(255,255,255,0.2)"/><circle cx="280" cy="230" r="1" fill="rgba(255,255,255,0.4)"/><circle cx="350" cy="350" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: drift 100s linear infinite;
}

.twinkling {
    background: transparent url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><circle cx="100" cy="180" r="1" fill="rgba(255,255,255,0.8)"/><circle cx="250" cy="50" r="1.5" fill="rgba(255,255,255,0.6)"/><circle cx="50" cy="250" r="2" fill="rgba(255,255,255,0.5)"/></svg>') repeat;
    animation: drift 70s linear infinite reverse, twinkle 4s infinite alternate;
}

@keyframes drift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: -1000px 500px;
    }
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

/* --- Glassmorphism Utilities --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
}

@media (prefers-color-scheme: light) {
    .glass-panel {
        /* Extra white border on top/left for nice 3D lighting in light mode */
        border-top: 1px solid var(--glass-border-strong);
        border-left: 1px solid var(--glass-border-strong);
    }
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0 2rem;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-icon {
    font-size: 1.75rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    border: none;
}

.cta-btn:active {
    transform: scale(0.96);
}

.cta-btn.small {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    background: var(--primary-gradient);
    color: white;
    /* Always white inside bright gradient */
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3);
}

.cta-btn.small:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(0, 198, 255, 0.5);
    transform: translateY(-2px);
}

.cta-btn.large {
    padding: 0.75rem 1.5rem;
}

.cta-btn.primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 198, 255, 0.4);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 198, 255, 0.5);
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

.btn-subtext {
    font-size: 0.7rem;
    font-weight: 400;
}

.btn-maintext {
    font-size: 1.1rem;
    font-weight: 800;
}

.cta-btn.secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.cta-btn.disabled-download,
.cta-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
    transform: none;
    pointer-events: none;
}

.cta-btn.disabled-download:hover,
.cta-btn:disabled:hover,
.cta-btn.disabled-download:active,
.cta-btn:disabled:active {
    transform: none;
    box-shadow: none;
    background: var(--primary-gradient);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 999;
}

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

.mobile-link {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:last-child {
    border-bottom: none;
}

/* --- General Layout --- */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 2rem) 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.hero-text {
    flex: 1;
    max-width: 600px;
}

.badge-wrapper {
    margin-bottom: 1.5rem;
}

.glass-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    color: var(--text-secondary);
}

.glass-badge i {
    color: var(--neon-gold);
    margin-right: 0.3rem;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

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

/* Phone Mockup */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1000px;
}

.phone-mockup {
    width: 300px;
    height: 615px;
    background: #000;
    border-radius: 46px;
    position: relative;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 2px #444,
        inset 0 0 0 7px #000;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}

/* Side physical buttons */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 120px;
    left: -2px;
    width: 2px;
    height: 25px;
    /* action/silent button */
    background: #555;
    border-radius: 2px 0 0 2px;
    /* two volume buttons below it */
    box-shadow: 0 45px 0 0 #555, 0 100px 0 0 #555;
    z-index: 1;
}

/* Power button on right */
.phone-mockup::after {
    content: '';
    position: absolute;
    top: 160px;
    right: -2px;
    width: 2px;
    height: 60px;
    background: #555;
    border-radius: 0 2px 2px 0;
    z-index: 1;
}

.phone-screen {
    position: absolute;
    top: 7px;
    left: 7px;
    width: calc(100% - 14px);
    height: calc(100% - 14px);
    border-radius: 39px;
    overflow: hidden;
    background: #000;
    z-index: 2;
    /* Fix for border-radius clip issues on transformed elements (Safari) */
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

/* Dynamic Island */
.phone-screen::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

/* Dynamic Island Inner Lens */
.phone-screen::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 25px);
    width: 14px;
    height: 14px;
    background: #111;
    border-radius: 50%;
    z-index: 11;
    box-shadow: inset -2px -2px 4px rgba(255, 255, 255, 0.1);
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotateY(-15deg) rotateX(5deg);
    }

    50% {
        transform: translateY(-20px) rotateY(-15deg) rotateX(5deg);
    }

    100% {
        transform: translateY(0px) rotateY(-15deg) rotateX(5deg);
    }
}

/* Glowing blobs behind phone */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 1;
    opacity: 0.6;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: rgba(0, 198, 255, 0.4);
    top: 50px;
    right: 50px;
    animation: pulse 8s infinite alternate;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: rgba(185, 43, 39, 0.4);
    bottom: 50px;
    left: 50px;
    animation: pulse 10s infinite alternate reverse;
}

@keyframes pulse {
    0% {
        transform: scale(0.8) translate(0, 0);
        opacity: 0.4;
    }

    100% {
        transform: scale(1.2) translate(20px, -20px);
        opacity: 0.7;
    }
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: light) {
    .feature-card:hover {
        box-shadow: 0 15px 40px rgba(31, 38, 135, 0.2);
    }
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon.neon-blue {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.feature-icon.neon-purple {
    color: #d47eec;
    text-shadow: 0 0 10px rgba(212, 126, 236, 0.5);
}

.feature-icon.neon-gold {
    color: var(--neon-gold);
    text-shadow: 0 0 10px rgba(246, 211, 101, 0.5);
}

.feature-icon.neon-green {
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 176, 155, 0.5);
}

.feature-icon.neon-pink {
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(255, 8, 68, 0.5);
}

.feature-icon.neon-orange {
    color: var(--neon-orange);
    text-shadow: 0 0 10px rgba(241, 39, 17, 0.5);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* --- Screenshots Section --- */
.screenshots-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow-x: auto;
    padding: 2rem 50vw 4rem 10vw;
    scrollbar-width: none;
    /* Firefox */
}

.screenshots-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.screenshots-track {
    display: flex;
    gap: 2rem;
    width: max-content;
}

.carousel-mockup {
    /* Instead of raw images, the carousel uses same phone mockup but scaled down */
    transform: scale(0.85);
    /* Scales it down relative to the hero version */
    transform-origin: center;
    margin: -30px -15px;
    /* Compresses spacing caused by scaling */
    cursor: pointer;
    box-shadow: var(--glass-shadow);
    animation: none;
    /* Removed the float animation used on hero */
}

.carousel-mockup:hover {
    transform: scale(0.9) translateY(-10px);
}

/* The screenshots provided for the carousel have their own baked-in bezels. We need to crop them out just like we did for the old hero image. */
.carousel-mockup .phone-screen img {
    width: 100%;
    height: 100%;
    object-position: center;
    transform: scale(1);
    border-radius: 39px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    text-align: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 20px;
    animation: zoom 0.3s;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: #fff;
}

@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0
    }

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

/* --- How to Play --- */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .steps-container {
        flex-direction: row;
        align-items: center;
    }
}

.step {
    flex: 1;
    padding: 2rem;
    position: relative;
    text-align: center;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.4);
}

.step-content h3 {
    margin-top: 1rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.5rem;
}

@media (max-width: 767px) {
    .step-connector {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
}

/* --- FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1.5rem 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text-secondary);
    margin: 0;
}

/* --- Footer --- */
.footer {
    padding: 0 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin: 1.5rem 0;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-group h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    cursor: pointer;
}

.link-group a:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0 1rem;
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--glass-bg);
    width: 90%;
    max-width: 800px;
    border-radius: 24px;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
}

.video-container {
    aspect-ratio: 16/9;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.video-placeholder i {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.2);
}

.text-modal .text-content {
    padding: 3rem;
    max-height: 80vh;
    overflow-y: auto;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

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

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

    .blob {
        display: none;
    }

    /* Hide blobs on mobile to save performance */

    .phone-mockup {
        animation: none;
        transform: none;
    }

    .phone-mockup:hover {
        transform: none;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions .cta-btn {
        display: none;
    }

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

    .footer-content {
        padding: 2rem;
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    section {
        padding: 4rem 1.5rem;
    }
}

/* --- Language Dropdown --- */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 120px;
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    z-index: 1001;
    overflow: hidden;
}

.lang-dropdown:hover .lang-dropdown-content {
    display: flex;
    flex-direction: column;
}

.lang-btn {
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    background: transparent;
    border: none;
    text-align: left;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    font-weight: 800;
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile Lang Dropdown */
.mobile-lang-section {
    padding: 1rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-lang-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.mobile-lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.mobile-lang-btn {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
}

.mobile-lang-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
}
