:root {
    /* Color Palette from App */
    --space-blue: #0D1B2A;
    --deep-space: #1B263B;
    --night-sky: #1C2541;
    --cosmic-purple: #7B2CBF;
    --nebula-pink: #E040FB;
    --star-yellow: #FFD60A;
    --sun-orange: #FF6B35;
    --mars-red: #EF476F;
    --earth-blue: #118AB2;
    --aurora-cyan: #06D6A0;
    --text-primary: #F0F4F8;
    --text-secondary: #B8C0C8;

    --card-bg: rgba(28, 37, 65, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--space-blue);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background: radial-gradient(ellipse at bottom, var(--deep-space) 0%, var(--space-blue) 100%);
    min-height: 100vh;
}

/* --- Star Background Animation --- */
.stars,
.twinkling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.stars {
    background:
        radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 3px),
        radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 2px),
        radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    z-index: -2;
}

.twinkling {
    background: transparent;
    z-index: -1;
}

/* --- Premium Animation Keyframes --- */
@keyframes float {

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

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

@keyframes floatReverse {

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

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(0.98);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(123, 44, 191, 0.4), 0 0 40px rgba(123, 44, 191, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(123, 44, 191, 0.6), 0 0 60px rgba(123, 44, 191, 0.3);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

@keyframes rocketFloat {

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

    25% {
        transform: translateY(-10px) rotate(-42deg);
    }

    75% {
        transform: translateY(5px) rotate(-48deg);
    }
}

@keyframes shootingStar {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        transform: translateX(-300px) translateY(300px);
        opacity: 0;
    }
}

@keyframes borderGlow {

    0%,
    100% {
        border-color: var(--cosmic-purple);
    }

    50% {
        border-color: var(--aurora-cyan);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}


/* --- Typography & Layout --- */

h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--text-primary), var(--aurora-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--star-yellow);
}

p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header --- */
.main-header {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(13, 27, 42, 0.85);
    /* Slightly darker for better contrast */
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 1.5rem;
}

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

.app-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.logo-text {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-btn .flag {
    font-size: 1.1rem;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--cosmic-purple);
    border-color: var(--cosmic-purple);
    color: white;
    box-shadow: 0 0 10px rgba(123, 44, 191, 0.4);
}

/* --- Hero Section --- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0 4rem 0;
    /* Reduced top padding */
    gap: 2rem;
    /* Reduced gap */
}

.hero-content {
    max-width: 800px;
    /* Increased from 600px for better headline wrapping */
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: -30px;
    perspective: 1000px;
}

.device-mockup {
    position: relative;
    transition: transform 0.5s ease;
}

.device-mockup:hover {
    transform: translateY(-10px);
}

.device-mockup img {
    display: block;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    border-radius: 24px;
    max-width: 100%;
    height: auto;
}


.device-mockup.tablet img {
    height: 450px;
    /* Slightly larger */
    width: auto;
    z-index: 1;
}

.device-mockup.phone {
    margin-left: -60px;
    z-index: 2;
    margin-bottom: -20px;
}

.device-mockup.phone img {
    height: 400px;
    /* Slightly larger */
    width: auto;
}

.app-stores {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-top: 2.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.store-badge {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1));
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.8rem;
    border-radius: 16px;
    font-weight: 700;
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.05rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.store-badge:hover {
    background: var(--cosmic-purple);
    transform: translateY(-2px) scale(1.02);
    border-color: var(--nebula-pink);
    box-shadow: 0 10px 20px rgba(123, 44, 191, 0.3);
}

.store-icon {
    width: 24px;
    height: 24px;
}

/* --- Features Grid --- */
.features {
    padding: 4rem 0;
}

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

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--cosmic-purple);
    background: rgba(40, 50, 80, 0.8);
}

.feature-card .icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.feature-card h3 {
    color: var(--aurora-cyan);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

/* --- Discover List --- */
.discover {
    background: linear-gradient(160deg, rgba(28, 37, 65, 0.6), rgba(13, 27, 42, 0.8));
    border-radius: 40px;
    padding: 4rem;
    margin: 6rem 0;
    text-align: center;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

/* Optional glow effect */
.discover::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(123, 44, 191, 0.1), transparent 70%);
    pointer-events: none;
}

