/* ===================================================
   SYSNET GLOBAL TECHNOLOGIES — design tokens
   =================================================== */
:root{
  --bg:            #101214;
  --surface:       #1A1D21;
  --surface-2:     #202429;
  --border:        #2A2F36;
  --text:          #E7E9EC;
  --text-muted:    #8A9099;
  --accent:        #4FA3FF;
  --accent-dim:    #294A6B;
  --copper:        #E8A33D;
  --copper-dim:    #4A3A22;
  --danger:        #E8613D;
  --radius-sm:     4px;
  --radius-md:     8px;
  --font-display:  'Space Grotesk', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
  --wrap:          1240px;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer;}
h1,h2,h3,h4{font-family:var(--font-display);font-weight:600;margin:0;letter-spacing:-0.01em;}
p{margin:0;}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 28px;}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *,*::before,*::after{animation-duration:0.001ms !important;transition-duration:0.001ms !important;}
}

:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}

.eyebrow{
  font-family:var(--font-mono);
  font-size:12px;
  letter-spacing:0.08em;
  color:var(--copper);
  margin:0 0 12px;
}

/* ===================== util bar / header ===================== */
.util-bar{background:#0A0B0D;border-bottom:1px solid var(--border);}
.util-bar__inner{
  display:flex;justify-content:space-between;align-items:center;
  font-family:var(--font-mono);font-size:11px;color:var(--text-muted);
  padding:7px 28px;letter-spacing:0.03em;
}
.util-bar__sep{color:#565c65;}

.site-header{
  position:sticky;top:0;z-index:40;
  background:rgba(16,18,20,0.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border);
}
.site-header__inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 28px;gap:24px;
}
.logo{display:flex;align-items:center;gap:10px;color:var(--text);}
.logo__mark{color:var(--accent);display:flex;}
.logo__text{
  font-family:var(--font-display);font-weight:700;font-size:18px;
  letter-spacing:0.02em;line-height:1.1;
}
.logo__text-sub{
  display:block;font-family:var(--font-mono);font-weight:400;
  font-size:9.5px;letter-spacing:0.14em;color:var(--text-muted);margin-top:2px;
}
.main-nav{display:flex;gap:32px;font-size:14px;font-weight:500;}
.main-nav a{color:var(--text-muted);transition:color .15s;}
.main-nav a:hover{color:var(--text);}
.header-actions{display:flex;align-items:center;gap:8px;}
.icon-btn{
  width:38px;height:38px;display:flex;align-items:center;justify-content:center;
  border-radius:var(--radius-sm);color:var(--text);position:relative;
  transition:background .15s;
}
.icon-btn:hover{background:var(--surface-2);}
.cart-count{
  position:absolute;top:2px;right:2px;background:var(--copper);color:#161005;
  font-family:var(--font-mono);font-size:10px;font-weight:600;
  min-width:16px;height:16px;border-radius:8px;display:flex;align-items:center;justify-content:center;
  padding:0 3px;
}
.search-panel{
  max-height:0;overflow:hidden;border-bottom:0 solid var(--border);
  transition:max-height .2s ease, padding .2s ease;
}
.search-panel.is-open{max-height:80px;padding:14px 0;border-bottom-width:1px;}
#searchInput{
  width:100%;background:var(--surface);border:1px solid var(--border);
  color:var(--text);font-family:var(--font-mono);font-size:14px;
  padding:12px 16px;border-radius:var(--radius-sm);
}
#searchInput:focus{border-color:var(--accent);}

