/* Lee Corning AI - Military-Tech + Gradient Futurism Aesthetic */

:root {
    /* Primary Colors - Military-Tech Foundation */
    --deep-space: #0A0E1A;
    --pure-white: #FFFFFF;
    --signal-orange: #FF4500;
    --signal-orange-light: #FF6B35;
    
    /* Gradient System - Futuristic Accents */
    --electric-blue: #0066FF;
    --cyan-flow: #00D4AA;
    --neon-green: #00FF88;
    
    /* Supporting Colors */
    --charcoal: #1A1A1A;
    --steel-gray: #6B7280;
    --light-gray: #F3F4F6;
    --warning-red: #FF0000;
    
    /* Gradient Definitions */
    --gradient-primary: linear-gradient(135deg, var(--electric-blue) 0%, var(--cyan-flow) 50%, var(--neon-green) 100%);
    --gradient-dark: linear-gradient(135deg, var(--deep-space) 0%, var(--charcoal) 100%);
    --gradient-accent: linear-gradient(90deg, var(--signal-orange) 0%, var(--signal-orange-light) 100%);
    --gradient-sphere: radial-gradient(circle at 30% 30%, var(--electric-blue) 0%, var(--cyan-flow) 40%, var(--neon-green) 100%);
    
    /* Typography Scale */
    --font-mono: 'Courier New', 'SF Mono', Monaco, Inconsolata, 'Roboto Mono', monospace;
    --font-sans: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Shadows & Effects */
    --shadow-glow: 0 0 30px rgba(0, 212, 170, 0.3);
    --shadow-orange: 0 4px 20px rgba(255, 69, 0, 0.25);
    --shadow-dark: 0 10px 40px rgba(10, 14, 26, 0.4);
    --shadow-neon: 0 0 50px rgba(0, 255, 136, 0.4);
}

/* Custom styles for Lee Corning AI website */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

