/* Neural Industrial theme, shared with the AUTOM8LABS product pages */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --accent-cyan: #00f0ff;
    --accent-cyan-dim: rgba(0, 240, 255, 0.15);
    --accent-purple: #a855f7;
    --accent-purple-dim: rgba(168, 85, 247, 0.15);
    --text-primary: #f0f0f5;
    --text-secondary: #9898a8;
    --text-muted: #5a5a6e;
    --glass-bg: rgba(18, 18, 26, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 4px; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-cyan-dim); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

/* Node Network Canvas */
#node-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.6; }

/* Navigation */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.95), transparent);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.nav.scrolled {
    background: rgba(10, 10, 15, 0.98);
    padding: 1rem 4rem;
    border-bottom: 1px solid var(--glass-border);
}
.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
}
.logo-auto { color: var(--text-primary); }
.logo-8 { color: var(--accent-cyan); text-shadow: 0 0 20px var(--accent-cyan); animation: pulse-glow 2s ease-in-out infinite; }
.logo-labs { color: var(--text-secondary); }
@keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 20px var(--accent-cyan); }
    50% { text-shadow: 0 0 30px var(--accent-cyan), 0 0 50px var(--accent-cyan); }
}
@media (min-width: 1200px) { .nav-links { position: absolute; left: 50%; transform: translateX(-50%); } }
@media (min-width: 769px) and (max-width: 1199px) { nav .nav-links { gap: 1.5rem; } }
@media (min-width: 769px) and (max-width: 1024px) { .nav { padding: 1.5rem 2rem; } }
.nav-links { display: flex; gap: 3rem; list-style: none; }
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--accent-cyan);
    transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-cyan); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; background: none; border: none; }
.mobile-toggle span { width: 25px; height: 2px; background: var(--text-primary); transition: all 0.3s ease; }

/* Hero */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10rem 4rem 4rem;
}
.hero-content { position: relative; z-index: 10; max-width: 900px; text-align: center; }
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent-cyan-dim);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}
.hero-tag::before { content: ''; width: 6px; height: 6px; background: var(--accent-cyan); border-radius: 50%; animation: blink 1.5s ease infinite; flex-shrink: 0; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    text-wrap: balance;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}
.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(0, 240, 255, 0.5); }
.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-secondary:hover { border-color: var(--text-secondary); background: var(--glass-bg); }

/* Skill Library (same grid as the products page) */
.library-section { position: relative; z-index: 10; padding: 4rem 4rem 8rem; scroll-margin-top: 90px; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; max-width: 1400px; margin: 0 auto; }
.skill-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 110px;
    transition: all 0.4s ease;
}
.skill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.skill-card:hover { transform: translateY(-8px); border-color: rgba(0, 240, 255, 0.3); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 240, 255, 0.1); }
.skill-card:hover::before { opacity: 1; }
.product-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--accent-cyan-dim), var(--accent-purple-dim));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.product-icon svg { width: 32px; height: 32px; color: var(--accent-cyan); }
.skill-card h3 { font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-primary); }
.skill-card h3 span { display: block; font-size: 0.9rem; font-weight: 600; color: var(--accent-cyan); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.35rem; }
.skill-card > p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.5rem; }
.product-actions { display: flex; flex-direction: column; gap: 1rem; margin-top: auto; }
.product-actions .btn-primary, .product-actions .btn-secondary { flex: 1 1 0; width: 100%; }

