
/* Modern Loopify Landing Page Styles */

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

:root {
    --primary: #ff4500;
    --primary-hover: #ff6b35;
    --secondary: #ff6b35;
    --accent: #ff8c5a;
    --success: #10b981;
    --warning: #f59e0b;
    --bg-primary: #0a0f1d;
    --bg-secondary: #0f172a;
    --bg-card: rgba(255, 69, 0, 0.05);
    --bg-card-hover: rgba(255, 107, 53, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a8a8b3;
    --text-muted: #6b7280;
    --border: rgba(255, 107, 53, 0.2);
    --shadow: 0 25px 50px -12px rgba(255, 69, 0, 0.15);
    --shadow-lg: 0 35px 60px -12px rgba(255, 69, 0, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Noise overlay for texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-image {
    height: 40px;
    width: auto;
    max-width: 150px;
}

.logo-icon {
    color: var(--primary);
}

.rotating {
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

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

.launch-app-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.launch-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 2rem;
    overflow: hidden;
    z-index: 10;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: none;
}

/* Global Starfield Container */
.starfield-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Starfield Animation */
#stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 3px;
    background: transparent;
    animation: animStar 50s linear infinite;
    box-shadow:
        780px 50px rgba(255, 255, 255, 1),
        370px 280px rgba(255, 107, 53, 0.9),
        1150px 200px rgba(255, 255, 255, 0.95),
        950px 400px rgba(255, 140, 90, 0.8),
        520px 320px rgba(255, 255, 255, 1),
        1340px 150px rgba(255, 69, 0, 0.7),
        190px 450px rgba(255, 255, 255, 0.9),
        1220px 300px rgba(255, 107, 53, 0.95),
        840px 180px rgba(255, 255, 255, 1),
        1450px 350px rgba(255, 140, 90, 0.8),
        680px 120px rgba(255, 255, 255, 1),
        1050px 250px rgba(255, 69, 0, 0.9),
        420px 380px rgba(255, 255, 255, 0.95),
        1280px 80px rgba(255, 107, 53, 0.8),
        920px 420px rgba(255, 255, 255, 1),
        620px 220px rgba(255, 140, 90, 0.7),
        1180px 380px rgba(255, 255, 255, 1),
        820px 100px rgba(255, 69, 0, 0.8),
        1380px 280px rgba(255, 107, 53, 0.9),
        480px 160px rgba(255, 255, 255, 0.95),
        580px 90px rgba(255, 255, 255, 0.9),
        1480px 190px rgba(255, 107, 53, 0.8),
        320px 390px rgba(255, 140, 90, 0.7),
        1080px 340px rgba(255, 255, 255, 1),
        720px 270px rgba(255, 69, 0, 0.9),
        1320px 110px rgba(255, 255, 255, 0.95),
        420px 210px rgba(255, 107, 53, 0.8),
        1220px 360px rgba(255, 255, 255, 1),
        820px 40px rgba(255, 140, 90, 0.7),
        1120px 410px rgba(255, 255, 255, 0.9);
}

#stars:after {
    content: " ";
    position: absolute;
    top: 100vh;
    width: 3px;
    height: 3px;
    background: transparent;
    box-shadow:
        780px 50px rgba(255, 255, 255, 1),
        370px 280px rgba(255, 107, 53, 0.9),
        1150px 200px rgba(255, 255, 255, 0.95),
        950px 400px rgba(255, 140, 90, 0.8),
        520px 320px rgba(255, 255, 255, 1),
        1340px 150px rgba(255, 69, 0, 0.7),
        190px 450px rgba(255, 255, 255, 0.9),
        1220px 300px rgba(255, 107, 53, 0.95),
        840px 180px rgba(255, 255, 255, 1),
        1450px 350px rgba(255, 140, 90, 0.8),
        680px 120px rgba(255, 255, 255, 1),
        1050px 250px rgba(255, 69, 0, 0.9),
        420px 380px rgba(255, 255, 255, 0.95),
        1280px 80px rgba(255, 107, 53, 0.8),
        920px 420px rgba(255, 255, 255, 1),
        620px 220px rgba(255, 140, 90, 0.7),
        1180px 380px rgba(255, 255, 255, 1),
        820px 100px rgba(255, 69, 0, 0.8),
        1380px 280px rgba(255, 107, 53, 0.9),
        480px 160px rgba(255, 255, 255, 0.95),
        580px 90px rgba(255, 255, 255, 0.9),
        1480px 190px rgba(255, 107, 53, 0.8),
        320px 390px rgba(255, 140, 90, 0.7),
        1080px 340px rgba(255, 255, 255, 1),
        720px 270px rgba(255, 69, 0, 0.9),
        1320px 110px rgba(255, 255, 255, 0.95),
        420px 210px rgba(255, 107, 53, 0.8),
        1220px 360px rgba(255, 255, 255, 1),
        820px 40px rgba(255, 140, 90, 0.7),
        1120px 410px rgba(255, 255, 255, 0.9);
}

#stars2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    background: transparent;
    animation: animStar 100s linear infinite;
    box-shadow:
        700px 150px rgba(255, 107, 53, 1),
        1200px 250px rgba(255, 255, 255, 1),
        450px 350px rgba(255, 140, 90, 0.9),
        1100px 100px rgba(255, 69, 0, 0.9),
        850px 400px rgba(255, 255, 255, 1),
        1300px 200px rgba(255, 107, 53, 0.8),
        550px 300px rgba(255, 255, 255, 1),
        1000px 450px rgba(255, 140, 90, 0.9),
        750px 50px rgba(255, 69, 0, 1),
        1400px 350px rgba(255, 255, 255, 1),
        650px 80px rgba(255, 107, 53, 0.9),
        1350px 380px rgba(255, 255, 255, 1),
        500px 220px rgba(255, 140, 90, 0.8),
        1150px 320px rgba(255, 69, 0, 0.9),
        800px 180px rgba(255, 255, 255, 1);
}

