:root {
    /* Primary Palette */
    --color-bg-deep: #050b14;
    --color-bg-panel: #0d1b2a;
    --color-bg-card: #1b263b;
    
    /* Accents */
    --color-brass: #c5a059;
    --color-brass-glow: rgba(197, 160, 89, 0.3);
    --color-blueprint: #3a6fb0;
    --color-blueprint-glow: rgba(58, 111, 176, 0.4);
    
    /* Text */
    --color-text-primary: #e6f1ff;
    --color-text-secondary: #8892b0;
    --color-text-muted: #495670;
    
    /* States */
    --color-success: #76c893;
    --color-warning: #ee9b00;
    --color-error: #ae2012;
    
    /* Grids & Borders */
    --grid-line: rgba(58, 111, 176, 0.1);
    --border-steel: rgba(58, 111, 176, 0.2);
    --border-brass: rgba(197, 160, 89, 0.4);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

/* Background Grid Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

section {
    padding: 6rem 0;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 11, 20, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-steel);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-brass);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.nav-links a:hover, .nav-links a.active {
    color: var(--color-text-primary);
}

.nav-links .btn-login {
    background: transparent;
    border: 1px solid var(--color-brass);
    color: var(--color-brass);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
}

.nav-links .btn-login:hover {
    background: var(--color-brass);
    color: var(--color-bg-deep);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--color-text-secondary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--color-blueprint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #d4b47a;
    box-shadow: 0 0 20px var(--color-brass-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid var(--border-steel);
    color: var(--color-text-primary);
    background: rgba(58, 111, 176, 0.1);
}

.btn-secondary:hover {
    background: rgba(58, 111, 176, 0.2);
    border-color: var(--color-blueprint);
}

/* Model Stage Placeholder */
.model-stage-container {
    flex: 1;
    height: 600px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.model-stage {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1b263b 0%, #050b14 70%);
    border: 1px solid var(--border-steel);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

.model-stage::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(58, 111, 176, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(58, 111, 176, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(500px) rotateX(60deg);
    bottom: -50%;
}

.model-placeholder-graphic {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.wireframe-cube {
    width: 200px;
    height: 200px;
    border: 1px solid var(--color-blueprint);
    position: relative;
    animation: rotate3d 10s linear infinite;
    transform-style: preserve-3d;
}

@keyframes rotate3d {
    from { transform: rotateY(0deg) rotateX(20deg); }
    to { transform: rotateY(360deg) rotateX(20deg); }
}

.model-stage-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--color-blueprint);
    pointer-events: none;
}

.model-stage-overlay.bottom-right {
    top: auto;
    left: auto;
    bottom: 20px;
    right: 20px;
    text-align: right;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

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

.card {
    background: var(--color-bg-panel);
    border: 1px solid var(--border-steel);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--color-blueprint);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--color-brass);
}

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

/* Pricing Page */
.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.billing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.billing-toggle span {
    font-weight: 500;
}

.toggle-switch {
    width: 240px;
    background: var(--color-bg-card);
    border: 1px solid var(--border-steel);
    padding: 0.25rem;
    border-radius: 30px;
    display: flex;
    position: relative;
}

.toggle-option {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.toggle-option.active {
    color: var(--color-bg-deep);
}

.toggle-slider {
    position: absolute;
    width: calc(25% - 4px);
    height: calc(100% - 8px);
    background: var(--color-brass);
    border-radius: 30px;
    transition: transform 0.3s ease;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 6rem;
}

.pricing-card {
    background: var(--color-bg-panel);
    border: 1px solid var(--border-steel);
    padding: 2.5rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.premium {
    border-color: var(--color-brass);
    transform: scale(1.05);
    z-index: 2;
    background: var(--color-bg-card);
}

.pricing-card .tier-name {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.pricing-card .features {
    text-align: left;
    margin-bottom: 2rem;
    list-style: none;
    flex-grow: 1;
}

.pricing-card .features li {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.pricing-card .features li::before {
    content: '✓';
    color: var(--color-brass);
    font-weight: bold;
}

/* Comparison Table */
.comparison-container {
    margin-top: 6rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.comparison-table th, .comparison-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-steel);
}

.comparison-table th {
    color: var(--color-brass);
    font-weight: 700;
}

.comparison-table tr:hover {
    background: rgba(58, 111, 176, 0.05);
}

.check-icon { color: var(--color-success); }
.minus-icon { color: var(--color-text-muted); }

/* Login Gateway */
.gateway-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.gateway-card {
    background: var(--color-bg-panel);
    border: 1px solid var(--border-steel);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
}

.gateway-card .icon {
    font-size: 3rem;
    color: var(--color-brass);
    margin-bottom: 1.5rem;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    background: var(--color-bg-panel);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-steel);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg-deep);
    border: 1px solid var(--border-steel);
    color: var(--color-text-primary);
    border-radius: 4px;
    font-family: inherit;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-brass);
}

/* Footer */
footer {
    background: #03080f;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-steel);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    color: var(--color-brass);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-brass);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-steel);
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal {
    background: var(--color-bg-panel);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--color-brass);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.modal h2 {
    color: var(--color-brass);
    margin-bottom: 1rem;
}

.modal p {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--color-text-muted);
    font-size: 1.5rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero h1 { font-size: 3rem; }
    
    .hero p { margin: 0 auto 2rem; }
    
    .hero-actions { justify-content: center; }
    
    .model-stage-container {
        width: 100%;
        height: 400px;
        margin-top: 4rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    
    .mobile-menu-toggle { display: block; }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
