/* CSS Variables */
:root {
    /* Light mode colors - Spiritual theme with ngl.link vibrancy */
    --gradient-start: #8B5CF6;
    --gradient-middle: #6366F1;
    --gradient-end: #F59E0B;
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --bg-card: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #000000;
    --text-muted: #666666;
    --accent: #F59E0B;
    --accent-secondary: #8B5CF6;
    --bubble-bg: #ffffff;
    --bubble-text: #000000;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --weight-bold: 800;
    --weight-extra-bold: 900;
}

/* Dark mode */
body.dark-mode {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #1a1a1a;
    --text-primary: #000000;
    --text-secondary: #ffffff;
    --bubble-bg: #1a1a1a;
    --bubble-text: #ffffff;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-middle), var(--gradient-end));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Page load animation */
body.loading {
    opacity: 0;
}

body.loaded {
    opacity: 1;
    animation: fadeIn 0.6s ease;
}

/* Header - Modern minimalist style */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    padding: 12px 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 36px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    font-size: 24px;
    font-weight: var(--weight-extra-bold);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo-text .domain {
    opacity: 0.6;
    font-weight: var(--weight-bold);
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    opacity: 0.8;
}

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

.app-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.app-icon {
    color: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
}

.app-icon:hover {
    opacity: 0.8;
    transform: translateY(-2px) scale(1.1);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.2s ease;
    border-radius: 50%;
}

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

.theme-toggle:active {
    transform: rotate(15deg) scale(0.95);
}

.theme-toggle .moon-icon {
    display: none;
}

body.dark-mode .theme-toggle .sun-icon {
    display: none;
}

body.dark-mode .theme-toggle .moon-icon {
    display: block;
}

/* Hero Section - ngl.link style */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 40px 80px;
    width: 100%;
    max-width: 100vw;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-middle) 50%, var(--gradient-end) 100%);
    background-size: 200% 200%;
    animation: gradientShift 20s ease infinite;
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

/* Huge bold typography - ngl.link signature style */
.hero-title {
    font-size: clamp(60px, 12vw, 140px);
    font-weight: var(--weight-extra-bold);
    line-height: 0.95;
    color: #ffffff;
    text-transform: lowercase;
    margin-bottom: 60px;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 10;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title .title-line {
    display: block;
    animation: fadeInUp 0.8s ease backwards;
}

.hero-title .title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-title .title-line:nth-child(2) {
    animation-delay: 0.4s;
}

/* 3D Emoji Elements - ngl.link style */
.emoji-element {
    position: absolute;
    font-size: clamp(60px, 8vw, 120px);
    z-index: 1;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    opacity: 0.85;
    pointer-events: none;
}

.emoji-1 {
    top: 5%;
    left: 2%;
    animation-delay: 0s;
}

.emoji-2 {
    top: 18%;
    right: 2%;
    animation-delay: 0.5s;
}

.emoji-3 {
    bottom: 8%;
    left: 2%;
    animation-delay: 1s;
}

.emoji-4 {
    top: 5%;
    left: 3%;
    animation-delay: 0.3s;
}

.emoji-5 {
    top: 8%;
    right: 3%;
    animation-delay: 0.8s;
}

.emoji-6 {
    top: 10%;
    left: 3%;
    animation-delay: 0.2s;
}

.emoji-7 {
    bottom: 18%;
    right: 3%;
    animation-delay: 0.6s;
}

.emoji-8 {
    top: 8%;
    left: 3%;
    animation-delay: 0.4s;
}

.emoji-9 {
    top: 22%;
    right: 3%;
    animation-delay: 0.9s;
}

.emoji-10 {
    bottom: 18%;
    right: 3%;
    animation-delay: 0.7s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-15px) rotate(3deg);
    }
    66% {
        transform: translateY(-25px) rotate(-3deg);
    }
}

@keyframes floatMobile {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

/* Screenshot Cards - ngl.link tilted style */
.screenshot-card {
    position: absolute;
    width: clamp(180px, 20vw, 280px);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4), 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0.95;
    will-change: transform;
}

.screenshot-card:hover {
    transform: scale(1.08) rotate(0deg) !important;
    opacity: 1;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.5), 0 15px 35px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-1 {
    top: 20%;
    left: 8%;
    transform: rotate(-8deg);
    z-index: 0;
}

.screenshot-2 {
    top: 30%;
    right: 10%;
    transform: rotate(6deg);
    z-index: 0;
}

.screenshot-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-4deg);
    z-index: 0;
}