#stars2:after {
    content: " ";
    position: absolute;
    top: 100vh;
    width: 4px;
    height: 4px;
    background: transparent;
    box-shadow:
        700px 150px rgba(255, 107, 53, 0.8),
        1200px 250px rgba(255, 255, 255, 0.9),
        450px 350px rgba(255, 140, 90, 0.7),
        1100px 100px rgba(255, 69, 0, 0.6),
        850px 400px rgba(255, 255, 255, 0.8),
        1300px 200px rgba(255, 107, 53, 0.5),
        550px 300px rgba(255, 255, 255, 0.9),
        1000px 450px rgba(255, 140, 90, 0.6),
        750px 50px rgba(255, 69, 0, 0.7),
        1400px 350px rgba(255, 255, 255, 0.8);
}

#stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 5px;
    background: transparent;
    animation: animStar 150s linear infinite;
    box-shadow:
        900px 200px rgba(255, 69, 0, 0.9),
        1250px 400px rgba(255, 255, 255, 1),
        600px 100px rgba(255, 107, 53, 0.8),
        1150px 300px rgba(255, 140, 90, 0.7),
        400px 250px rgba(255, 255, 255, 0.9),
        1350px 150px rgba(255, 69, 0, 0.6);
}

#stars3:after {
    content: " ";
    position: absolute;
    top: 100vh;
    width: 5px;
    height: 5px;
    background: transparent;
    box-shadow:
        900px 200px rgba(255, 69, 0, 0.9),
        1250px 400px rgba(255, 255, 255, 1),
        600px 100px rgba(255, 107, 53, 0.8),
        1150px 300px rgba(255, 140, 90, 0.7),
        400px 250px rgba(255, 255, 255, 0.9),
        1350px 150px rgba(255, 69, 0, 0.6);
}

