/* --- Layout: footer sticks to bottom --- */
body.page{min-height:100dvh;display:flex;flex-direction:column}
main{flex:1}

/* --- Rich dark background (no red lines) --- */
body{
  margin:0;
  font-family:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:#e7e7e7;
  /* slightly cooler/inkier than header */
  background:
    radial-gradient(1200px 800px at 70% -20%, rgba(255,255,255,0.025), transparent 55%),
    radial-gradient(900px 700px at -15% 115%, rgba(255,255,255,0.02), transparent 60%),
    linear-gradient(180deg, #0a0d12, #0a0c10 40%, #090a0d 100%);
}

/* --- Header: sleek black glass --- */
.site-header{
  position:sticky;top:0;z-index:10;
  background:rgba(12,14,18,.88); /* a hair brighter than body */
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(255,255,255,.06);
  box-shadow:0 6px 28px rgba(0,0,0,.45);
}
.site-header .bar{height:64px;display:flex;align-items:center;justify-content:space-between;max-width:1200px;margin:0 auto;padding:0 20px}
.site-header .brand{display:flex;align-items:baseline;gap:10px;font-weight:700;letter-spacing:.2px}
.site-header .brand .name{font-size:18px;color:#f0f2f5}
.site-header .brand .sub{font-size:12px;color:#9aa4b2}

/* --- Nav with blue underline on hover --- */
.site-header nav ul{list-style:none;display:flex;gap:22px;margin:0;padding:0}
.site-header nav a{
  position:relative;display:inline-block;padding:10px 2px;
  color:#cfd6df;text-decoration:none;font-size:14px;font-weight:600;
  transition:color .15s ease;
}
.site-header nav a:hover{color:#fff}
.site-header nav a::after{
  content:"";position:absolute;left:0;right:0;bottom:4px;height:2px;border-radius:2px;
  background:#3b82f6;            /* blue underline */
  transform:scaleX(0);transform-origin:center;transition:transform .18s ease;
}
.site-header nav a:hover::after{transform:scaleX(1)}
.site-header nav a:focus-visible{outline:2px solid #3b82f6;outline-offset:4px;border-radius:4px}

/* --- Footer: black glass; pinned by layout --- */
.site-footer{
  background:rgba(12,14,18,.9);
  backdrop-filter:blur(6px);
  border-top:1px solid rgba(255,255,255,.06);
  color:#9aa4b2;text-align:center;
  padding:18px 16px;font-size:14px
}
.site-footer .brand{color:#e6eaef;font-weight:600}
.site-footer .muted{color:#7c8694}

/* --- Mobile tweaks --- */
@media (max-width:780px){
  .site-header .bar{height:auto;padding:10px 16px;flex-direction:column;gap:8px;align-items:stretch}
  .site-header nav ul{justify-content:space-between;gap:14px}
}

/* --- Containers & sections --- */
.container{max-width:1200px;margin:0 auto;padding:0 20px}
.section{padding:56px 0}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.section-head h2{margin:0;font-size:22px;color:#f0f2f5}
.link-more{color:#cfd6df;text-decoration:none;font-weight:600}
.link-more:hover{color:#fff}

/* --- Hero --- */
.hero{padding:72px 0 36px}
.hero-wrap{display:flex;align-items:center;justify-content:center}
.hero-copy{max-width:880px;text-align:center}
.hero-copy h1{margin:0 0 10px;font-size:clamp(36px,5vw,56px);letter-spacing:-.02em;color:#f3f5f7}
.hero-copy .accent{color:#3b82f6}
.hero-copy p{margin:0 auto 18px;color:#aeb7c4;max-width:760px}
.hero-cta{display:flex;gap:10px;justify-content:center;margin-top:12px}
.pill-list{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:16px 0 0;padding:0;list-style:none}
.pill-list li{padding:8px 10px;border:1px solid rgba(255,255,255,.08);border-radius:999px;color:#9aa4b2;background:rgba(255,255,255,.03)}

/* --- Buttons --- */
.btn{display:inline-block;padding:12px 16px;border-radius:12px;font-weight:700;font-size:14px;text-decoration:none}
.btn-primary{background:#3b82f6;color:#fff;border:1px solid rgba(255,255,255,.08)}
.btn-primary:hover{filter:brightness(1.05)}
.btn-ghost{background:rgba(255,255,255,.04);color:#e7e7e7;border:1px solid rgba(255,255,255,.08)}
.btn-ghost:hover{background:rgba(255,255,255,.06)}
.btn-mini{padding:8px 12px;border-radius:10px;background:rgba(255,255,255,.06);color:#f3f5f7;text-decoration:none;font-weight:600;border:1px solid rgba(255,255,255,.08)}
.btn-mini:hover{background:rgba(255,255,255,.1)}

/* --- Cards / grid --- */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{border:1px solid rgba(255,255,255,.06);border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.02));box-shadow:0 10px 30px rgba(0,0,0,.35)}
.feature{padding:18px}
.feature .ico{font-size:22px;opacity:.9}
.feature h3{margin:8px 0 6px;font-size:18px;color:#e9edf2}
.feature p{margin:0;color:#9aa4b2}

.product-grid .product{overflow:hidden}
/* .product-media{height:220px;border-bottom:1px solid rgba(255,255,255,.06);background:#0f1217}*/
.product-body{padding:14px}
.product-title{margin:0 0 4px;color:#e9edf2;font-size:16px}
.product-sub{margin:0 0 10px;color:#9aa4b2;font-size:14px}
.product-row{display:flex;align-items:center;justify-content:space-between}
.price{color:#f3f5f7;font-weight:700}

/* --- Split section --- */
.split{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;align-items:center}
.split h2{margin:0 0 8px;color:#e9edf2}
.split p{margin:0 0 12px;color:#aeb7c4}
.checklist{list-style:none;margin:0 0 14px;padding:0;color:#9aa4b2}
.checklist li{position:relative;padding-left:22px;margin:6px 0}
.checklist li::before{content:"✓";position:absolute;left:0;top:0;color:#3b82f6}
.panel{border:1px solid rgba(255,255,255,.06);border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.02));box-shadow:0 10px 30px rgba(0,0,0,.35)}
.panel.tall{height:280px}

/* --- Placeholder blocks if you don't have images yet --- */
.ph{background:
  linear-gradient(90deg, rgba(255,255,255,.06), rgba(255,255,255,.12), rgba(255,255,255,.06));
  background-size: 600px 100%;
  animation: phShine 1.4s linear infinite;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
@keyframes phShine{0%{background-position-x:-600px}100%{background-position-x:600px}}

/* --- Responsive --- */
@media (max-width: 980px){
  .grid-3{grid-template-columns:1fr 1fr}
  .split{grid-template-columns:1fr}
}
@media (max-width: 640px){
  .grid-3{grid-template-columns:1fr}
  .hero-cta{flex-direction:column}
}

/* Containers & sections */
.container{max-width:1200px;margin:0 auto;padding:0 20px}
.section{padding:56px 0}
.section-title{margin:0 0 6px;font-size:26px;color:#f0f2f5}
.section-sub{margin:0 0 14px;color:#aeb7c4}

/* Toolbar */
.toolbar{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:12px}
.filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.actions{display:flex;gap:10px;align-items:center}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{padding:8px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);color:#cfd6df;cursor:pointer;font-weight:600}
.chip.active,.chip:hover{background:rgba(255,255,255,.08);color:#fff}
.select,.search{
  height:38px;padding:0 12px;border-radius:10px;border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);color:#e7e7e7
}
.search::placeholder{color:#9aa4b2}

/* Grid & cards */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{border:1px solid rgba(255,255,255,.06);border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.02));box-shadow:0 10px 30px rgba(0,0,0,.35)}
/*.product-media{height:220px;border-bottom:1px solid rgba(255,255,255,.06);background:#0f1217}*/
.product-media-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  padding: 10px;
  background-color: #fafafa;
  border-bottom: 1px solid #eee;
  overflow: hidden;
}

.product-media {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.product-body{padding:14px}
.product-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.badge{display:inline-block;padding:4px 8px;border-radius:999px;background:rgba(59,130,246,.12);color:#cfe0ff;border:1px solid rgba(59,130,246,.25);font-size:12px;font-weight:700}
.product-title{margin:0 0 4px;color:#e9edf2;font-size:16px}
.product-sub{margin:0 0 10px;color:#9aa4b2;font-size:14px}
.product-row{display:flex;align-items:center;justify-content:space-between}
.price{color:#f3f5f7;font-weight:700}
.btn.btn-mini{padding:8px 12px;border-radius:10px;background:rgba(255,255,255,.06);color:#f3f5f7;text-decoration:none;font-weight:600;border:1px solid rgba(255,255,255,.08)}
.btn.btn-mini:hover{background:rgba(255,255,255,.1)}
  .drop-zone {
    border: 2px dashed #aaa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
  }

  .drop-zone.dragging {
    border-color: #007bff;
    background-color: #f0f8ff;
  }

  .drop-zone p {
    color: #666;
    font-size: 14px;
  }

  .hidden {
    display: none;
  }
/* Placeholder shimmer */
.ph{background:linear-gradient(90deg,rgba(255,255,255,.06),rgba(255,255,255,.12),rgba(255,255,255,.06));background-size:600px 100%;animation:phShine 1.4s linear infinite}
@keyframes phShine{0%{background-position-x:-600px}100%{background-position-x:600px}}

/* Responsive */
@media (max-width: 980px){ .grid-3{grid-template-columns:1fr 1fr} }
@media (max-width: 640px){ .grid-3{grid-template-columns:1fr} .toolbar{flex-direction:column;align-items:stretch} .actions{width:100%} .actions .search{flex:1} }

/* Size guide */
.table-wrap{overflow:auto;border-radius:16px;border:1px solid rgba(255,255,255,.06);background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.02));box-shadow:0 10px 30px rgba(0,0,0,.35)}
.size-table{width:100%;border-collapse:separate;border-spacing:0}
.size-table th,.size-table td{padding:12px 12px;text-align:left}
.size-table thead th{font-size:13px;color:#cfd6df;border-bottom:1px solid rgba(255,255,255,.08)}
.size-table tbody td{color:#e9edf2;border-top:1px solid rgba(255,255,255,.04)}
.size-table .sub{font-weight:600;color:#9aa4b2;font-size:11px}
.size-table tbody tr:nth-child(odd){background:rgba(255,255,255,.02)}

/* unit toggle */
.unit-toggle{display:flex;gap:8px;margin:10px 0}
.unit-toggle .toggle{
  padding:8px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);color:#cfd6df;font-weight:700;cursor:pointer
}
.unit-toggle .toggle.active,.unit-toggle .toggle:hover{background:rgba(255,255,255,.08);color:#fff}

/* steps + diagram */
.steps{margin:8px 0 14px;padding-left:18px;color:#aeb7c4}
.diagram{height:280px;display:grid;place-items:center}

/* Contact page */
.contact-wrap .section-head h1{margin:0;color:#f0f2f5;font-size:28px}
.contact-wrap .section-head .muted{color:#9aa4b2;margin-top:6px}

.notice{margin:14px 0;padding:12px 14px;border-radius:12px;border:1px solid rgba(255,255,255,.08);font-weight:600}
.notice.ok{background:rgba(16,185,129,.12);color:#d1fae5;border-color:rgba(16,185,129,.25)}
.notice.err{background:rgba(239,68,68,.12);color:#fee2e2;border-color:rgba(239,68,68,.25)}

.form{margin-top:12px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.field label{color:#cfd6df;font-weight:600;font-size:14px}
.field .req{color:#3b82f6;margin-left:4px}
.field input,.field textarea{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  color:#e7e7e7;
  padding:12px 12px;
  font-size:14px;
}
.field input::placeholder,.field textarea::placeholder{color:#8f9bad}
.field input:focus,.field textarea:focus{
  outline: none;
  border-color: rgba(59,130,246,.45);
  box-shadow: 0 0 0 3px rgba(59,130,246,.18);
}

.actions{display:flex;align-items:center;gap:12px;margin-top:6px}
.small{font-size:12px}
.muted{color:#9aa4b2}
.hp{display:none !important}

/* Responsive */
@media (max-width: 780px){
  .form-row{grid-template-columns:1fr}
}