.screenshot-4 {
    position: relative;
    display: inline-block;
    width: clamp(200px, 25vw, 320px);
    margin: 0 40px;
    transform: rotate(-3deg);
    vertical-align: middle;
    z-index: 0;
}

.screenshot-5 {
    top: 25%;
    left: 10%;
    transform: rotate(-10deg);
    z-index: 0;
}

.screenshot-6 {
    top: 35%;
    right: 8%;
    transform: rotate(8deg);
    z-index: 0;
}

/* CTA Button - ngl.link style */
.cta-button {
    display: inline-block;
    background: #ffffff;
    color: var(--gradient-end);
    border: none;
    padding: 22px 52px;
    font-size: 19px;
    font-weight: var(--weight-bold);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.25), 0 5px 15px rgba(0, 0, 0, 0.15);
    text-transform: lowercase;
    text-decoration: none;
    position: relative;
    z-index: 10;
    will-change: transform;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cta-button:active {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Scroll Indicator - ngl.link style */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Features Section - ngl.link black section style */
.features-section {
    position: relative;
    min-height: 100vh;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.features-content {
    position: relative;
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.section-title {
    font-size: clamp(50px, 10vw, 120px);
    font-weight: var(--weight-extra-bold);
    line-height: 0.95;
    color: var(--text-primary);
    text-transform: lowercase;
    margin-bottom: 80px;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 20;
}

/* Make final CTA section title black for readability */
.final-cta .section-title {
    color: #000000;
}

body.dark-mode .section-title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-title .title-line {
    display: block;
}

.section-title .title-part {
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.section-title .title-part:hover {
    transform: scale(1.02);
}

/* Speech Bubbles - ngl.link style */
.speech-bubble {
    position: absolute;
    background: var(--bubble-bg);
    color: var(--bubble-text);
    padding: 20px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 280px;
    animation: float 4s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
    pointer-events: none;
    display: none;
}

.speech-bubble:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 20px;
    height: 20px;
    background: var(--bubble-bg);
    border-radius: 50%;
}

.speech-bubble p {
    margin: 0;
    line-height: 1.4;
}

.bubble-1 {
    top: 15%;
    left: 2%;
    animation-delay: 0s;
}

.bubble-2 {
    top: 15%;
    right: 2%;
    animation-delay: 0.5s;
}

.bubble-3 {
    bottom: 25%;
    right: 3%;
    animation-delay: 1s;
}

.bubble-4 {
    top: 10%;
    left: 2%;
    animation-delay: 0.3s;
}

.bubble-5 {
    top: 50%;
    right: 2%;
    animation-delay: 0.7s;
}

.bubble-6 {
    bottom: 25%;
    left: 2%;
    animation-delay: 0.4s;
}

/* Feature Text - ngl.link style */
.feature-text {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    text-transform: lowercase;
    margin: 16px 0;
    letter-spacing: -0.02em;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
    cursor: default;
    position: relative;
    z-index: 15;
}

.feature-text:hover {
    transform: scale(1.08);
    animation: pulse 1s ease-in-out;
}

.feature-highlight {
    color: var(--accent);
    background: linear-gradient(90deg, var(--accent), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-highlight:hover {
    animation: pulse 1s ease-in-out infinite;
}

/* Cards Section - ngl.link gradient section style */
.cards-section {
    position: relative;
    min-height: 120vh;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-middle) 50%, var(--gradient-end) 100%);
    padding: 120px 40px;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.cards-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    height: 100vh;
}

/* Feature Cards - ngl.link card style */
.feature-card {
    position: absolute;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.12);
    width: clamp(200px, 25vw, 320px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    will-change: transform;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: scale(1.12) rotate(0deg) !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35), 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 100 !important;
}

.card-header {
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent) 100%);
    color: #ffffff;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    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;
}

.feature-card:hover .card-header::before {
    left: 100%;
}

.card-body {
    padding: 24px;
    color: var(--text-secondary);
}

.card-body p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

/* Card positioning - ngl.link scattered style */
.card-1 {
    top: 5%;
    left: 5%;
    transform: rotate(-5deg);
}

.card-2 {
    top: 8%;
    right: 10%;
    transform: rotate(4deg);
}

.card-3 {
    top: 30%;
    left: 8%;
    transform: rotate(-3deg);
}

.card-4 {
    top: 35%;
    right: 5%;
    transform: rotate(5deg);
}

.card-5 {
    bottom: 25%;
    left: 12%;
    transform: rotate(-6deg);
}

.card-6 {
    bottom: 20%;
    right: 15%;
    transform: rotate(3deg);
}

.card-7 {
    bottom: 8%;
    left: 25%;
    transform: rotate(-4deg);
}

