:root {
    --primary: #1E293B;
    --secondary: #334155;
    --accent: #22C55E;
    --bg: #0F172A;
    --text: #F8FAFC;
    --text-muted: #94A3B8;
    --glass: rgba(30, 41, 59, 0.7);
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Josefin Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
}

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

header {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 2rem;
}

.hero-content {
    flex: 1;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-image {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    width: 60%;
    height: 80vh;
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    mask-image: linear-gradient(to right, transparent, black 40%);
    box-shadow: 0 0 50px rgba(34, 197, 94, 0.2);
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.4);
}

.btn-outline {
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--bg);
}

section {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(248, 2FAFC, 0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: block;
}

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

.card p {
    color: var(--text-muted);
}

.mission-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-muted);
}

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

@media (max-width: 1024px) {
    .hero-image {
        display: none;
    }
    .hero-title {
        font-size: 3rem;
    }
}

/* Tuya Debugger */
.debugger-section {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 4rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.debug-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.debug-input {
    flex: 1;
    min-width: 250px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--secondary);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    color: var(--text);
    font-family: inherit;
    outline: none;
}

.debug-input:focus {
    border-color: var(--accent);
}

.debug-results {
    background: #000;
    border-radius: 12px;
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #334155;
    color: #22C55E;
}

.log-entry {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #1e293b;
}

.log-ts { color: #64748b; margin-right: 10px; }
.log-val { color: #f8fafc; }