/* ===================== buttons ===================== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:13px 22px;border-radius:var(--radius-sm);font-weight:600;font-size:14.5px;
  transition:transform .12s ease, background .15s, border-color .15s;
  border:1px solid transparent;
}
.btn:active{transform:translateY(1px);}
.btn--primary{background:var(--accent);color:#0A1522;}
.btn--primary:hover{background:#6FB4FF;}
.btn--ghost{border-color:var(--border);color:var(--text);}
.btn--ghost:hover{border-color:var(--accent);color:var(--accent);}
.btn--full{width:100%;}
.btn--small{padding:9px 14px;font-size:13px;}

/* ===================== hero ===================== */
.hero{position:relative;overflow:hidden;border-bottom:1px solid var(--border);}
.hero__grid{
  position:absolute;inset:0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size:44px 44px;
  opacity:0.35;
  mask-image:radial-gradient(ellipse at 30% 20%, black 40%, transparent 78%);
}
.hero__inner{
  position:relative;display:grid;grid-template-columns:1.05fr 0.95fr;
  gap:56px;align-items:center;padding:76px 28px 88px;
}
.hero__copy h1{font-size:clamp(34px,4.4vw,54px);line-height:1.05;margin-bottom:20px;}
.hero__copy h1 span{color:var(--accent);}
.hero__lede{color:var(--text-muted);font-size:16.5px;max-width:46ch;margin-bottom:32px;}
.hero__cta{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:48px;}
.hero__stats{display:flex;gap:36px;margin:0;padding:22px 0 0;border-top:1px solid var(--border);}
.hero__stats dt{font-family:var(--font-mono);font-size:11px;color:var(--text-muted);letter-spacing:0.04em;margin-bottom:6px;}
.hero__stats dd{margin:0;font-family:var(--font-display);font-size:20px;font-weight:600;}
.hero__panel{position:relative;}
.schematic{width:100%;height:auto;}
.s-label{
  font-family:var(--font-mono);font-size:10.5px;fill:#8A9099;letter-spacing:0.02em;
}

@media (max-width:900px){
  .hero__inner{grid-template-columns:1fr;padding:52px 20px 56px;}
  .hero__panel{order:-1;max-width:340px;margin:0 auto;}
  .main-nav{display:none;}
}

/* ===================== section shell ===================== */
section{padding:88px 0;}
.section-head{max-width:640px;margin-bottom:44px;}
.section-head--row{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;max-width:none;flex-wrap:wrap;}
.section-head h2{font-size:clamp(24px,3vw,32px);margin-bottom:0;}
.section-lede{color:var(--text-muted);margin-top:12px;max-width:56ch;}

/* ===================== categories ===================== */
.categories{border-bottom:1px solid var(--border);background:var(--surface);}
.cat-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px;
}
.cat-card{
  border:1px solid var(--border);border-radius:var(--radius-md);
  padding:22px 18px;background:var(--bg);
  transition:border-color .15s, transform .15s;
  display:flex;flex-direction:column;gap:14px;cursor:pointer;
}
.cat-card:hover{border-color:var(--accent);transform:translateY(-2px);}
.cat-card__icon{color:var(--accent);}
.cat-card__count{font-family:var(--font-mono);font-size:12px;color:var(--text-muted);}
.cat-card h3{font-size:15.5px;font-weight:600;}

