/* =====================================================
   Zenox 3D Design - Premium Dark Theme
   Inspired by modern 3D manufacturing aesthetics
   ===================================================== */

:root {
  --bg: #0a0a0b;
  --bg-elevated: #111113;
  --bg-card: #161618;
  --bg-hover: #1c1c1f;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.15);
  
  --text: #f5f5f7;
  --text-muted: #a1a1a6;
  --text-dim: #6e6e73;
  
  --accent: #7c5cff;
  --accent-light: #a78bfa;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --lime: #a3e635;
  --orange: #fb923c;
  
  --gradient-1: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
  --gradient-2: linear-gradient(135deg, #f472b6 0%, #7c5cff 100%);
  
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', var(--font);
  
  --shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  --glow-cyan: 0 0 40px rgba(34, 211, 238, 0.25);
  --glow-purple: 0 0 40px rgba(124, 92, 255, 0.3);
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.display {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 600;
}

.display span {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(10,10,11,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 12px 0;
  background: rgba(10,10,11,0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 42px;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 92, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 92, 255, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 10px 16px;
}

.btn-ghost:hover {
  color: var(--text);
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 92, 255, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(34, 211, 238, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 20% 80%, rgba(244, 114, 182, 0.06), transparent);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid rgba(124, 92, 255, 0.25);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--accent-light);
  margin-bottom: 28px;
}

.hero-badge span {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 40px;
}

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

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.stat span {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ========== PRODUCT GRID ========== */
.products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 20px;
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow), var(--glow-purple);
}

.product-image {
  aspect-ratio: 1;
  background: 
    radial-gradient(circle at 50% 50%, rgba(30,30,40,0.8), transparent 70%),
    linear-gradient(180deg, #0f0f12 0%, #0a0a0b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
}

.product-image img,
.product-image .shape {
  position: relative;
  z-index: 1;
  max-width: 70%;
  max-height: 70%;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img,
.product-card:hover .product-image .shape {
  transform: scale(1.08);
}

/* Geometric shapes for placeholder products */
.shape {
  width: 140px;
  height: 140px;
  border-radius: 20px;
}

.shape-orbit {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 18px solid var(--cyan);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.4), inset 0 0 20px rgba(34, 211, 238, 0.2);
  background: transparent;
}

.shape-modul {
  width: 120px;
  height: 120px;
  background: linear-gradient(145deg, #a78bfa, #7c5cff);
  border-radius: 24px;
  box-shadow: 0 0 40px rgba(124, 92, 255, 0.5);
  transform: rotate(-8deg);
}

.shape-flux {
  width: 130px;
  height: 130px;
  background: linear-gradient(145deg, #bef264, #a3e635);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow: 0 0 35px rgba(163, 230, 53, 0.4);
}

.shape-arc {
  width: 110px;
  height: 140px;
  border: 16px solid var(--pink);
  border-radius: 60px 60px 20px 20px;
  background: transparent;
  box-shadow: 0 0 30px rgba(244, 114, 182, 0.4);
}

.product-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 6px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}

.badge-new { color: var(--cyan); border-color: rgba(34,211,238,0.3); }
.badge-best { color: var(--accent-light); border-color: rgba(124,92,255,0.3); }
.badge-limited { color: var(--pink); border-color: rgba(244,114,182,0.3); }
.badge-studio { color: var(--lime); border-color: rgba(163,230,53,0.3); }

.product-info {
  padding: 20px 22px 24px;
}

.product-info h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.product-info .category {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

/* ========== CUSTOM ORDER SECTION ========== */
.custom-section {
  position: relative;
  overflow: hidden;
}

.custom-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.custom-visual {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.custom-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 30%, rgba(124,92,255,0.15), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(34,211,238,0.1), transparent 50%);
}

.custom-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}

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

.file-upload {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.file-upload:hover {
  border-color: var(--accent);
  background: rgba(124, 92, 255, 0.05);
}

.file-upload input {
  display: none;
}

/* ========== PROCESS STEPS ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.step:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-1);
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.step h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

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

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 280px;
}

.footer h4 {
  font-size: 0.95rem;
  margin-bottom: 18px;
  color: var(--text);
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 10px;
}

.footer a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.88rem;
}

/* ========== ANIMATIONS ========== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .nav { display: none; }
  .custom-section .container { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .section { padding: 70px 0; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
}

/* ========== ADMIN STYLES ========== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  padding: 24px 16px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar .logo {
  padding: 0 12px 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(124, 92, 255, 0.12);
  color: var(--accent-light);
}

.admin-content {
  flex: 1;
  margin-left: 260px;
  padding: 32px;
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.stat-card .label {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.stat-card .value {
  font-size: 1.8rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  font-weight: 600;
  background: rgba(0,0,0,0.2);
}

td {
  font-size: 0.95rem;
}

tr:last-child td {
  border-bottom: none;
}

.status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pending { background: rgba(251,146,60,0.15); color: var(--orange); }
.status-processing { background: rgba(124,92,255,0.15); color: var(--accent-light); }
.status-completed { background: rgba(34,211,238,0.15); color: var(--cyan); }
.status-new { background: rgba(163,230,53,0.15); color: var(--lime); }
