/* ============================================
   BEZALEL TECHNOLOGIES — Design tokens
   ============================================ */
:root{
  --bg: #0D1117;
  --bg-soft: #131A24;
  --panel: #F4F5F7;
  --panel-line: #DFE2E7;
  --line: rgba(255,255,255,.09);
  --teal: #2FB6C4;
  --purple: #6E4FC9;
  --ink: #10131A;
  --ink-light: #E7EAF0;
  --ink-dim: #8B96A6;

  --display: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
  --ease: cubic-bezier(.22,.68,.2,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--body);
  color:var(--ink-light);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3{ font-family:var(--display); margin:0; font-weight:600; }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }
:focus-visible{ outline:2px solid var(--teal); outline-offset:3px; }

.section-inner{ max-width:var(--container); margin:0 auto; padding:0 32px; }

.eyebrow{ font-family:var(--mono); font-size:12px; letter-spacing:.14em; color:var(--teal); margin:0 0 18px; }
.eyebrow-dark{ color:var(--purple); }

.accent-grad{
  background:linear-gradient(90deg, var(--teal), var(--purple));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* ============================================
   GROUP BADGE
   ============================================ */
.group-badge{
  position:fixed; top:14px; right:16px; z-index:110;
}
.group-badge a{
  font-family:var(--mono); font-size:11px; letter-spacing:.04em;
  background:rgba(244,245,247,.95); color:var(--ink);
  padding:6px 12px; border-radius:20px;
  transition:transform .2s var(--ease);
}
.group-badge a:hover{ transform:translateY(-1px); }

/* ============================================
   NAV
   ============================================ */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:rgba(244,245,247,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(16,19,26,.08);
}
.nav-inner{
  max-width:var(--container); margin:0 auto; padding:14px 32px;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.nav-logo{ height:30px; width:auto; }
.nav-links{ display:flex; gap:32px; }
.nav-links a{
  font-family:var(--mono); font-size:13px; color:var(--ink); opacity:.7;
  transition:opacity .2s var(--ease);
}
.nav-links a:hover{ opacity:1; }
.nav-right{ display:flex; align-items:center; gap:14px; }
.quote-btn{
  display:flex; align-items:center; gap:8px;
  background:var(--ink); color:#fff;
  border:0; padding:10px 16px; border-radius:4px;
  font-family:var(--mono); font-size:12.5px; letter-spacing:.02em;
  transition:transform .2s var(--ease), background .2s var(--ease);
}
.quote-btn:hover{ transform:translateY(-1px); background:#000; }
.quote-btn-label{ display:inline; }
@media (max-width:640px){
  .quote-btn{ padding:9px 12px; }
  .quote-btn-label{ display:none; }
}
.quote-count{
  background:var(--teal); color:#04252a; border-radius:50%;
  min-width:18px; height:18px; display:inline-flex; align-items:center; justify-content:center;
  font-size:10.5px; font-weight:700; padding:0 2px;
}
.nav-toggle{
  display:none; background:none; border:0; cursor:pointer;
  width:30px; height:22px; flex-direction:column; justify-content:space-between; padding:0;
}
.nav-toggle span{ display:block; height:2px; background:var(--ink); border-radius:2px; }
.nav-mobile{ display:none; flex-direction:column; background:var(--panel); padding:8px 32px 20px; }
.nav-mobile a{ padding:12px 0; font-family:var(--mono); font-size:14px; color:var(--ink); border-top:1px solid var(--panel-line); }
.nav.open .nav-mobile{ display:flex; }

/* ============================================
   HERO
   ============================================ */
.hero{
  position:relative;
  min-height:92vh;
  display:flex; align-items:center;
  background:radial-gradient(120% 100% at 85% 10%, #182233 0%, var(--bg) 55%);
  padding:150px 32px 90px;
  overflow:hidden;
}
.circuit-grid{
  position:absolute; inset:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(47,182,196,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,182,196,.09) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, black 30%, transparent 75%);
}
.circuit-grid.dark{
  background-image:
    linear-gradient(rgba(110,79,201,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,79,201,.10) 1px, transparent 1px);
}
.hero-inner{ position:relative; max-width:760px; }
.hero-title{
  font-size:clamp(38px, 6.4vw, 68px);
  line-height:1.08;
  letter-spacing:-.01em;
  color:#F4F5F7;
}
.hero-sub{
  margin-top:26px; max-width:560px; font-size:18px; line-height:1.65; color:var(--ink-dim);
}
.hero-cta{ margin-top:38px; display:flex; gap:16px; flex-wrap:wrap; }

.btn{
  font-family:var(--mono); font-size:13px; letter-spacing:.03em;
  padding:14px 26px; border-radius:4px; display:inline-block;
  transition:transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary{ background:linear-gradient(90deg, var(--teal), var(--purple)); color:#0A0D12; font-weight:700; }
.btn-primary:hover{ transform:translateY(-2px); filter:brightness(1.08); }
.btn-ghost{ border:1px solid rgba(231,234,240,.28); color:#F4F5F7; }
.btn-ghost:hover{ border-color:var(--teal); transform:translateY(-2px); }

.reveal{ opacity:0; transform:translateY(16px); animation:revealUp .75s var(--ease) forwards; animation-delay:calc(var(--d,0) * 100ms); }
.reveal[data-d="0"]{ --d:0; } .reveal[data-d="1"]{ --d:1; } .reveal[data-d="2"]{ --d:2; } .reveal[data-d="3"]{ --d:3; }
@keyframes revealUp{ to{ opacity:1; transform:translateY(0); } }

/* ============================================
   ABOUT STRIP
   ============================================ */
.about-strip{ background:var(--panel); color:var(--ink); padding:88px 0; }
.about-strip-grid{ display:grid; grid-template-columns:320px 1fr; gap:56px; }
.about-strip h2{ font-size:clamp(26px,3vw,34px); max-width:320px; }
.about-cols{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; }
.col-tag{ font-family:var(--mono); font-size:12px; color:var(--purple); display:block; margin-bottom:14px; }
.about-col h3{ font-size:18px; margin-bottom:10px; }
.about-col p{ font-size:14.5px; line-height:1.6; color:#4B5563; }

/* ============================================
   CATALOG
   ============================================ */
.catalog{ background:var(--bg); padding:110px 0; }
.catalog-title{ font-size:clamp(28px,3.4vw,38px); color:#F4F5F7; margin-bottom:14px; }
.catalog-sub{ color:var(--ink-dim); font-size:16px; max-width:600px; line-height:1.6; margin-bottom:40px; }

.filter-row{ display:flex; gap:10px; margin-bottom:40px; flex-wrap:wrap; }
.filter-chip{
  background:transparent; border:1px solid rgba(231,234,240,.22); color:var(--ink-dim);
  font-family:var(--mono); font-size:12.5px; padding:9px 16px; border-radius:20px;
  transition:all .2s var(--ease);
}
.filter-chip:hover{ border-color:var(--teal); color:#F4F5F7; }
.filter-chip.active{ background:#F4F5F7; color:var(--ink); border-color:#F4F5F7; }

.product-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; }

.product-card{
  background:var(--panel); color:var(--ink);
  border:1px solid var(--panel-line);
  border-radius:6px;
  padding:26px 24px 24px;
  display:flex; flex-direction:column;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}
.product-card:hover{ transform:translateY(-5px); box-shadow:0 20px 40px -20px rgba(0,0,0,.5); }
.product-media{
  height:120px; border-radius:4px; margin-bottom:20px;
  display:flex; align-items:center; justify-content:center;
  font-family:var(--mono); font-size:11px; letter-spacing:.08em; color:#fff;
  background:linear-gradient(135deg, var(--teal), var(--purple));
}
.product-cat{ font-family:var(--mono); font-size:10.5px; letter-spacing:.08em; color:#6B7686; margin-bottom:8px; }
.product-card h3{ font-size:17px; margin-bottom:8px; line-height:1.3; }
.product-desc{ font-size:14px; line-height:1.6; color:#4B5563; margin-bottom:18px; flex-grow:1; }
.product-foot{ display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid var(--panel-line); padding-top:16px; }
.product-price{ font-family:var(--mono); font-size:13px; font-weight:600; }
.add-btn{
  background:var(--ink); color:#fff; border:0; padding:8px 14px; border-radius:4px;
  font-family:var(--mono); font-size:12px; transition:background .2s var(--ease), transform .2s var(--ease);
}
.add-btn:hover{ transform:translateY(-1px); }
.add-btn.added{ background:var(--teal); color:#04252a; }

/* ============================================
   CUSTOM DEVELOPMENT
   ============================================ */
.dev{ position:relative; background:var(--bg-soft); padding:110px 0; overflow:hidden; }
.dev-title{ font-size:clamp(28px,3.4vw,38px); color:#F4F5F7; max-width:600px; margin-bottom:14px; }
.dev-sub{ color:var(--ink-dim); font-size:16px; max-width:560px; line-height:1.6; margin-bottom:48px; }
.dev-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-bottom:48px; }
.dev-card{
  border:1px solid var(--line); padding:30px 26px; border-radius:6px;
  background:rgba(255,255,255,.02);
}
.dev-mark{
  font-family:var(--mono); font-size:11px; letter-spacing:.1em; color:var(--teal);
  border:1px solid rgba(47,182,196,.4); padding:4px 8px; width:fit-content; display:block; margin-bottom:18px;
}
.dev-card h3{ font-size:18px; color:#F4F5F7; margin-bottom:10px; }
.dev-card p{ font-size:14.5px; line-height:1.6; color:var(--ink-dim); }

/* ============================================
   FOOTER
   ============================================ */
.footer{ background:#080B10; color:#8B96A6; padding:80px 0 0; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:56px; border-bottom:1px solid var(--line); }
.footer-wordmark{ display:block; font-family:var(--display); font-size:20px; color:#F4F5F7; margin-bottom:12px; }
.footer-wordmark em{ font-style:normal; background:linear-gradient(90deg, var(--teal), var(--purple)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.footer-brand p{ font-family:var(--mono); font-size:13px; color:var(--teal); }
.footer-col h4{ font-family:var(--mono); font-size:12px; letter-spacing:.1em; color:#5B6572; margin-bottom:16px; font-weight:500; }
.footer-col{ display:flex; flex-direction:column; gap:10px; }
.footer-col a{ font-size:14px; transition:color .2s var(--ease); }
.footer-col a:hover{ color:var(--teal); }
.footer-loc{ font-size:14px; color:#8B96A6; }
.footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:24px 32px 28px; font-family:var(--mono); font-size:12px; }

/* ============================================
   QUOTE DRAWER
   ============================================ */
.drawer-overlay{
  position:fixed; inset:0; background:rgba(8,11,16,.6); backdrop-filter:blur(2px);
  opacity:0; pointer-events:none; transition:opacity .3s var(--ease); z-index:200;
}
.drawer-overlay.open{ opacity:1; pointer-events:auto; }
.quote-drawer{
  position:fixed; top:0; right:0; bottom:0; width:400px; max-width:92vw;
  background:var(--panel); color:var(--ink); z-index:201;
  transform:translateX(100%); transition:transform .35s var(--ease);
  display:flex; flex-direction:column;
}
.quote-drawer.open{ transform:translateX(0); }
.drawer-head{ display:flex; align-items:center; justify-content:space-between; padding:22px 24px; border-bottom:1px solid var(--panel-line); }
.drawer-head h3{ font-size:18px; }
.drawer-close{ background:none; border:0; font-size:24px; color:var(--ink); line-height:1; }
.drawer-body{ flex:1; overflow-y:auto; padding:20px 24px; }
.drawer-empty{ font-size:14px; color:#6B7686; line-height:1.6; }
.drawer-items{ display:flex; flex-direction:column; gap:14px; }
.drawer-item{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; padding-bottom:14px; border-bottom:1px solid var(--panel-line); }
.drawer-item-name{ font-size:14px; font-weight:600; margin-bottom:4px; }
.drawer-item-cat{ font-family:var(--mono); font-size:11px; color:#6B7686; }
.qty-row{ display:flex; align-items:center; gap:8px; margin-top:8px; }
.qty-btn{ width:24px; height:24px; border:1px solid var(--panel-line); background:#fff; border-radius:4px; font-size:14px; }
.qty-val{ font-family:var(--mono); font-size:13px; min-width:18px; text-align:center; }
.drawer-remove{ font-family:var(--mono); font-size:11px; color:#B04A3C; background:none; border:0; }
.drawer-foot{ padding:18px 24px 24px; border-top:1px solid var(--panel-line); }
.drawer-foot textarea{
  width:100%; min-height:70px; resize:vertical; font-family:var(--body); font-size:13.5px;
  border:1px solid var(--panel-line); border-radius:4px; padding:10px 12px; margin-bottom:14px;
}
.drawer-send-row{ display:flex; gap:10px; }
.drawer-send{ flex:1; text-align:center; }
.drawer-send.btn-ghost{
  border-color: rgba(16,19,26,.22);
  color: var(--ink);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width:900px){
  .about-strip-grid{ grid-template-columns:1fr; gap:28px; }
  .about-cols{ grid-template-columns:1fr 1fr; gap:24px; }
  .product-grid{ grid-template-columns:1fr 1fr; }
  .dev-grid{ grid-template-columns:1fr 1fr; gap:20px; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .hero{ padding:130px 24px 80px; }
  .about-strip{ padding:64px 0; }
  .catalog{ padding:80px 0; }
  .dev{ padding:80px 0; }
}
@media (max-width:640px){
  .nav-links{ display:none; }
  .nav-toggle{ display:flex; }
  .section-inner{ padding:0 20px; }
  .about-cols{ grid-template-columns:1fr; }
  .product-grid{ grid-template-columns:1fr; }
  .dev-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .footer-bottom{ padding:20px; }
  .group-badge{ display:none; }
  .hero{ padding:110px 20px 64px; min-height:auto; }
  .hero-cta{ flex-direction:column; }
  .hero-cta .btn{ text-align:center; width:100%; }
  .product-foot{ flex-wrap:wrap; }
  .product-foot .add-btn{ width:100%; text-align:center; }
  .nav-inner{ padding:12px 20px; }
}
@media (max-width:480px){
  .hero-title{ font-size:clamp(30px,10vw,44px); }
  .hero-sub{ font-size:16px; }
  .about-strip-grid{ gap:20px; }
  .about-strip h2{ font-size:clamp(22px,7vw,28px); }
  .dev-card{ padding:22px 18px; }
  .footer-grid{ gap:28px; }
  .product-card{ padding:20px 18px 18px; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .reveal{ animation:none; opacity:1; transform:none; }
  .product-card, .btn, .quote-drawer, .drawer-overlay{ transition:none; }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.scroll-reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .6s var(--ease), transform .6s var(--ease);
}
.scroll-reveal.visible{
  opacity:1;
  transform:translateY(0);
}
.scroll-reveal[data-delay="1"]{ transition-delay:.1s; }
.scroll-reveal[data-delay="2"]{ transition-delay:.2s; }
.scroll-reveal[data-delay="3"]{ transition-delay:.3s; }
.scroll-reveal[data-delay="4"]{ transition-delay:.4s; }
@media (prefers-reduced-motion: reduce){
  .scroll-reveal{ opacity:1; transform:none; transition:none; }
}

/* ============================================
   NAV SCROLL SHRINK
   ============================================ */
.nav{ transition: box-shadow .3s var(--ease), background .3s var(--ease); }
.nav.scrolled{
  box-shadow: 0 4px 24px -8px rgba(0,0,0,.35);
  background: rgba(244,245,247,.98);
}
.nav.scrolled .nav-inner{ padding-top: 10px; padding-bottom: 10px; }
.nav-inner{ transition: padding .3s var(--ease); }
