:root{
  --bg: #f6f7fb;
  --bg2:#eef1f7;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --muted2:#64748b;
  --line: rgba(15,23,42,.10);
  --shadow: 0 12px 28px rgba(15,23,42,.08);
  --shadow2: 0 6px 14px rgba(15,23,42,.06);
  --radius: 16px;
  --radius2: 20px;
  --max: 1140px;
  --brand: #2563eb;
  --brand2:#10b981;
  --brand3:#0ea5e9;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(37,99,235,.10), transparent 55%),
    radial-gradient(900px 600px at 95% 5%, rgba(16,185,129,.10), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}
a{color:inherit; text-decoration:none}
a:hover{opacity:.95}
img{max-width:100%; display:block}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}
.topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(246,247,251,.72);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
  gap:14px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  min-width: 220px;
}
.brand .logo{
  width:44px; height:44px;
  border-radius: 12px;
  background: #fff;
  border:1px solid var(--line);
  box-shadow: var(--shadow2);
  padding:7px;
}
.brand .name{display:flex; flex-direction:column; line-height:1.1}
.brand .name strong{font-size:14px; letter-spacing:.2px}
.brand .name span{font-size:12px; color:var(--muted2); margin-top:2px}
.menu{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end;
}
.menu a{
  font-size:13px;
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid transparent;
  color: var(--muted);
}
.menu a:hover{
  border-color: var(--line);
  background: rgba(15,23,42,.02);
  color: var(--text);
}
.menu a.active{
  border-color: rgba(37,99,235,.22);
  background: rgba(37,99,235,.08);
  color: var(--text);
}
.pill{
  font-size:12px;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.70);
  color: var(--muted);
}
.hero{padding:34px 0 18px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:16px;
  align-items:stretch;
}
@media (max-width: 920px){ .hero-grid{grid-template-columns:1fr} }
.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}
.hero-card{
  position:relative;
  overflow:hidden;
  min-height: 360px;
  display:flex;
}
.hero-card::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.82) 46%, rgba(255,255,255,.58) 66%, rgba(255,255,255,.28) 100%),
    radial-gradient(700px 420px at 18% 18%, rgba(37,99,235,.10), transparent 60%),
    url("/images/background.webp");
  background-size: cover;
  /* Keep the important area inside the frame (more like "auto-fit") */
  background-position: 88% 92%;
  filter: saturate(1.03) contrast(1.02);
}
.hero-card::after{
  content:"";
  position:absolute; inset:0;
  /* subtle inner vignette for depth */
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.06), inset 0 -120px 140px rgba(15,23,42,.04);
  pointer-events:none;
}
.hero-card .inner{
  position:relative;
  padding:26px;
  width:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:12px;
}
.kicker{
  display:inline-flex; gap:10px; align-items:center;
  font-size:12px;
  color: var(--muted);
  border:1px solid var(--line);
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.65);
  width: fit-content;
}
.h1{
  margin:0;
  font-size:40px;
  line-height:1.08;
  letter-spacing:-.6px;
}
@media (max-width: 520px){ .h1{font-size:32px} }
.lead{
  margin:0;
  color: var(--muted);
  font-size:15px;
  line-height:1.8;
  max-width: 62ch;
}
.cta{display:flex; gap:10px; flex-wrap:wrap; margin-top:6px}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.70);
  color: var(--text);
  font-size:13px;
  box-shadow: var(--shadow2);
}
.btn:hover{transform: translateY(-1px); transition:.15s ease}
.btn.primary{
  border-color: rgba(37,99,235,.30);
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(16,185,129,.10));
}
.btn.ghost{background: rgba(255,255,255,.45);}
.hero-aside{
  position:relative;
  overflow:hidden;
  min-height: 360px;
  display:flex;
  flex-direction:column;
}
.hero-aside::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.96) 60%, rgba(255,255,255,1) 100%),
    radial-gradient(700px 420px at 25% 15%, rgba(16,185,129,.10), transparent 60%),
    radial-gradient(700px 420px at 85% 25%, rgba(37,99,235,.10), transparent 60%)
  background-size: cover;
  background-position: center;
  filter: saturate(1.03) contrast(1.01);
}
.hero-aside .inner{position:relative;padding:20px 20px 12px;}
.hero-aside h3{margin:0 0 8px; font-size:14px; letter-spacing:.2px}
.hero-aside p{margin:0; color:var(--muted); font-size:13px; line-height:1.75}
.meta{
  position:relative;
  margin-top:auto;
  padding:14px 16px;
  border-top: 1px solid var(--line);
  display:flex; gap:8px; flex-wrap:wrap;
  background: rgba(255,255,255,.80);
}
.tag{
  padding:8px 10px;
  font-size:12px;
  color: var(--muted);
  border:1px solid var(--line);
  border-radius:999px;
  background: rgba(255,255,255,.65);
}
.section{padding:18px 0}
.h2{margin:0 0 10px;font-size:18px;letter-spacing:-.2px;}
.muted{color:var(--muted)}
.grid3{display:grid; gap:12px; grid-template-columns: repeat(3, 1fr);}
@media (max-width: 920px){ .grid3{grid-template-columns:1fr} }
.feature{
  padding:16px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.70);
  box-shadow: var(--shadow2);
}
.feature h4{margin:0 0 6px; font-size:14px}
.feature p{margin:0; color:var(--muted); font-size:13px; line-height:1.7}
.split{display:grid; gap:14px; grid-template-columns: 1fr 1fr;}
@media (max-width: 920px){ .split{grid-template-columns:1fr} }
.content{padding:18px}
.content ul{margin:10px 0 0 18px; color:var(--muted); line-height:1.9}
.content li{margin:6px 0}
.banner{
  border-radius: var(--radius2);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}
