/* --- Global Variables & Reset --- */
:root {
    --color-bg-dark: #0f172a; /* Deep Blue/Navy */
    --color-bg-card: #1e293b; /* Slightly lighter for cards */
    --color-text-light: #f1f5f9; /* Near white */
    --color-text-muted: #94a3b8; /* Muted gray for body text */
    --color-accent: #3b82f6; /* Bright Blue for CTA/Highlight */
    --color-accent-hover: #1e58b8;
}

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

body {
    font-family: 'Roboto Mono', monospace;
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-text-light);
}

/* --- 1. Navigation Bar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--color-bg-dark); /* Fully opaque */
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-bg-card);
}

.logo {
    font-size: 1.5em;
    font-weight: 400;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Roboto Mono', monospace;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.nav-links a {
    margin-left: 30px;
    color: var(--color-text-light);
    font-weight: 600;
}

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

.cta-link {
    background-color: var(--color-accent);
    padding: 8px 15px;
    border-radius: 4px;
    color: var(--color-text-light) !important;
    transition: background-color 0.2s;
}

.cta-link:hover {
    background-color: var(--color-accent-hover);
}

/* --- 2. Hero Section --- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 5% 20px;
    background: linear-gradient(180deg, var(--color-bg-dark) 0%, #0c1221 100%);
    flex: 1;
}

.hero-content {
    max-width: 1000px;
    margin-bottom: 50px;
}

.hero h1 {
    font-size: 3.5em;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
    background: linear-gradient(90deg, #93c5fd, var(--color-text-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h2 {
    font-size: 1.25em;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

/* CTA Group */
.cta-group {
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.2s, transform 0.1s;
}

.primary-cta {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    border: 2px solid var(--color-accent);
    font-size: 1.1em;
}

.primary-cta:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

.small-text {
    font-size: 0.85em;
    color: var(--color-text-muted);
    margin-top: 10px;
}

.button-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}



/* --- 3. Features Section --- */
.features-grid {
    padding: 40px 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-card {
    background-color: var(--color-bg-card);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #334155;
    transition: background-color 0.3s, transform 0.3s;
}

.feature-card:hover {
    background-color: #273449;
    transform: translateY(-5px);
}

.feature-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.feature-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    margin-top: 0;
}

.icon {
    font-size: 3em;
    color: var(--color-accent);
}

.icon-svg {
    width: 60px;
    height: 60px;
    color: var(--color-accent);
}

.feature-text {
    flex: 1;
}

.feature-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--color-text-light);
}

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

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    text-align: left;
}

.feature-card li {
    color: var(--color-text-muted);
    margin-bottom: 12px;
    padding-left: 0;
    line-height: 1.5;
}

.feature-card li strong {
    color: var(--color-text-light);
    font-weight: 600;
}

/* Alternating layout */
.feature-card.icon-right .feature-content {
    flex-direction: row-reverse;
}

/* --- 4. Footer --- */
footer {
    text-align: center;
    padding: 30px 5%;
    border-top: 1px solid var(--color-bg-card);
    color: var(--color-text-muted);
    font-size: 0.9em;
}

footer p {
    margin-bottom: 5px;
}

footer a {
    color: var(--color-text-muted);
}

footer a:hover {
    color: var(--color-accent);
}

/* --- Responsive Design --- */

/* Mobile (320px - 767px) */
@media (max-width: 767px) {
    .navbar {
        padding: 15px 5%;
        flex-direction: row;
        gap: 15px;
    }
    
    .nav-links {
        display: flex;
        gap: 15px;
        margin-left: 0;
        align-items: center;
    }
    
    .nav-links a {
        margin-left: 0;
        font-size: 0.9em;
        display: flex;
        align-items: center;
    }
    
    .hero {
        padding: 40px 5% 20px;
    }
    
    .hero h1 {
        font-size: 2.5em;
    }
    
    .hero h2 {
        font-size: 1.1em;
    }
    
    .button-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        padding: 40px 5%;
    }
    
    .feature-content {
        flex-direction: row;
        text-align: left;
        gap: 15px;
        align-items: flex-start;
    }
    
    .feature-card.icon-right .feature-content {
        flex-direction: row-reverse;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }
    
    .icon-svg {
        width: 30px;
        height: 30px;
    }
    
    .feature-text {
        flex: 1;
    }
    
    .feature-card h3 {
        margin-bottom: 15px;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero h1 {
        font-size: 3em;
    }
    
    .button-row {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .btn {
        flex: 1;
        min-width: 200px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-content {
        gap: 30px;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .hero-content {
        max-width: 1200px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-content {
        gap: 50px;
    }
}