.discover-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    position: relative;
    z-index: 1;
}

.discover-list li {
    font-size: 1.15rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    font-weight: 600;
}

.discover-list li:hover {
    border-color: var(--star-yellow);
    background: rgba(255, 214, 10, 0.15);
    transform: scale(1.05);
    color: white;
}

.note {
    margin-top: 2.5rem;
    font-style: italic;
    opacity: 0.8;
    font-size: 1rem;
    color: var(--text-secondary);
}

/* --- About & Safety --- */
.about,
.safety {
    padding: 4rem 0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-card-container {
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.15), rgba(6, 214, 160, 0.1));
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.author-image-container {
    padding: 4px;
    background: linear-gradient(to right, var(--cosmic-purple), var(--aurora-cyan));
    border-radius: 50%;
    width: 150px;
    height: 150px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.author-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--deep-space);
    /* Inner border to separate from gradient */
}

.about-text-container {
    max-width: 600px;
}

.safety-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 2.5rem;
}

.badgex,
.badgecheck {
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: transform 0.2s ease;
}

.badgex:hover,
.badgecheck:hover {
    transform: scale(1.05);
}

.badgex {
    background: rgba(239, 71, 111, 0.15);
    color: #ffb3bc;
    border: 1px solid rgba(239, 71, 111, 0.3);
}

.badgecheck {
    background: rgba(6, 214, 160, 0.15);
    color: #a0ffe7;
    border: 1px solid rgba(6, 214, 160, 0.3);
}

.check,
.cross {
    font-size: 1.1em;
}

/* --- CTA Section --- */
.cta {
    text-align: center;
    padding: 6rem 0;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.centered-cta {
    justify-content: center;
    margin-top: 3rem;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0;
    margin-top: 4rem;
    background: rgba(13, 27, 42, 0.95);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.copyright p {
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.tagline {
    font-weight: 700;
    color: var(--aurora-cyan);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

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

.links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
}

.links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--aurora-cyan);
    transition: width 0.3s ease;
}

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

.links a:hover {
    color: var(--aurora-cyan);
}

/* --- Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* --- Social Proof Badge --- */
.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.proof-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, rgba(255, 214, 10, 0.15), rgba(255, 107, 53, 0.1));
    border: 1px solid rgba(255, 214, 10, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--star-yellow);
    animation: pulse 3s ease-in-out infinite;
}

.proof-badge .stars {
    position: static;
    background: none;
    width: auto;
    height: auto;
    letter-spacing: 2px;
    color: var(--star-yellow);
}

/* --- Trust Badges --- */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.9rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--aurora-cyan);
    color: var(--aurora-cyan);
    transform: translateY(-2px);
}

.trust-badge .badge-icon {
    font-size: 1.1rem;
}

/* --- Enhanced Store Badges --- */
.store-badge {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.12));
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 18px;
    font-weight: 700;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.store-badge::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--cosmic-purple), var(--aurora-cyan), var(--nebula-pink));
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.store-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.store-badge:hover::after {
    left: 100%;
}

.store-badge:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(123, 44, 191, 0.4), 0 0 30px rgba(6, 214, 160, 0.2);
}

.store-icon {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* --- Testimonials Section --- */
.testimonials {
    padding: 5rem 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: linear-gradient(160deg, var(--card-bg), rgba(123, 44, 191, 0.08));
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    position: relative;
    transition: all 0.4s ease;
    backdrop-filter: blur(8px);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--cosmic-purple);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: var(--cosmic-purple);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 30px rgba(123, 44, 191, 0.15);
}

.testimonial-stars {
    color: var(--star-yellow);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

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

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cosmic-purple), var(--aurora-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

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

.author-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1rem;
}

.author-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- Floating Decorations --- */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.floating-rocket {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.15;
    animation: rocketFloat 8s ease-in-out infinite;
}