/* ===================== catalog / filters ===================== */
.filter-row{display:flex;gap:8px;flex-wrap:wrap;}
.filter-pill{
  font-family:var(--font-mono);font-size:12.5px;padding:8px 14px;
  border:1px solid var(--border);border-radius:20px;color:var(--text-muted);
  transition:all .15s;
}
.filter-pill:hover{color:var(--text);border-color:#454c55;}
.filter-pill.is-active{background:var(--accent);border-color:var(--accent);color:#0A1522;}

.product-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(258px,1fr));gap:18px;
}
.product-card{
  position:relative;border:1px solid var(--border);border-radius:var(--radius-md);
  background:var(--surface);display:flex;flex-direction:column;overflow:hidden;
  transition:border-color .15s, transform .15s;
}
.product-card:hover{border-color:var(--accent);transform:translateY(-3px);}
.product-card__media{
  position:relative;aspect-ratio:4/3;background:var(--surface-2);
  display:flex;align-items:center;justify-content:center;
  border-bottom:1px solid var(--border);
}
.product-card__media svg{width:58%;height:58%;color:var(--accent);}
.product-card__corner{position:absolute;width:12px;height:12px;border-color:var(--copper);opacity:0.8;}
.product-card__corner{border-style:solid;border-width:0;}
.product-card__corner.tl{top:8px;left:8px;border-top-width:2px;border-left-width:2px;}
.product-card__corner.br{bottom:8px;right:8px;border-bottom-width:2px;border-right-width:2px;}
.product-card__stock{
  position:absolute;top:8px;right:8px;font-family:var(--font-mono);font-size:10px;
  padding:3px 7px;border-radius:3px;background:rgba(16,18,20,0.85);color:#7BD88F;
  border:1px solid rgba(123,216,143,0.35);
}
.product-card__stock.low{color:var(--copper);border-color:rgba(232,163,61,0.35);}
.product-card__body{padding:16px;display:flex;flex-direction:column;gap:8px;flex:1;}
.product-card__sku{font-family:var(--font-mono);font-size:10.5px;color:var(--text-muted);letter-spacing:0.04em;}
.product-card__name{font-family:var(--font-display);font-size:15.5px;font-weight:600;line-height:1.3;}
.product-card__spec{font-family:var(--font-mono);font-size:11.5px;color:var(--text-muted);}
.product-card__row{
  margin-top:auto;display:flex;align-items:center;justify-content:space-between;
  padding-top:12px;
}
.product-card__price{font-family:var(--font-mono);font-size:15.5px;font-weight:600;color:var(--text);}
.product-card__add{
  width:34px;height:34px;border:1px solid var(--border);border-radius:var(--radius-sm);
  display:flex;align-items:center;justify-content:center;transition:all .15s;
}
.product-card__add:hover{background:var(--accent);border-color:var(--accent);color:#0A1522;}

/* ===================== build guides ===================== */
.builds{border-top:1px solid var(--border);border-bottom:1px solid var(--border);background:var(--surface);}
.builds-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;}
.build-card{
  border:1px solid var(--border);border-radius:var(--radius-md);padding:26px;
  background:var(--bg);display:flex;flex-direction:column;gap:10px;
}
.build-card--accent{border-color:var(--accent);position:relative;}
.build-card__tier{font-family:var(--font-mono);font-size:11px;color:var(--copper);letter-spacing:0.08em;}
.build-card h3{font-size:19px;}
.build-card__price{font-family:var(--font-mono);font-size:14.5px;color:var(--accent);}
.build-card p:last-child{color:var(--text-muted);font-size:14px;}

@media (max-width:820px){.builds-grid{grid-template-columns:1fr;}}

/* ===================== trust strip ===================== */
.trust__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:32px;}
.trust h3{font-size:16px;margin-bottom:8px;}
.trust p{color:var(--text-muted);font-size:14px;}
@media (max-width:820px){.trust__grid{grid-template-columns:1fr;gap:24px;}}

/* ===================== contact ===================== */
.contact{background:linear-gradient(135deg, var(--accent-dim), var(--bg) 60%);}
.contact__inner{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;}
.contact h2{font-size:clamp(22px,3vw,30px);margin:6px 0 8px;}
.contact p{color:var(--text-muted);max-width:44ch;}

/* ===================== footer ===================== */
.site-footer{border-top:1px solid var(--border);padding:56px 0 0;}
.site-footer__inner{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:32px;padding-bottom:40px;}
.footer-brand p{color:var(--text-muted);font-size:13px;margin-top:10px;}
.footer-col h4{font-size:12px;color:var(--text-muted);letter-spacing:0.06em;margin-bottom:14px;text-transform:uppercase;}
.footer-col{display:flex;flex-direction:column;gap:10px;font-size:14px;}
.footer-col a:hover{color:var(--accent);}
.footer-legal{
  border-top:1px solid var(--border);padding:18px 28px;font-family:var(--font-mono);
  font-size:11.5px;color:var(--text-muted);
}
@media (max-width:820px){.site-footer__inner{grid-template-columns:1fr 1fr;}}

