/* 3D MMCraftWorks - Main CSS
   Premium dark theme, electric blue accents
   Logo: black + electric blue
*/

:root {
  --bg:        #050810;
  --bg2:       #090d1a;
  --bg3:       #0d1428;
  --card:      #0f1830;
  --card2:     #131e38;
  --border:    rgba(0,200,240,0.15);
  --border2:   rgba(0,200,240,0.30);
  --blue:      #00c8f0;
  --blue2:     #0088cc;
  --blue3:     #004466;
  --text:      #e0f0ff;
  --text2:     #7090b0;
  --text3:     #405060;
  --gold:      #ffd000;
  --green:     #00e87a;
  --red:       #ff2244;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 0 40px rgba(0,200,240,0.08);
  --glow:      0 0 20px rgba(0,200,240,0.3);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ── */
h1,h2,h3,h4 { font-family: 'Orbitron', monospace; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
a  { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: #40d8f8; }

.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, #40d8f8 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-title { text-align: center; margin-bottom: 48px; color: var(--text); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: #000;
}
.btn-primary:hover {
  background: #40d8f8;
  color: #000;
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--border2);
}
.btn-ghost:hover {
  background: rgba(0,200,240,0.08);
  border-color: var(--blue);
}

.btn-lg  { padding: 14px 32px; font-size: 14px; }
.btn-sm  { padding: 6px 14px;  font-size: 11px; }
.btn-full { width: 100%; justify-content: center; }

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5,8,16,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  text-decoration: none;
}
.nav-logo:hover { color: var(--blue); }
.logo-img { width: 36px; height: 36px; }
.logo-text strong { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: 16px;
}
.nav-links a {
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

#lang-select {
  background: var(--card);
  color: var(--text2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}

.user-name {
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  margin-left: auto;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg2);
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}
.mobile-nav a {
  color: var(--text2);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.mobile-nav.open { display: flex; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 24px 60px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,240,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,240,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.particles {
  position: absolute;
  inset: 0;
}

.hero-content {
  flex: 1;
  max-width: 640px;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,200,240,0.1);
  border: 1px solid var(--border2);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--blue);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.3); }
}

.hero-title { margin-bottom: 20px; }

.hero-sub {
  color: var(--text2);
  font-size: 18px;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat-num {
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue);
}

.stat-label {
  font-size: 12px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.model-viewer {
  position: relative;
  width: 400px;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border2);
  background: var(--bg2);
  box-shadow: var(--shadow), inset 0 0 60px rgba(0,200,240,0.05);
}

#three-canvas { width: 100% !important; height: 100% !important; }

.model-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
}

.ai-badge {
  background: rgba(0,200,240,0.15);
  border: 1px solid var(--border2);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  font-family: 'Orbitron', monospace;
}

/* ── CATEGORIES ── */
.categories { padding: 80px 0; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.cat-card:hover {
  border-color: var(--blue);
  background: var(--card2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--blue);
}

.cat-icon { font-size: 2rem; margin-bottom: 8px; }
.cat-name { font-size: 13px; font-weight: 600; }
.cat-count { font-size: 11px; color: var(--text3); margin-top: 4px; }

/* ── FEATURES ── */
.features { padding: 80px 0; background: var(--bg2); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all .2s;
}
.feature-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 8px; font-size: 1rem; color: var(--blue); }
.feature-card p  { color: var(--text2); font-size: 14px; }

/* ── PRODUCTS ── */
.new-products { padding: 80px 0; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.product-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-thumb {
  aspect-ratio: 1;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb-fallback {
  font-size: 3rem;
  color: var(--text3);
}

.product-ai-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,200,240,0.15);
  border: 1px solid var(--border2);
  color: var(--blue);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 50px;
  font-family: 'Orbitron', monospace;
}

