/*
 * ProductionPlannerPro - Main Stylesheet
 * Professional, Modern, Responsive Design
 * Version: 1.0
 * Last Updated: February 14, 2026
 */

/* =================================================================
   DESIGN SYSTEM - Variables
   ================================================================= */

:root {
    /* Primary Brand Colors */
    --primary-color: #2563eb;        /* Professional Blue */
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    
    /* Secondary Colors */
    --secondary-color: #10b981;      /* Success Green */
    --accent-color: #f59e0b;         /* Attention Orange */
    --danger-color: #ef4444;
    
    /* Neutral Colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-color: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* =================================================================
   RESET & BASE STYLES
   ================================================================= */

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

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

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =================================================================
   TYPOGRAPHY
   ================================================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.025em;
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    font-size: 1.125rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--primary-dark);
}

/* =================================================================
   LAYOUT COMPONENTS
   ================================================================= */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-wide {
    max-width: 1400px;
}

.container-narrow {
    max-width: 800px;
}

.section {
    padding: var(--spacing-2xl) 0;
}

.section-lg {
    padding: 5rem 0;
}

.section-gray {
    background-color: var(--bg-light);
}

/* =================================================================
   NAVIGATION
   ================================================================= */

.navbar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.navbar-brand img {
    height: 40px;
    margin-right: var(--spacing-sm);
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.navbar-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-base);
}

.navbar-menu a:hover {
    color: var(--primary-color);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.navbar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition-base);
}

/* =================================================================
   BUTTONS
   ================================================================= */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-success {
    background-color: var(--secondary-color);
    color: white;
}

.btn-success:hover {
    background-color: #059669;
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* =================================================================
   HERO SECTION
   ================================================================= */

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero h1 {
    color: white;
    margin-bottom: var(--spacing-md);
    font-size: 3.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.hero-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

/* =================================================================
   SOCIAL PROOF
   ================================================================= */

.social-proof {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.social-proof p {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-lg);
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.logo-grid img {
    max-width: 120px;
    height: auto;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all var(--transition-base);
    margin: 0 auto;
    display: block;
}

.logo-grid img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.testimonial-carousel {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-carousel blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-secondary);
    border: none;
    padding: var(--spacing-lg);
}

.testimonial-carousel cite {
    display: block;
    font-size: 1rem;
    font-style: normal;
    color: var(--text-muted);
    margin-top: var(--spacing-md);
}

/* =================================================================
   PROBLEM-SOLUTION
   ================================================================= */

.problem-solution {
    padding: var(--spacing-2xl) 0;
}

.problem-solution h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.problems-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

.problem-card,
.solution-card {
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.problem-card {
    background-color: #fef2f2;
    border: 2px solid #fecaca;
}

.solution-card {
    background-color: #f0fdf4;
    border: 2px solid #bbf7d0;
}

.problem-card .icon,
.solution-card .icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.problem-card h3 {
    color: #991b1b;
    margin-bottom: var(--spacing-md);
}

.solution-card h3 {
    color: #065f46;
    margin-bottom: var(--spacing-md);
}

.problem-card ul,
.solution-card ul {
    list-style: none;
}

.problem-card li,
.solution-card li {
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
}

.problem-card li::before {
    content: '❌ ';
    margin-right: var(--spacing-xs);
}

.solution-card li::before {
    content: '✅ ';
    margin-right: var(--spacing-xs);
}

.arrow {
    font-size: 3rem;
    color: var(--primary-color);
    align-self: center;
    text-align: center;
}

/* =================================================================
   FEATURES SHOWCASE
   ================================================================= */

.features-showcase {
    padding: var(--spacing-2xl) 0;
    background-color: var(--bg-light);
}

.features-showcase h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    align-items: center;
}

.feature-block.left .feature-image {
    order: 2;
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.feature-content p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.feature-benefits {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

.feature-benefits li {
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.feature-image {
    position: relative;
}

.feature-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.btn-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition-base);
}

.btn-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* =================================================================
   PRICING
   ================================================================= */

.pricing-section {
    padding: var(--spacing-2xl) 0;
}

.pricing-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.pricing-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.pricing-card {
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    border-width: 3px;
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.pricing-period {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: var(--spacing-lg);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: var(--spacing-lg);
}

.pricing-features li {
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
    display: flex;
    align-items: start;
}

.pricing-features li::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: 700;
    margin-right: var(--spacing-sm);
    flex-shrink: 0;
}

.pricing-features li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
}

.pricing-features li.disabled::before {
    content: '✗';
    color: var(--text-muted);
}

/* =================================================================
   CARDS & COMPONENTS
   ================================================================= */

.card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background-color: var(--bg-light);
    color: var(--text-secondary);
}

.badge-primary {
    background-color: var(--primary-color);
    color: white;
}

.badge-success {
    background-color: var(--secondary-color);
    color: white;
}

/* =================================================================
   FORMS
   ================================================================= */

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-base);
    font-family: var(--font-primary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

.form-help {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

/* =================================================================
   FOOTER
   ================================================================= */

.footer {
    background-color: var(--text-primary);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    color: white;
    margin-bottom: var(--spacing-md);
}

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

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-base);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all var(--transition-base);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* =================================================================
   UTILITY CLASSES
   ================================================================= */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary-color);
}

.text-success {
    color: var(--secondary-color);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .feature-block {
        grid-template-columns: 1fr;
    }
    
    .feature-block.left .feature-image {
        order: 1;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .problems-grid {
        grid-template-columns: 1fr;
    }
    
    .arrow {
        transform: rotate(90deg);
        margin: var(--spacing-md) 0;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-menu.active {
        display: flex;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .hero {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
}

/* =================================================================
   PRINT STYLES
   ================================================================= */

@media print {
    .navbar,
    .footer,
    .btn,
    .hero-cta {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* =================================================================
   ANIMATIONS
   ================================================================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* =================================================================
   ACCESSIBILITY
   ================================================================= */

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

*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
