:root {
    --bg-color: #ffffff;
    --bg-secondary: #f9f9f9;
    --text-main: #6D6E71;
    --text-title: #005DB9;
    --accent-primary: #B8D53F;
    --accent-secondary: #F99A22;
    --accent-glow: rgba(184, 213, 63, 0.3);
    --card-bg: #ffffff;
    --card-border: #e0e0e0;
    --font-main: 'Inter', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-title);
}

.text-gradient {
    /* Using the title color as base, maybe gradient to accent? Or just solid title color */
    background: linear-gradient(135deg, var(--text-title) 0%, #004a94 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--accent-primary);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--text-title);
    /* Blue background */
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 93, 185, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 93, 185, 0.4);
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

/* Secondary button on white background -> use Blue text or Lime border? 
   Let's use Blue border and text for consistency with titles. */
.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-title);
    color: var(--text-title);
}

.btn-secondary:hover {
    background: rgba(0, 93, 185, 0.05);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-title);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-main);
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-title);
}

.nav-links .btn-primary {
    padding: 8px 20px;
    color: #fff !important;
    /* Highlight on blue background -> Orange */
    border-bottom: 3px solid var(--accent-secondary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    background: transparent;
    /* Transparent to show canvas */
}

.hero-content {
    flex: 1;
    z-index: 2;
    max-width: 600px;
    /* Limit width to not overlap with model */
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 40px;
    max-width: 600px;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    /* pointer-events: none; Removed to allow OrbitControls */
}

/* Removed img styles and glow effect as they are replaced by canvas */

/* Features Section */
.features {
    padding: 100px 5%;
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-title);
}

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

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-primary);
    /* Lime accent on white card */
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 93, 185, 0.1);
}

.card:hover::before {
    transform: scaleY(1);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-title);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--text-title);
}

.card p {
    color: var(--text-main);
    font-size: 0.95rem;
}

/* Precision Showcase */
.precision-showcase {
    padding: 100px 5%;
    background: #ffffff;
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-layout>div {
    flex: 1;
}

.tech-list {
    margin-top: 30px;
}

.tech-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.tech-list li span {
    display: inline-block;
    width: 100px;
    font-family: var(--font-display);
    color: var(--text-title);
    font-weight: 700;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent-primary);
    /* Lime underline */
}

.articulation-demo {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
}

.segment {
    width: 40px;
    height: 60px;
    background: linear-gradient(90deg, #e0e0e0, #f5f5f5, #e0e0e0);
    border: 1px solid #ccc;
    border-radius: 5px;
    position: relative;
    transition: transform 0.5s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.segment::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    /* Lime center */
    border-radius: 50%;
    box-shadow: 0 0 5px var(--accent-glow);
}

/* Specs Section */
.specs {
    padding: 100px 5%;
    background: var(--bg-secondary);
}

.specs-table {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--card-border);
    border-top: 4px solid var(--text-title);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    border-bottom: 1px solid var(--card-border);
    transition: background 0.3s;
}

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

.spec-row:hover {
    background: #f9f9f9;
}

.spec-label {
    color: var(--text-main);
    font-weight: 600;
}

.spec-value {
    color: var(--text-title);
    font-family: var(--font-display);
    font-weight: 600;
}

/* Footer */
footer {
    padding: 80px 5% 30px;
    background: var(--text-title);
    /* Blue background */
    color: #fff;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-brand .highlight {
    color: var(--accent-secondary);
    /* Orange on Blue */
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-secondary);
    /* Orange on Blue */
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .split-layout {
        flex-direction: column;
    }

    .nav-links {
        display: none;
        /* Simple hide for mobile for this MVP */
    }
}