/* CTA Section */
.cta-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 40px;
    width: 100%;
    max-width: 100vw;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--gradient-end) 0%, var(--gradient-middle) 50%, var(--gradient-start) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Community Section */
.community-section {
    position: relative;
    min-height: 100vh;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.community-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    pointer-events: none;
}

.community-content {
    position: relative;
    max-width: 1400px;
    width: 100%;
    text-align: center;
    z-index: 5;
}

.community-title {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.title-space {
    width: clamp(200px, 25vw, 320px);
    height: 1px;
}

/* Final CTA Section */
.final-cta {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 40px 80px;
    width: 100%;
    max-width: 100vw;
}

.final-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-middle) 50%, var(--gradient-end) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    z-index: 0;
}

.final-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 1200px;
}

/* Download Buttons - ngl.link style */
.download-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 60px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.download-button {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    color: #000000 !important;
    padding: 20px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: var(--weight-bold);
    font-size: 16px;
    text-transform: lowercase;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.download-button span {
    color: #000000 !important;
}

.download-button:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    animation: pulse 2s ease-in-out infinite;
}

.download-button svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.download-button:hover svg {
    transform: scale(1.1) rotate(5deg);
}

/* Footer - ngl.link style */
.footer {
    background: var(--bg-primary);
    padding: 60px 40px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 32px;
    width: auto;
}

.footer-nav {
    display: flex;
    gap: 32px;
}

.footer-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: opacity 0.2s ease;
}

.footer-nav a:hover {
    opacity: 0.7;
}

.footer-social a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: opacity 0.2s ease;
}

.footer-social a:hover {
    opacity: 0.7;
}

.footer-legal {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 14px;
}

