@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ================================
   CNC MACHINE FACTORY - STYLES
   ================================ */

:root{
  --bg:#050b19;
  --card:#0c172d;
  --card-soft:rgba(255,255,255,.04);
  --muted:#9db0d8;
  --text:#e8f1ff;
  --brand:#5bc4ff;
  --brand2:#69f5c9;
  --border: rgba(255,255,255,.10);
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --radius: 18px;
  --topbar-bg: rgba(5,11,25,.75);
  --menu-bg: rgba(255,255,255,.05);
  --hover: rgba(255,255,255,.03);
  --active: rgba(91,196,255,.12);
  --surface: rgba(255,255,255,.03);
  --surface-strong: rgba(255,255,255,.06);
  --ghost: rgba(255,255,255,.02);
  --card-gradient: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.01));
  --footer-bg: rgba(0,0,0,.18);
  --page-bg:
    linear-gradient(180deg, rgba(5,11,25,.75), rgba(5,11,25,.9)),
    url("../img/vlt11cnc.jpg") center/cover no-repeat fixed,
    linear-gradient(120deg, rgba(91,196,255,.08), rgba(105,245,201,.08) 35%, transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.03), rgba(255,255,255,.03) 1px, transparent 1px, transparent 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.02), rgba(255,255,255,.02) 1px, transparent 1px, transparent 48px),
    var(--bg);
}

body.theme-light{
  --bg:#f5f7fb;
  --card:#ffffff;
  --card-soft:#eef2fb;
  --muted:#4a5b78;
  --text:#0f1c2f;
  --brand:#0f8bff;
  --brand2:#1ac9a6;
  --border: rgba(15,28,47,.12);
  --shadow: 0 14px 34px rgba(15,28,47,.12);
  --topbar-bg: rgba(255,255,255,.88);
  --menu-bg: rgba(15,28,47,.05);
  --hover: rgba(15,28,47,.06);
  --active: rgba(15,140,255,.14);
  --surface: rgba(15,28,47,.03);
  --surface-strong: rgba(15,28,47,.08);
  --ghost: rgba(15,28,47,.02);
  --card-gradient: linear-gradient(160deg, rgba(15,28,47,.04), rgba(15,28,47,.01));
  --footer-bg: rgba(15,28,47,.04);
  --page-bg:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(245,247,251,.96)),
    linear-gradient(120deg, rgba(15,139,255,.08), rgba(26,201,166,.10) 38%, rgba(12,24,44,.04) 80%),
    url("../img/vlt11cnc.jpg") center/cover no-repeat fixed,
    radial-gradient(640px 320px at 12% 18%, rgba(15,139,255,.08), transparent 60%),
    radial-gradient(640px 320px at 82% 10%, rgba(26,201,166,.10), transparent 65%),
    var(--bg);
}

/* RESET */
*{ margin:0; padding:0; box-sizing:border-box; }
html, body{ height:100%; }

body{
  font-family: "Space Grotesk", "Sora", "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--page-bg);
  color: var(--text);
  line-height:1.55;
  min-height:100vh;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

::selection{ background:rgba(91,196,255,.35); color:#fff; }

/* LAYOUT */
.container{
  width:min(1180px, 94vw);
  margin:0 auto;
}
.section{ padding: 34px 0 56px; }
.section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
  flex-wrap:wrap;
}

/* ================================
   HEADER / NAVBAR
   ================================ */
.topbar{
  position:sticky;
  top:0;
  z-index:100;
  backdrop-filter: blur(12px);
  background: var(--topbar-bg);
  border-bottom:1px solid var(--border);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:800;
  letter-spacing:.3px;
}
.brand-badge{
  width:42px;
  height:42px;
  border-radius:12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow:0 10px 30px rgba(74,163,255,.35);
}
.brand small{
  display:block;
  font-weight:600;
  color:var(--muted);
  font-size:12px;
  margin-top:-2px;
}
.navlinks{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.navlinks a{
  padding:10px 14px;
  border-radius:12px;
  color:var(--muted);
  border:1px solid transparent;
  font-weight:600;
  transition:.15s ease;
}
.navlinks a:hover{
  color:var(--text);
  border-color:var(--border);
  background: var(--hover);
}
.navlinks a.active{
  color:var(--text);
  background: var(--active);
  border-color: rgba(91,196,255,.35);
}
.menu-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background: var(--menu-bg);
  color:var(--text);
  font-weight:700;
  cursor:pointer;
}
.menu-toggle .bars{
  width:18px;
  height:2px;
  background: currentColor;
  position:relative;
}
.menu-toggle .bars::before,
.menu-toggle .bars::after{
  content:"";
  position:absolute;
  left:0;
  width:18px;
  height:2px;
  background: currentColor;
}
.menu-toggle .bars::before{ top:-6px; }
.menu-toggle .bars::after{ top:6px; }

#langToggle{
  display:flex;
  margin-left:8px;
}
#themeToggle{
  display:flex;
  margin-left:8px;
}
.topbar-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

