:root {
    /* Color Palette matching Shrinkeo App */
    --bg-main: #141414; /* Deep Black */
    --bg-secondary: #1A1A1A; /* Surface Container */
    --bg-card: rgba(31, 31, 31, 0.4);
    --primary: #2E6676; /* Turquoise/Teal */
    --primary-glow: rgba(104, 178, 196, 0.3); /* Light Teal */
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

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

#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

h1, h2, h3, h4, .logo-text {
    font-family: 'Outfit', sans-serif;
}

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

.gradient-text {
    background: linear-gradient(to right, #68B2C4, #2E6676);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    gap: 12px;
    font-size: 1rem;
}

.btn i {
    font-size: 1.2rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2E6676 0%, #141414 100%);
    background-clip: padding-box;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(104, 178, 196, 0.2);
    border-color: var(--primary);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    gap: 12px;
}

.btn-nav {
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
}

.btn-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: white;
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

/* Brand Stats Bar */
.stats-bar {
    padding: 30px 0;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 40px;
}

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

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-family: 'Outfit';
    color: var(--text-main);
}

.stat-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

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

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

.hero-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.mockup-container {
    padding: 24px;
    border-radius: 24px;
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.5s ease;
}

.mockup-container:hover {
    transform: perspective(1000px) rotateY(-5deg);
}

.mockup-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}



.floating {
    animation: float 6s ease-in-out infinite;
}

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

/* Demo Section */
.demo-section {
    padding: 20px 0 60px 0;
    position: relative;
    z-index: 10;
}

.demo-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(46, 102, 118, 0.15);
    border: 1px solid var(--glass-border);
}

.demo-header {
    background: rgba(15, 23, 42, 0.9);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.mac-buttons {
    display: flex;
    gap: 8px;
    width: 60px;
}

.mac-buttons span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #444;
}

.mac-buttons span:nth-child(1) { background: #ff5f56; }
.mac-buttons span:nth-child(2) { background: #ffbd2e; }
.mac-buttons span:nth-child(3) { background: #27c93f; }

.demo-title {
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-right: 60px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.demo-gif {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

/* Features */
.features {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.feature-card {
    padding: 32px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-glow);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(104, 178, 196, 0.2), rgba(104, 178, 196, 0.05));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    color: var(--primary);
    border: 1px solid rgba(104, 178, 196, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(46, 102, 118, 0.4), rgba(46, 102, 118, 0.1));
    box-shadow: 0 0 20px rgba(46, 102, 118, 0.3);
}
.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Interface Showcase */
.interface {
    padding: 100px 0;
}

.showcase-grid {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.showcase-item {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    width: 100%;
}

.showcase-frame {
    position: relative;
    border-radius: 24px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: transform 0.5s ease;
}

.showcase-frame:hover {
    transform: translateY(-5px);
}

/* Theme Toggle Switch */
.theme-switch-wrapper {
    position: relative;
    display: inline-flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 6px;
    z-index: 10;
}

.theme-toggle-btn {
    padding: 8px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 24px;
    z-index: 2;
    transition: color 0.4s ease;
}

.theme-slider {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: calc(50% - 6px);
    background: var(--primary);
    border-radius: 24px;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Checked State for Toggle */
#app-theme-toggle:not(:checked) ~ .theme-switch-wrapper .dark-label {
    color: white;
}
#app-theme-toggle:checked ~ .theme-switch-wrapper .light-label {
    color: white;
}
#app-theme-toggle:checked ~ .theme-switch-wrapper .theme-slider {
    transform: translateX(100%);
    background: #ffb300;
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.3);
}

/* Image Crossfade */
.app-mockup-wrapper {
    position: relative;
    width: 100%;
}

.app-mockup-wrapper img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    display: block;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.app-light-img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

#app-theme-toggle:checked ~ .showcase-frame .app-light-img {
    opacity: 1;
}
#app-theme-toggle:checked ~ .showcase-frame .app-dark-img {
    opacity: 0;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step {
    text-align: center;
    padding: 32px;
}

.step-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to bottom, var(--primary), rgba(68, 138, 255, 0.1));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    font-family: 'Outfit';
    opacity: 0.4;
}

.step h3 {
    margin-bottom: 16px;
    color: var(--primary);
}

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

/* Comparison Matrix */
.comparison {
    padding: 100px 0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.comparison-card {
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.comparison-card:first-child { border-radius: 16px 0 0 16px; }
.comparison-card:last-child { border-radius: 0 16px 16px 0; }

.comparison-card.featured {
    transform: scale(1.05);
    z-index: 10;
    border-color: var(--primary);
    background: rgba(104, 178, 196, 0.05);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.comp-head {
    padding: 16px;
    font-family: 'Outfit';
    font-weight: 800;
    font-size: 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.comp-row {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
}

.comp-row:last-child { border-bottom: none; }

.accent-text {
    color: var(--primary);
    font-weight: 700;
}

/* CTA */
.download-cta {
    padding: 100px 0;
}

.cta-card {
    padding: 64px 32px;
    text-align: center;
    background: linear-gradient(135deg, rgba(31,31,31,0.4) 0%, rgba(46, 102, 118, 0.1) 100%);
}

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-card p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

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

.small-text {
    font-size: 0.85rem !important;
    margin-bottom: 0 !important;
}

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

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

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.footer-center p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-right {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.footer-right a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-right a:hover {
    color: white;
}

.coffee-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--glass-bg);
    color: var(--text-main) !important;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.coffee-btn i {
    color: var(--primary);
}

.coffee-btn:hover {
    background: var(--primary-glow);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--primary-glow);
    color: #fff !important;
    border-color: var(--primary);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text p {
        margin: 0 auto 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .mockup-container {
        transform: none;
    }
    
    .mockup-container:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }

    .stats-container {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .comparison-grid {
        overflow-x: auto;
        padding-top: 20px;
        padding-bottom: 20px;
        /* Force minimum width to allow scrolling instead of squishing */
        min-width: 100%;
    }
    
    /* Make scrollbar invisible or minimal on mobile */
    .comparison-grid::-webkit-scrollbar {
        height: 4px;
    }
    .comparison-grid::-webkit-scrollbar-thumb {
        background: var(--glass-border);
        border-radius: 2px;
    }

    .comp-head {
        font-size: 1rem;
        padding: 12px;
    }

    .comp-row {
        font-size: 0.8rem;
        padding: 12px 8px;
    }

    .download-buttons {
        flex-direction: column;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}
