:root {
  --bg: #07090d;
  --bg-elev: #10151c;
  --bg-card: #151c26;
  --bg-soft: #1b2430;
  --line: rgba(140, 190, 210, 0.14);
  --text: #e8eef4;
  --muted: #93a3b5;
  --cyan: #2ee6d6;
  --cyan-dim: #14b8a8;
  --orange: #ff7a3d;
  --orange-dim: #e25a1c;
  --gold: #f4c56d;
  --ok: #4ade80;
  --danger: #fb7185;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font: "Sora", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(46, 230, 214, 0.08), transparent 50%),
    radial-gradient(900px 500px at -10% 20%, rgba(255, 122, 61, 0.07), transparent 45%),
    linear-gradient(180deg, #07090d 0%, #0a1016 100%);
}

img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #7ff5ea; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7, 9, 13, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.logo {
  width: 38px; height: 38px;
  display: grid; place-items: center;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 15px; letter-spacing: 0.04em; }
.brand-text span { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted); padding: 8px 12px; border-radius: 999px; font-size: 14px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,0.05); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font-family: inherit; font-weight: 600;
  border-radius: 999px; padding: 11px 18px; font-size: 14px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, #3aefe0, var(--cyan-dim)); color: #042320; }
.btn-primary:hover { color: #042320; box-shadow: 0 10px 24px rgba(46,230,214,.25); }
.btn-orange { background: linear-gradient(180deg, #ff915c, var(--orange-dim)); color: #2a0e04; }
.btn-orange:hover { color: #2a0e04; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }
.btn-full { width: 100%; }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 22px; }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cyan); font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 16px;
}
h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.03em; }
h1 em { font-style: normal; color: var(--cyan); }
.lede { color: var(--muted); font-size: 18px; margin: 18px 0 28px; max-width: 54ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 22px; margin-top: 28px; color: var(--muted); font-size: 13px; }
.hero-meta b { color: var(--text); display: block; font-size: 16px; }
.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--line); border-radius: 28px; padding: 18px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero-card::before {
  content: ""; position: absolute; inset: auto -20% -30% 20%;
  height: 180px; background: radial-gradient(circle, rgba(46,230,214,.18), transparent 60%);
}
.voxel-stage {
  aspect-ratio: 1.15 / 1; border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(46,230,214,.12), rgba(255,122,61,.08)),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(255,255,255,.03) 22px 23px),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(255,255,255,.03) 22px 23px),
    #0d141c;
  display: grid; place-items: center; position: relative;
}
.cube {
  width: 120px; height: 120px; transform-style: preserve-3d;
  animation: spin 12s linear infinite; position: relative;
}
.cube span {
  position: absolute; inset: 0; border: 1px solid rgba(46,230,214,.55);
  background: rgba(46,230,214,.08);
}
.cube span:nth-child(1) { transform: rotateY(0deg) translateZ(60px); }
.cube span:nth-child(2) { transform: rotateY(90deg) translateZ(60px); }
.cube span:nth-child(3) { transform: rotateY(180deg) translateZ(60px); }
.cube span:nth-child(4) { transform: rotateY(-90deg) translateZ(60px); }
.cube span:nth-child(5) { transform: rotateX(90deg) translateZ(60px); }
.cube span:nth-child(6) { transform: rotateX(-90deg) translateZ(60px); }
@keyframes spin { to { transform: rotateX(-18deg) rotateY(360deg); } }

/* Sections */
section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
h2 { font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.03em; }
.sub { color: var(--muted); max-width: 60ch; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 8px 30px rgba(0,0,0,.18);
}
.card h3 { margin-bottom: 8px; font-size: 18px; }
.card p { color: var(--muted); font-size: 15px; }
.icon-pill {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(46,230,214,.1); color: var(--cyan); margin-bottom: 14px; font-size: 20px;
}

.steps { counter-reset: step; }
.step { position: relative; padding-left: 8px; }
.step .num {
  font-family: var(--mono); color: var(--orange); font-size: 12px; letter-spacing: .12em;
}

/* Store */
.search-bar {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px;
  background: var(--bg-card); border: 1px solid var(--line); padding: 10px;
  border-radius: 16px; margin-bottom: 22px;
}
.search-bar input, .search-bar select, .field input, .field select, .field textarea {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--line);
  color: var(--text); border-radius: 12px; padding: 12px 14px; font: inherit;
}
.search-bar input { font-size: 16px; }
.results {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.model-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
}
.model-card img { width: 100%; height: 180px; object-fit: cover; background: #0d141c; }
.model-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.model-body h3 { font-size: 15px; line-height: 1.3; }
.meta { color: var(--muted); font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; font-size: 11px; padding: 3px 8px;
  border-radius: 999px; background: rgba(46,230,214,.1); color: var(--cyan);
}
.badge.warn { background: rgba(244,197,109,.12); color: var(--gold); }
.status { color: var(--muted); padding: 30px 0; text-align: center; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); }
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.notice {
  background: rgba(46,230,214,.08); border: 1px solid rgba(46,230,214,.2);
  padding: 14px 16px; border-radius: 12px; color: var(--muted); margin-bottom: 18px;
}
.price-box {
  background: #0d141c; border: 1px solid var(--line); border-radius: 16px; padding: 18px;
}
.price-row { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); }
.price-row.total { color: var(--text); font-size: 20px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 8px; }

footer {
  border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px;
}
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; }
.alert.ok { background: rgba(74,222,128,.12); color: var(--ok); }
.alert.err { background: rgba(251,113,133,.12); color: var(--danger); }

@media (max-width: 860px) {
  .hero-grid, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #0c1218; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 12px 20px 18px; align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .search-bar { grid-template-columns: 1fr; }
  .table-wrap { overflow-x: auto; }
}

.dash-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.dash-filters a {
  color: var(--muted); border: 1px solid var(--line); padding: 6px 12px;
  border-radius: 999px; font-size: 13px; text-transform: capitalize;
}
.dash-filters a.active, .dash-filters a:hover { color: var(--text); border-color: var(--cyan); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dash-table th, .dash-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dash-table th { color: var(--muted); font-weight: 500; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table .muted { color: var(--muted); font-size: 12px; }
.dash-table .mono { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.status-new { background: rgba(46,230,214,.12); }
.status-quoted { background: rgba(244,197,109,.14); color: var(--gold); }
.status-printing { background: rgba(255,122,61,.14); color: var(--orange); }
.status-shipped, .status-delivered { background: rgba(74,222,128,.14); color: var(--ok); }
.status-cancelled { background: rgba(251,113,133,.14); color: var(--danger); }