@keyframes countUp {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animation classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover effects */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Stats counter animation */
.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

/* Testimonial cards */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ROI Calculator styling */
.roi-input {
    transition: border-color 0.3s ease;
}

.roi-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Mobile menu */
.mobile-menu {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateY(0);
}

/* Sticky navigation backdrop */
.nav-backdrop {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Pricing card highlights */
.pricing-popular {
    position: relative;
    border-color: #3b82f6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.pricing-popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border-radius: 8px 8px 0 0;
}

/* FAQ accordion */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item.active {
    background-color: #f8fafc;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success states */
.success-message {
    background-color: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

/* Error states */
.error-message {
    background-color: #ef4444;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: none;
}

.error-message.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

/* Video overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
}

.video-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Intersection observer animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Security badges */
.security-badge {
    display: inline-flex;
    align-items: center;
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    color: #0369a1;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0.25rem;
}

.security-badge i {
    margin-right: 0.5rem;
}

/* Testimonial carousel */
.testimonial-carousel {
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

/* CTA sections */
.cta-urgent {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Form validation */
.form-field.error input,
.form-field.error select,
.form-field.error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-field.success input,
.form-field.success select,
.form-field.success textarea {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-field.error .field-error {
    display: block;
}

/* Progress indicators */
.progress-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    transition: width 0.3s ease;
}

/* Tooltip styles */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.tooltip:hover::after {
    opacity: 1;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .dark-mode-adaptive {
        background-color: #1f2937;
        color: #f9fafb;
    }
}

/* Blog and links hub */

body {
    background: var(--deep-space);
    color: #e5e7eb;
}

.skip-link {
    position: absolute;
    left: 0.75rem;
    top: -3rem;
    z-index: 80;
    background: var(--signal-orange);
    color: white;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-mono);
}

.skip-link:focus {
    top: 0.75rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

main {
    padding-top: 4.5rem;
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(10, 14, 26, 0.95);
    border-bottom: 1px solid rgba(255, 69, 0, 0.3);
    backdrop-filter: blur(8px);
}

.nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 4.5rem;
    position: relative;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: white;
    text-decoration: none;
    font-size: 1.15rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.logo span {
    color: var(--signal-orange);
    margin-right: 0.4rem;
}

.nav-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.nav-toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
}

.nav-check:focus-visible + .nav-toggle {
    outline: 2px solid var(--signal-orange);
    outline-offset: 3px;
}

.nav-panel {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0.15rem;
    padding-bottom: 0.85rem;
}

.nav-check:checked ~ .nav-panel {
    display: flex;
}

.nav-panel a {
    color: white;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.nav-panel a:hover,
.nav-panel a[aria-current="page"] {
    color: var(--signal-orange);
}

.nav-icons {
    display: none;
    flex-basis: 100%;
}

.nav-check:checked ~ .nav-icons {
    display: flex;
}

@media (min-width: 768px) {
    .nav-inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 1rem;
        flex-wrap: nowrap;
    }

    .nav-toggle,
    .nav-check {
        display: none;
    }

    .nav-panel {
        display: flex;
        flex-basis: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 0.35rem 0.85rem;
        margin-left: 0;
        padding-bottom: 0;
    }

    .nav-icons {
        display: flex;
        flex-basis: auto;
        justify-content: flex-end;
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .nav-panel {
        gap: 0.15rem 0.45rem;
    }

    .nav-panel a {
        font-size: 0.72rem;
        letter-spacing: 0.02em;
    }

    .nav-icons .icon-link {
        width: 36px;
        height: 36px;
    }
}

.hero,
.page-hero {
    position: relative;
    background: var(--gradient-dark);
    color: white;
    overflow: hidden;
}

.hero {
    padding: 2.5rem 0 4rem;
}

.page-hero {
    padding: 2.5rem 0 2.75rem;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(255, 69, 0, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 69, 0, 0.5) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-orb {
    position: absolute;
    top: -4rem;
    right: -4rem;
    width: min(24rem, 90vw);
    height: min(24rem, 90vw);
    border-radius: 50%;
    background: var(--gradient-sphere);
    filter: blur(40px);
    opacity: 0.35;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2rem;
    align-items: center;
}

.hero h1,
.page-hero h1 {
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: white;
    font-size: clamp(2.6rem, 10vw, 5.5rem);
}

.page-hero h1 {
    font-size: clamp(2.2rem, 8vw, 4rem);
}

.hero-dek {
    font-family: var(--font-mono);
    color: #d1d5db;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 38rem;
    margin: 1rem 0 1.5rem;
}

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

.btn-accent,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.1rem;
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.btn-accent {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-orange);
}

.btn-ghost {
    border: 1px solid var(--cyan-flow);
    color: white;
}

.btn-ghost:hover,
.btn-accent:hover {
    transform: translateY(-1px);
}

.hero-mark {
    width: min(16rem, 70vw);
    height: min(16rem, 70vw);
    margin: 0 auto;
    border-radius: 50%;
    background: var(--gradient-sphere);
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-mark span {
    font-family: var(--font-mono);
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--neon-green);
}

@media (min-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.band {
    padding: 4rem 0;
}

.band-light {
    background: var(--light-gray);
    color: var(--charcoal);
}

.band-white {
    background: white;
    color: var(--charcoal);
}

.band-dark {
    background: var(--deep-space);
    color: white;
}

.kicker {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--signal-orange);
    margin-bottom: 0.5rem;
}

.kicker a {
    color: inherit;
    text-decoration: none;
}

.section-title {
    font-family: var(--font-mono);
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    letter-spacing: -0.03em;
    color: var(--deep-space);
    margin-bottom: 0.75rem;
}

.section-title.light {
    color: white;
}

.section-dek {
    max-width: 40rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.section-note,
.empty-state {
    font-family: var(--font-mono);
    color: var(--steel-gray);
}

.band-dark .section-note,
.section-note.light {
    color: #d1d5db;
}

.section-more {
    margin-top: 1.25rem;
}

.text-link {
    color: var(--electric-blue);
    font-family: var(--font-mono);
}

.text-link.on-dark {
    color: var(--cyan-flow);
}

.card-grid,
.link-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .card-grid,
    .link-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.post-card,
.link-tile {
    position: relative;
    display: block;
    border: 1px solid rgba(255, 69, 0, 0.4);
    padding: 1.25rem;
    background: white;
    color: var(--deep-space);
    text-decoration: none;
}

.band-dark .link-tile {
    background: rgba(255, 255, 255, 0.03);
    color: white;
}

.post-card h3 {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.post-card h3 a {
    color: inherit;
    text-decoration: none;
}

.post-card h3 a:hover,
.link-tile:hover {
    color: var(--signal-orange);
}

.meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--steel-gray);
    margin-top: 0.75rem;
}

.meta.on-dark {
    color: #d1d5db;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0.85rem 0 0;
}

.tag-list li {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    border: 1px solid rgba(0, 212, 170, 0.55);
    color: var(--cyan-flow);
    padding: 0.2rem 0.5rem;
}

.draft-pill {
    margin-left: 0.5rem;
    border: 1px solid var(--signal-orange);
    padding: 0.05rem 0.35rem;
}

.draft-banner {
    background: var(--signal-orange);
    color: white;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    padding: 0.85rem 1rem;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-bar a {
    min-height: 44px;
    padding: 0.45rem 0.8rem;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 69, 0, 0.45);
    color: var(--deep-space);
    text-decoration: none;
}

.filter-bar a:hover {
    background: var(--signal-orange);
    border-color: var(--signal-orange);
    color: white;
}

.post-body {
    background: white;
}

.prose-post {
    max-width: 42rem;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
    color: var(--charcoal);
    font-size: 1.0625rem;
    line-height: 1.75;
}

.prose-post h2,
.prose-post h3 {
    font-family: var(--font-mono);
    color: var(--deep-space);
    letter-spacing: -0.03em;
    margin: 2rem 0 0.75rem;
    line-height: 1.2;
}

.prose-post h2 {
    font-size: 1.6rem;
}

.prose-post p,
.prose-post ul {
    margin: 0 0 1rem;
}

.prose-post ul {
    padding-left: 1.25rem;
    list-style: disc;
}

.prose-post a {
    color: var(--electric-blue);
}

.prose-post blockquote {
    border-left: 4px solid var(--signal-orange);
    margin: 0 0 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 69, 0, 0.06);
}

.prose-post img,
.prose-post video,
.prose-post iframe,
.prose-post pre {
    max-width: 100%;
}

.prose-post pre {
    overflow-x: auto;
    padding: 1rem;
    background: var(--deep-space);
    color: #e5e7eb;
}

.video-embed {
    margin: 1.5rem 0;
}

.video-embed iframe,
.video-embed-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 69, 0, 0.45);
    background: var(--deep-space);
}

.video-embed-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    padding: 1rem;
}

.video-embed-x iframe {
    aspect-ratio: auto;
    min-height: 18rem;
}

.video-embed-placeholder .video-embed-frame::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 22px;
    border-color: transparent transparent transparent var(--signal-orange);
}

.video-embed-kicker {
    font-family: var(--font-mono);
    letter-spacing: 0.14em;
    color: var(--signal-orange);
}

.video-embed-note {
    color: #d1d5db;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    max-width: 18rem;
}

.substack-slot {
    margin: 1.5rem 0 0;
    max-width: 40rem;
}

.substack-frame {
    width: 100%;
    min-height: 320px;
    border: 1px solid rgba(255, 69, 0, 0.35);
    background: white;
}

.icon {
    width: 1.35rem;
    height: 1.35rem;
    fill: currentColor;
}

.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--cyan-flow);
}

.link-tile {
    min-height: 44px;
}

.link-tile-label {
    display: block;
    margin-top: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.link-tile-url {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    overflow-wrap: anywhere;
    color: var(--steel-gray);
}

.band-dark .link-tile-url {
    color: #d1d5db;
}

.site-footer {
    background: #0b1020;
    color: #d1d5db;
    padding: 3rem 0 2rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

.footer-name {
    font-family: var(--font-mono);
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.site-footer h2 {
    font-family: var(--font-mono);
    color: white;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.site-footer a {
    color: #d1d5db;
    text-decoration: none;
}

.site-footer a:hover {
    color: white;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin: 0.4rem 0;
}

.footer-icons {
    display: flex;
    margin-top: 0.75rem;
}

.footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

section[id] {
    scroll-margin-top: 5rem;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--signal-orange);
    outline-offset: 3px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-orb {
        filter: none;
    }
}