:root {
    --color-bg: #0a0a0f;
    --color-bg-elevated: #12121a;
    --color-surface: #1a1a24;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-text: #f4f4f5;
    --color-text-secondary: #a1a1aa;
    --color-accent: #6366f1;
    --color-accent-glow: rgba(99, 102, 241, 0.4);
    
    /* Spectral gradient colors */
    --spectrum-violet: #8b5cf6;
    --spectrum-blue: #3b82f6;
    --spectrum-cyan: #06b6d4;
    --spectrum-green: #22c55e;
    --spectrum-yellow: #eab308;
    --spectrum-orange: #f97316;
    --spectrum-red: #ef4444;
    
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans: 'DM Sans', system-ui, sans-serif;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Grain overlay for texture */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Background gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(59, 130, 246, 0.08), transparent);
    pointer-events: none;
    z-index: -1;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 3rem;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

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

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

/* Main content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Section styling */
section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--spectrum-cyan);
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-header h2 em {
    font-style: italic;
    background: linear-gradient(135deg, var(--spectrum-cyan), var(--spectrum-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 600px;
}

/* Hero section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 6rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-tagline {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--spectrum-cyan);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.hero h1 em {
    font-style: italic;
    background: linear-gradient(135deg, var(--spectrum-cyan), var(--spectrum-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 650px;
    line-height: 1.7;
}

.hero-visual {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.spectrum-wave {
    position: relative;
    width: 100%;
    height: 100%;
}

.wave {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    animation: wave 4s ease-in-out infinite;
}

.wave-1 {
    top: 40%;
    background: linear-gradient(90deg, transparent, var(--spectrum-violet), var(--spectrum-blue), var(--spectrum-cyan), transparent);
    animation-delay: 0s;
}

.wave-2 {
    top: 50%;
    background: linear-gradient(90deg, transparent, var(--spectrum-cyan), var(--spectrum-green), var(--spectrum-yellow), transparent);
    animation-delay: 0.5s;
}

.wave-3 {
    top: 60%;
    background: linear-gradient(90deg, transparent, var(--spectrum-yellow), var(--spectrum-orange), var(--spectrum-red), transparent);
    animation-delay: 1s;
}

@keyframes wave {
    0%, 100% {
        transform: scaleX(0.8) translateX(-10%);
        opacity: 0.3;
    }
    50% {
        transform: scaleX(1) translateX(10%);
        opacity: 1;
    }
}

/* Platform Section */
.platform {
    border-top: 1px solid var(--color-border);
}

.platform-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.platform-content p {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.platform-badge {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}

.badge-text {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-style: italic;
    background: linear-gradient(135deg, var(--spectrum-violet), var(--spectrum-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.badge-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-secondary);
}

/* Technology Section */
.technology {
    border-top: 1px solid var(--color-border);
}

.tech-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.tech-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.5s var(--ease-out-expo);
}

.tech-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.tech-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--spectrum-cyan);
    background: rgba(6, 182, 212, 0.1);
    border-radius: 12px;
}

.tech-icon svg {
    width: 28px;
    height: 28px;
}

.tech-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.tech-card p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Industries Section */
.industries-section {
    border-top: 1px solid var(--color-border);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.industry-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.industry-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--color-accent);
    opacity: 0.8;
}

.card-icon svg {
    width: 28px;
    height: 28px;
}

.industry-card h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.industry-card p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.5s var(--ease-out-expo);
}

.industry-card:hover .card-accent {
    opacity: 1;
}

/* Industry-specific colors */
[data-industry="healthcare"] .card-accent { background: linear-gradient(90deg, var(--spectrum-red), var(--spectrum-orange)); }
[data-industry="healthcare"]:hover .card-icon { color: var(--spectrum-red); }

[data-industry="food"] .card-accent { background: linear-gradient(90deg, var(--spectrum-green), var(--spectrum-cyan)); }
[data-industry="food"]:hover .card-icon { color: var(--spectrum-green); }

[data-industry="quality"] .card-accent { background: linear-gradient(90deg, var(--spectrum-blue), var(--spectrum-violet)); }
[data-industry="quality"]:hover .card-icon { color: var(--spectrum-blue); }

[data-industry="manufacturing"] .card-accent { background: linear-gradient(90deg, var(--spectrum-yellow), var(--spectrum-orange)); }
[data-industry="manufacturing"]:hover .card-icon { color: var(--spectrum-yellow); }

[data-industry="environment"] .card-accent { background: linear-gradient(90deg, var(--spectrum-cyan), var(--spectrum-green)); }
[data-industry="environment"]:hover .card-icon { color: var(--spectrum-cyan); }

[data-industry="defense"] .card-accent { background: linear-gradient(90deg, var(--spectrum-violet), var(--spectrum-blue)); }
[data-industry="defense"]:hover .card-icon { color: var(--spectrum-violet); }

/* Leadership Section */
.leadership {
    border-top: 1px solid var(--color-border);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.leader-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.5s var(--ease-out-expo);
}

.leader-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.leader-info {
    margin-bottom: 1.5rem;
}

.leader-info h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.leader-title {
    font-size: 0.875rem;
    color: var(--spectrum-cyan);
    font-weight: 500;
}

.leader-card blockquote {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--color-text-secondary);
    line-height: 1.7;
    padding-left: 1.5rem;
    border-left: 2px solid var(--spectrum-violet);
}

.leader-bio {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Footer */
footer {
    border-top: 1px solid var(--color-border);
    padding: 4rem 3rem;
    margin-top: 2rem;
}

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

.footer-brand .logo-text {
    margin-bottom: 0.5rem;
}

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

.copyright {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .platform-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .platform-badge {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    main {
        padding: 0 1.5rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero {
        min-height: 80vh;
        padding-top: 5rem;
    }
    
    .hero-visual {
        display: none;
    }
    
    .tech-features,
    .industries-grid,
    .leadership-grid {
        grid-template-columns: 1fr;
    }
    
    .industry-card,
    .tech-card,
    .leader-card {
        padding: 1.75rem;
    }
    
    footer {
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

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

.hero-tagline { animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s both; }
.hero h1 { animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s both; }
.hero-description { animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s both; }
