/* CSS Reset & Variables */
:root {
    --bg-dark: #05060b;
    --bg-card: rgba(14, 18, 30, 0.5);
    --bg-terminal: rgba(6, 8, 14, 0.95);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 240, 255, 0.15);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --cyan-neon: #00f0ff;
    --purple-neon: #7000ff;
    --green-neon: #00ffaa;
    --orange-neon: #ffaa00;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Ambient Background Glows */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--cyan-neon) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--purple-neon) 0%, transparent 70%);
    top: 40%;
    left: -200px;
}

.glow-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--cyan-neon) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
}

/* Container Utilities */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography styles */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    color: var(--text-secondary);
}

/* Glassmorphic Container */
.glass-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition-smooth);
}

.glass-container:hover {
    border-color: rgba(0, 240, 255, 0.2);
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan-neon) 0%, #00b8ff 100%);
    color: #05060b;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.55);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* Header Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 6, 11, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.05em;
    font-size: 1.15rem;
}

.logo-icon {
    width: 24px;
    height: 24px;
    color: var(--cyan-neon);
    filter: drop-shadow(0 0 8px var(--cyan-neon));
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--cyan-neon);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* Sections Base */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero-section {
    padding-top: 180px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--cyan-neon);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 40%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 54px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--cyan-neon);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.image-frame-container {
    position: relative;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 16/9;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.image-border-glow {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--cyan-neon), var(--purple-neon)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.image-frame-container:hover .hero-img {
    transform: scale(1.05);
}

/* Feature Cards Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.05);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-neon);
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 14px;
}

.feature-card p {
    font-size: 0.95rem;
}

/* Kinematics Section */
.kinematics-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: center;
}

.simulator-controls {
    margin: 40px 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.control-header label {
    font-weight: 500;
    color: var(--text-primary);
}

.control-val {
    font-family: var(--font-mono);
    color: var(--cyan-neon);
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--cyan-neon);
    cursor: pointer;
    box-shadow: 0 0 10px var(--cyan-neon);
    transition: transform 0.1s;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.metrics-panel {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.m-label {
    color: var(--text-secondary);
}

.m-val {
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.simulator-card {
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.online {
    background-color: var(--green-neon);
    box-shadow: 0 0 10px var(--green-neon);
}

.card-header .title {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.svg-container {
    flex: 1;
    background: #080a12;
    position: relative;
}

/* Terminal Console Sandbox */
.terminal-wrapper {
    background: var(--bg-terminal);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}

.terminal-bar {
    background: rgba(14, 18, 30, 0.8);
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    position: relative;
}

.terminal-dots {
    display: flex;
    gap: 8px;
    position: absolute;
    left: 18px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.terminal-title {
    width: 100%;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 24px;
    min-height: 220px;
    max-height: 280px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.terminal-line {
    word-break: break-all;
}

.t-system { color: var(--cyan-neon); }
.t-success { color: var(--green-neon); }
.t-warn { color: var(--orange-neon); }
.t-error { color: #ef4444; }
.t-user { color: var(--text-primary); }

.terminal-input-line {
    border-top: 1px solid var(--border-color);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(6, 8, 14, 0.4);
}

.terminal-prompt {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--purple-neon);
    user-select: none;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.quick-commands {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cmd-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.cmd-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    color: var(--cyan-neon);
    border-color: var(--cyan-neon);
}

/* Product Catalog */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-info {
    padding: 36px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.product-header h3 {
    font-size: 1.6rem;
}

.price-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--cyan-neon);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(0, 240, 255, 0.05);
}

.product-desc {
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.specs {
    list-style: none;
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.specs li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.specs li::before {
    content: "•";
    color: var(--purple-neon);
    font-weight: bold;
}

.specs li span {
    color: var(--text-muted);
}

/* Contact/Integration Section */
.contact-box {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    padding: 64px;
    gap: 64px;
}

.contact-info h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.contact-meta {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
}

.meta-item svg {
    width: 20px;
    height: 20px;
    color: var(--cyan-neon);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--cyan-neon);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

/* Footer Section */
footer {
    border-top: 1px solid var(--border-color);
    padding: 48px 0;
    background: #020306;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.footer-logo {
    width: 20px;
    height: 20px;
    color: var(--cyan-neon);
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive Rules */
@media (max-width: 992px) {
    .hero-grid, .kinematics-grid, .contact-box {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions, .hero-stats {
        justify-content: center;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contact-box {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links, .header-actions {
        display: none; /* simple burger menu or hide for demo landing page */
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
