/* =====================================================================
   CoreTech — design system
   Dark graphite base · electric "volt" blue · brushed silver
   Display: Chakra Petch · Body: IBM Plex Sans · Data: JetBrains Mono
   ===================================================================== */
:root {
  --ink-950: #05070b; --ink-900: #0a0d13; --ink-850: #0e121a; --ink-800: #131823; --ink-700: #1c2331;
  --volt: #2f86ff; --volt-hi: #8ec5ff; --silver: #c3cad5;
  --line: rgba(160, 185, 225, .09);
  --radius: 14px;
  color-scheme: dark;
}
[x-cloak] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink-900);
  color: #dfe4eb;
  font-family: 'IBM Plex Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Fine grain overlay for depth */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .035;
  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 baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--volt); color: #fff; }
:focus-visible { outline: 2px solid var(--volt-hi); outline-offset: 2px; border-radius: 6px; }

/* ---------- Typography helpers ---------- */
.ct-silver {
  background: linear-gradient(180deg, #ffffff 0%, #dfe5ee 38%, #8e98a8 62%, #e8edf4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ct-volt-text { background: linear-gradient(90deg, #8ec5ff, #2f86ff 60%, #6fe2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ct-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--volt-hi); }
.ct-eyebrow::before { content: '// '; color: #4b5568; }
.ct-h2 { font-family: 'Chakra Petch', sans-serif; font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.05; letter-spacing: -.01em; color: #fff; }

/* ---------- Top bar + header ---------- */
.ct-topbar { background: linear-gradient(90deg, #0b1a33, #0a0d13 50%, #0b1a33); color: #97a1b0; font-size: 12px; text-align: center; padding: 7px 16px; border-bottom: 1px solid var(--line); }
.ct-header { position: sticky; top: 0; z-index: 60; background: rgba(10, 13, 19, .72); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s; }
.ct-header.is-scrolled { background: rgba(8, 10, 15, .9); border-color: var(--line); box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .9); }
.ct-wordmark { font-family: 'Chakra Petch', sans-serif; font-weight: 700; letter-spacing: .14em; font-size: 17px; color: #e9eef5; }
.ct-wordmark span { color: var(--volt); }
.ct-nav { position: relative; padding: 8px 12px; font-size: 14px; color: #c3cad5; border-radius: 8px; transition: color .2s, background .2s; }
.ct-nav:hover { color: #fff; background: rgba(255, 255, 255, .04); }
.ct-nav.is-active { color: #fff; }
.ct-nav.is-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--volt); border-radius: 2px; box-shadow: 0 0 12px var(--volt); }
.ct-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--volt); color: #fff; font-size: 11px; font-weight: 600; }
.ct-mega { position: absolute; left: -12px; top: 100%; margin-top: 8px; width: 640px; padding: 14px; background: rgba(13, 17, 25, .97); border: 1px solid rgba(255, 255, 255, .07); border-radius: 16px; box-shadow: 0 30px 80px -20px #000; }
.ct-mega::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.ct-mega-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; transition: background .2s; }
.ct-mega-item:hover { background: rgba(47, 134, 255, .08); }
.ct-mega-art { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.ct-search { align-items: center; gap: 8px; height: 40px; padding: 0 14px; width: 100%; max-width: 320px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); color: #6c7686; transition: border-color .2s, background .2s; }
.ct-search:focus-within { border-color: rgba(47, 134, 255, .6); background: rgba(47, 134, 255, .06); color: var(--volt-hi); }
.ct-search input { flex: 1; min-width: 0; background: transparent; outline: none; font-size: 14px; color: #fff; }
.ct-search input::placeholder { color: #6c7686; }

/* ---------- Buttons & controls ---------- */
.ct-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: 14px; color: #fff; white-space: nowrap;
  background: linear-gradient(180deg, #3d90ff, #1d6bea); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 24px -10px rgba(47, 134, 255, .9); transition: transform .15s, box-shadow .2s, filter .2s; }
.ct-btn:hover { filter: brightness(1.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 30px -8px rgba(47, 134, 255, 1); }
.ct-btn:active { transform: translateY(1px); }
.ct-btn:disabled { opacity: .45; pointer-events: none; }
.ct-btn-sm { height: 36px; padding: 0 12px; font-size: 13px; }
.ct-btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.ct-btn-ghost { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); box-shadow: none; color: #dfe4eb; }
.ct-btn-ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: none; }
.ct-btn-silver { background: linear-gradient(180deg, #f5f7fa, #b8c0cc); color: #0a0d13; box-shadow: inset 0 1px 0 #fff, 0 8px 24px -12px rgba(255, 255, 255, .5); }
.ct-icon-btn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #c3cad5; border: 1px solid transparent; transition: all .2s; }
.ct-icon-btn:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.ct-icon-btn.is-active { color: #fff; background: rgba(47, 134, 255, .2); border-color: rgba(47, 134, 255, .6); }
.ct-dot { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--volt); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.ct-input { height: 42px; padding: 0 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09); color: #fff; font-size: 14px; outline: none; transition: border-color .2s; }
.ct-input:focus { border-color: rgba(47, 134, 255, .7); }
.ct-input::placeholder { color: #6c7686; }
select.ct-input { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M1 3l4 4 4-4' stroke='%2397a1b0' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
select.ct-input option { background: #131823; }
.ct-stepper { display: inline-flex; align-items: center; border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px; overflow: hidden; }
.ct-stepper button { width: 28px; height: 28px; color: #c3cad5; }
.ct-stepper button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.ct-stepper span { min-width: 26px; text-align: center; font-size: 13px; font-family: 'JetBrains Mono', monospace; }
.ct-check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; color: #c3cad5; cursor: pointer; }
.ct-check input { appearance: none; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #4b5568; display: grid; place-items: center; transition: all .15s; flex-shrink: 0; }
.ct-check input:checked { background: var(--volt); border-color: var(--volt); }
.ct-check input:checked::after { content: ''; width: 8px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.ct-check:hover { color: #fff; }
input[type=range].ct-range { appearance: none; width: 100%; height: 4px; border-radius: 4px; background: #283143; outline: none; }
input[type=range].ct-range::-webkit-slider-thumb { appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--volt); cursor: pointer; box-shadow: 0 0 12px rgba(47, 134, 255, .8); }
input[type=range].ct-range::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--volt); cursor: pointer; }

/* ---------- Badges / chips / stars ---------- */
.ct-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: #0a0d13; background: linear-gradient(180deg, #f5f7fa, #b8c0cc); }
.ct-badge-new { background: linear-gradient(180deg, #4b9bff, #1d6bea); color: #fff; }
.ct-badge-save { background: rgba(10, 13, 19, .75); color: #8ec5ff; border: 1px solid rgba(47, 134, 255, .4); backdrop-filter: blur(6px); }
.ct-chip { font-family: 'JetBrains Mono', monospace; font-size: 11px; padding: 3px 7px; border-radius: 6px; color: #c3cad5; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.ct-stars { display: inline-flex; gap: 1px; vertical-align: middle; }

/* ---------- Product card ---------- */
.ct-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, #121722, #0d1119); border: 1px solid rgba(255, 255, 255, .06); transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .35s; }
.ct-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(142, 197, 255, .7), transparent 35%, transparent 65%, rgba(195, 202, 213, .45)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s; pointer-events: none; z-index: 2; }
.ct-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(47, 134, 255, .45); }
.ct-card:hover::before { opacity: 1; }
.ct-card-media { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; }
.ct-card-media .ct-art { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.ct-card:hover .ct-card-media .ct-art { transform: scale(1.06); }
.ct-art { display: block; width: 100%; height: 100%; }

/* ---------- Panels ---------- */
.ct-panel { background: linear-gradient(180deg, rgba(19, 24, 35, .9), rgba(13, 17, 25, .9)); border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--radius); }
.ct-modal { background: #0e121a; border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; box-shadow: 0 40px 120px -20px #000, 0 0 0 1px rgba(47, 134, 255, .08); max-height: 90vh; overflow-y: auto; }
.ct-option { text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .02); transition: all .2s; }
.ct-option:hover { border-color: rgba(47, 134, 255, .6); background: rgba(47, 134, 255, .08); transform: translateY(-1px); }
.ct-option.is-active { border-color: var(--volt); background: rgba(47, 134, 255, .12); box-shadow: inset 0 0 0 1px var(--volt), 0 0 24px -8px rgba(47, 134, 255, .8); }
.ct-option.is-bad { opacity: .55; }

/* ---------- Grid backdrop used in hero/section heads ---------- */
.ct-grid-bg { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); }
.ct-hero-glow { background: radial-gradient(600px 380px at 70% 40%, rgba(47, 134, 255, .28), transparent 70%), radial-gradient(500px 300px at 15% 80%, rgba(111, 226, 255, .08), transparent 70%); }
.ct-scan { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(142, 197, 255, .08) 50%, transparent); height: 120px; animation: scan 6s linear infinite; }
@keyframes scan { from { transform: translateY(-120px); } to { transform: translateY(720px); } }
.ct-float { animation: float 7s ease-in-out infinite; }
.ct-float-2 { animation: float 8s ease-in-out -3s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.ct-hero-frame { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 50px 120px -40px rgba(47, 134, 255, .55), 0 0 0 1px rgba(0, 0, 0, .4); }
.ct-hud { position: absolute; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #c3cad5; padding: 8px 10px; border-radius: 10px; background: rgba(8, 10, 15, .72); border: 1px solid rgba(142, 197, 255, .2); backdrop-filter: blur(8px); }
.ct-hud b { display: block; font-family: 'Chakra Petch', sans-serif; font-size: 18px; color: #fff; }
.ct-marquee { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Category tiles ---------- */
.ct-cat { position: relative; display: block; overflow: hidden; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .06); background: #0d1119; transition: border-color .3s, transform .35s; }
.ct-cat:hover { border-color: rgba(47, 134, 255, .45); transform: translateY(-3px); }
.ct-cat .ct-art { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.ct-cat:hover .ct-art { transform: scale(1.07); }
.ct-cat-label { position: absolute; inset: auto 0 0 0; padding: 18px; background: linear-gradient(0deg, rgba(5, 7, 11, .95), transparent); }

/* ---------- Horizontal rail ---------- */
.ct-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: #283143 transparent; }
.ct-rail > * { scroll-snap-align: start; }
@media (min-width: 1024px) { .ct-rail { grid-auto-columns: calc((100% - 54px) / 4); } }

/* ---------- Gallery ---------- */
.ct-zoom { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 4/3; cursor: zoom-in; border: 1px solid rgba(255, 255, 255, .07); }
.ct-zoom .ct-art { transition: transform .25s ease-out; }
.ct-zoom.is-zoomed .ct-art { transform: scale(2); }
.ct-thumb { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); opacity: .65; transition: all .2s; }
.ct-thumb:hover { opacity: 1; }
.ct-thumb.is-active { opacity: 1; border-color: var(--volt); box-shadow: 0 0 0 1px var(--volt), 0 0 18px -4px rgba(47, 134, 255, .9); }

/* ---------- Perf bars ---------- */
.ct-bar { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.ct-bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1653bd, #2f86ff 60%, #8ec5ff); box-shadow: 0 0 14px rgba(47, 134, 255, .7); transform-origin: left; transition: width 1s cubic-bezier(.2, .7, .2, 1); }
.ct-tab { position: relative; padding: 12px 4px; font-family: 'Chakra Petch', sans-serif; font-weight: 600; color: #97a1b0; transition: color .2s; }
.ct-tab:hover { color: #fff; }
.ct-tab.is-active { color: #fff; }
.ct-tab.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--volt); box-shadow: 0 0 12px var(--volt); }
.ct-spec-row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ct-spec-row dt { color: #97a1b0; }
.ct-spec-row dd { color: #eef1f5; }

/* ---------- Compare table ---------- */
.ct-cmp { width: 100%; border-collapse: separate; border-spacing: 0; }
.ct-cmp th, .ct-cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; font-size: 14px; }
.ct-cmp th[scope=row] { position: sticky; left: 0; z-index: 1; background: #0b0e15; color: #97a1b0; font-weight: 500; width: 170px; min-width: 130px; }
.ct-cmp td.is-best { color: #fff; background: linear-gradient(90deg, rgba(47, 134, 255, .14), transparent); box-shadow: inset 2px 0 0 var(--volt); }
.ct-cmp tr.ct-cmp-group th { background: transparent; color: var(--volt-hi); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding-top: 26px; }

/* ---------- Floating widgets ---------- */
.ct-help { position: fixed; right: 20px; bottom: 20px; z-index: 65; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px 0 16px; border-radius: 25px; font-weight: 600; font-size: 14px; color: #fff;
  background: linear-gradient(180deg, #3d90ff, #1653bd); box-shadow: 0 16px 40px -10px rgba(47, 134, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .3); transition: transform .2s; }
.ct-help:hover { transform: translateY(-2px); }
.ct-help-pulse { position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(142, 197, 255, .7); animation: pulse 2.6s ease-out infinite; pointer-events: none; }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.25, 1.5); opacity: 0; } }
@media (max-width: 640px) { .ct-help { right: 16px; bottom: 16px; padding: 0 16px; } .ct-help span:last-child { display: none; } .ct-help { width: 50px; padding: 0; justify-content: center; } }
.ct-tray { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 64; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 16px; background: rgba(13, 17, 25, .92); border: 1px solid rgba(142, 197, 255, .22); backdrop-filter: blur(14px); box-shadow: 0 20px 60px -15px #000; }
@media (max-width: 640px) { .ct-tray { left: 16px; transform: none; bottom: 78px; padding-left: 8px; } }
.ct-tray-item { position: relative; }
.ct-tray-x { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: #283143; font-size: 9px; color: #fff; }
.ct-tray-x:hover { background: #e5484d; }
.ct-tray-empty { width: 48px; height: 36px; border-radius: 6px; border: 1px dashed rgba(255, 255, 255, .15); display: grid; place-items: center; color: #4b5568; font-size: 14px; }
#ct-toasts { position: fixed; top: 84px; right: 16px; z-index: 90; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); }
.ct-toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13px; color: #dfe4eb; background: rgba(19, 24, 35, .96); border: 1px solid rgba(47, 134, 255, .35); box-shadow: 0 16px 40px -12px #000; transform: translateX(110%); opacity: 0; transition: all .35s cubic-bezier(.2, .7, .2, 1); }
.ct-toast.in { transform: none; opacity: 1; }

/* ---------- Footer ---------- */
.ct-foot-h { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #6c7686; margin-bottom: 12px; }
.ct-foot-a { display: block; padding: 4px 0; font-size: 14px; color: #c3cad5; transition: color .2s; }
.ct-foot-a:hover { color: #fff; }
.ct-footer-glow { position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--volt), transparent); box-shadow: 0 0 30px 2px rgba(47, 134, 255, .6); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].in { opacity: 1; transform: none; }
.ct-stagger > * { opacity: 0; transform: translateY(16px); animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.ct-stagger > *:nth-child(2) { animation-delay: .08s; } .ct-stagger > *:nth-child(3) { animation-delay: .16s; }
.ct-stagger > *:nth-child(4) { animation-delay: .24s; } .ct-stagger > *:nth-child(5) { animation-delay: .32s; }
.ct-stagger > *:nth-child(6) { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal], .ct-stagger > * { opacity: 1; transform: none; }
}

/* Prevent grid children from expanding past the viewport (long text / scrolling rows) */
.grid > * { min-width: 0; }

/* ---------- Product photos ---------- */
.ct-photo { position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 40%, #182235, #07090d); }
.ct-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ct-photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5,7,11,0) 55%, rgba(5,7,11,.35)); }
.ct-photo.is-broken::before { content: 'Image unavailable'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: #6c7686; }
