/* =========================================================================
   THE ARMORY — stylesheet
   Theme: monochrome (black / white / gray) with an "experimental", techy,
   glitch-leaning visual language. All colors flow from the variables below —
   change those to reskin the whole site.
   ========================================================================= */

:root{
  --black: #000000;
  --bg: #030303;
  --bg-alt: #0a0a0b;
  --surface: #111113;
  --surface-2: #17171a;
  --surface-3: #1f1f22;
  --border: rgba(255,255,255,.09);
  --border-strong: rgba(255,255,255,.18);
  --white: #ffffff;
  --text: #f2f2f2;
  --text-dim: #9a9a9e;
  --text-faint: #5c5c60;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --dur-fast: .2s;
  --dur-med: .45s;
  --dur-slow: .8s;

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --header-h: 80px;
  --container-w: 1240px;
}

/* ---------------------------------- reset -------------------------------- */
*, *::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.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}
h1,h2,h3,h4,p,ul{ margin: 0; }
ul{ padding: 0; list-style: none; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img{ max-width: 100%; display: block; }
::selection{ background: var(--white); color: var(--black); }

@media (pointer: coarse){
  body{ cursor: auto; }
}

.container{
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------ scrollbar -------------------------------- */
::-webkit-scrollbar{ width: 10px; height: 10px; }
::-webkit-scrollbar-track{ background: var(--bg); }
::-webkit-scrollbar-thumb{ background: var(--surface-3); border-radius: var(--radius-pill); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover{ background: #2b2b2f; }

/* ------------------------------ focus ------------------------------------ */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible{
  outline: 1px solid var(--white);
  outline-offset: 3px;
}

/* =========================================================================
   CUSTOM CURSOR
   ========================================================================= */
.cursor-dot, .cursor-ring{
  position: fixed; top:0; left:0; pointer-events:none; z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%,-50%);
  will-change: transform;
}
.cursor-dot{ width:6px; height:6px; background:var(--white); transition: opacity .2s; }
.cursor-ring{
  width:34px; height:34px; border:1px solid var(--border-strong);
  transition: width .25s var(--ease-out), height .25s var(--ease-out), border-color .25s, background .25s;
}
.cursor-ring.is-active{
  width:56px; height:56px;
  background: rgba(255,255,255,.06);
  border-color: var(--white);
}
@media (pointer: coarse){
  .cursor-dot, .cursor-ring{ display:none; }
}

/* =========================================================================
   NOISE / GRAIN OVERLAY
   ========================================================================= */
.noise-overlay{
  position: fixed; inset: -100px; z-index: 6; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: noise-shift 1s steps(2) infinite;
}
@keyframes noise-shift{
  0%{ transform: translate(0,0); }
  50%{ transform: translate(-2%,1%); }
  100%{ transform: translate(1%,-2%); }
}

/* =========================================================================
   FIXED BACKDROP (grid + particles)
   ========================================================================= */
.backdrop-grid{
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
#particle-canvas{
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  width: 100%; height: 100%;
}

/* =========================================================================
   PRELOADER
   ========================================================================= */
#preloader{
  position: fixed; inset: 0; z-index: 10000;
  background: var(--black);
  display:flex; align-items:center; justify-content:center;
}
.preloader-inner{ text-align:center; }
.preloader-logo-img{
  width: 84px; height:auto; object-fit:contain; display:block;
  margin: 0 auto 26px; filter: drop-shadow(0 0 28px rgba(255,255,255,.16));
  animation: preloader-logo-in .9s var(--ease-out) both;
}
@keyframes preloader-logo-in{
  from{ opacity:0; transform: translateY(10px) scale(.94); }
  to{ opacity:1; transform: translateY(0) scale(1); }
}
.preloader-logo{
  font-family: var(--font-head); font-weight:600; letter-spacing: .35em;
  font-size: clamp(16px, 3vw, 22px); text-transform: uppercase;
}
.preloader-bar{
  width: min(60vw, 320px); height:2px; background: var(--surface-2);
  margin: 28px auto 12px; overflow:hidden; border-radius: 2px;
}
.preloader-bar span{ display:block; height:100%; width:0%; background: var(--white); }
.preloader-pct{ font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); letter-spacing: .15em; }
.preloader-wipe{
  position:absolute; inset:0; background: var(--black);
  transform-origin: top; z-index:1;
}
#preloader.is-done .preloader-wipe{
  animation: wipe-up .8s var(--ease-in-out) forwards;
}
#preloader.is-done .preloader-inner{ animation: fade-out .3s forwards; }
@keyframes wipe-up{ to{ transform: scaleY(0); } }
@keyframes fade-out{ to{ opacity:0; } }
#preloader.is-hidden{ display:none; }

