:root {
    --bg-base: #050505;
    --bg-panel: #0a0a0c;
    --bg-surface: #121217;
    --border-color: #1f1f2e;
    --text-primary: #f2f2f7;
    --text-secondary: #a1a1aa;
    --accent-blue: #0a84ff;
    --accent-cyan: #64d2ff;
    --accent-purple: #bf5af2;
    --accent-orange: #ff9f0a;
    --nav-height: 80px;
    
    --glow-cyan: rgba(100, 210, 255, 0.15);
    --glow-purple: rgba(191, 90, 242, 0.15);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 120px 0;
    position: relative;
}

.grid {
    display: grid;
    gap: 2rem;
}

.two-columns-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Header & Nav */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 6px;
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), transparent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-base);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-glow {
    background: transparent;
    color: var(--accent-cyan);
    border: 1px solid rgba(100, 210, 255, 0.3);
    box-shadow: 0 0 20px var(--glow-cyan);
}

.btn-glow:hover {
    background: rgba(100, 210, 255, 0.1);
    box-shadow: 0 0 30px var(--glow-cyan);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, transparent 0%, var(--bg-base) 80%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Intelligent Ecosystem Grid */
.ecosystem-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.eco-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.eco-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
}

.eco-card-wide {
    grid-column: span 8;
}

.eco-card-narrow {
    grid-column: span 4;
}

.eco-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
}

.eco-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.eco-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.eco-bg-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 60%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    z-index: 0;
}

.eco-card > * {
    position: relative;
    z-index: 1;
}

/* Feature Showcase */
.showcase-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
}

.showcase-row:nth-child(even) {
    flex-direction: row-reverse;
}

.showcase-content {
    flex: 1;
}

.showcase-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.showcase-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.showcase-visual {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.showcase-visual img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.02);
    transition: transform 0.8s ease;
}

.showcase-visual:hover img {
    transform: scale(1);
}

.showcase-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
    border-radius: 20px;
    pointer-events: none;
}

.product-detail-content {
    padding-left: 2rem;
}

/* Product Cards */
.product-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.product-img {
    height: 240px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.product-card:hover .product-img img {
    opacity: 1;
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-icon {
    background: rgba(255,255,255,0.05);
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-icon:hover {
    background: var(--accent-cyan);
    color: #000;
}

/* Footer */
.site-footer {
    background: var(--bg-panel);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

.footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-nav h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Page Header (Internal Pages) */
.page-hero {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    background: radial-gradient(ellipse at top, rgba(10, 132, 255, 0.1) 0%, var(--bg-base) 70%);
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.page-hero p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Technical Specs / Details */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    table-layout: fixed;
    word-wrap: break-word;
}

.specs-table th, .specs-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
}

.specs-table th {
    color: var(--text-secondary);
    font-weight: 500;
    width: 40%;
}

/* Responsive */
@media (max-width: 1024px) {
    .eco-card-wide, .eco-card-narrow {
        grid-column: span 12;
    }
    .showcase-row, .showcase-row:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .two-columns-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .product-detail-content {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--bg-base);
        flex-direction: column;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    .nav-links.active {
        transform: translateX(0);
    }
    .mobile-toggle {
        display: block;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .specs-table th, .specs-table td {
        display: block;
        width: 100%;
    }
    .specs-table th {
        border-bottom: none;
        padding-bottom: 0.2rem;
    }
    .specs-table td {
        padding-top: 0;
        margin-bottom: 1rem;
    }
    .hero {
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
}
