:root {
    --bg-color: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-blue: #007AFF;
    --accent-lime: #39FF14;
    --card-bg: rgba(25, 25, 25, 0.6);
    --card-border: rgba(255, 255, 255, 0.05);
    --font-main: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor */
#cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

#cursor-blur {
    position: fixed;
    width: 300px;
    height: 300px;
    background-color: rgba(0, 122, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: blur(80px);
    z-index: 0;
    transition: all 0.2s ease-out;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

p {
    font-weight: 300;
    color: var(--text-secondary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(10,10,10,0.9), transparent);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.logo span {
    font-weight: 300;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

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

.hero-content {
    z-index: 2;
}

.hero h1 {
    font-size: 8vw;
    line-height: 1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    position: relative;
}

.sub-headline {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 600px;
    margin-inline: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    border: 1px solid var(--text-primary);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent-blue);
    transition: left 0.4s ease;
    z-index: -1;
}

.cta-button:hover {
    border-color: var(--accent-blue);
    color: var(--bg-color);
}

.cta-button:hover::before {
    left: 0;
}

.arrow {
    display: inline-block;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
    transform: translateX(5px);
}

/* Hero Background Grid */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.1;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px); }
}

/* Ecosystem Section */
.ecosystem-section {
    padding: 10rem 5%;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    text-align: center;
    text-transform: uppercase;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.4s ease, border-color 0.4s ease;
    backdrop-filter: blur(20px);
}

.bento-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.card-header h3 {
    font-size: 2rem;
    z-index: 2;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    transition: background 0.3s ease;
}

.bento-card:hover .icon-circle {
    background: var(--accent-blue);
    color: var(--bg-color);
}

.card-a:hover .icon-circle { background: var(--accent-lime); }

.card-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-content p {
    font-size: 1.1rem;
    margin-bottom: auto;
    max-width: 90%;
}

.card-link {
    margin-top: 2rem;
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-bottom: 1px solid transparent;
    align-self: flex-start;
    padding-bottom: 5px;
}

.card-link:hover {
    border-bottom-color: var(--accent-blue);
}

.card-a .card-link:hover { border-bottom-color: var(--accent-lime); color: var(--accent-lime); }

/* Card Backgrounds */
.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(0.4);
}

.bento-card:hover .card-bg {
    opacity: 1;
}

.automotive-bg {
    background: radial-gradient(circle at right bottom, rgba(57, 255, 20, 0.15), transparent 50%);
}

.hardware-bg {
    background: radial-gradient(circle at left bottom, rgba(0, 122, 255, 0.15), transparent 50%);
}

/* About Section */
.about-section {
    padding: 10rem 5%;
    background: #050505;
    position: relative;
    z-index: 10;
}

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

.about-text {
    font-size: 2rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.about-text .highlight {
    color: var(--text-primary);
    font-weight: 600;
}

/* Footer */
footer {
    padding: 5rem 5% 2rem;
    border-top: 1px solid var(--card-border);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-inline: auto;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: right;
}

.footer-link {
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 12vw;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: left;
    }
    
    .footer-links {
        text-align: left;
    }
}
