/* ============ CaptainDMA v2 — main.css ============ */
:root {
  --bg: #060810;
  --surface: #0F1325;
  --surface-alt: #0A0E1A;
  --surface-hover: #1A2040;
  --bg-light: #F5F5F7;
  --border: #1E2540;
  --border-hover: #2E3A66;
  --text: #E8ECF0;
  --text-secondary: #9AA3B8;
  --text-tertiary: #6B7280;
  --text-on-light: #1D1D1F;
  --text-secondary-on-light: rgba(0,0,0,.62);
  --accent: #00D4AA;
  --accent-hover: #00EFC4;
  --accent-press: #00B894;
  --bg-rgb: 6,8,16;
  --surface-rgb: 15,19,37;
  --accent-rgb: 0,212,170;
  --text-rgb: 232,236,240;
  --success: #10B981;
  --error: #EF4444;
  --warning: #F59E0B;
  --nav-h: 60px;
  --radius: 20px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --font-head: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--font-body); letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1,h2,h3,h4 { font-family: var(--font-head); margin: 0; color: var(--text); }
p { margin: 0 0 1em; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.section { padding-block: 110px; position: relative; }
.section--light { background: var(--bg-light); color: var(--text-on-light); }
.section--light h1,.section--light h2,.section--light h3 { color: var(--text-on-light); }
.section--light p { color: var(--text-secondary-on-light); }
.section--navy { background: var(--surface-alt); }
.eyebrow { font: 600 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; display: block; }
.h1 { font-size: clamp(44px, 7vw, 88px); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }
.h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 20px; }
.lead { font-size: 19px; line-height: 1.6; color: var(--text-secondary); max-width: 640px; }
.section--light .lead { color: var(--text-secondary-on-light); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 980px; border: 1px solid transparent; font: 500 15px/1 var(--font-body); letter-spacing: -0.01em; cursor: pointer; transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s, color .25s; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: #04211B; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 12px 32px rgba(var(--accent-rgb), .35); }
.btn-primary:active { background: var(--accent-press); transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text); border-color: rgba(var(--text-rgb), .28); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.section--light .btn-ghost { color: var(--text-on-light); border-color: rgba(0,0,0,.25); }
.section--light .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: var(--text-on-light); color: #fff; }
.btn-light:hover { background: #000; transform: translateY(-1px); }
.btn svg { flex: none; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-lg { min-height: 52px; padding: 14px 30px; font-size: 16px; }

/* ---------- Nav ---------- */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); display: flex; align-items: center; background: rgba(var(--bg-rgb), .72); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-nav.scrolled { border-bottom-color: var(--border); background: rgba(var(--bg-rgb), .92); }
.site-nav__inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-nav__brand { display: flex; align-items: center; gap: 10px; font: 600 17px var(--font-head); color: var(--text); letter-spacing: -0.01em; }
.site-nav__brand:hover { text-decoration: none; }
.site-nav__brand img { height: 28px; width: auto; }
.site-nav__brand .brand-accent { color: var(--accent); }
.site-nav__links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav__links a { font: 500 14px/1 var(--font-body); color: var(--text-secondary); text-decoration: none; padding: 10px 2px; transition: color .2s; }
.site-nav__links a:hover, .site-nav__links .current-menu-item > a { color: var(--text); }
.site-nav__actions { display: flex; align-items: center; gap: 8px; }
.nav-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: none; background: transparent; color: var(--text-secondary); cursor: pointer; transition: color .2s, background .2s; }
.nav-icon-btn:hover { color: var(--text); background: rgba(var(--text-rgb), .08); }
.nav-icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cart-bubble { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 980px; background: var(--accent); color: #04211B; font: 700 10px/17px var(--font-body); text-align: center; }
.nav-burger { display: none; }
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: rgba(var(--bg-rgb), .98); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: flex; flex-direction: column; justify-content: center; padding: 48px 32px; transform: translateY(-100%); transition: transform .45s var(--ease); }
.mobile-menu.open { transform: none; }
.mobile-menu a { font: 600 32px/1.3 var(--font-head); color: var(--text); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--border); }
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu__close { position: absolute; top: 16px; right: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: calc(var(--nav-h) + 40px) 24px 80px; }
.hero__aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; background:
  radial-gradient(52% 42% at 50% 30%, rgba(var(--accent-rgb), .14), transparent 70%),
  radial-gradient(38% 30% at 78% 68%, rgba(41,151,255,.10), transparent 70%),
  radial-gradient(46% 38% at 18% 74%, rgba(26,32,64,.9), transparent 72%); }
