/* ModereX Landing Page Styles */
/* Using Panel's HSL 215 Blue Theme */

:root {
    --primary: hsl(215, 85%, 55%);
    --primary-dark: hsl(215, 85%, 45%);
    --primary-light: hsl(215, 85%, 65%);
    --accent: hsl(260, 70%, 60%);
    --accent-light: hsl(260, 70%, 70%);
    --bg: hsl(220, 25%, 7%);
    --bg-secondary: hsl(220, 20%, 10%);
    --bg-card: hsl(220, 20%, 13%);
    --bg-elevated: hsl(220, 20%, 16%);
    --text: hsl(210, 40%, 96%);
    --text-secondary: hsl(215, 20%, 65%);
    --text-muted: hsl(215, 15%, 45%);
    --border: hsl(215, 20%, 20%);
    --border-light: hsl(215, 20%, 25%);
    --success: hsl(142, 70%, 50%);
    --warning: hsl(38, 92%, 50%);
    --error: hsl(0, 84%, 60%);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

@keyframes glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 4px 20px hsla(215, 85%, 55%, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px hsla(215, 85%, 55%, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: hsla(215, 85%, 55%, 0.1);
}

.btn-ghost {
    background: hsla(0, 0%, 100%, 0.08);
    color: var(--text);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: hsla(0, 0%, 100%, 0.12);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Section Badge */
.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: hsla(215, 85%, 55%, 0.15);
    border: 1px solid hsla(215, 85%, 55%, 0.3);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: hsla(220, 25%, 7%, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid hsla(215, 20%, 20%, 0.5);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 20px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    color: white;
}

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

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

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

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: glow 8s ease-in-out infinite;
}

.hero-glow-1 {
    width: 600px;
    height: 400px;
    background: hsla(215, 85%, 55%, 0.15);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-glow-2 {
    width: 500px;
    height: 300px;
    background: hsla(260, 70%, 60%, 0.1);
    bottom: 10%;
    right: 10%;
    animation-delay: 2s;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(hsla(215, 20%, 20%, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, hsla(215, 20%, 20%, 0.3) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 70%);
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: hsla(215, 85%, 55%, 0.1);
    border: 1px solid hsla(215, 85%, 55%, 0.25);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 28px;
}

.hero h1 {
    font-size: clamp(42px, 8vw, 76px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 44px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

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

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-scroll a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: all 0.3s;
    animation: float 3s ease-in-out infinite;
}

.hero-scroll a:hover {
    color: var(--text);
    border-color: var(--primary);
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px hsla(0, 0%, 0%, 0.4);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, hsla(215, 85%, 55%, 0.2) 0%, hsla(260, 70%, 60%, 0.2) 100%);
    border-radius: 16px;
    font-size: 26px;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 12px;
}

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

/* Panel Preview Section */
.panel-preview {
    padding: 120px 0;
}

.panel-showcase {
    margin: 48px 0;
}

.panel-window {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        0 50px 100px hsla(0, 0%, 0%, 0.5),
        0 0 0 1px hsla(215, 20%, 25%, 0.5);
}

.panel-titlebar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.panel-dots {
    display: flex;
    gap: 8px;
}

.panel-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}

.panel-dots span:first-child { background: #ef4444; }
.panel-dots span:nth-child(2) { background: #f59e0b; }
.panel-dots span:last-child { background: #22c55e; }

.panel-title {
    font-size: 14px;
    color: var(--text-muted);
    flex: 1;
}

.panel-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--success);
    font-weight: 500;
}

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

.panel-content {
    aspect-ratio: 16 / 9;
    background: var(--bg);
}

.panel-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.panel-placeholder i {
    font-size: 72px;
    opacity: 0.2;
}

.panel-placeholder p {
    font-size: 18px;
    font-weight: 500;
}

.panel-placeholder span {
    font-size: 14px;
    opacity: 0.6;
}

.panel-features {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.panel-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}

.panel-feature i {
    color: var(--primary-light);
    font-size: 18px;
}

/* Gateway Section */
.gateway {
    padding: 120px 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

.gateway-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.gateway-text h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.gateway-subtitle {
    font-size: 20px;
    color: var(--primary-light);
    margin-bottom: 16px;
    font-weight: 500;
}

.gateway-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.gateway-description strong {
    color: var(--text);
}

.gateway-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gateway-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}

.gateway-feature i {
    color: var(--success);
    font-size: 16px;
}

.gateway-demo {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.url-demo {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.url-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 14px 20px;
    margin-bottom: 16px;
}

.url-bar i {
    color: var(--success);
}

.url-text {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 15px;
    color: var(--text-muted);
}

.url-highlight {
    color: var(--primary-light);
    font-weight: 600;
}

.url-description {
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

.gateway-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.diagram-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.diagram-node i {
    font-size: 24px;
    color: var(--text-muted);
}

.diagram-node span {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.diagram-browser i { color: var(--primary-light); }
.diagram-gateway {
    background: linear-gradient(135deg, hsla(215, 85%, 55%, 0.15) 0%, hsla(260, 70%, 60%, 0.15) 100%);
    border-color: hsla(215, 85%, 55%, 0.3);
}
.diagram-gateway i { color: var(--primary); }
.diagram-server i { color: var(--success); }

.diagram-arrow {
    color: var(--border-light);
    font-size: 18px;
}

/* Download Section */
.download {
    padding: 120px 0;
}

.download-card {
    background: linear-gradient(135deg, hsla(215, 85%, 55%, 0.1) 0%, hsla(260, 70%, 60%, 0.1) 100%);
    border: 1px solid hsla(215, 85%, 55%, 0.25);
    border-radius: var(--radius-xl);
    padding: 72px 48px;
    text-align: center;
}

.download-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.download-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.download-info {
    display: flex;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 14px;
}

.download-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-info i {
    color: var(--success);
}

/* Footer */
.footer {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 22px;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .gateway-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .gateway-demo {
        max-width: 480px;
        margin: 0 auto;
    }
}

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

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

    .hero h1 {
        font-size: 36px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

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

    .panel-features {
        gap: 24px;
    }

    .download-card {
        padding: 48px 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .gateway-diagram {
        flex-direction: column;
    }

    .diagram-arrow {
        transform: rotate(90deg);
    }
}