.banner img{width:100%; height:auto}
.banner .cap{
  padding:12px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  background: rgba(255,255,255,.85);
}
.table{
  width:100%;
  border-collapse: collapse;
  border:1px solid var(--line);
  border-radius: 14px;
  overflow:hidden;
  background: #fff;
}
.table th, .table td{
  padding:12px 12px;
  border-bottom:1px solid var(--line);
  font-size:13px;
  vertical-align:top;
}
.table th{color:var(--text); text-align:left; background: rgba(15,23,42,.02)}
.table td{color:var(--muted)}
.table tr:last-child td{border-bottom:none}
.notice{
  border:1px solid rgba(37,99,235,.20);
  background: rgba(37,99,235,.06);
  padding:14px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.kdocs{
  width:100%;
  height: 70vh;
  border:1px solid var(--line);
  border-radius: 14px;
  overflow:hidden;
  background: #fff;
}
.footer{
  margin-top:24px;
  border-top:1px solid var(--line);
  padding:18px 0 28px;
  color:var(--muted2);
  font-size:12px;
}
.footer a{color:var(--muted2)}
.footer a:hover{color:var(--text)}
.footer-grid{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}


/* Inventory advanced */
.kpi-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 920px){ .kpi-grid{grid-template-columns:1fr 1fr} }
@media (max-width: 520px){ .kpi-grid{grid-template-columns:1fr} }

.kpi{
  padding:14px 16px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow2);
}
.kpi .label{font-size:12px; color: var(--muted2)}
.kpi .value{font-size:22px; margin-top:6px; letter-spacing:-.3px}

.toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  margin-top: 12px;
}
.toolbar .left, .toolbar .right{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
}
.input, select.select{
  padding: 12px 14px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.input{min-width: 320px; max-width: 520px; width: 44vw;}
@media (max-width: 520px){ .input{min-width: 100%; width: 100%;} }

select.select{width:auto}

.chips{display:flex; gap:8px; flex-wrap:wrap; margin-top: 10px}
.chip{
  padding:8px 10px;
  font-size:12px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.78);
  color: var(--muted);
  cursor:pointer;
  user-select:none;
}
.chip:hover{transform: translateY(-1px); transition:.15s ease}
.chip.active{
  border-color: rgba(37,99,235,.24);
  background: rgba(37,99,235,.10);
  color: var(--text);
}