/* =========================================================================
   REVEAL ON SCROLL
   ========================================================================= */
[data-reveal]{
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
[data-reveal].in-view{ opacity: 1; transform: translateY(0); }

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn{
  display: inline-flex; align-items:center; gap:10px;
  padding: 15px 28px; border-radius: var(--radius-pill);
  font-family: var(--font-head); font-weight:600; font-size: 14px;
  letter-spacing: .03em; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
  position: relative; overflow: hidden;
}
.btn-solid{ background: var(--white); color: var(--black); }
.btn-solid:hover{ transform: translateY(-2px); }
.btn-ghost{ border: 1px solid var(--border-strong); color: var(--text); }
.btn-ghost:hover{ background: var(--surface-2); transform: translateY(-2px); }
.btn-outline{ border: 1px solid var(--border-strong); }
.btn-outline:hover{ background: var(--white); color: var(--black); }
.btn-small{ padding: 10px 18px; font-size: 13px; }
.btn-block{ width: 100%; justify-content:center; }
.btn-arrow{ transition: transform var(--dur-fast) var(--ease-out); display:inline-block; }
.btn:hover .btn-arrow{ transform: translateX(4px); }
.btn[disabled]{ opacity:.4; pointer-events:none; }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index: 500;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-med), border-color var(--dur-med), backdrop-filter var(--dur-med);
}
.site-header.is-scrolled{
  background: rgba(3,3,3,.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.header-inner{ height:100%; display:flex; align-items:center; justify-content:space-between; }
.brand{ display:flex; align-items:center; gap:11px; }
.brand-logo{
  width:34px; height:34px; border-radius:8px; object-fit:cover; object-position:center;
  flex-shrink:0; background: var(--black);
}
.brand-text{ font-family: var(--font-head); font-weight:700; letter-spacing:.1em; font-size:14px; white-space:nowrap; }

.main-nav{ display:flex; gap: 34px; }
.nav-link{
  font-size: 14px; color: var(--text-dim); position: relative; padding: 6px 0;
  transition: color var(--dur-fast);
}
.nav-link::after{
  content:''; position:absolute; left:0; right:100%; bottom:0; height:1px; background: var(--white);
  transition: right var(--dur-med) var(--ease-out);
}
.nav-link:hover{ color: var(--white); }
.nav-link:hover::after{ right:0; }

.header-actions{ display:flex; align-items:center; gap:18px; }
.nav-toggle{
  display:none; flex-direction:column; gap:5px; width:26px;
}
.nav-toggle span{ height:1.5px; width:100%; background: var(--white); transition: transform .3s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

.mobile-drawer{
  position: fixed; top: var(--header-h); left:0; right:0; z-index:499;
  background: rgba(5,5,5,.98); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display:flex; flex-direction:column; padding: 10px 24px 26px;
  transform: translateY(-8px); opacity:0; pointer-events:none;
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-med);
}
.mobile-drawer.is-open{ transform: translateY(0); opacity:1; pointer-events:auto; }
.mobile-drawer .nav-link{ padding: 14px 0; border-bottom:1px solid var(--border); font-size:15px; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero{
  position: relative; z-index:1;
  min-height: 100vh;
  display:flex; align-items:center;
  padding-top: var(--header-h);
}
.hero-inner{ max-width: 880px; }
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing:.12em;
  color: var(--text-dim); border: 1px solid var(--border); padding: 8px 16px;
  border-radius: var(--radius-pill); margin-bottom: 28px;
}
.dot-live{
  width:7px; height:7px; border-radius:50%; background:#fff; display:inline-block;
  box-shadow: 0 0 0 0 rgba(255,255,255,.6);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot{
  0%{ box-shadow: 0 0 0 0 rgba(255,255,255,.45); }
  70%{ box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100%{ box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.hero-title{
  font-family: var(--font-head); font-weight:700;
  font-size: clamp(40px, 7vw, 84px);
  line-height: .98; letter-spacing: -.02em;
  margin-bottom: 26px;
}
.hero-title-sub{ color: var(--text-faint); }
.scramble{ position:relative; display:inline-block; }

.hero-desc{
  max-width: 540px; font-size: 17px; color: var(--text-dim); margin-bottom: 40px;
}
.hero-cta{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom: 64px; }

.hero-stats{ display:flex; align-items:center; gap: 28px; flex-wrap: wrap; }
.stat{ display:flex; flex-direction:column; }
.stat-num, .stat-suffix{ font-family: var(--font-head); font-size: 30px; font-weight:700; }
.stat-num{ display:inline; }
.stat-suffix{ display:inline; color: var(--text-faint); }
.stat-label{ font-size: 12px; color: var(--text-faint); letter-spacing:.04em; margin-top:4px; }
.stat-divider{ width:1px; height: 34px; background: var(--border); }

.scroll-cue{
  position:absolute; bottom: 40px; left:50%; transform: translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:10px;
  color: var(--text-faint);
}
.scroll-cue-mouse{
  width:22px; height:34px; border:1px solid var(--border-strong); border-radius: 12px;
  display:flex; justify-content:center; padding-top:6px;
}
.scroll-cue-mouse span{ width:3px; height:6px; background: var(--white); border-radius: 2px; animation: scroll-cue 1.6s infinite; }
.scroll-cue-text{ font-family: var(--font-mono); font-size:10px; letter-spacing:.2em; }
@keyframes scroll-cue{
  0%{ transform: translateY(0); opacity:1; }
  70%{ transform: translateY(10px); opacity:0; }
  100%{ opacity:0; }
}

/* =========================================================================
   MARQUEE
   ========================================================================= */
.marquee{
  position:relative; z-index:1;
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
  background: var(--white); color: var(--black);
  padding: 16px 0; overflow:hidden; white-space:nowrap;
  transform: rotate(-1deg) scale(1.02);
  margin: 20px 0 80px;
}
.marquee-track{
  display:inline-flex; gap: 22px; font-family: var(--font-head); font-weight:700;
  font-size: 15px; letter-spacing:.06em; text-transform:uppercase;
  animation: marquee-scroll 26s linear infinite;
}
.marquee:hover .marquee-track{ animation-play-state: paused; }
@keyframes marquee-scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* =========================================================================
   SECTION HEAD (shared)
   ========================================================================= */
.section-tag{
  display:inline-block; font-family: var(--font-mono); font-size:12px;
  letter-spacing:.15em; color: var(--text-faint); margin-bottom: 14px;
}
.section-title{
  font-family: var(--font-head); font-weight:700;
  font-size: clamp(30px, 4.4vw, 48px); letter-spacing:-.01em; margin-bottom: 14px;
}
.section-desc{ color: var(--text-dim); max-width: 560px; font-size:16px; }
.section-head{ margin-bottom: 52px; }

section{ position: relative; z-index:1; padding: 60px 0; }
section[id]{ scroll-margin-top: var(--header-h); }

/* =========================================================================
   CATEGORY SWITCHER
   ========================================================================= */
.category-switcher{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-bottom: 46px;
}
.category-btn{
  position:relative; text-align:left; padding: 28px 26px;
  border:1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface), var(--bg-alt));
  overflow:hidden; transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.category-btn::before{
  content:''; position:absolute; inset:0; opacity:0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.12), transparent 60%);
  transition: opacity var(--dur-med);
}
.category-btn:hover{ transform: translateY(-4px); border-color: var(--border-strong); }
.category-btn:hover::before{ opacity:1; }
.category-btn.is-active{ border-color: var(--white); background: var(--surface-2); }
.category-btn-code{ font-family: var(--font-mono); font-size:11px; color: var(--text-faint); letter-spacing:.14em; }
.category-btn-name{ font-family: var(--font-head); font-weight:700; font-size: 26px; margin: 10px 0 6px; }
.category-btn-count{ font-size:13px; color: var(--text-dim); }
.category-btn-glyph{
  position:absolute; right:18px; bottom:10px; font-size: 54px; font-weight:700;
  color: rgba(255,255,255,.05); font-family: var(--font-head); line-height:1;
}

/* =========================================================================
   PRODUCT TABS
   ========================================================================= */
.product-panel-wrap{
  border:1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); overflow:hidden;
}
.product-tabs{
  display:flex; gap:4px; padding: 14px; overflow-x:auto;
  border-bottom:1px solid var(--border); scrollbar-width: thin;
}
.product-tab{
  padding: 10px 20px; border-radius: var(--radius-pill); white-space:nowrap;
  font-size: 14px; font-weight:500; color: var(--text-dim);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.product-tab:hover{ color: var(--text); }
.product-tab.is-active{ background: var(--white); color: var(--black); font-weight:600; }

/* =========================================================================
   PRODUCT PANEL
   ========================================================================= */
.product-panel{ padding: 36px; }
.product-view{
  display:grid; grid-template-columns: 380px 1fr; gap: 44px;
  animation: panel-in .5s var(--ease-out);
}
@keyframes panel-in{
  from{ opacity:0; transform: translateY(14px); }
  to{ opacity:1; transform: translateY(0); }
}

.product-image{
  position:relative; aspect-ratio: 4/3; border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 40%, var(--surface-2) 100%);
  background-size: 220% 220%;
  animation: gradient-drift 7s ease infinite;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
.product-image img{ width:100%; height:100%; object-fit:cover; }
.product-image-placeholder{
  text-align:center; color: var(--text-faint); font-family: var(--font-mono); font-size:12px; letter-spacing:.1em;
}
.product-image-placeholder .glyph{ font-size: 30px; display:block; margin-bottom:10px; }
@keyframes gradient-drift{
  0%,100%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
}

.product-info-top{ display:flex; justify-content:space-between; align-items:flex-start; gap: 20px; margin-bottom:18px; }
.product-name{ font-family: var(--font-head); font-weight:700; font-size: 30px; }
.product-category-chip{
  font-family: var(--font-mono); font-size:11px; color: var(--text-faint);
  border:1px solid var(--border); padding:5px 12px; border-radius: var(--radius-pill); white-space:nowrap;
}
.product-desc{ color: var(--text-dim); margin-bottom: 22px; max-width: 560px; }

.product-features{ display:flex; flex-direction:column; gap:10px; margin-bottom: 28px; }
.product-feature{ display:flex; align-items:center; gap:10px; font-size: 14px; color: var(--text); }
.product-feature .check{
  width:18px; height:18px; border-radius:50%; border:1px solid var(--border-strong);
  display:flex; align-items:center; justify-content:center; font-size:10px; flex-shrink:0;
}

.duration-label{ font-family: var(--font-mono); font-size:11px; color: var(--text-faint); letter-spacing:.12em; margin-bottom:12px; }
.duration-list{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom: 30px; }
.duration-chip{
  padding: 12px 18px; border-radius: var(--radius-md); border: 1px solid var(--border);
  display:flex; flex-direction:column; align-items:flex-start; gap:2px;
  min-width: 96px; transition: border-color var(--dur-fast), background var(--dur-fast), transform var(--dur-fast);
}
.duration-chip:hover{ border-color: var(--border-strong); transform: translateY(-2px); }
.duration-chip.is-active{ background: var(--white); color: var(--black); border-color: var(--white); }
.duration-chip .d-label{ font-weight:600; font-size:13px; }
.duration-chip .d-price{ font-size:12px; opacity:.65; }

.product-actions{ display:flex; align-items:center; gap: 16px; flex-wrap: wrap; }
.buy-btn{ min-width: 220px; justify-content:center; }
.product-note{ font-size:12px; color: var(--text-faint); }

/* =========================================================================
   FEATURES GRID
   ========================================================================= */
.features-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card{
  padding: 32px 28px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast), background var(--dur-fast);
}
.feature-card:hover{ transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.feature-icon{ font-size: 26px; margin-bottom: 18px; }
.feature-card h3{ font-family: var(--font-head); font-size:19px; margin-bottom:10px; }
.feature-card p{ color: var(--text-dim); font-size:14px; }

/* =========================================================================
   TESTIMONIALS
   ========================================================================= */
.testimonials .section-head{ padding: 0 24px; max-width: var(--container-w); margin-left:auto; margin-right:auto; }
.testimonial-marquee{ overflow:hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.testimonial-track{ display:flex; gap: 20px; width: max-content; animation: marquee-scroll 40s linear infinite; padding: 4px 0; }
.testimonial-marquee:hover .testimonial-track{ animation-play-state: paused; }
.testimonial-card{
  width: 340px; flex-shrink:0; padding: 26px; border:1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--surface);
}
.testimonial-stars{ letter-spacing:3px; margin-bottom:14px; }
.testimonial-text{ font-size:14px; color: var(--text-dim); margin-bottom:20px; }
.testimonial-user{ display:flex; align-items:center; gap:10px; }
.testimonial-avatar{
  width:34px; height:34px; border-radius:50%; background: var(--surface-3);
  display:flex; align-items:center; justify-content:center; font-family:var(--font-head); font-size:13px; font-weight:700;
}
.testimonial-name{ font-size:13px; font-weight:600; }
.testimonial-meta{ font-size:11px; color: var(--text-faint); }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-list{ max-width: 760px; }
.faq-item{ border-bottom: 1px solid var(--border); }
.faq-question{
  width:100%; display:flex; justify-content:space-between; align-items:center;
  padding: 22px 4px; text-align:left; font-family: var(--font-head); font-size:17px; font-weight:600;
}
.faq-icon{ font-size:18px; transition: transform var(--dur-med) var(--ease-out); flex-shrink:0; margin-left: 20px; }
.faq-item.is-open .faq-icon{ transform: rotate(45deg); }
.faq-answer{ max-height:0; overflow:hidden; transition: max-height var(--dur-med) var(--ease-in-out); }
.faq-answer-inner{ padding: 0 4px 22px; color: var(--text-dim); font-size:14.5px; max-width: 620px; }

/* =========================================================================
   CTA BANNER
   ========================================================================= */
.cta-banner{
  margin: 40px 24px 100px; padding: 80px 40px; text-align:center;
  border-radius: var(--radius-lg); border:1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(255,255,255,.06), transparent 70%),
    var(--surface);
  max-width: calc(var(--container-w) + 48px); margin-left:auto; margin-right:auto;
}
.cta-inner h2{ font-family: var(--font-head); font-size: clamp(26px,4vw,42px); font-weight:700; margin-bottom:14px; }
.cta-inner p{ color: var(--text-dim); margin-bottom: 34px; }
.cta-actions{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer{ border-top:1px solid var(--border); position:relative; z-index:1; background: var(--bg-alt); }
.footer-inner{
  display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding: 64px 24px 48px;
}
.footer-brand p{ color: var(--text-dim); font-size:13.5px; margin-top:14px; max-width:260px; }
.footer-col h4{ font-family: var(--font-head); font-size:13px; letter-spacing:.08em; text-transform:uppercase; color: var(--text-faint); margin-bottom:18px; }
.footer-col a{ display:block; color: var(--text-dim); font-size:14px; padding: 6px 0; transition: color var(--dur-fast); }
.footer-col a:hover{ color: var(--white); }
.footer-status{ display:flex; align-items:center; gap:8px; font-size:14px; color: var(--text-dim); }
.footer-bottom{ border-top:1px solid var(--border); }
.footer-bottom-inner{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px;
  padding: 20px 24px; font-size:12.5px; color: var(--text-faint);
}

.to-top{
  position: fixed; right: 26px; bottom: 26px; z-index: 400;
  width:46px; height:46px; border-radius:50%; border:1px solid var(--border-strong);
  background: rgba(10,10,11,.8); backdrop-filter: blur(6px);
  display:flex; align-items:center; justify-content:center; font-size:18px;
  opacity:0; transform: translateY(12px); pointer-events:none;
  transition: opacity var(--dur-med), transform var(--dur-med), border-color var(--dur-fast);
}
.to-top.is-visible{ opacity:1; transform:translateY(0); pointer-events:auto; }
.to-top:hover{ border-color: var(--white); }

/* =========================================================================
   CHECKOUT MODAL
   ========================================================================= */
.modal-overlay{
  position: fixed; inset:0; z-index: 2000;
  background: rgba(0,0,0,.72); backdrop-filter: blur(6px);
  display:flex; align-items:center; justify-content:center; padding: 24px;
  opacity:0; pointer-events:none; transition: opacity var(--dur-med);
}
.modal-overlay.is-open{ opacity:1; pointer-events:auto; }
.modal-card{
  width:100%; max-width: 460px; background: var(--surface); border:1px solid var(--border-strong);
  border-radius: var(--radius-lg); padding: 34px; position:relative;
  transform: scale(.92) translateY(10px); transition: transform var(--dur-med) var(--ease-out);
  max-height: 86vh; overflow-y:auto;
}
.modal-overlay.is-open .modal-card{ transform: scale(1) translateY(0); }
.modal-close{
  position:absolute; top: 18px; right: 18px; width:32px; height:32px; border-radius:50%;
  border:1px solid var(--border); display:flex; align-items:center; justify-content:center;
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}
.modal-close:hover{ border-color: var(--white); transform: rotate(90deg); }
.modal-head{ margin-bottom: 24px; padding-right: 30px; }
.modal-head h3{ font-family: var(--font-head); font-size:24px; font-weight:700; margin: 4px 0 6px; }
.modal-head p{ color: var(--text-dim); font-size:14px; }
.modal-embed-slot{ min-height: 80px; }
.embed-placeholder{
  border: 1px dashed var(--border-strong); border-radius: var(--radius-md);
  padding: 22px; text-align:center; font-size:13px; color: var(--text-faint);
}
.embed-placeholder code{
  display:block; margin-top:10px; font-family: var(--font-mono); font-size:11px;
  color: var(--text-dim); word-break: break-all;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 900px){
  .features-grid{ grid-template-columns: repeat(2,1fr); }
  .category-switcher{ grid-template-columns: 1fr; }
  .product-view{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px){
  .main-nav{ display:none; }
  .nav-toggle{ display:flex; }
  .header-actions .btn-small{ display:none; }
  .hero-stats{ gap: 20px; }
  .stat-divider{ display:none; }
  .features-grid{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; }
  .product-panel{ padding: 22px; }
  .cta-banner{ margin: 40px 12px 70px; padding: 56px 24px; }
}
