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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Header Styles */
.header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-text h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.logo-text span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 400;
    display: block;
    line-height: 1;
}

.logo {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-right: 12px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Button Styles */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.btn-secondary:hover {
    background: #3b82f6;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #374151;
    border: 2px solid #d1d5db;
}

.btn-outline:hover {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.nav-menu .btn-outline {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-menu .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Hero Section Outline Button Styling */
.hero .btn-outline {
    color: white;
    border-color: rgba(255, 255, 255, 0.6);
    background: transparent;
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 90px;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="grad"><stop offset="0%" style="stop-color:rgba(255,255,255,0.15)"/><stop offset="100%" style="stop-color:rgba(255,255,255,0)"/></radialGradient></defs><circle cx="200" cy="200" r="2" fill="url(%23grad)"/><circle cx="800" cy="400" r="1.5" fill="url(%23grad)"/><circle cx="400" cy="600" r="1.5" fill="url(%23grad)"/><circle cx="600" cy="100" r="1" fill="url(%23grad)"/><circle cx="100" cy="500" r="1" fill="url(%23grad)"/></svg>') repeat;
    opacity: 0.4;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.satellite-orbit {
    position: relative;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.satellite {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: counter-rotate 20s linear infinite;
}

.earth {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    animation: spin 10s linear infinite;
}

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

@keyframes counter-rotate {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(-360deg); }
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #111827;
}

.features, .technical, .deployment, .getting-started, .support {
    padding: 80px 0;
}

.features {
    background: #f8fafc;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Application Preview Section */
.app-preview {
    padding: 80px 0;
    background: white;
}

.preview-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.screenshot-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

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

.screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.feature-callout {
    position: absolute;
    background: rgba(59, 130, 246, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transform: translateY(-50%);
    animation: pulse-callout 2s ease-in-out infinite;
}

.feature-callout:nth-child(2) {
    background: rgba(34, 197, 94, 0.9);
}

.feature-callout::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -5px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 5px solid rgba(59, 130, 246, 0.9);
}

.feature-callout:nth-child(2)::before {
    border-right: 5px solid rgba(34, 197, 94, 0.9);
}

.feature-callout:nth-child(odd)::before {
    left: auto;
    right: -5px;
    border-right: none;
    border-left: 5px solid rgba(59, 130, 246, 0.9);
}

.feature-callout:nth-child(1)::before {
    border-left: 5px solid rgba(59, 130, 246, 0.9);
}

@keyframes pulse-callout {
    0%, 100% { 
        transform: translateY(-50%) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-50%) scale(1.05);
        opacity: 1;
    }
}

/* Hardware Compatibility Section */
.hardware-compatibility {
    background: #f8fafc;
    padding: 60px 0;
}

.hardware-highlight {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hardware-highlight h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.hardware-highlight p {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.hardware-note {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
}

.hardware-note p {
    color: #92400e;
    margin: 0;
    font-size: 1rem;
}

.hardware-note a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.hardware-note a:hover {
    text-decoration: underline;
}

.hardware-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.hardware-option {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hardware-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.hardware-option strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #3b82f6;
}

.hardware-option strong a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hardware-option strong a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.hardware-option p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

/* Technical Section */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tech-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.tech-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.tech-card ul {
    list-style: none;
}

.tech-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
    padding-left: 1.5rem;
}

.tech-card li:last-child {
    border-bottom: none;
}

.tech-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Deployment Section */
.deployment {
    background: #f8fafc;
}

.deployment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.deployment-option {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.deployment-option h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111827;
}

.deployment-option p {
    color: #3b82f6;
    font-weight: 500;
    margin-bottom: 1rem;
}

.deployment-option ul {
    list-style: none;
}

.deployment-option li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.deployment-option li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #6b7280;
}

.deployment-option .btn-primary {
    margin-top: 2rem;
    display: block;
    text-align: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Getting Started Section */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step h3, .step h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.step p {
    color: #6b7280;
    line-height: 1.6;
}

/* Quick Start and Self-Hosting Styles */
.quick-start, .self-hosting {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.quick-start h3, .self-hosting h3 {
    color: #1e293b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.quick-start p, .self-hosting p {
    color: #475569;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.quick-start-step {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    line-height: 1.8;
}

.quick-start-step strong {
    color: #3b82f6;
    font-weight: 600;
}

.quick-start .btn-primary {
    margin-top: 1rem;
    font-size: 1.1rem;
    padding: 14px 28px;
}

.self-hosting .steps {
    margin-top: 1.5rem;
}

/* Support Section */
.support {
    background: #f8fafc;
}

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

.support-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.support-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.support-card p {
    color: #6b7280;
    margin-bottom: auto;
    line-height: 1.6;
    flex-grow: 1;
}

.support-card .btn-outline {
    margin-top: 1.5rem;
}

.support-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.support-buttons .btn-outline {
    margin-top: 0;
}

@media (min-width: 500px) {
    .support-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at center, 
        rgba(34, 197, 94, 0.3) 0%,
        rgba(59, 130, 246, 0.2) 30%,
        rgba(147, 51, 234, 0.1) 60%,
        transparent 80%
    );
    border-radius: 50%;
    animation: globe-pulse 6s ease-in-out infinite;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 80% 20%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90% 80%, rgba(255, 255, 255, 0.25), transparent),
        radial-gradient(2px 2px at 10% 70%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 70% 90%, rgba(255, 255, 255, 0.15), transparent);
    opacity: 0.4;
    animation: stars-twinkle 8s ease-in-out infinite alternate;
}

.footer-satellite-1, .footer-satellite-2, .footer-satellite-3 {
    position: absolute;
    font-size: 1.2rem;
    opacity: 0.7;
    z-index: 1;
}

.footer-satellite-1 {
    top: 20%;
    left: 15%;
    animation: satellite-orbit-1 15s linear infinite;
}

.footer-satellite-2 {
    top: 30%;
    right: 20%;
    animation: satellite-orbit-2 20s linear infinite;
}

.footer-satellite-3 {
    bottom: 40%;
    left: 25%;
    animation: satellite-orbit-3 18s linear infinite;
}

@keyframes globe-pulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: translateX(-50%) scale(1.1);
        opacity: 0.5;
    }
}

@keyframes stars-twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

@keyframes satellite-orbit-1 {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(50px) translateY(-20px); }
    50% { transform: translateX(100px) translateY(0); }
    75% { transform: translateX(50px) translateY(20px); }
    100% { transform: translateX(0) translateY(0); }
}

@keyframes satellite-orbit-2 {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-30px) translateY(-30px); }
    50% { transform: translateX(-60px) translateY(0); }
    75% { transform: translateX(-30px) translateY(30px); }
    100% { transform: translateX(0) translateY(0); }
}