.table-wrap{
  margin-top: 12px;
  border:1px solid var(--line);
  border-radius: 14px;
  overflow:auto;
  background:#fff;
  box-shadow: var(--shadow);
}
.table{
  margin:0;
  border:none;
  min-width: 860px;
}
.table th, .table td{
  white-space: nowrap;
}
.table thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  cursor: pointer;
  background: rgba(246,247,251,.95);
  backdrop-filter: blur(8px);
}
.table tbody tr:hover td{
  background: rgba(37,99,235,.04);
}
.th-sort{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.sort-ind{
  width:0; height:0;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  opacity:.55;
}
.sort-ind.up{border-bottom:7px solid rgba(15,23,42,.55)}
.sort-ind.down{border-top:7px solid rgba(15,23,42,.55)}
.sort-ind.off{border-top:7px solid rgba(15,23,42,.25)}
.pager{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  margin-top: 12px;
  flex-wrap:wrap;
}
.pager .muted{font-size:12px}
.pager .btn{
  padding:10px 12px;
  border-radius: 12px;
}


/* Modern hero split */
.hero-split{padding:42px 0 18px}
.hero-split-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 34px;
  align-items: center;
}
.hero-left .h1{font-size:44px; line-height:1.04; letter-spacing:-.6px}
.hero-left .lead{margin-top:14px; font-size:15px; color:var(--muted); max-width: 56ch}
.hero-media{
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.70);
  box-shadow: 0 24px 80px rgba(15,23,42,.10);
  overflow:hidden;
}
.hero-media img{
  width:100%;
  height: 420px;
  object-fit: cover;
  object-position: 80% 90%;
  display:block;
}
@media (max-width: 920px){
  .hero-split{padding:26px 0 12px}
  .hero-split-grid{grid-template-columns:1fr; gap: 18px}
  .hero-left{text-align:left}
  .hero-left .h1{font-size:34px}
  .hero-media img{height: 260px; object-position: 65% 80%}
}

/* Mobile navigation */
.nav-toggle{
  display:none;
  width:42px; height:42px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.75);
  box-shadow: var(--shadow2);
  align-items:center; justify-content:center;
  gap:4px;
}
.nav-toggle span{
  display:block;
  width:18px; height:2px;
  background: rgba(15,23,42,.72);
  border-radius: 999px;
}
@media (max-width: 920px){
  .nav{position:relative}
  .nav-toggle{display:flex}
  .menu{
    position:absolute;
    top: 56px;
    left: 0;
    right: 0;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap: 6px;
    padding: 10px;
    border-radius: 18px;
    border:1px solid var(--line);
    background: rgba(255,255,255,.92);
    box-shadow: 0 18px 60px rgba(15,23,42,.12);
    backdrop-filter: blur(12px);
  }
  body.nav-open .menu{display:flex}
  .menu a{border-radius: 14px; text-align:left}
  .menu a.pill{align-self:flex-start}
}
/* V2: Process timeline */
.timeline{margin-top:24px; display:flex; flex-direction:column; gap:14px;}
.timeline-step{display:grid; grid-template-columns:72px 1fr; gap:14px; align-items:stretch;}
.timeline-badge{width:72px; height:72px; border-radius:16px; display:flex; align-items:center; justify-content:center;
  font-weight:700; color:rgba(37,99,235,.95); background:rgba(37,99,235,.10); border:1px solid rgba(37,99,235,.20);}
.timeline-card{background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:18px; padding:18px 18px;
  box-shadow:0 10px 30px rgba(0,0,0,.04);}
.timeline-card h3{font-size:16px; margin:0; color:#0f172a;}
.timeline-card p{margin:8px 0 0; color:#64748b; line-height:1.7;}
@media (max-width: 720px){
  .timeline-step{grid-template-columns:56px 1fr;}
  .timeline-badge{width:56px; height:56px; border-radius:14px;}
}


/* =======================
   V3 Modern polish
   ======================= */
:root{
  --bg0: #f7f9ff;
  --bg1: #eef3ff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --ring: rgba(37,99,235,.28);
  --shadow-sm: 0 6px 18px rgba(15,23,42,.06);
  --shadow-md: 0 18px 48px rgba(15,23,42,.10);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

html{scroll-behavior:smooth;}
body{
  background: radial-gradient(1200px 600px at 20% -10%, rgba(37,99,235,.08), transparent 60%),
              radial-gradient(900px 520px at 85% 0%, rgba(16,185,129,.08), transparent 60%),
              linear-gradient(180deg, var(--bg0), #ffffff 52%, var(--bg0));
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container{max-width:1180px;}
a{transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;}

.h1, h1{letter-spacing:-.02em;}
h1{
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
}
h2{font-size: clamp(20px, 2.1vw, 28px); letter-spacing:-.01em;}
p{color: var(--muted);}

.btn, .button, button{
  border-radius: 999px;
}
.btn-primary, .btn.primary, .btn--primary{
  box-shadow: 0 10px 30px rgba(37,99,235,.16);
}
.btn:focus, button:focus, input:focus{
  outline: none;
  box-shadow: 0 0 0 4px var(--ring);
}

/* Cards: lighter, consistent */
.card, .panel, .glass, .section-card, .box{
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-sm) !important;
  border: 1px solid rgba(15,23,42,.06) !important;
  background: rgba(255,255,255,.86) !important;
  backdrop-filter: blur(10px);
}

/* Scroll reveal */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
  will-change: opacity, transform;
}
.reveal.is-in{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  .reveal{opacity:1; transform:none; transition:none;}
}

/* Nav overlay (mobile) */
.nav-toggle{
  display:none;
  width:42px;
  height:42px;
  border-radius: 12px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  align-items:center;
  justify-content:center;
  gap:5px;
  flex-direction: column; /* IMPORTANT: fixes “small rectangle” */
}
.nav-toggle span{
  width:18px;
  height:2px;
  background: rgba(15,23,42,.70);
  border-radius: 999px;
  display:block;
}
.nav-links{
  display:flex;
  gap:18px;
  align-items:center;
}
@media (max-width: 860px){
  .nav-links{display:none;}
  .nav-toggle{display:flex;}
}

/* Overlay panel */
.nav-overlay{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.36);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 9999;
}
.nav-overlay.open{
  opacity: 1;
  pointer-events: auto;
}
.nav-drawer{
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(560px, calc(100vw - 28px));
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  padding: 14px;
  transition: transform .22s ease;
}
.nav-overlay.open .nav-drawer{transform: translateX(-50%) translateY(0);}

.nav-drawer a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px;
  border-radius: 16px;
  text-decoration:none;
  color: var(--text);
  font-weight: 600;
}
.nav-drawer a:hover{
  background: rgba(37,99,235,.08);
  color: var(--primary);
}
.nav-drawer .sub{
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.nav-drawer .top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 6px 8px 10px;
}
.nav-drawer .close{
  width:40px;
  height:40px;
  border-radius: 12px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.75);
}