@media(max-width:740px){
  .nav{
    align-items:flex-start;
  }
  .menu-toggle{
    display:flex;
  }
  .navlinks{
    width:100%;
    flex-direction:column;
    display:none;
    padding-top:8px;
  }
  .navlinks a{
    width:100%;
    border:1px solid var(--border);
    background: var(--ghost);
  }
  .navlinks.show{
    display:flex;
  }
}

/* ================================
   HERO
   ================================ */
.hero{ padding:64px 0 42px; }
.hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:24px;
}
@media(max-width:900px){ .hero-grid{ grid-template-columns:1fr; } }
.h-card{
  background: var(--card-gradient);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:var(--shadow);
}
.hero-copy h1{
  font-size: clamp(30px, 4vw, 46px);
  margin:14px 0 12px;
  line-height:1.05;
}
.lead{
  color:var(--muted);
  max-width:68ch;
  font-size:16px;
}
.lead.small{ font-size:15px; }
.hero-feature h2{ margin:6px 0 10px; }

.kicker{
  display:inline-block;
  padding:8px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
}
.pill{
  background: rgba(105,245,201,.10);
  color:#c5ffe9;
  border:1px solid rgba(105,245,201,.35);
}
.kicker.subtle{
  background: var(--surface-strong);
  color:var(--text);
  border-color:var(--border);
}
.chip{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  font-weight:700;
  font-size:12px;
  border:1px solid var(--border);
  background: var(--surface-strong);
}
.chip.soft{
  background: rgba(91,196,255,.10);
  border-color: rgba(91,196,255,.35);
  color:#dff2ff;
}
.chip.ghost{
  background: transparent;
  border-color: var(--border);
  color:var(--text);
}

/* ================================
   BUTTONS
   ================================ */
.cta-row{
  display:flex;
  gap:12px;
  margin-top:18px;
  flex-wrap:wrap;
}
.btn{
  padding:12px 16px;
  border-radius:14px;
  border:1px solid var(--border);
  background: var(--surface-strong);
  font-weight:700;
  cursor:pointer;
  transition:.15s ease;
}
.btn:hover{ background: var(--hover); }
.btn.primary{
  background: linear-gradient(135deg, rgba(91,196,255,.35), rgba(91,196,255,.15));
  border-color: rgba(91,196,255,.55);
  color:#e9f6ff;
  box-shadow:0 8px 30px rgba(91,196,255,.25);
}
.btn.ghost{
  background: transparent;
  border-color: var(--border);
  color:var(--text);
}

/* ================================
   STATS / SPEC LIST
   ================================ */