@keyframes satellite-orbit-3 {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(40px) translateY(-15px); }
    50% { transform: translateX(80px) translateY(-30px); }
    75% { transform: translateX(40px) translateY(-15px); }
    100% { transform: translateX(0) translateY(0); }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-logo {
    margin-bottom: 1rem;
    text-align: center;
}

.footer-logo-img {
    height: 160px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
}

.developer-logo {
    text-align: center;
    margin-top: 1rem;
}

.magicbug-logo {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3b82f6;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
    position: relative;
    z-index: 2;
}

/* Responsive Design */
/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 950px) {
    .deployment-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    /* Mobile Navigation */
    .nav-container {
        padding: 1rem 2rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 1.5rem 2rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.mobile-menu-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .support-options {
        grid-template-columns: 1fr;
    }
    
    .hardware-options {
        grid-template-columns: 1fr;
    }
    
    .screenshot-container {
        margin: 0 10px;
    }
    
    .feature-callout {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hardware-highlight h3 {
        font-size: 1.5rem;
    }
    
    .logo {
        height: 45px;
        max-width: 160px;
        margin-right: 8px;
    }
    
    .logo-text h2 {
        font-size: 1.3rem;
    }
    
    .logo-text span {
        font-size: 0.8rem;
    }
    
    .footer-logo-img {
        height: 120px;
        max-width: 300px;
    }
    
    .magicbug-logo {
        height: 45px;
        max-width: 150px;
    }
} 