/* ═══════════════════════════════════════════════
   Lotus Landing Page — Premium Dark Theme
   ═══════════════════════════════════════════════ */

:root {
    --bg-primary: #0f1117;
    --bg-secondary: #161a22;
    --bg-card: #1c2029;
    --bg-card-hover: #232834;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text-primary: #f0f2f5;
    --text-secondary: rgba(240, 242, 245, 0.6);
    --text-tertiary: rgba(240, 242, 245, 0.4);
    --accent: #E8789A;
    --accent-light: #F2A7B3;
    --accent-glow: rgba(232, 120, 154, 0.15);
    --accent-gradient: linear-gradient(135deg, #E8789A 0%, #D4A843 50%, #E8B96A 100%);
    --green: #5D8A3C;
    --green-light: #7DB356;
    --green-glow: rgba(93, 138, 60, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ═══════ NAVBAR ═══════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 17, 23, 0.85);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
}

.nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

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

.nav-links a {
    transition: color 0.2s;
}

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

.nav-cta {
    padding: 8px 20px;
    background: var(--accent);
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-cta:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* ═══════ HERO ═══════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }

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

.hero-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--green-glow);
    border: 1px solid rgba(93, 138, 60, 0.25);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--green-light);
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease-out;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-light);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

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

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

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

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

.hero-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(232, 120, 154, 0.3);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    color: var(--accent-light);
}

.stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

/* Hero Preview */
.hero-preview {
    margin-top: 60px;
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.preview-frame {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 20px 80px rgba(0, 0, 0, 0.5),
        0 0 120px var(--accent-glow);
}

.preview-dots {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.preview-dots span:first-child {
    background: #ff5f57;
}

.preview-dots span:nth-child(2) {
    background: #febc2e;
}

.preview-dots span:nth-child(3) {
    background: #28c840;
}

.preview-image {
    width: 100%;
    display: block;
}

.preview-fallback {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-fallback .preview-fallback-content {
    display: flex !important;
    flex-direction: column;
    align-items: center;
}

/* ═══════ SECTIONS ═══════ */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.section-header.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--green-glow);
    border: 1px solid rgba(93, 138, 60, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--green-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 14px;
}

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

/* ═══════ FEATURES ═══════ */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.35s ease;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card--highlight {
    background: linear-gradient(135deg, rgba(232, 120, 154, 0.06) 0%, var(--bg-card) 100%);
    border-color: rgba(232, 120, 154, 0.15);
}

.feature-card--highlight:hover {
    border-color: rgba(232, 120, 154, 0.3);
    box-shadow: 0 12px 40px rgba(232, 120, 154, 0.08);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-md);
    color: var(--accent-light);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

/* ═══════ DOWNLOAD ═══════ */
.download {
    padding: 100px 0;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}

.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
}

.download-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.download-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.download-card--active {
    border-color: rgba(232, 120, 154, 0.3);
    background: linear-gradient(180deg, rgba(232, 120, 154, 0.06) 0%, var(--bg-card) 100%);
}

.download-card--web {
    border-color: rgba(93, 138, 60, 0.25);
    background: linear-gradient(180deg, rgba(93, 138, 60, 0.08) 0%, var(--bg-card) 100%);
}

.download-card--web:hover {
    border-color: rgba(93, 138, 60, 0.4);
    box-shadow: 0 12px 40px rgba(93, 138, 60, 0.1);
}

.download-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.download-card--web .download-icon {
    color: var(--accent-light);
}

.download-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.download-platform {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
}

.download-detail {
    font-size: 13px;
    color: var(--text-tertiary);
}

.download-badge {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
}

.download-badge--live {
    background: var(--green-glow);
    color: var(--green-light);
}

/* ═══════ FOOTER ═══════ */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-brand {
    margin-bottom: 28px;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin-bottom: 10px;
}

.footer-title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.footer-links a {
    transition: color 0.2s;
}

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

.footer-bottom p {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ═══════ ANIMATIONS ═══════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

/* Stagger animations for feature cards */
.feature-card:nth-child(1) {
    transition-delay: 0.05s;
}

.feature-card:nth-child(2) {
    transition-delay: 0.1s;
}

.feature-card:nth-child(3) {
    transition-delay: 0.15s;
}

.feature-card:nth-child(4) {
    transition-delay: 0.2s;
}

.feature-card:nth-child(5) {
    transition-delay: 0.25s;
}

.feature-card:nth-child(6) {
    transition-delay: 0.3s;
}

.download-card:nth-child(1) {
    transition-delay: 0.05s;
}

.download-card:nth-child(2) {
    transition-delay: 0.1s;
}

.download-card:nth-child(3) {
    transition-delay: 0.15s;
}

.download-card:nth-child(4) {
    transition-delay: 0.2s;
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: 32px;
    }

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

    .download-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-preview {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

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

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