.hero__grain { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__content { position: relative; z-index: 2; max-width: 900px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .hero-line { display: block; }
.hero h1 .hero-word { display: inline-block; opacity: 0; transform: translateY(1.1em) rotate(2deg); }
.hero h1 .hero-word.in { animation: heroWord .9s var(--ease) forwards; }
@keyframes heroWord { to { opacity: 1; transform: none; } }
.hero .lead { margin: 0 auto 36px; }
.hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__product { position: relative; z-index: 2; margin-top: 48px; max-width: 860px; margin-inline: auto; }
.hero__product img { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(var(--bg-rgb), .8)); animation: heroFloat 7s ease-in-out infinite; }
@keyframes heroFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero__scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--text-tertiary); font: 500 12px var(--font-body); letter-spacing: .18em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero__scroll::after { content: ''; width: 1px; height: 42px; background: linear-gradient(to bottom, var(--accent), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: .3; transform: scaleY(.7); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 26px 0; border-block: 1px solid var(--border); background: var(--surface-alt); }
.marquee__track { display: flex; gap: 64px; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font: 500 20px var(--font-head); letter-spacing: .02em; color: var(--text-tertiary); white-space: nowrap; display: inline-flex; align-items: center; gap: 64px; }
.marquee span::after { content: '◆'; color: var(--accent); font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Bento grid ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; margin-top: 56px; }
.bento > * { grid-column: span 4; }
.bento > .b-lg { grid-column: span 7; }
.bento > .b-md { grid-column: span 5; }
.product-card { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.product-card::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), .12), transparent 65%); opacity: 0; transition: opacity .35s; }
.product-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: 0 24px 60px rgba(var(--bg-rgb), .55); }
.product-card:hover::before { opacity: 1; }
.product-card__media { position: relative; display: grid; place-items: center; padding: 18px 0 8px; min-height: 180px; }
.product-card__media img { max-height: 240px; width: auto; object-fit: contain; transition: transform .5s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__title { font: 500 22px/1.2 var(--font-head); color: var(--text); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product-card__title a { color: inherit; }
.product-card__title a:hover { color: var(--accent); text-decoration: none; }
.product-card__price { font: 500 20px/1 var(--font-head); color: var(--accent); white-space: nowrap; }
.product-card__desc { font: 400 15px/1.55 var(--font-body); color: var(--text-secondary); margin: 0; }
.product-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.pill-link { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border: 1px solid var(--accent); border-radius: 980px; color: var(--accent); font: 500 14px var(--font-body); transition: background .25s, transform .25s; }
.pill-link:hover { background: rgba(var(--accent-rgb), .1); text-decoration: none; }

/* ---------- Category showcase (left-pin / right-swap) ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.showcase__list { position: sticky; top: calc(var(--nav-h) + 40px); display: flex; flex-direction: column; gap: 8px; }
.showcase__item { display: block; width: 100%; text-align: left; background: none; border: none; border-left: 2px solid var(--border); padding: 18px 22px; cursor: pointer; color: var(--text-tertiary); font: 600 24px var(--font-head); letter-spacing: -0.01em; transition: color .3s, border-color .3s, padding .3s; }
.showcase__item small { display: block; font: 400 14px/1.4 var(--font-body); color: var(--text-tertiary); margin-top: 6px; }
.showcase__item:hover { color: var(--text); }
.showcase__item.active { color: var(--text); border-left-color: var(--accent); padding-left: 30px; }
.showcase__item.active small { color: var(--text-secondary); }
.showcase__stage { position: relative; min-height: 480px; }
.showcase__panel { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 20px; opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 48px; }
.showcase__panel.active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.showcase__panel img { max-height: 300px; width: auto; object-fit: contain; }
.showcase__panel h3 { font-size: 28px; font-weight: 600; }
.showcase__panel p { color: var(--text-secondary); max-width: 420px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 32px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stat__num { font: 600 44px/1 var(--font-head); color: var(--accent); display: block; margin-bottom: 10px; }
.stat__label { font: 500 14px var(--font-body); color: var(--text-secondary); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- CTA / newsletter ---------- */
.cta-band { text-align: center; }
.cta-band .lead { margin-inline: auto; }
.newsletter { display: flex; gap: 10px; max-width: 480px; margin: 32px auto 0; }
.newsletter input { flex: 1; min-height: 48px; padding: 0 20px; border-radius: 980px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 400 15px var(--font-body); }
.newsletter input::placeholder { color: var(--text-tertiary); }
.newsletter input:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: transparent; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-alt); border-top: 1px solid var(--border); padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { font: 600 14px var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-grid a { color: var(--text-secondary); font-size: 15px; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand p { color: var(--text-secondary); max-width: 300px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 32px; border-top: 1px solid var(--border); color: var(--text-tertiary); font-size: 13px; flex-wrap: wrap; }

/* ---------- Shop / archive ---------- */
.shop-head { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 32px; text-align: center; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 18px; border-radius: 980px; border: 1px solid var(--border); background: transparent; color: var(--text-secondary); font: 500 14px var(--font-body); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.chip:hover { border-color: var(--border-hover); color: var(--text); }
.chip.active { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), .08); }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 56px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); color: var(--text-secondary); font: 500 15px var(--font-body); }
.pagination .current { border-color: var(--accent); color: var(--accent); background: rgba(var(--accent-rgb), .08); }
.pagination a:hover { border-color: var(--border-hover); color: var(--text); text-decoration: none; }