@keyframes animStar {
    from {
        transform: translateY(100vh);
    }
    to {
        transform: translateY(-100vh);
    }
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    animation: float 8s ease-in-out infinite;
    display: none;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.15) 0%, transparent 70%);
    top: -400px;
    left: -400px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    bottom: -300px;
    right: -300px;
    animation-delay: -4s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 140, 90, 0.08) 0%, transparent 70%);
    top: 50%;
    right: -250px;
    animation-delay: -2s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: slideInUp 0.8s ease-out;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 50%, var(--secondary) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 25s ease-in-out infinite;
}

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

.hero-subtitle {
    color: var(--text-secondary);
    font-weight: 400;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.highlight {
    color: var(--success);
    font-weight: 600;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    animation: slideInUp 0.8s ease-out 0.6s both;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

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

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease-out 0.8s both;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.btn-primary.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-ghost.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    display: none;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

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

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

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

.section-badge {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.strategy-example .section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

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

/* How It Works */
.how-it-works {
    padding: 4rem 0;
    position: relative;
    z-index: 10;
}

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

.process-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 1.5rem;
    text-align: center;
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
    animation: slideInUp 0.8s ease-out calc(var(--delay) * 1s) both;
}

.process-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg), 0 0 8px rgba(255, 69, 0, 0.4), 0 0 16px rgba(255, 107, 53, 0.3);
}

.process-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 1.5rem;
    box-shadow: 0 0 8px rgba(255, 69, 0, 0.4), 0 0 16px rgba(255, 107, 53, 0.3);
    animation: slowStrobe 4s infinite ease-in-out;
    pointer-events: none;
    z-index: -1;
}

.process-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin: 0 auto 1.5rem;
}

.process-icon {
    margin-bottom: 1.5rem;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--primary);
}

.process-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.process-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Strategy Example Section */
.strategy-example {
    padding: 4rem 0;
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 10;
}

.strategy-demo {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.actual-app-screenshot {
    max-width: 1000px;
    text-align: center;
}

.actual-app-screenshot h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.screenshot-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.screenshot-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 1.5rem;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}


.app-screenshot {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.app-screenshot:hover {
    transform: scale(1.02);
}

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

.highlight-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.highlight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.highlight-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.strategy-config,
.projected-returns {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 1.5rem;
    backdrop-filter: blur(10px);
}

.strategy-config h3,
.projected-returns h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.config-item,
.return-metric,
.risk-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.config-item:last-child,
.return-metric:last-child,
.risk-item:last-child {
    border-bottom: none;
}

.config-label,
.metric-label,
.risk-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.config-value,
.metric-value,
.risk-value {
    font-weight: 600;
    color: var(--text-primary);
}

.metric-value.positive,
.risk-value.success {
    color: var(--success);
}

.metric-value.negative {
    color: #ef4444;
}

.metric-value.success {
    color: var(--success);
    font-size: 1.25rem;
}

.return-metric.highlight {
    background: rgba(255, 69, 0, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--primary);
    margin: 1rem 0;
}

.risk-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.risk-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--warning);
}

.strategy-preview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 1.5rem;
    backdrop-filter: blur(10px);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.preview-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

