:root {
    --primary: #0a84ff;
    --primary-glow: rgba(10, 132, 255, 0.4);
    --secondary: #5ac8fa;
    --bg-dark: #050505;
    --bg-card: rgba(25, 25, 30, 0.6);
    --text-main: #f5f5f7;
    --text-muted: #86868b;
    --border-color: rgba(255, 255, 255, 0.1);
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

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

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

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

/* Glassmorphism Utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 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-size: 1rem;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    background: #0071e3;
    box-shadow: 0 8px 30px var(--primary-glow);
}

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

.btn-outline:hover {
    background: rgba(10, 132, 255, 0.1);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.logo img {
    height: 40px;
    width: auto;
}

.logo span {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

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

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

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    background: url('img/hero-bg.png') no-repeat center center/cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(5, 5, 5, 0.6) 0%, rgba(5, 5, 5, 0.95) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero h1 span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-main); /* Brighter for readability */
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: #050505;
}

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

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

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

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

.feature-card {
    padding: 40px;
    transition: all 0.4s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(10, 132, 255, 0.1);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: white;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Monitoring Section */
.monitoring {
    padding: 80px 0;
    background: linear-gradient(180deg, #050505 0%, #0a0a0f 100%);
}

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

.monitor-item {
    padding: 32px;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.monitor-item:hover {
    background: rgba(10, 132, 255, 0.05);
    border-color: rgba(10, 132, 255, 0.3);
}

.monitor-icon {
    font-size: 32px;
}

.monitor-item h4 {
    color: white;
    font-size: 1.2rem;
}

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

/* Architecture Section */
.architecture {
    padding: 80px 0;
    background: radial-gradient(circle at 100% 0%, rgba(10, 132, 255, 0.05) 0%, transparent 40%);
}

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

.architecture-text h2 {
    font-size: 3rem;
    margin-bottom: 40px;
}

.steps {
    list-style: none;
}

.steps li {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
}

.step-num {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(10, 132, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.steps h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: white;
}

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

.architecture-visual {
    text-align: center;
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.stack-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(10, 132, 255, 0.2);
    border: 1px solid var(--border-color);
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
}

.cta-card {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.2) 0%, rgba(5, 5, 5, 0.6) 100%);
}

.cta-card h2 {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

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

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
    background: #050505;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

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

.footer-brand .logo {
    margin-bottom: 20px;
}

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

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

.link-group h5 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 12px;
}

.link-group a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s;
}

.link-group a:hover {
    color: var(--primary);
}

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

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s forwards ease-out;
}

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

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

/* Responsive Overhaul */
@media (max-width: 1024px) {
    .container { max-width: 900px; padding: 0 40px; }
    .hero h1 { font-size: 3.5rem; }
    .architecture-content { gap: 40px; }
}

@media (max-width: 968px) {
    .container { padding: 0 24px; }
    .hero-content { padding: 0; }
    .architecture-content { grid-template-columns: 1fr; text-align: center; }
    .steps li { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
    .step-num { margin: 0 auto; width: 40px; height: 40px; font-size: 0.8rem; }
    .footer-content { flex-direction: column; text-align: center; gap: 32px; }
    .footer-brand { margin: 0 auto; }
    .footer-links { margin: 0 auto; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero { padding-top: 40px; height: auto; min-height: 80vh; padding-bottom: 40px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 0.9rem; margin-bottom: 16px; padding: 0 10px; }
    .hero-actions { flex-direction: row; gap: 12px; }
    .btn { padding: 10px 20px; font-size: 0.9rem; border-radius: 8px; }
    
    .section-header { margin-bottom: 30px; }
    .section-header h2 { font-size: 1.8rem; }
    .section-header p { font-size: 0.95rem; }

    /* Compact 2-column grid for mobile */
    .features-grid, .monitoring-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .feature-card, .monitor-item {
        padding: 20px 16px;
        border-radius: 12px;
    }

    .feature-icon, .monitor-icon {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .feature-card h3, .monitor-item h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .feature-card p, .monitor-item p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .architecture { padding: 40px 0; }
    .architecture-text h2 { font-size: 1.8rem; margin-bottom: 16px; }
    .steps li { margin-bottom: 16px; }
    .steps h4 { font-size: 1.1rem; }
    .steps p { font-size: 0.85rem; }

    .cta-card { padding: 32px 20px; }
    .cta-card h2 { font-size: 1.8rem; }
    .cta-card p { font-size: 0.95rem; }
}

@media (max-width: 480px) {
    /* Keeping the 2-column grid but scaling down slightly more if needed */
    .container { padding: 0 16px; }
    .features, .monitoring, .architecture { padding: 20px 0; }
    .section-header { margin-bottom: 20px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; text-align: center; }
    
    .features-grid, .monitoring-grid {
        gap: 8px;
    }
}