/* Footer (unified with homepage) */
footer { background: var(--bg-primary); padding: 4rem; border-top: 1px solid var(--glass-border); position: relative; z-index: 10; }
/* CTA section, same block as the products page */
.cta-section { position: relative; z-index: 10; padding: 6rem 4rem; background: linear-gradient(180deg, transparent 0%, rgba(0, 240, 255, 0.03) 50%, transparent 100%); }
.cta-content { max-width: 800px; margin: 0 auto; text-align: center; }
.cta-content h2 { font-family: 'Outfit', sans-serif; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; }
.cta-content p { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1.1rem; line-height: 1.7; }
@media (max-width: 768px) { .cta-section { padding: 4rem 1.5rem; } }
.footer-content { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 4rem; align-items: start; }
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.8; max-width: 300px; }
.footer-column h4 { font-family: 'Outfit', sans-serif; padding-top: 6.85px; font-size: 0.9rem; font-weight: 600; margin-bottom: 1.5rem; color: var(--text-primary); }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.75rem; }
.footer-column a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.3s ease; }
.footer-column a:hover { color: var(--accent-cyan); }
.social-links { display: flex; gap: 1rem; }
.social-links a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--bg-tertiary); border: 1px solid var(--glass-border); color: var(--text-secondary); text-decoration: none; transition: all 0.3s ease; }
.social-links a:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Download modal (lead capture, shared download/lead.php flow) */
.download-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.download-modal-backdrop { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); }
.download-modal-content {
    position: relative;
    border: 1px solid transparent;
    background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
                linear-gradient(90deg, var(--accent-cyan), var(--accent-purple)) border-box;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.download-modal-close { position: absolute; top: 12px; right: 18px; background: none; border: none; color: var(--text-secondary); font-size: 28px; cursor: pointer; line-height: 1; z-index: 1; }
.download-modal-close:hover { color: var(--text-primary); }
.download-modal-header { text-align: center; margin-bottom: 28px; }
.download-modal-header svg { margin-bottom: 12px; }
.download-modal-header h2 { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin: 0 0 8px; }
.download-modal-subtitle { color: var(--text-secondary); font-size: 0.95rem; margin: 0; }
.dl-form-group { margin-bottom: 18px; }
.dl-form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; color: var(--text-primary); }
.dl-required { color: var(--accent-cyan); }
.dl-form-group input[type="text"], .dl-form-group input[type="email"], .dl-form-group input[type="tel"], .dl-form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.dl-form-group input:focus, .dl-form-group select:focus { outline: none; border-color: var(--accent-cyan); box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1); }
.dl-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239898a8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
.dl-form-group select option { background: var(--bg-secondary); color: var(--text-primary); }
.dl-checkbox-group { margin-bottom: 14px; }
.dl-checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; position: relative; }
.dl-checkbox input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dl-checkmark { flex-shrink: 0; width: 20px; height: 20px; border: 1px solid var(--glass-border); border-radius: 4px; background: var(--bg-tertiary); position: relative; margin-top: 1px; transition: all 0.2s; }
.dl-checkbox input:checked + .dl-checkmark { background: var(--accent-cyan); border-color: var(--accent-cyan); }
.dl-checkbox input:focus-visible + .dl-checkmark { outline: 2px solid var(--accent-cyan); outline-offset: 2px; }
.dl-checkbox input:checked + .dl-checkmark::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--bg-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.dl-checkbox a { color: var(--accent-cyan); text-decoration: underline; }
.dl-checkbox a:hover { color: var(--accent-purple); }
.dl-submit { width: 100%; padding: 16px; font-size: 1rem; border: none; border-radius: 8px; cursor: pointer; margin-top: 8px; }
.dl-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.dl-error { display: none; margin: 14px 0 0; padding: 12px 14px; border: 1px solid rgba(255, 112, 126, 0.4); border-radius: 8px; background: rgba(255, 112, 126, 0.08); color: #ffa6ae; font-size: 0.88rem; line-height: 1.5; }
.dl-error.visible { display: block; }
.dl-note { text-align: center; color: var(--accent-cyan); font-size: 0.8rem; margin-top: 14px; margin-bottom: 0; }
.dl-success { text-align: center; padding: 20px 0; }
.dl-success svg { margin-bottom: 20px; filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.5)); }
.dl-success h3 { font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin: 0 0 12px; }
.dl-success form { margin: 0 0 20px; }
.dl-success-package { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin: 0 0 18px; }
.dl-success-package strong { color: var(--accent-cyan); font-weight: 600; }
.dl-success-status { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin: 0 0 16px; }
.dl-success-note { color: var(--text-muted); font-size: 0.8rem; line-height: 1.5; margin: 0; }
.noscript-note { position: relative; z-index: 10; padding: 1rem 1.5rem; text-align: center; background: var(--bg-tertiary); color: var(--text-secondary); font-size: 0.9rem; }

/* Responsive */
@media (max-width: 1024px) {
    .footer-content { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav { padding: 1rem 1.5rem; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
    }
    .nav-links.active { display: flex; }
    .mobile-toggle { display: flex; }
    .hero { padding: 8rem 1.5rem 3rem; min-height: 50vh; }
    .hero-tag { font-size: 0.65rem; }
    .library-section { padding: 2rem 1.5rem 4rem; }
    .skills-grid { grid-template-columns: 1fr; }
    .skill-card { padding: 1.5rem; }
    footer { padding: 3rem 1.5rem; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
    .download-modal-content { padding: 25px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-tag, .hero h1, .hero-subtitle, .reveal { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
    .logo-8, .hero-tag::before { animation: none !important; }
}
