/* ============================================================
   MODBOX CONTAINER — Industrial Premium Design System
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- CSS Variables --- */
:root {
    /* Primary Palette — Industrial Steel */
    --steel-950: #0a0e14;
    --steel-900: #111827;
    --steel-800: #1e2a3a;
    --steel-700: #2d3e50;
    --steel-600: #3d5166;
    --steel-500: #5a7a94;
    --steel-400: #7a9ab4;
    --steel-300: #a0bdd4;
    --steel-200: #c5dae8;
    --steel-100: #e8f0f5;
    --steel-50: #f4f8fb;

    /* Accent — Industrial Orange */
    --accent-600: #c2410c;
    --accent-500: #ea580c;
    --accent-400: #f97316;
    --accent-300: #fdba74;
    --accent-200: #fed7aa;
    --accent-100: #ffedd5;

    /* Status Colors */
    --success: #16a34a;
    --success-light: #dcfce7;
    --warning: #ca8a04;
    --warning-light: #fef9c3;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --info: #2563eb;
    --info-light: #dbeafe;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 8px 10px rgba(0,0,0,0.04);

    /* Layout */
    --container-max: 1280px;
    --header-height: 72px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--steel-800);
    background: var(--steel-50);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-500); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-600); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

/* --- Container --- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-lg); }
.container-narrow { max-width: 900px; margin: 0 auto; padding: 0 var(--space-lg); }

/* --- Header / Navigation --- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10, 14, 20, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    height: var(--header-height);
}
.header-inner {
    max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-lg);
    display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.logo { display: flex; align-items: center; gap: var(--space-sm); color: #fff; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.5px; }
.logo-icon { width: 36px; height: 36px; background: var(--accent-500); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 14px; }
.nav-links { display: flex; align-items: center; gap: var(--space-xs); }
.nav-links a {
    color: rgba(255,255,255,0.75); padding: var(--space-sm) var(--space-md); font-size: 0.875rem; font-weight: 500;
    border-radius: var(--radius-sm); transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.08); }
.nav-actions { display: flex; align-items: center; gap: var(--space-sm); }
.lang-switch {
    color: rgba(255,255,255,0.6); font-size: 0.8rem; padding: 4px 10px; border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm); transition: all 0.2s; background: transparent;
}
.lang-switch:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: var(--space-sm); }
.mobile-nav { display: none; }

/* --- Buttons --- */
.btn {
    display: inline-flex; align-items: center; gap: var(--space-sm); padding: 12px 24px;
    font-weight: 600; font-size: 0.9rem; border-radius: var(--radius-md); border: none; cursor: pointer;
    transition: all 0.25s ease; text-align: center; line-height: 1.4;
}
.btn-primary { background: var(--accent-500); color: #fff; }
.btn-primary:hover { background: var(--accent-600); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--steel-800); color: #fff; }
.btn-secondary:hover { background: var(--steel-700); color: #fff; }
.btn-outline { background: transparent; color: var(--steel-700); border: 2px solid var(--steel-300); }
.btn-outline:hover { border-color: var(--accent-500); color: var(--accent-500); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* --- Hero Section --- */
.hero {
    padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
    background: linear-gradient(135deg, var(--steel-950) 0%, var(--steel-800) 50%, var(--steel-700) 100%);
    color: #fff; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><rect fill="none" stroke="rgba(255,255,255,0.03)" width="80" height="80"/></svg>');
    background-size: 80px 80px;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: var(--space-sm); padding: 6px 16px;
    background: rgba(249,115,22,0.15); color: var(--accent-400); border-radius: 50px;
    font-size: 0.8rem; font-weight: 600; margin-bottom: var(--space-lg); letter-spacing: 0.5px; text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.1; margin-bottom: var(--space-lg); letter-spacing: -1px; }
.hero .subtitle { font-size: 1.15rem; color: rgba(255,255,255,0.7); margin-bottom: var(--space-xl); line-height: 1.7; max-width: 580px; }
.hero-actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.hero-stats {
    display: flex; gap: var(--space-2xl); margin-top: var(--space-3xl); padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-value { font-size: 2rem; font-weight: 800; color: var(--accent-400); }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

/* --- Section Styling --- */
.section { padding: var(--space-4xl) 0; }
.section-alt { background: #fff; }
.section-dark { background: var(--steel-900); color: #fff; }
.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-header h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 800; color: var(--steel-900); letter-spacing: -0.5px; margin-bottom: var(--space-sm); }
.section-dark .section-header h2 { color: #fff; }
.section-header p { font-size: 1.05rem; color: var(--steel-500); max-width: 600px; margin: 0 auto; }
.section-dark .section-header p { color: rgba(255,255,255,0.6); }

/* --- Grid --- */
.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Cards --- */
.card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--steel-100); transition: all 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--steel-200); }
.card-image { position: relative; aspect-ratio: 16/10; background: var(--steel-100); overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-image img { transform: scale(1.05); }
.card-badge {
    position: absolute; top: var(--space-md); left: var(--space-md);
    padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-new { background: var(--success); color: #fff; }
.badge-used { background: var(--steel-500); color: #fff; }
.badge-available { background: var(--success); color: #fff; }
.badge-unavailable { background: var(--danger); color: #fff; }
.card-body { padding: var(--space-lg); }
.card-title { font-size: 1.1rem; font-weight: 700; color: var(--steel-900); margin-bottom: var(--space-sm); }
.card-text { font-size: 0.9rem; color: var(--steel-500); margin-bottom: var(--space-md); line-height: 1.6; }
.card-price { font-size: 1.4rem; font-weight: 800; color: var(--accent-500); }
.card-price-sub { font-size: 0.75rem; color: var(--steel-400); font-weight: 400; }
.card-meta { display: flex; gap: var(--space-md); font-size: 0.8rem; color: var(--steel-400); margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--steel-100); }
.stock-indicator { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; animation: pulse 2s infinite; }
.stock-dot.available { background: var(--success); }
.stock-dot.unavailable { background: var(--danger); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* --- Features Grid --- */
.feature-card {
    padding: var(--space-xl); background: #fff; border-radius: var(--radius-lg);
    border: 1px solid var(--steel-100); transition: all 0.3s;
}
.feature-card:hover { border-color: var(--accent-300); box-shadow: var(--shadow-md); }
.feature-icon {
    width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
    background: var(--accent-100); color: var(--accent-500); font-size: 1.3rem; margin-bottom: var(--space-md);
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--steel-900); margin-bottom: var(--space-sm); }
.feature-card p { font-size: 0.9rem; color: var(--steel-500); line-height: 1.6; }

/* --- CTA Section --- */
.cta-section {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--steel-900), var(--steel-800));
    color: #fff; text-align: center;
}
.cta-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: var(--space-md); }
.cta-section p { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin-bottom: var(--space-xl); max-width: 500px; margin-left: auto; margin-right: auto; }

/* --- Footer --- */
.site-footer { background: var(--steel-950); color: rgba(255,255,255,0.6); padding: var(--space-4xl) 0 var(--space-xl); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-2xl); margin-bottom: var(--space-3xl); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-top: var(--space-md); }
.footer-title { font-size: 0.85rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: var(--space-md); }
.footer-links a { display: block; color: rgba(255,255,255,0.5); font-size: 0.9rem; padding: 3px 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-400); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.8rem;
}
.footer-legal { display: flex; gap: var(--space-lg); }
.footer-legal a { color: rgba(255,255,255,0.4); }

/* --- Forms --- */
.form-group { margin-bottom: var(--space-lg); }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--steel-700); margin-bottom: var(--space-sm); }
.form-control {
    width: 100%; padding: 12px 16px; border: 1px solid var(--steel-200); border-radius: var(--radius-md);
    font-size: 0.95rem; transition: all 0.2s; background: #fff; color: var(--steel-800);
}
.form-control:focus { outline: none; border-color: var(--accent-500); box-shadow: 0 0 0 3px rgba(249,115,22,0.1); }
textarea.form-control { min-height: 120px; resize: vertical; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a7a94' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* --- Flash Messages --- */
.flash { padding: var(--space-md) var(--space-lg); border-radius: var(--radius-md); margin-bottom: var(--space-lg); font-size: 0.9rem; font-weight: 500; }
.flash-success { background: var(--success-light); color: var(--success); border: 1px solid #86efac; }
.flash-error { background: var(--danger-light); color: var(--danger); border: 1px solid #fca5a5; }

/* --- FAQ Accordion --- */
.faq-item { border: 1px solid var(--steel-100); border-radius: var(--radius-md); margin-bottom: var(--space-sm); overflow: hidden; background: #fff; }
.faq-question { padding: var(--space-lg); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--steel-800); transition: background 0.2s; }
.faq-question:hover { background: var(--steel-50); }
.faq-answer { padding: 0 var(--space-lg) var(--space-lg); color: var(--steel-500); line-height: 1.7; display: none; }
.faq-item.active .faq-answer { display: block; }
.faq-toggle { font-size: 1.2rem; color: var(--steel-400); transition: transform 0.3s; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }

/* --- Pagination --- */
.pagination { display: flex; justify-content: center; gap: var(--space-xs); margin-top: var(--space-2xl); }
.pagination a, .pagination span { padding: 8px 14px; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 500; color: var(--steel-600); border: 1px solid var(--steel-200); transition: all 0.2s; }
.pagination a:hover { background: var(--steel-100); color: var(--steel-800); }
.pagination .active { background: var(--accent-500); color: #fff; border-color: var(--accent-500); }

/* --- Page Banner --- */
.page-banner {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
    background: linear-gradient(135deg, var(--steel-950), var(--steel-800));
    color: #fff;
}
.page-banner h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.5px; }
.page-banner p { color: rgba(255,255,255,0.6); font-size: 1.05rem; margin-top: var(--space-sm); max-width: 600px; }
.breadcrumb { display: flex; gap: var(--space-sm); font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-bottom: var(--space-md); }
.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: var(--accent-400); }

/* --- Blog --- */
.blog-card .card-body { padding: var(--space-lg); }
.blog-meta { font-size: 0.8rem; color: var(--steel-400); margin-bottom: var(--space-sm); display: flex; gap: var(--space-md); }
.blog-content { max-width: 800px; margin: 0 auto; padding: var(--space-3xl) var(--space-lg); }
.blog-content h2 { font-size: 1.5rem; margin: var(--space-xl) 0 var(--space-md); }
.blog-content h3 { font-size: 1.2rem; margin: var(--space-lg) 0 var(--space-md); }
.blog-content p { margin-bottom: var(--space-md); line-height: 1.8; }

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: var(--steel-900); color: rgba(255,255,255,0.8); padding: var(--space-lg);
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg);
    transform: translateY(100%); transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: 0.85rem; flex: 1; }
.cookie-actions { display: flex; gap: var(--space-sm); flex-shrink: 0; }

/* --- Product Filters --- */
.filter-bar { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-xl); }
.filter-btn { padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 500; border: 1px solid var(--steel-200); color: var(--steel-600); background: #fff; cursor: pointer; transition: all 0.2s; }
.filter-btn:hover, .filter-btn.active { background: var(--steel-900); color: #fff; border-color: var(--steel-900); }

/* --- Trust Bar --- */
.trust-bar { background: #fff; padding: var(--space-2xl) 0; border-bottom: 1px solid var(--steel-100); }
.trust-items { display: flex; justify-content: center; gap: var(--space-3xl); flex-wrap: wrap; }
.trust-item { text-align: center; }
.trust-item strong { display: block; font-size: 0.85rem; color: var(--steel-700); }
.trust-item span { font-size: 0.75rem; color: var(--steel-400); }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { gap: var(--space-xl); }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .mobile-nav.open { display: flex; flex-direction: column; position: absolute; top: var(--header-height); left: 0; right: 0; background: var(--steel-950); padding: var(--space-lg); border-top: 1px solid rgba(255,255,255,0.08); }
    .mobile-nav a { color: rgba(255,255,255,0.7); padding: var(--space-md); font-size: 0.95rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .hero { padding-top: calc(var(--header-height) + var(--space-2xl)); padding-bottom: var(--space-2xl); }
    .hero h1 { font-size: 2rem; }
    .hero-stats { flex-direction: column; gap: var(--space-md); }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
    .filter-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: var(--space-sm); }
    .cta-section h2 { font-size: 1.5rem; }
}

/* --- Scroll Animations --- */
.animate-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-in.visible { opacity: 1; transform: translateY(0); }
