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

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

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #030303;
    color: #e0e0e0;
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    animation: fadeIn 1s ease-in-out;
}

.background-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 1200px;
    height: 1200px;
    background: radial-gradient(ellipse at center, rgba(104, 85, 153, 0.1) 0%, rgba(3,3,3,0) 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
}

.container {
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 1s 0.5s ease-in-out forwards;
}

.logo {
    font-size: 1.5rem;
    font-weight: 500;
}

.main-nav {
    display: flex; /* Ensures gap property works */
    gap: 1.5rem; /* This adds space between the links */
}

.main-nav a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #ffffff;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
}

.hero-icons {
    display: flex;
    gap: 1rem;
    color: #8A2BE2;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s 0.8s ease-out forwards;
}
.hero-icons svg { width: 28px; height: 28px; }

.title {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #ffffff, #d0d0d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeInUp 0.8s 1s ease-out forwards;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: #a0a0a0;
    max-width: 550px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s 1.2s ease-out forwards;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s 1.4s ease-out forwards;
}

.cta-button {
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button.primary {
    background: linear-gradient(90deg, #8A2BE2 0%, #4A00E0 100%);
    color: #ffffff;
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #a0a0a0;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.cta-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Innovation Section */
.innovation-section {
    padding: 8rem 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0; /* JS will animate this */
    transform: translateY(50px);
}
.section-header.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: rgba(15, 15, 15, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    opacity: 0; /* JS will animate this */
    transform: translateY(50px);
}
.feature-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(138, 43, 226, 0.7);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card-icon {
    margin-bottom: 1.5rem;
    color: #8A2BE2;
}
.card-icon svg { width: 28px; height: 28px; }

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .main-header { padding: 1rem 1.5rem; }
    .title { font-size: 3rem; }
    .subtitle { font-size: 1rem; }
    .features-grid { grid-template-columns: 1fr; }
}

/* ... your existing CSS above ... */

/* Footer Styles */
.main-footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem; /* Adds space above the footer */
    opacity: 0;
    animation: fadeIn 1s 1.5s ease-in-out forwards; /* Fades in after the initial page load */
}

.main-footer p {
    color: #a0a0a0;
    font-size: 0.9rem;
    font-weight: 300;
}