body.dark-mode .footer-legal {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.legal-links {
    margin-top: 16px;
}

.legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.legal-links a:hover {
    opacity: 0.7;
}

.legal-links span {
    margin: 0 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header {
        padding: 16px 24px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero,
    .features-section,
    .cards-section,
    .cta-section,
    .community-section,
    .final-cta {
        padding: 100px 24px 60px;
    }

    .emoji-element {
        font-size: clamp(40px, 6vw, 80px);
        opacity: 0.6;
    }

    .screenshot-card {
        width: clamp(140px, 18vw, 220px);
    }

    .speech-bubble {
        font-size: 14px;
        padding: 16px 24px;
        max-width: 220px;
    }
}

/* Show speech bubbles only on very large screens */
@media (min-width: 2200px) {
    .speech-bubble {
        display: block;
    }
}

@media (max-width: 1400px) {
    .emoji-element {
        opacity: 0.4;
    }
}

@media (max-width: 900px) {
    .emoji-element {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 16px;
        gap: 16px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .hero-title {
        margin-bottom: 40px;
        margin-top: 30px;
        padding-top: 20px;
    }

    /* Show mobile-friendly emojis with better positioning */
    .emoji-element {
        display: block;
        font-size: 35px;
        opacity: 0.6;
        z-index: 1;
    }

    /* Adjust emoji positioning for mobile to prevent overlap */
    .emoji-1 {
        top: 5%;
        left: 6%;
    }

    .emoji-2 {
        top: 10%;
        right: 6%;
    }

    .emoji-3 {
        bottom: 20%;
        left: 6%;
    }

    .emoji-4 {
        top: 4%;
        left: 6%;
    }

    .emoji-5 {
        top: 6%;
        right: 6%;
    }

    .emoji-6 {
        top: 7%;
        left: 6%;
    }

    .emoji-7 {
        bottom: 22%;
        right: 6%;
    }

    .emoji-8 {
        top: 6%;
        left: 6%;
    }

    .emoji-9 {
        top: 16%;
        right: 6%;
    }

    .emoji-10 {
        bottom: 22%;
        right: 6%;
    }

    .screenshot-1,
    .screenshot-2 {
        display: block !important;
        position: relative;
        width: 42%;
        max-width: 180px;
        margin: 15px 10px;
        transform: rotate(0deg) !important;
        opacity: 1;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
        display: inline-block !important;
    }

    .screenshot-1 {
        animation: floatMobile 4s ease-in-out infinite;
    }

    .screenshot-2 {
        animation: floatMobile 4s ease-in-out infinite 0.5s;
    }

    /* Container for screenshots */
    .hero-content::after {
        content: '';
        display: block;
        width: 100%;
        order: 3;
    }

    .screenshot-5,
    .screenshot-6 {
        display: none;
    }

    .screenshot-3 {
        width: 65%;
        max-width: 260px;
        margin: 40px auto 20px;
        display: block;
        position: relative;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        animation: floatMobile 5s ease-in-out infinite;
        transform: rotate(0deg) !important;
        order: 999;
    }

    .screenshot-4 {
        width: 65%;
        max-width: 260px;
        margin: 40px auto 20px;
        display: block;
        position: relative;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        animation: floatMobile 5s ease-in-out infinite 1s;
        transform: rotate(0deg) !important;
    }

    .speech-bubble {
        display: none;
    }

    .feature-card {
        position: static;
        display: inline-block;
        margin: 16px;
        width: calc(100% - 32px);
        max-width: 320px;
        transform: none !important;
    }

    .cards-content {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .cards-section .feature-card {
        position: relative;
        margin: 15px auto;
        width: 90%;
        max-width: 400px;
    }

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

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Mobile hero adjustments */
    .hero-content {
        padding: 40px 16px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }

    /* Reorder hero elements on mobile */
    .hero-title {
        order: 1;
        padding: 0 16px;
        text-align: center;
        word-wrap: break-word;
    }

    .cta-button {
        order: 2;
        margin: 0 16px;
    }

    .screenshot-1,
    .screenshot-2 {
        order: 3;
    }

    .scroll-indicator {
        order: 4;
    }

    .emoji-element {
        order: 0;
    }

    /* Mobile features section */
    .features-section,
    .community-section {
        padding: 80px 20px;
        overflow: hidden;
    }

    .section-title {
        margin-bottom: 50px;
        padding: 0 16px;
        text-align: center;
        word-wrap: break-word;
    }

    .feature-text {
        padding: 0 16px;
        text-align: center;
    }

    /* Mobile screenshot container styling */
    .hero {
        position: relative;
        overflow: hidden;
        width: 100%;
    }

    /* Add subtle glow to screenshots on mobile */
    .screenshot-card {
        animation: floatMobile 5s ease-in-out infinite;
        transition: transform 0.3s ease;
    }

    .screenshot-card:active {
        transform: scale(0.95);
    }

    /* Improve CTA button on mobile */
    .cta-button {
        box-shadow: 0 8px 30px rgba(245, 158, 11, 0.3);
        animation: pulse 3s ease-in-out infinite;
    }

    /* Better feature card styling */
    .feature-card {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
    }

    .feature-card:active {
        transform: scale(0.98);
    }
}

@media (max-width: 480px) {
    .hero,
    .features-section,
    .cards-section,
    .cta-section,
    .community-section,
    .final-cta {
        padding: 80px 16px 40px;
    }

    .cta-button {
        padding: 16px 36px;
        font-size: 16px;
    }

    /* Enhanced mobile screenshots */
    .screenshot-1,
    .screenshot-2 {
        width: 50%;
        max-width: 220px;
    }

    .screenshot-3,
    .screenshot-4 {
        width: 75%;
        max-width: 280px;
        margin: 50px auto 30px;
    }

    /* Mobile emoji adjustments */
    .emoji-element {
        font-size: 30px !important;
        opacity: 0.5;
    }

    /* Further adjust emoji positioning for small mobile screens */
    .emoji-1,
    .emoji-4,
    .emoji-6,
    .emoji-8 {
        left: 8%;
    }

    .emoji-2,
    .emoji-5,
    .emoji-9 {
        right: 8%;
    }

    .emoji-3,
    .emoji-7,
    .emoji-10 {
        bottom: 28%;
    }

    .hero-title {
        font-size: clamp(50px, 14vw, 70px);
        padding: 0 12px;
        line-height: 1.1;
    }

    .section-title {
        font-size: clamp(40px, 12vw, 60px);
        padding: 0 12px;
        line-height: 1.1;
    }

    /* Better mobile spacing */
    .feature-text {
        font-size: clamp(24px, 6vw, 36px);
        margin: 12px 0;
        padding: 0 12px;
    }

    .download-buttons {
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
        width: 100%;
    }

    .download-button {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    /* Ensure all sections have proper width constraints */
    .hero-content,
    .features-content,
    .cards-content,
    .cta-content,
    .community-content,
    .final-cta-content {
        max-width: 100%;
        overflow: hidden;
    }
}

/* Extra small mobile devices (iPhone SE, etc.) */
@media (max-width: 375px) {
    .hero-title {
        font-size: clamp(45px, 13vw, 60px);
    }

    .section-title {
        font-size: clamp(36px, 11vw, 50px);
    }

    .emoji-element {
        font-size: 28px !important;
    }

    .screenshot-1,
    .screenshot-2 {
        width: 45%;
        max-width: 160px;
    }

    .cta-button {
        padding: 14px 32px;
        font-size: 15px;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