.stats{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  margin-top:20px;
}
.stats-inline{ grid-template-columns:repeat(3,1fr); }
@media(max-width:820px){ .stats-inline{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:560px){ .stats-inline{ grid-template-columns:1fr; } }
.stat{
  padding:14px;
  border-radius:14px;
  background: var(--surface);
  border:1px solid var(--border);
}
.stat b{
  display:block;
  font-size:17px;
  margin-bottom:6px;
}
.stat span{ font-size:13px; color:var(--muted); }

.spec-list{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin-top:14px;
}
@media(max-width:540px){ .spec-list{ grid-template-columns:1fr; } }
.spec-list div{
  padding:12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: var(--surface);
}
.spec-list span{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:4px;
  text-transform:uppercase;
  letter-spacing:.4px;
}

/* ================================
   GRID / CARDS
   ================================ */
.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
@media(max-width:1000px){ .grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:640px){ .grid{ grid-template-columns:1fr; } }
.card{
  background: var(--card);
  border-radius:var(--radius);
  border:1px solid var(--border);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.thumb{
  height:160px;
  background:
    radial-gradient(400px 200px at 30% 20%, rgba(91,196,255,.22), transparent 60%),
    radial-gradient(400px 200px at 70% 10%, rgba(105,245,201,.15), transparent 55%),
    var(--surface);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.gallery{
  display:grid;
  gap:10px;
}
.gallery-main{
  background: var(--surface-strong);
  border:1px solid var(--border);
  border-radius:14px;
  height:320px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.gallery-main img{
  width:100%;
  height:100%;
  object-fit:contain;
  background: radial-gradient(400px 200px at 20% 20%, rgba(91,196,255,.14), transparent 60%), var(--card);
}
.gallery-thumbs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.gallery-thumbs button{
  border:1px solid var(--border);
  background: var(--surface);
  border-radius:10px;
  padding:0;
  width:82px;
  height:60px;
  cursor:pointer;
  overflow:hidden;
}
.gallery-thumbs img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index:200;
}
.lightbox.show{ display:flex; }
.lightbox-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
}
.lightbox-content{
  position:relative;
  max-width:90vw;
  max-height:90vh;
  z-index:1;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.lightbox-content img{
  max-width:90vw;
  max-height:80vh;
  object-fit:contain;
  border-radius:14px;
  background: var(--card);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}
.close-btn{
  align-self:flex-end;
}
.thumb.gradient{
  background:
    linear-gradient(135deg, rgba(91,196,255,.25), rgba(105,245,201,.12)),
    radial-gradient(350px 200px at 40% 30%, rgba(255,255,255,.08), transparent 60%),
    var(--ghost);
}
.body{ padding:16px; }
.card h3{ font-size:17px; margin-bottom:6px; }
.meta{ font-size:13px; color:var(--muted); }

/* Tags row */
.tags{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }

/* ================================
   BADGES
   ================================ */
.badges{ display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }
.badge{
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  border:1px solid var(--border);
  background: var(--surface);
}
.badge.instock{ background: rgba(124,247,195,.12); border-color: rgba(124,247,195,.35); }
.badge.building{ background: rgba(255,200,90,.12); border-color: rgba(255,200,90,.35); }

/* ================================
   FORMS / FILTERS
   ================================ */
.toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding:12px;
  border-radius:var(--radius);
  background: var(--surface);
  border:1px solid var(--border);
  margin-bottom:16px;
}
.input,
select,
textarea{
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  background: var(--surface-strong);
  border:1px solid var(--border);
  color:var(--text);
}
.input::placeholder,
textarea::placeholder{ color:var(--muted); }

/* ================================
   PRODUCT PAGE
   ================================ */
.split{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:20px;
}
@media(max-width:900px){ .split{ grid-template-columns:1fr; } }
.list{ list-style:none; display:grid; gap:10px; }
.list li{
  padding:12px;
  border-radius:14px;
  background: var(--surface);
  border:1px solid var(--border);
}
.list.bullets li{
  position:relative;
  padding-left:26px;
}
.list.bullets li::before{
  content:"•";
  position:absolute;
  left:10px;
  color:var(--brand);
}
.kv{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}
.kv div{
  padding:12px;
  border-radius:14px;
  border:1px dashed var(--border);
}
.kv b{ display:block; margin-bottom:4px; }

/* ================================
   PROCESS / PANEL
   ================================ */
.steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}
@media(max-width:920px){ .steps{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:640px){ .steps{ grid-template-columns:1fr; } }
.step{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
  background: var(--surface);
}
.panel{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:18px;
  align-items:center;
}
@media(max-width:900px){ .panel{ grid-template-columns:1fr; } }
.panel-side{
  padding:14px;
  border-radius:14px;
  border:1px solid var(--border);
  background: var(--card);
}

/* ================================
   FOOTER
   ================================ */
.footer{
  border-top:1px solid var(--border);
  padding:24px 0 30px;
  background: var(--footer-bg);
  color:var(--muted);
}
.footer .row{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:14px;
}
.hr{
  height:1px;
  background: var(--border);
  margin:14px 0;
}
.notice{
  padding:12px 14px;
  border-radius:var(--radius);
  border:1px solid rgba(91,196,255,.45);
  background: rgba(91,196,255,.12);
  color:#dbeaff;
}
.small{ font-size:13px; }