.floating-rocket.rocket-1 {
    top: 15%;
    right: 8%;
    animation-delay: 0s;
}

.floating-rocket.rocket-2 {
    top: 60%;
    left: 5%;
    font-size: 2rem;
    animation-delay: 3s;
}

.floating-planet {
    position: absolute;
    font-size: 3rem;
    opacity: 0.12;
    animation: float 10s ease-in-out infinite;
}

.floating-planet.planet-1 {
    top: 25%;
    left: 3%;
    animation-delay: 1s;
}

.floating-planet.planet-2 {
    bottom: 30%;
    right: 4%;
    font-size: 2.5rem;
    animation-delay: 4s;
    animation-name: floatReverse;
}

.floating-star {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.2;
    animation: twinkle 2s ease-in-out infinite;
}

.floating-star.star-1 {
    top: 40%;
    right: 15%;
    animation-delay: 0.5s;
}

.floating-star.star-2 {
    top: 70%;
    left: 12%;
    animation-delay: 1.5s;
}

.floating-star.star-3 {
    top: 20%;
    left: 20%;
    animation-delay: 2.5s;
}

/* --- Preview Section Enhancement --- */
.preview {
    text-align: center;
    padding: 5rem 1rem;
    position: relative;
    overflow: hidden;
}

.preview h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.preview>p {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Device Showcase Container */
.device-showcase {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Showcase Row */
.showcase-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.showcase-row.ipad-row {
    gap: 2rem;
}

.showcase-row.iphone-row {
    gap: 1.5rem;
}

/* Individual Showcase Device */
.showcase-device {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.showcase-device:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Device Frame Styling */
.device-frame {
    position: relative;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border-radius: 20px;
    padding: 12px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.device-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.device-frame img {
    display: block;
    border-radius: 12px;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 0;
}

/* iPad Frame */
.ipad-frame {
    border-radius: 24px;
    padding: 14px;
}

.ipad-frame::before {
    border-radius: 24px;
}

.ipad-frame img {
    border-radius: 16px;
}

.showcase-device.ipad .device-frame {
    width: 340px;
    max-width: 100%;
}

/* iPhone Frame */
.iphone-frame {
    border-radius: 32px;
    padding: 10px;
}

.iphone-frame::before {
    border-radius: 32px;
}

.iphone-frame img {
    border-radius: 24px;
}

.showcase-device.iphone .device-frame {
    width: 220px;
    max-width: 100%;
}

/* Device Caption */
.device-caption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.showcase-device:hover .device-caption {
    background: var(--cosmic-purple);
    color: white;
    border-color: var(--cosmic-purple);
}

/* Platform Badges */
.platform-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.platform-badge {
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.2), rgba(6, 214, 160, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.platform-badge:hover {
    transform: scale(1.05);
    border-color: var(--aurora-cyan);
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.3), rgba(6, 214, 160, 0.3));
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .showcase-device.ipad .device-frame {
        width: 300px;
    }

    .showcase-device.iphone .device-frame {
        width: 200px;
    }
}

@media (max-width: 900px) {
    .showcase-row.ipad-row {
        gap: 1.5rem;
    }

    .showcase-device.ipad .device-frame {
        width: 240px;
    }

    .showcase-device.iphone .device-frame {
        width: 170px;
    }
}

@media (max-width: 600px) {
    .preview h2 {
        font-size: 2rem;
    }

    .showcase-row {
        gap: 1rem;
    }

    .showcase-device.ipad .device-frame {
        width: 160px;
    }

    .showcase-device.iphone .device-frame {
        width: 120px;
    }

    .device-caption {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .platform-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}


/* --- Content Statistics Section --- */
.content-stats {
    text-align: center;
    padding: 5rem 1.5rem;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(123, 44, 191, 0.05) 20%,
            rgba(6, 214, 160, 0.05) 80%,
            transparent 100%);
}

.content-stats h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.content-stats>p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cosmic-purple), var(--aurora-cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card.featured {
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.15), rgba(6, 214, 160, 0.1));
    border-color: rgba(123, 44, 191, 0.3);
}

.stat-card.featured::before {
    opacity: 1;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--star-yellow), var(--sun-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Value Highlights */
.value-highlights {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.value-check {
    color: var(--aurora-green);
    font-size: 1.2rem;
}

/* Stats Responsive */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .content-stats h2 {
        font-size: 2rem;
    }

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

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

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

    .value-highlights {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

/* --- App Store Rating Display --- */
.store-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-name {
    font-size: 1rem;
    font-weight: 700;
}

.store-rating {
    font-size: 0.8rem;
    color: var(--star-yellow);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* --- Enhanced Feature Cards --- */
.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cosmic-purple), var(--aurora-cyan));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25), 0 0 40px rgba(123, 44, 191, 0.1);
    border-color: var(--cosmic-purple);
    background: rgba(40, 50, 90, 0.85);
}

.feature-card .icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.25));
    transition: transform 0.3s ease;
}

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