/* ===================== cart drawer ===================== */
.drawer-overlay,.modal-overlay{
  position:fixed;inset:0;background:rgba(6,7,8,0.6);
  opacity:0;pointer-events:none;transition:opacity .18s;z-index:50;
}
.drawer-overlay.is-open,.modal-overlay.is-open{opacity:1;pointer-events:auto;}
.cart-drawer{
  position:fixed;top:0;right:0;bottom:0;width:min(400px,92vw);
  background:var(--surface);border-left:1px solid var(--border);
  z-index:60;display:flex;flex-direction:column;
  transform:translateX(100%);transition:transform .22s ease;
}
.cart-drawer.is-open{transform:translateX(0);}
.cart-drawer__head{
  display:flex;justify-content:space-between;align-items:center;
  padding:20px 20px;border-bottom:1px solid var(--border);
}
.cart-drawer__head h3{font-size:17px;}
.cart-drawer__items{flex:1;overflow-y:auto;padding:12px 20px;display:flex;flex-direction:column;gap:14px;}
.cart-empty{color:var(--text-muted);font-size:14px;padding:40px 0;text-align:center;}
.cart-item{display:flex;gap:12px;border-bottom:1px solid var(--border);padding-bottom:14px;}
.cart-item__media{
  width:56px;height:56px;border-radius:var(--radius-sm);background:var(--surface-2);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;border:1px solid var(--border);
}
.cart-item__media svg{width:60%;height:60%;color:var(--accent);}
.cart-item__body{flex:1;display:flex;flex-direction:column;gap:4px;}
.cart-item__name{font-size:13.5px;font-weight:600;}
.cart-item__price{font-family:var(--font-mono);font-size:12.5px;color:var(--text-muted);}
.cart-item__controls{display:flex;align-items:center;gap:10px;margin-top:4px;}
.qty-btn{
  width:22px;height:22px;border:1px solid var(--border);border-radius:3px;
  display:flex;align-items:center;justify-content:center;font-size:13px;
}
.qty-btn:hover{border-color:var(--accent);}
.cart-item__remove{font-family:var(--font-mono);font-size:11px;color:var(--danger);margin-left:auto;}
.cart-drawer__footer{border-top:1px solid var(--border);padding:18px 20px 22px;display:flex;flex-direction:column;gap:12px;}
.cart-drawer__total{display:flex;justify-content:space-between;font-family:var(--font-mono);font-size:15px;font-weight:600;}
.cart-drawer__note{font-size:11.5px;color:var(--text-muted);line-height:1.5;}

/* ===================== product modal ===================== */
.product-modal{
  position:fixed;top:50%;left:50%;transform:translate(-50%,-46%);
  width:min(560px,92vw);max-height:86vh;overflow-y:auto;
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);
  padding:26px;transition:transform .18s ease;
}
.modal-overlay.is-open .product-modal{transform:translate(-50%,-50%);}
.modal-close{position:absolute;top:16px;right:16px;}
.modal-media{
  aspect-ratio:16/9;background:var(--surface-2);border:1px solid var(--border);
  border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;margin-bottom:20px;
}
.modal-media svg{width:34%;color:var(--accent);}
.modal-sku{font-family:var(--font-mono);font-size:11px;color:var(--text-muted);margin-bottom:6px;}
.modal-title{font-size:22px;margin-bottom:10px;}
.modal-desc{color:var(--text-muted);font-size:14.5px;margin-bottom:18px;}
.modal-specs{
  display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;
  font-family:var(--font-mono);font-size:12.5px;padding:16px;background:var(--bg);
  border:1px solid var(--border);border-radius:var(--radius-sm);margin-bottom:20px;
}
.modal-specs dt{color:var(--text-muted);}
.modal-specs dd{margin:0;text-align:right;}
.modal-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;}
.modal-price{font-family:var(--font-mono);font-size:20px;font-weight:600;}
