/* ==========================================================================
   Tyson RA&C - Industrial Dark Tech Design System
   Sole Directory: c:\Users\Tyson\.gemini\antigravity\scratch\plc-monitor\tysonrac-redesign\
   ========================================================================== */

/* --- Google Font Imports --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&family=Share+Tech+Mono&display=swap');

/* --- Custom Core Design Variables --- */
:root {
    /* Color Palette */
    --bg-primary: #090d16;       /* Deep Obsidian Space */
    --bg-secondary: #111827;     /* Sleek Slate Charcoal */
    --bg-card: rgba(17, 24, 39, 0.65); /* Translucent Slate Card */
    --neon-red: #ef4444;         /* Robotics Laser Red */
    --neon-red-glow: rgba(239, 68, 68, 0.25); /* Glow Shadow */
    
    /* Text Colors */
    --text-primary: #f3f4f6;     /* Pure Ash White */
    --text-secondary: #9ca3af;   /* Muted Technical Grey */
    --text-muted: #6b7280;       /* Darker Segment Grey */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;

    /* Boundaries & Borders */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-neon: rgba(239, 68, 68, 0.3);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;

    /* Layout Spacers */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Global Reset & Norms --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

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

/* Base grid layout container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

p {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* --- Premium Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-secondary);
    border: 2px solid var(--bg-primary);
    border-radius: var(--border-radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-red);
}

/* --- Sticky Header / Navbar --- */
header.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(9, 13, 22, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}

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

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

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border: 2px solid var(--neon-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--neon-red-glow);
    font-family: var(--font-mono);
    font-weight: bold;
    color: var(--neon-red);
    font-size: 1.1rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--text-primary) 60%, var(--neon-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-red);
    box-shadow: 0 0 8px var(--neon-red);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* --- Premium Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--neon-red);
    color: var(--text-primary);
    box-shadow: 0 4px 14px var(--neon-red-glow);
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-glass);
}

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

.btn-outline-red {
    background: transparent;
    color: var(--neon-red);
    border-color: var(--neon-red);
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.1);
}

.btn-outline-red:hover {
    background: var(--neon-red);
    color: var(--text-primary);
    box-shadow: 0 4px 14px var(--neon-red-glow);
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero-section {
    padding: 180px 0 100px 0;
    background: radial-gradient(circle at 80% 30%, rgba(239, 68, 68, 0.05) 0%, transparent 60%),
                radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.badge {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid var(--neon-red);
    color: var(--neon-red);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--neon-red);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.4; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 8px var(--neon-red); }
    100% { transform: scale(0.9); opacity: 0.4; }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary) 70%, var(--neon-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

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

/* Interactive SVG Hero Graphics */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-ring-container {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1;
    position: relative;
}

.tech-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.tech-ring-inner {
    position: absolute;
    inset: 15%;
    border: 1px solid var(--border-neon);
    border-radius: 50%;
    box-shadow: inset 0 0 20px var(--neon-red-glow);
    animation: rotateRing 20s linear infinite;
}

.tech-center {
    position: absolute;
    inset: 30%;
    background: radial-gradient(circle, var(--bg-secondary) 30%, var(--bg-primary) 100%);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px var(--neon-red-glow);
}

.tech-center svg {
    width: 50px;
    height: 50px;
    color: var(--neon-red);
    filter: drop-shadow(0 0 8px var(--neon-red));
}

@keyframes rotateRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Section Formatting --- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-secondary {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--text-primary) 80%, var(--neon-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    font-size: 1.1rem;
}

/* --- Premium Cards Grid --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 3rem 2.5rem;
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--neon-red), transparent);
    transform: translateX(-100%);
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--border-neon);
    box-shadow: 0 10px 30px var(--neon-red-glow);
}

.card:hover::before {
    transform: translateX(100%);
    transition: all 0.6s ease;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-red);
    transition: var(--transition-smooth);
}

.card:hover .card-icon {
    background: var(--neon-red);
    color: var(--text-primary);
    box-shadow: 0 0 15px var(--neon-red);
    border-color: var(--neon-red);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.card p {
    font-size: 0.98rem;
    line-height: 1.6;
}

/* --- Inline CTA Redesign --- */
.cta-banner {
    background: radial-gradient(circle at 10% 20%, rgba(239, 68, 68, 0.08) 0%, transparent 50%),
                var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.cta-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-md);
    border: 1px solid transparent;
    background: linear-gradient(135deg, var(--neon-red), transparent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0.3;
    pointer-events: none;
}

.cta-banner h2 {
    font-size: 2.2rem;
    max-width: 600px;
}

.cta-banner p {
    font-size: 1.1rem;
    max-width: 500px;
}

/* --- Footer Overhaul --- */
.site-footer {
    background: #04060b;
    border-top: 1px solid var(--border-glass);
    padding: 80px 0 30px 0;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links-col h4,
.footer-contact h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.footer-links a:hover {
    color: var(--neon-red);
    padding-left: 5px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--neon-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-legal-links {
    display: flex;
    gap: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal-links a:hover {
    color: var(--text-secondary);
}

/* --- Responsive Adaptability --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content .badge {
        align-self: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    .footer-brand {
        grid-column: span 2;
    }
}

}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* In production, replace with mobile nav toggle */
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-brand {
        grid-column: span 1;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Enlarged Touch Targets for Mobile Devices (48px standard min size) */
    .btn, 
    .nav-links a, 
    .footer-links a, 
    .card a,
    .brand-tag,
    .gallery-tab-btn,
    .sim-btn {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.85rem 1.75rem;
    }
    
    /* Ensure scrollability is extremely smooth on touch devices */
    body {
        -webkit-overflow-scrolling: touch;
    }
}

