:root {
    --primary-color: #ff6600; /* Main brand color */
    --primary-shadow: #960019; /* Accent color */
    --secondary-shadow: #590110;
    --secondary-color: #ff2600;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #eee;
    background: #0a0a0a;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-shadow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0a0a0a 0%, var(--secondary-shadow) 50%, var(--primary-shadow) 100%);
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: #111;
}

.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.feature-showcase.reverse {
    direction: rtl;
}

.feature-showcase.reverse > * {
    direction: ltr;
}

.feature-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}

.feature-content p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-highlights {
    list-style: none;
}

.feature-highlights li {
    color: #bbb;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.feature-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.feature-visual {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.demo-interface {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.demo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
}

.demo-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.demo-item {
    background: var(--secondary-shadow);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.demo-item:hover {
    background: var(--primary-shadow);
    transform: translateY(-2px);
}

.demo-item .item-name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.demo-item .item-count {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.sensor-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.sensor-cell {
    aspect-ratio: 1;
    background: var(--primary-shadow);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
    animation: pulse 2s ease-in-out infinite alternate;
}

.sensor-cell:nth-child(odd) {
    animation-delay: 0.5s;
}

@keyframes pulse {
    0% {
        background: var(--secondary-shadow);
        border-color: var(--secondary-color);
    }
    100% {
        background: var(--primary-shadow);
        border-color: var(--primary-color);
    }
}

.chart-container {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.chart-bars {
    display: flex;
    align-items: end;
    gap: 0.5rem;
    height: 120px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary-color), var(--primary-shadow));
    border-radius: 4px 4px 0 0;
    animation: grow 1.5s ease-out forwards;
    transform-origin: bottom;
}

.chart-bar:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.chart-bar:nth-child(2) { height: 80%; animation-delay: 0.2s; }
.chart-bar:nth-child(3) { height: 40%; animation-delay: 0.3s; }
.chart-bar:nth-child(4) { height: 90%; animation-delay: 0.4s; }
.chart-bar:nth-child(5) { height: 70%; animation-delay: 0.5s; }
.chart-bar:nth-child(6) { height: 50%; animation-delay: 0.6s; }

@keyframes grow {
    0% { transform: scaleY(0); }
    100% { transform: scaleY(1); }
}

/* Integration Section */
.integration-demo {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.integration-flow {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.integration-box {
    background: var(--secondary-shadow);
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    min-width: 120px;
    color: #fff;
    font-weight: 600;
}

.integration-arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: flow 2s ease-in-out infinite;
}

@keyframes flow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Footer */
footer {
    background: #0a0a0a;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #bbb;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .feature-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-showcase.reverse {
        direction: ltr;
    }

    .nav-links {
        display: none;
    }

    .demo-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .sensor-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .integration-flow {
        flex-direction: column;
    }

    .integration-arrow {
        transform: rotate(90deg);
    }
}