.product-info { padding: 16px; }
.product-name { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-family: 'Orbitron', monospace; color: var(--blue); font-size: 16px; font-weight: 700; }
.product-rating { color: var(--gold); font-size: 12px; }
.product-downloads { font-size: 11px; color: var(--text3); margin-top: 4px; }

.product-skeleton {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0%,100% { opacity: .5; }
  50%      { opacity: 1; }
}
.skeleton-thumb { aspect-ratio: 1; background: var(--card2); }
.skeleton-info  { padding: 16px; }
.skeleton-line  { height: 12px; background: var(--card2); border-radius: 6px; margin-bottom: 8px; }

/* ── PRICING TEASER ── */
.pricing-teaser { padding: 80px 0; background: var(--bg2); }

.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  position: relative;
  transition: all .2s;
}
.plan-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 30px rgba(0,200,240,0.15);
}
.plan-card:hover { transform: translateY(-2px); }

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #000;
  font-size: 11px;
  font-weight: 900;
  font-family: 'Orbitron', monospace;
  padding: 4px 16px;
  border-radius: 50px;
}

.plan-name  { font-family: 'Orbitron', monospace; font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; color: var(--blue); }
.plan-price { font-family: 'Orbitron', monospace; font-size: 2.5rem; font-weight: 900; margin-bottom: 24px; }
.plan-price span { font-size: 14px; color: var(--text2); font-weight: 400; }
.plan-features { list-style: none; margin-bottom: 28px; }
.plan-features li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text2); }
.plan-features li:last-child { border: none; }

/* ── FOOTER ── */
.footer { padding: 60px 0 0; background: var(--bg2); border-top: 1px solid var(--border); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo { width: 48px; margin-bottom: 12px; }
.footer-brand p { color: var(--text2); font-size: 14px; max-width: 240px; margin-bottom: 16px; }

.social-links { display: flex; gap: 12px; font-size: 1.3rem; }
.social-links a { color: var(--text2); transition: color .2s; }
.social-links a:hover { color: var(--blue); }

.footer-links h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text3); margin-bottom: 16px; font-family: 'Orbitron', monospace; }
.footer-links a { display: block; color: var(--text2); font-size: 14px; margin-bottom: 10px; }
.footer-links a:hover { color: var(--blue); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { color: var(--text3); font-size: 13px; }
.payment-icons { display: flex; gap: 8px; font-size: 1.4rem; }

/* ── MODALS ── */
.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 2000;
  width: 100%;
  max-width: 440px;
  padding: 0 16px;
}
.modal.open { display: block; }

.modal-box {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text2);
  font-size: 18px;
  cursor: pointer;
}
.modal-close:hover { color: var(--text); }

.modal-box h2 { margin-bottom: 24px; font-size: 1.4rem; }

.modal-box input,
.modal-box select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 15px;
  margin-bottom: 12px;
  font-family: 'Rajdhani', sans-serif;
  transition: border-color .2s;
}
.modal-box input:focus,
.modal-box select:focus {
  outline: none;
  border-color: var(--blue);
}

.modal-switch { text-align: center; margin-top: 16px; font-size: 14px; color: var(--text2); }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1999;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: block; }

/* ── FORMS ── */
.form-error { color: var(--red); font-size: 13px; margin-bottom: 8px; min-height: 18px; }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.cookie-banner p { color: var(--text2); font-size: 13px; flex: 1; }
.cookie-banner a { color: var(--blue); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── NOTIFICATIONS ── */
.toast {
  position: fixed;
  top: 80px;
  right: 24px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 14px 20px;
  z-index: 3000;
  font-size: 14px;
  animation: slideIn .3s ease;
  max-width: 320px;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--blue); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .model-viewer { width: 300px; height: 300px; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .nav-actions .btn { display: none; }
  .nav-actions #user-menu { display: none !important; }
  h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 15px; }
  .plan-cards { grid-template-columns: 1fr; }
}

/* ── UTILITIES ── */
.hidden  { display: none !important; }
.loading { opacity: 0.5; pointer-events: none; }