/* Hero image polish (if using <img>) */
.hero img, .hero-modern img, .hero-media img{
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15,23,42,.06);
}

/* Table polish (inventory) */
table{border-collapse:separate !important; border-spacing:0 !important;}
thead th{position:sticky; top:0; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); z-index: 2;}
tbody tr:hover{background: rgba(37,99,235,.04);}

/* V3_1_HERO_MEDIA */
.hero-media{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(800px 420px at 20% 10%, rgba(37,99,235,.18), transparent 60%),
              radial-gradient(760px 420px at 90% 20%, rgba(16,185,129,.16), transparent 60%),
              linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.70));
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: var(--shadow-md);
  padding: 14px;
}
.hero-media::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(255,255,255,.00) 0%, rgba(255,255,255,.10) 40%, rgba(255,255,255,.18) 100%);
  pointer-events:none;
}
.hero-media img{
  width: 100%;
  height: auto;
  display:block;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: 0 18px 50px rgba(15,23,42,.12);
  object-fit: cover;
  aspect-ratio: 16/10;
}
@media(max-width: 900px){
  .hero-media{padding: 10px;}
  .hero-media img{aspect-ratio: 16/11;}
}

/* ===============================
   V4_QIANPENG_IDEAS
   Modern light system + components
   =============================== */
:root{
  --bg0:#f6f8ff; --bg1:#ffffff; --card:rgba(255,255,255,.86);
  --text:#0f172a; --muted:#64748b; --muted2:#94a3b8;
  --primary:#2563eb; --primary2:#1d4ed8; --ring:rgba(37,99,235,.26);
  --stroke:rgba(15,23,42,.08); --stroke2:rgba(15,23,42,.06);
  --shadow-sm:0 10px 26px rgba(15,23,42,.06); --shadow-md:0 22px 70px rgba(15,23,42,.11);
  --radius-xl:24px; --radius-lg:18px; --radius-md:14px;
  --maxw:1180px; --gap:18px;
}
html{scroll-behavior:smooth}
body{
  background:
    radial-gradient(1200px 640px at 18% -12%, rgba(37,99,235,.10), transparent 62%),
    radial-gradient(980px 560px at 88% 0%, rgba(16,185,129,.09), transparent 58%),
    linear-gradient(180deg, var(--bg0), #fff 52%, var(--bg0));
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.container{width:min(var(--maxw), calc(100% - 40px)); margin:0 auto;}
.section{padding:64px 0;}
@media(max-width:980px){.section{padding:46px 0;}}
.card{
  background:var(--card);
  border:1px solid var(--stroke2);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow-sm);
  backdrop-filter:blur(10px);
}
.card.pad{padding:22px;}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 18px;border-radius:999px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.70);
  backdrop-filter:blur(10px);
  color:rgba(15,23,42,.86);
  font-weight:800;font-size:14px;
  box-shadow:0 8px 24px rgba(15,23,42,.06);
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover{transform:translateY(-1px);box-shadow:0 16px 40px rgba(15,23,42,.10)}
.btn.primary{
  border-color:rgba(37,99,235,.20);
  background:linear-gradient(180deg, rgba(37,99,235,.95), rgba(29,78,216,.98));
  color:#fff;
  box-shadow:0 16px 46px rgba(37,99,235,.20);
}
.btn.primary:hover{box-shadow:0 24px 60px rgba(37,99,235,.25)}
.btn.ghost{background:rgba(255,255,255,.56)}
.btn:focus{outline:none;box-shadow:0 0 0 4px var(--ring), 0 16px 46px rgba(15,23,42,.10)}