/* --- Stats Counter --- */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 3rem 0;
    flex-wrap: wrap;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--aurora-cyan), var(--cosmic-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

/* --- JSON-LD won't display - just for SEO --- */


/* --- Media Queries --- */


@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        align-items: center;
        /* Ensure vertical alignment */
        padding: 8rem 0;
        gap: 4rem;
        /* Add significant gap between text and images */
    }

    .hero-content {
        flex: 1;
        /* Allow flexible width */
        min-width: 0;
        /* Prevent potential overflow issues */
    }

    .hero-image {
        flex: 1;
        /* Allow flexible width */
        min-width: 0;
        /* Prevent potential overflow issues */
    }
}

@media (max-width: 767px) {
    main {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .device-mockup.tablet img {
        height: 320px;
    }

    .device-mockup.phone {
        margin-left: -40px;
    }

    .device-mockup.phone img {
        height: 280px;
    }

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

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

    .about-content {
        gap: 1.5rem;
    }

    /* New elements mobile styles */
    .social-proof {
        margin-bottom: 1rem;
    }

    .proof-badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    .trust-badges {
        gap: 0.5rem;
        margin-top: 1rem;
    }

    .trust-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

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

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .app-stores {
        flex-direction: column;
        gap: 1rem;
    }

    .store-badge {
        width: 100%;
        justify-content: center;
    }

    .floating-elements {
        opacity: 0.5;
    }

    .floating-rocket,
    .floating-planet {
        display: none;
    }

    .discover {
        padding: 2.5rem 1.5rem;
        margin: 3rem 0;
    }

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

    .feature-card {
        padding: 2rem;
    }

    .cta h2 {
        font-size: 1.8rem;
    }

    /* Fix header on small screens */
    nav {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }

    .logo-container {
        width: 100%;
        justify-content: center;
    }

    .lang-switcher {
        gap: 0.25rem;
    }

    .lang-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .lang-btn .flag {
        font-size: 1rem;
    }

    /* Hide text on lang buttons, show only flag */
    .lang-btn {
        padding: 0.5rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    html {
        text-align: center;
    }

    body {
        min-width: 100%;
    }

    nav {
        padding: 0 1rem;
    }

    .lang-btn {
        padding: 0.4rem 0.5rem;
        font-size: 0.75rem;
        gap: 0.2rem;
    }

    .lang-btn .flag {
        font-size: 0.9rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* --- Contact Form Modal --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, rgba(30, 40, 70, 0.98), rgba(20, 30, 55, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(123, 44, 191, 0.15);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.modal-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-content>p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cosmic-purple);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--cosmic-purple), var(--aurora-cyan));
    border: none;
    border-radius: 50px;
    color: white;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 44, 191, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-success {
    text-align: center;
    padding: 2rem 0;
}

.form-success.hidden {
    display: none;
}

.success-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.form-success p {
    color: var(--aurora-green);
    font-size: 1.1rem;
    font-weight: 600;
}

#contact-form.hidden {
    display: none;
}

/* Modal responsive */
@media (max-width: 480px) {
    .modal-content {
        padding: 1.5rem;
    }

    .modal-content h3 {
        font-size: 1.5rem;
        padding-right: 2rem;
    }
}