/* ============================================================
   MODULRKARGO - Premium Design System
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0f1a;
  --bg-secondary: #111827;
  --bg-card: #1a2236;
  --bg-card-hover: #1e2a42;
  --bg-surface: #0d1525;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(255,255,255,0.06);
  --border-accent: rgba(59,130,246,0.3);
  --red: #ef4444;
  --green: #22c55e;
  --gold: #f59e0b;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(59,130,246,0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* --- Utility --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.badge-accent { background: rgba(59,130,246,0.15); color: #60a5fa; }
.badge-red { background: rgba(239,68,68,0.15); color: #f87171; }
.badge-green { background: rgba(34,197,94,0.15); color: #4ade80; }
.badge-gold { background: rgba(245,158,11,0.15); color: #fbbf24; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 15px rgba(59,130,246,0.2); }
  50% { box-shadow: 0 0 30px rgba(59,130,246,0.4); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.animate-fade-up { animation: fadeInUp 0.7s ease-out both; }
.animate-fade-in { animation: fadeIn 0.5s ease-out both; }
.animate-slide-down { animation: slideDown 0.4s ease-out both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* --- Glassmorphism --- */
.glass {
  background: rgba(26, 34, 54, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
}
.glass-light {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}
.site-nav .nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 72px;
}
.site-logo {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}
.site-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #fff; font-weight: 900;
}
.nav-links {
  display: flex; align-items: center; gap: 8px;
  list-style: none;
}
.nav-links a {
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }
.nav-links .nav-cta {
  background: var(--accent-gradient);
  color: #fff !important;
  padding: 10px 24px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(59,130,246,0.3);
}
.nav-links .nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59,130,246,0.45);
  background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
}

/* Mobile Nav */
.mobile-toggle {
  display: none;
  background: none; border: none; color: var(--text-primary);
  cursor: pointer; padding: 8px;
}
.mobile-toggle svg { width: 24px; height: 24px; }
.mobile-menu {
  display: none; position: absolute; top: 72px; left: 0; right: 0;
  background: rgba(10, 15, 26, 0.98);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
}
.mobile-menu.active { display: block; animation: slideDown 0.3s ease-out; }
.mobile-menu a {
  display: block; padding: 14px 16px; border-radius: var(--radius-sm);
  font-weight: 600; color: var(--text-secondary);
  transition: var(--transition);
}
.mobile-menu a:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }
@media (max-width: 768px) {
  .mobile-toggle { display: block; }
  .nav-links { display: none; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--bg-primary);
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.6;
  filter: brightness(0.8) saturate(1.2);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,15,26,0.4) 0%, rgba(10,15,26,0.95) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; width: 100%;
  padding: 80px 0;
}
.hero-content h1 { margin-bottom: 24px; }
.hero-content p {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 680px; margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-actions {
  display: flex; gap: 16px;
  justify-content: center; flex-wrap: wrap;
}
.hero-stat-bar {
  display: flex; gap: 48px; justify-content: center;
  margin-top: 64px; padding-top: 40px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat .stat-value {
  font-size: 2.2rem; font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stat .stat-label {
  font-size: 0.85rem; color: var(--text-muted);
  margin-top: 4px; font-weight: 500;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.95rem;
  border: none; cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 2px 16px rgba(59,130,246,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(59,130,246,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-dark:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 40px; font-size: 1.05rem; }

/* ============================================================
   SECTION BLOCKS
   ============================================================ */
.section {
  padding: 100px 0;
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .section-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: rgba(59,130,246,0.1);
  color: #60a5fa;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  color: var(--text-secondary);
  max-width: 580px; margin: 0 auto;
  font-size: 1.05rem;
}
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* ============================================================
   FEATURE / VALUE PROP CARDS
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: rgba(59,130,246,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
}
.feature-card h3 { margin-bottom: 12px; }
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem; line-height: 1.7;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.product-card {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: var(--transition);
}
.product-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}
.product-card .card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--bg-surface);
}
.product-card .card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .card-image img {
  transform: scale(1.08);
}
.product-card .card-image .save-badge {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-size: 0.72rem; font-weight: 800;
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(239,68,68,0.4);
}
.product-card .card-image .condition-badge {
  position: absolute; top: 16px; right: 16px;
  padding: 5px 12px;
  font-size: 0.68rem; font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.product-card .card-image .condition-badge.new-badge {
  background: rgba(34,197,94,0.2); color: #4ade80;
  border: 1px solid rgba(34,197,94,0.3);
}
.product-card .card-image .condition-badge.used-badge {
  background: rgba(245,158,11,0.2); color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.3);
}
.card-body {
  padding: 28px;
  display: flex; flex-direction: column;
  flex: 1;
}
.card-body .card-meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.card-body h3 {
  margin-bottom: 8px;
  font-weight: 700;
}
.card-body .card-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}
.card-pricing {
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
.card-pricing .price-row {
  display: flex; justify-content: space-between; align-items: center;
}
.card-pricing .market-price {
  font-size: 0.85rem; color: var(--text-muted);
  text-decoration: line-through;
}
.card-pricing .our-price {
  font-size: 1.8rem; font-weight: 800;
}
.card-pricing .our-price .text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.card-pricing .price-label {
  font-size: 0.78rem; color: var(--text-muted); font-weight: 500;
}
.card-actions { margin-top: 20px; }

/* ============================================================
   PAGE HEADERS
   ============================================================ */
.page-header {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center top, rgba(59,130,246,0.08) 0%, transparent 70%);
}
.page-header h1 { position: relative; margin-bottom: 12px; }
.page-header p {
  position: relative;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* ============================================================
   CATALOG LAYOUT
   ============================================================ */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.filter-panel {
  position: sticky; top: 90px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}
.filter-panel h3 {
  font-size: 1rem;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}
.filter-group { margin-bottom: 24px; }
.filter-group label {
  display: block;
  font-size: 0.8rem; font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.filter-group select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.9rem;
  appearance: none;
  cursor: pointer;
  transition: var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.filter-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
@media (max-width: 768px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .filter-panel { position: static; }
}

/* ============================================================
   FORMS
   ============================================================ */
.form-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { margin-bottom: 20px; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  display: block;
  font-size: 0.8rem; font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
textarea.form-control { resize: vertical; min-height: 140px; }
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600;
  margin-bottom: 24px;
  border-left: 4px solid;
}
.alert-success {
  background: rgba(34,197,94,0.1);
  border-color: var(--green);
  color: #4ade80;
}
.alert-error {
  background: rgba(239,68,68,0.1);
  border-color: var(--red);
  color: #f87171;
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}
.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 320px;
}
.footer-col h4 {
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 60px;
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}
.empty-state p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  padding: 48px 0;
}
.trust-item {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem; font-weight: 600;
}
.trust-item svg {
  width: 20px; height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

/* --- Responsive images ------------------------------------------------- */
/* <picture> is a wrapper only; display:contents keeps the inner <img> in the
   same layout box it was in before, so all existing .card-image img and
   .hero-bg img rules continue to apply unchanged. */
picture { display: contents; }

/* --- Accessibility ----------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--accent, #3b82f6);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}
.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;
}
:focus-visible {
  outline: 2px solid var(--accent, #3b82f6);
  outline-offset: 2px;
}