header{
  position:sticky; top:0; z-index:80;
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--stroke2);
}
.nav{display:flex; align-items:center; justify-content:space-between; padding:14px 0;}
.brand{display:flex; align-items:center; gap:12px; min-width:200px;}
.brand img{width:38px;height:38px;border-radius:12px;border:1px solid var(--stroke2);background:#fff;object-fit:contain}
.brand strong{font-size:16px; letter-spacing:-.01em}
.nav-links{display:flex; align-items:center; gap:12px;}
.nav-links a{
  padding:9px 12px; border-radius:999px;
  color:rgba(15,23,42,.78);
  font-weight:800; font-size:14px;
  border:1px solid transparent;
}
.nav-links a:hover{background:rgba(37,99,235,.07);border-color:rgba(37,99,235,.10);color:var(--primary2)}
.nav-links a.is-active{background:rgba(37,99,235,.10);border-color:rgba(37,99,235,.18);color:var(--primary2)}

/* Mobile nav (drawer) */
.nav-toggle{display:none; width:44px; height:44px; border-radius:14px; border:1px solid var(--stroke2);
  background:rgba(255,255,255,.70); backdrop-filter:blur(10px); box-shadow:0 10px 26px rgba(15,23,42,.08);
  align-items:center; justify-content:center; cursor:pointer;
}
.nav-toggle svg{width:18px;height:18px;color:rgba(15,23,42,.78)}
.drawer-backdrop{position:fixed; inset:0; background:rgba(15,23,42,.28); opacity:0; pointer-events:none; transition:opacity .18s ease; z-index:90}
.drawer{position:fixed; top:12px; right:12px; width:min(340px, calc(100% - 24px)); border-radius:22px;
  border:1px solid var(--stroke2); background:rgba(255,255,255,.86); backdrop-filter:blur(14px);
  box-shadow:0 30px 90px rgba(15,23,42,.18);
  transform:translateY(-8px) scale(.98); opacity:0; pointer-events:none; transition:transform .18s ease, opacity .18s ease; z-index:95;
  padding:14px;
}
.drawer .row{display:flex; justify-content:space-between; align-items:center; gap:12px; padding:6px 4px 12px 4px; border-bottom:1px solid rgba(15,23,42,.06)}
.drawer .row strong{font-size:14px}
.drawer .close{width:40px;height:40px;border-radius:14px;border:1px solid var(--stroke2);background:rgba(255,255,255,.75);display:flex;align-items:center;justify-content:center;cursor:pointer}
.drawer .close svg{width:16px;height:16px}
.drawer nav{display:flex; flex-direction:column; gap:8px; padding-top:12px}
.drawer nav a{padding:12px 12px; border-radius:16px; border:1px solid transparent; font-weight:900; color:rgba(15,23,42,.80)}
.drawer nav a:hover{background:rgba(37,99,235,.07);border-color:rgba(37,99,235,.10);color:var(--primary2)}
.drawer nav a.is-active{background:rgba(37,99,235,.10);border-color:rgba(37,99,235,.18);color:var(--primary2)}
.drawer-actions{display:flex; gap:10px; flex-wrap:wrap; padding-top:12px}
body.drawer-open .drawer-backdrop{opacity:1; pointer-events:auto}
body.drawer-open .drawer{opacity:1; pointer-events:auto; transform:translateY(0) scale(1)}
@media(max-width:860px){.nav-links{display:none}.nav-toggle{display:inline-flex}}

/* Back to top */
.backtop{
  position:fixed; right:18px; bottom:18px;
  width:44px; height:44px; border-radius:16px;
  border:1px solid var(--stroke2);
  background:rgba(255,255,255,.72);
  backdrop-filter:blur(10px);
  box-shadow:var(--shadow-md);
  display:flex; align-items:center; justify-content:center;
  opacity:0; transform:translateY(8px);
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease;
  z-index:60;
}
.backtop.show{opacity:1;transform:translateY(0);pointer-events:auto}
.backtop svg{width:18px;height:18px;color:rgba(15,23,42,.78)}
/* Hide any subtitle noise */
.page-title-sub, .sub-title, .subtitle, .hero-subtitle{display:none!important;}


.notice{padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.72);color:var(--muted);font-size:13px;line-height:1.7}
.hero-split{padding:34px 0 18px}.hero-split-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:16px;align-items:stretch}@media (max-width:920px){.hero-split-grid{grid-template-columns:1fr}}
.hero-left,.hero-right .hero-media,.card.content,.feature,.banner,.inv-shell{background:var(--card);border:1px solid var(--line);border-radius:var(--radius2);box-shadow:var(--shadow)}
.hero-left{padding:26px}.hero-right .hero-media{overflow:hidden;min-height:340px;background:linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.02)), url('/images/background.webp');background-size:cover;background-position:center}
.hero-right .hero-media img{width:100%;height:100%;object-fit:cover;display:none}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.input,.select,textarea{width:100%;padding:12px 14px;border-radius:14px;border:1px solid var(--line);background:#fff;color:var(--text);font:inherit;box-shadow:var(--shadow2)}
textarea{min-height:140px;resize:vertical}label{display:block;margin:0 0 8px;font-size:13px;color:var(--muted)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}@media (max-width:920px){.form-grid{grid-template-columns:1fr}}
.stack{display:grid;gap:14px}
.inv-shell{padding:18px}.inv-toolbar{display:grid;grid-template-columns:1.2fr .7fr .4fr auto;gap:12px;align-items:end;margin:14px 0}@media(max-width:920px){.inv-toolbar{grid-template-columns:1fr 1fr}.inv-toolbar .wide{grid-column:1 / -1}}
.inv-meta{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.inv-meta .tag{background:#fff}
.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:16px}@media(max-width:920px){.kpi-grid{grid-template-columns:repeat(2,1fr)}}
.kpi{padding:16px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.72)}.kpi .label{font-size:12px;color:var(--muted2);text-transform:uppercase;letter-spacing:.08em}.kpi .value{font-size:28px;font-weight:700;margin-top:8px}
.faq details{padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.72)}.faq details+details{margin-top:10px}.faq summary{cursor:pointer;font-weight:600}.faq p{color:var(--muted);font-size:13px;line-height:1.75}
.page-hero{padding:28px 0 8px}.page-hero .card{padding:22px}
.footer-grid{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}.footer{padding:22px 0 38px;border-top:1px solid var(--line);margin-top:28px}
.small-links{display:flex;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:13px}
.nav-overlay{position:fixed;inset:0;background:rgba(15,23,42,.35);opacity:0;visibility:hidden;transition:.2s;z-index:90}.nav-overlay.open{opacity:1;visibility:visible}.nav-drawer{position:absolute;right:16px;top:16px;width:min(360px,calc(100vw - 32px));background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:14px}.nav-drawer .top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.nav-drawer .close{border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer}.nav-drawer a{display:block;padding:12px 10px;border-radius:14px}.nav-drawer a:hover{background:rgba(15,23,42,.03)}.nav-drawer .sub{display:block;color:var(--muted2);font-size:12px;margin-top:2px}
.nav-toggle{display:none;width:44px;height:44px;border-radius:14px;border:1px solid var(--line);background:#fff;box-shadow:var(--shadow2);align-items:center;justify-content:center;flex-direction:column;gap:4px;cursor:pointer}.nav-toggle span{display:block;width:18px;height:2px;background:#334155;border-radius:999px}@media(max-width:920px){.menu{display:none}.nav-toggle{display:flex}.brand{min-width:unset}.brand .name span{display:none}}
.inventory-table td,.inventory-table th{text-align:left;vertical-align:top}.inventory-table th{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted2);background:rgba(248,250,252,.9)}
.inventory-empty{padding:16px;border:1px dashed var(--line);border-radius:14px;color:var(--muted)}


/* WingCore logo refinement */
.brand .logo{display:flex;align-items:center;justify-content:center;overflow:hidden;padding:6px}
.brand .logo img,.brand img{width:100%;height:100%;object-fit:contain;border:none;background:transparent;border-radius:0}

/* Inventory page: keep one KPI row only */
.page-hero .card .lead{max-width:900px}
[data-inventory] > .toolbar{margin-top:0}