.auto-optimize {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.preview-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.rewards-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.rewards-badge {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.claim-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.claim-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

/* Performance Section */
.performance {
    padding: 8rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.performance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.performance-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.time-selector {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
}

.time-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.time-btn.active,
.time-btn:hover {
    background: var(--primary);
    color: white;
}

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

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.metric-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.metric-change {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.metric-change.positive {
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.mini-chart {
    height: 40px;
    overflow: hidden;
}

/* Protocols Section */
.protocols {
    padding: 4rem 0;
    position: relative;
    z-index: 10;
}

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

.protocol-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.protocol-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.protocol-logo {
    width: 60px;
    height: 60px;
    border-radius: 1rem;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.logo-placeholder {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--primary);
}

.protocol-logo-img {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    object-fit: contain;
    border-radius: 8px;
    filter: brightness(0.9) contrast(1.1);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    display: block;
}


.protocol-card:hover .protocol-logo-img {
    filter: brightness(1.1) contrast(1.2);
    transform: scale(1.05);
}

.protocol-info h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.protocol-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.protocol-apy {
    margin-left: auto;
    color: var(--success);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Pre-Deposit Section */
.pre-deposit {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.pre-deposit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.pre-deposit-icon {
    margin-bottom: 32px;
}

.pre-deposit-icon .icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
}

.pre-deposit-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 107, 53, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.1);
}

.benefit-item svg {
    color: var(--success);
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-item span {
    color: var(--text-primary);
    line-height: 1.6;
}

.pre-deposit-card .btn-primary {
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .pre-deposit {
        padding: 80px 0;
    }

    .pre-deposit-card {
        padding: 32px 24px;
        margin: 0 20px;
    }

    .pre-deposit-card h3 {
        font-size: 1.5rem;
    }

    .benefits-list {
        gap: 16px;
    }

    .benefit-item {
        padding: 12px;
    }
}

/* CTA Section */
.cta {
    padding: 4rem 0;
    position: relative;
    text-align: center;
    overflow: hidden;
    z-index: 10;
}

.cta-background {
    position: absolute;
    inset: 0;
}

.cta-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 69, 0, 0.1) 0%,
        rgba(255, 107, 53, 0.1) 50%,
        rgba(255, 140, 90, 0.1) 100%);
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.security-badges {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-secondary);
}

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

.footer-column h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

/* Strategy Demo Specific Styles */
.strategy-config,
.strategy-selection,
.projected-returns {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.strategy-middle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.currency-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.max-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.leverage-slider {
    margin-top: 0.5rem;
}

.slider-track {
    width: 100%;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    position: relative;
}

.slider-thumb {
    position: absolute;
    top: -4px;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid white;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.loop-now-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    margin: 1rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.loop-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.auto-protection {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 1rem 0;
}

.toggle-switch {
    background: var(--success);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.liquidation-section {
    margin-top: 1rem;
}

.liquidation-section h4 {
    color: var(--warning);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.liquidation-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.liq-value.danger {
    color: #ef4444;
}

.liq-value.success {
    color: var(--success);
}

.dropdown {
    color: var(--text-secondary);
}

.balance-info,
.borrowing-info {
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auto-optimize-btn {
    margin: 1rem 0;
}

.optimize-btn {
    width: 100%;
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.optimize-btn:hover {
    background: rgba(139, 92, 246, 0.3);
}

.protocol-selection {
    margin: 1rem 0;
}

.protocol-value {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.advanced-config {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
}

.advanced-config h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.target-config {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.target-item {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.config-sliders {
    margin-top: 1rem;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.slider {
    flex: 1;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
}

.strategy-preview-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
}

.strategy-preview-section h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.preview-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.rewards-section {
    margin: 1.5rem 0;
}

.rewards-section h4 {
    margin-bottom: 1rem;
}

.rewards-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rewards-count,
.rewards-available {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.reward-tokens {
    display: flex;
    gap: 0.5rem;
}

.reward-token {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.claim-rewards-btn {
    width: 100%;
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

.performance-breakdown {
    margin-bottom: 1rem;
}

.breakdown-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.metric-change {
    font-size: 0.75rem;
    color: var(--success);
}

.metric-status {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.metric-vs {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.metric-note {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.points-calculation {
    margin: 1rem 0;
}

.points-badge {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.last-updated {
    margin: 1rem 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.risk-management-card {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.risk-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.risk-title {
    font-weight: 600;
    color: var(--text-primary);
}

.risk-importance {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.risk-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.auto-protection-status {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.protection-bullet {
    color: var(--success);
}

.protection-text {
    color: var(--success);
}

.monitoring-text {
    color: var(--text-muted);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slowStrobe {
    0%, 70%, 100% {
        opacity: 0.2;
    }
    5%, 15% {
        opacity: 0.8;
    }
    20%, 60% {
        opacity: 0.2;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 0 1rem;
    }

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

    .container {
        padding: 0 1rem;
    }

    .performance-header {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .security-badges {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}