/* ---------- Single product ---------- */
.product { padding-top: calc(var(--nav-h) + 48px); }
.product__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.product__gallery img { border-radius: var(--radius); border: 1px solid var(--border); width: 100%; }
.product__title { font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; }
.product__price { font: 500 28px var(--font-head); color: var(--accent); margin: 16px 0 24px; }
.product__desc { color: var(--text-secondary); }
.product__actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.specs { margin-top: 40px; border-top: 1px solid var(--border); }
.specs dl { display: grid; grid-template-columns: 180px 1fr; gap: 10px 24px; margin: 0; }
.specs dt { font: 600 13px var(--font-mono); color: var(--text-tertiary); letter-spacing: .06em; text-transform: uppercase; }
.specs dd { margin: 0; font: 400 15px var(--font-body); color: var(--text-secondary); }
.add-to-cart .quantity { width: 72px; min-height: 44px; text-align: center; border-radius: 980px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 500 15px var(--font-body); }
.add-to-cart .quantity:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Page / 404 ---------- */
.page { padding-top: calc(var(--nav-h) + 64px); padding-bottom: 96px; }
.page h1 { font-size: clamp(32px, 4.5vw, 56px); font-weight: 600; margin-bottom: 24px; letter-spacing: -0.015em; }
.page p { color: var(--text-secondary); }
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: var(--nav-h); }
.notfound .h1 { font-size: clamp(80px, 16vw, 180px); }
.notfound .h1 .accent { color: var(--accent); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* ---------- Scramble eyebrow ---------- */
.scramble { display: inline-block; min-height: 1em; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px); z-index: 200; background: var(--surface); border: 1px solid var(--accent); color: var(--text); padding: 14px 26px; border-radius: 980px; font: 500 15px var(--font-body); opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s var(--ease); box-shadow: 0 16px 48px rgba(var(--bg-rgb), .6); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .accent { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bento > .b-lg, .bento > .b-md { grid-column: span 6; }
  .showcase { grid-template-columns: 1fr; gap: 32px; }
  .showcase__list { position: static; flex-direction: row; overflow-x: auto; gap: 12px; padding-bottom: 8px; }
  .showcase__item { border-left: none; border-bottom: 2px solid var(--border); border-radius: 12px 12px 0 0; padding: 14px 18px; font-size: 18px; white-space: nowrap; }
  .showcase__item.active { padding-left: 18px; border-bottom-color: var(--accent); }
  .product__grid { grid-template-columns: 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding-block: 72px; }
  .site-nav__links { display: none; }
  .nav-burger { display: inline-flex; }
  .bento > * { grid-column: span 12 !important; }
  .shop-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat__num { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .newsletter { flex-direction: column; }
  .hero__product { max-width: 420px; }
  .specs dl { grid-template-columns: 1fr; gap: 4px 0; }
  .specs dd { margin-bottom: 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .hero h1 .hero-word { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .hero__product img { animation: none; }
}


/* v1.0.1 — single product + misc */
.product { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 96px; }
.product__crumbs { font: 500 13px var(--font-mono); color: var(--text-tertiary); letter-spacing: .04em; margin-bottom: 32px; }
.product__crumbs a { color: var(--text-tertiary); text-decoration: none; }
.product__crumbs a:hover { color: var(--accent); }
.product__gallery { display: grid; gap: 16px; }
.product__gallery img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.product__desc p { color: var(--text-secondary); line-height: 1.7; }
.product__actions .single_add_to_cart_button { display: inline-flex; align-items: center; gap: 10px; border: none; cursor: pointer; }
.woocommerce-pagination ul { display: flex; gap: 8px; justify-content: center; list-style: none; padding: 48px 0 0; margin: 0; }
.woocommerce-pagination a, .woocommerce-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; font: 500 14px var(--font-body); color: var(--text-secondary); text-decoration: none; }
.woocommerce-pagination .current { background: var(--accent); border-color: var(--accent); color: #041210; }
