/* ===== CSS Reset & Variables ===== */
:root {
    /* Core Colors - Keeping your requested palette */
    --color-bg: #090909;
    --color-primary: #5200ff;
    --color-primary-dark: #3a00b8;
    --color-primary-light: #6d28d9;
    --color-primary-glow: rgba(82, 0, 255, 0.2);
    
    /* Extended Palette */
    --color-surface: #111111;
    --color-surface-light: #1a1a1a;
    --color-surface-dark: #050505;
    --color-border: #222222;
    --color-border-light: #333333;
    --color-hive-image: #121212;
    
    /* Text Colors */
    --color-text: #ffffff;
    --color-text-secondary: #a0a0a0;
    --color-text-tertiary: #666666;
    
    /* Accent Colors */
    --color-accent: #1900ff;
    --color-success: #6150ff;
    --color-warning: #ffb800;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --spacing-xxs: 0.25rem;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px var(--color-primary-glow);

    /* Heatmap */
    --color-heat-1: rgba(82, 0, 255, 0.05);
    --color-heat-2: rgba(82, 0, 255, 0.1);
    --color-heat-3: rgba(82, 0, 255, 0.15);
    --color-heat-4: rgba(82, 0, 255, 0.2);
    --color-heat-5: rgba(82, 0, 255, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: #090909;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
    box-shadow: none;
    border: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 200;
    line-height: 1.2;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 1.5rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text);
    border: 0;
    transition: 1s;
}

.btn-primary:hover {
    background-color: transparent;
    border: 0px solid;
    border-top: 3px solid var(--color-primary);
    border-right: 3px solid var(--color-primary);
    border-bottom: 0;
    border-left: 0;
    transition: 0.3s;
}

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

.btn-outline:hover {
    border-top: 3px solid var(--color-primary);
    border-right: 3px solid var(--color-primary);
    border-bottom: 0;
    border-left: 0;
    transition: 0.3s;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-center {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    max-width: 300px;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(29, 29, 29, 0.658);
    backdrop-filter: blur(7px);
    border-bottom: 1px solid var(--color-border);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
    padding: var(--spacing-xs) 0;
}

.logo-img {
    height: 22px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav-cta {
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-normal);
    background-color: var(--color-primary);
    color: var(--color-text);
    border: 0;
}

.nav-cta:hover {
    border-top: 3px solid var(--color-primary);
    border-right: 3px solid var(--color-primary);
    background-color: transparent;
}

/* ===== Next Generation Section ===== */
.next-gen {
    padding: 6rem 0;
    background-color: var(--color-surface);
    position: relative;
    text-align: center;
    height: 100vh;
}

.next-gen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}
.next-gen .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.next-gen-header {
    width: 100%;
    margin: 0 auto;
}
.next-gen .section-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}
.next-gen .section-subtitle {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-xxs);
}

.next-gen-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.tech-card {
    background-color: var(--color-surface-light);
    padding: var(--spacing-lg);
    border: 1px solid var(--color-border);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.tech-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
}
.tech-card img {
    height: 5rem;
    width: auto;
    margin-bottom: var(--spacing-lg);
}
.tech-card a {
    text-decoration: none;
}
.tech-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -1.2rem;
    right: 1rem;
    line-height: 1;
}

.tech-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-xl);
    color: var(--color-text);
    position: relative;
    z-index: 1;
}
.tech-description {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* ===== Footer ===== */
.footer {
    padding: 3rem 0 2rem;
    background-color: var(--color-surface-dark);
    border-top: 1px solid var(--color-border);
}

.footer-brand {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--color-border);
    width: 100%;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-logo {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
}

.brand-image {
    height: 1.8em;
    width: auto;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.footer-info {
    display: flex;
    flex-direction: column; /* stack items vertically */
    align-items: center;    /* center horizontally (optional) */
    gap: var(--spacing-sm); /* space between copyright and links */
}

.copyright {
    font-size: 0.875rem;
    color: var(--color-text-tertiary);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero .container,
    .platform-content, .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .hero-image {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .platform-info{
        width: 100%;
    }
    
    .platform-image{
        height: 19em;
    }

    .tech-card img {
        height: 4rem;
    }
    .footer-brand {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-info {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    .next-gen {
        height: 100%;
    }
    .next-gen-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}