:root {
    --bg-dark: #0F0F11; /* Dark Charcoal */
    --bg-alt: #161618;
    --color-kangaroo: #4599E7;
    --color-panda-orange: #DB6E2F;
    --color-panda-red: #EB5444;
    --text-blue: #7EB1ED;
    --text-alt-blue: #93B3F3;
    --text-red: #EB5444;
    --text-white: #F5F5F7;
    --text-gray: #A0A0A0;
    --border-color: rgba(255,255,255,0.1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: filter 1.5s ease, background-color 1.5s ease;
}

/* Dormant State Styles */
body.dormant {
    filter: brightness(0.35) saturate(0.5) contrast(0.9);
}

#dust-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

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

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

.container.narrow {
    max-width: 800px;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(15, 15, 17, 0.8);
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 40px;
    filter: brightness(1.2); /* Ensure visible even when dormant */
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-link:hover {
    color: var(--text-blue);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-panda-red);
    color: white;
}

.btn-primary:hover {
    background: #ff6b58;
    box-shadow: 0 4px 20px rgba(235, 84, 68, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-kangaroo);
    color: var(--text-blue);
    width: 140px; /* Fixed width to prevent layout shift on text change */
    text-align: center;
}

.btn-outline:hover {
    background: rgba(69, 153, 231, 0.1);
}

/* Awaken Toggle Text Logic */
.toggle-state-awake { display: none; }
body:not(.dormant) .toggle-state-dormant { display: none; }
body:not(.dormant) .toggle-state-awake { display: inline; }

/* Sections */
section {
    padding: 8rem 0;
    position: relative;
}

.section-standard.alt-bg {
    background: var(--bg-alt);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    line-height: 1.1;
}

.text-red {
    color: var(--text-red);
}

/* Hero Section */
.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-subtitle {
    color: var(--text-blue);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.hero-description {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
}

/* Hero Video / Robot Visuals */
.hero-video-container {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

#awakening-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dormant-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: opacity 1s ease;
    z-index: 2;
}

body:not(.dormant) .dormant-overlay {
    opacity: 0;
    pointer-events: none;
}

.packed-robot {
    width: 80px;
    height: 120px;
    background: var(--color-kangaroo);
    border-radius: 10px;
    opacity: 0.5;
    filter: blur(2px);
}

.packed-robot.red {
    background: var(--color-panda-red);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.service-card {
    background: var(--bg-alt);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-kangaroo);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--text-blue);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.tags {
    font-size: 0.85rem;
    color: var(--text-alt-blue);
    font-weight: 600;
}

/* Values Section */
.values-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.value-row {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.value-row:last-child {
    border-bottom: none;
}

.value-row h3 {
    font-size: 1.8rem;
    color: var(--text-white);
}

.value-row p {
    color: var(--text-gray);
}

/* Registration Form */
.section-register {
    background: linear-gradient(to bottom, var(--bg-dark), #1a1a1d);
}

.register-subtitle {
    color: var(--text-gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row.full {
    grid-template-columns: 1fr;
}

input, textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-kangaroo);
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
    padding: 1.2rem;
    font-size: 1rem;
}

.form-feedback {
    margin-top: 1rem;
    color: var(--color-kangaroo);
    text-align: center;
    display: none;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    background: #0a0a0c;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-left h4 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.footer-left p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.corp-info {
    font-size: 0.8rem;
    color: #666;
    max-width: 400px;
    margin-bottom: 1rem;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content, .services-grid, .value-row, .footer-content {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: left;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .nav-menu {
        display: none; /* Simplified for mobile */
    }
}