/* ==========================================================================
   Cohen Industries — shared design system
   Loaded by every public page so the header, buttons, cards and motion all
   match. Page-specific styles stay inline in each HTML file.
   Theme: deep ink base + violet/indigo gradient, emerald accents.
   ========================================================================== */

:root {
    --bg: #06070f;
    --line: rgba(255, 255, 255, 0.07);
    --brand: #a855f7;
    --brand-2: #6366f1;
    --brand-3: #34d399;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    /* Static colour wash so the page isn't flat black behind the aurora.
       Deliberately NOT background-attachment: fixed — fixed backgrounds force a
       full repaint on every scroll, which stutters badly on phones. */
    background-image:
        radial-gradient(1100px 640px at 12% -8%, rgba(168, 85, 247, .18), transparent 62%),
        radial-gradient(950px 600px at 97% 3%, rgba(99, 102, 241, .16), transparent 62%),
        radial-gradient(1050px 760px at 50% 114%, rgba(52, 211, 153, .12), transparent 66%);
    color: #e8eaf2;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(168, 85, 247, 0.4); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #06070f; }
::-webkit-scrollbar-thumb { background: #232544; border-radius: 8px; border: 2px solid #06070f; }
::-webkit-scrollbar-thumb:hover { background: #a855f7; }

/* ---------- Animated aurora backdrop ---------- */
.aurora {
    position: fixed;
    inset: -20vh -10vw;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.aurora span {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .6;
    will-change: transform;
}
.aurora .a1 { width: 46vw; height: 46vw; top: -8vh; left: -6vw; background: radial-gradient(circle, rgba(168,85,247,.62), transparent 65%); animation: auroraA 22s ease-in-out infinite; }
.aurora .a2 { width: 40vw; height: 40vw; top: 30vh; right: -8vw; background: radial-gradient(circle, rgba(99,102,241,.52), transparent 65%); animation: auroraB 28s ease-in-out infinite; }
.aurora .a3 { width: 34vw; height: 34vw; bottom: -10vh; left: 30vw; background: radial-gradient(circle, rgba(16,185,129,.38), transparent 65%); animation: auroraC 34s ease-in-out infinite; }

/* Two more colour washes drawn as pseudo-elements, so every page that links
   this file picks them up with no markup change. Only transform is animated,
   which stays on the compositor; the second one is deliberately static so it
   costs nothing to keep on screen. */
.aurora::before,
.aurora::after {
    content: "";
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(110px);
    will-change: transform;
}
.aurora::before {
    width: 40vw; height: 40vw;
    top: 42vh; left: -10vw;
    background: radial-gradient(circle, rgba(236, 72, 153, .42), transparent 65%);
    opacity: .6;
    animation: auroraD 26s ease-in-out infinite;
}
.aurora::after {
    width: 32vw; height: 32vw;
    top: -12vh; right: 16vw;
    background: radial-gradient(circle, rgba(129, 140, 248, .45), transparent 65%);
    opacity: .5;
}

@keyframes auroraD {
    0%, 100% { transform: translate3d(6%, 5%, 0) scale(1); }
    50% { transform: translate3d(-8%, -6%, 0) scale(1.18); }
}

@keyframes auroraA {
    0%, 100% { transform: translate3d(-6%, -4%, 0) scale(1); }
    50% { transform: translate3d(8%, 6%, 0) scale(1.15); }
}
@keyframes auroraB {
    0%, 100% { transform: translate3d(6%, 4%, 0) scale(1.1); }
    50% { transform: translate3d(-7%, -5%, 0) scale(.95); }
}
@keyframes auroraC {
    0%, 100% { transform: translate3d(0, 8%, 0) scale(1); }
    50% { transform: translate3d(-5%, -8%, 0) scale(1.2); }
}

.grid-dots {
    background-image: radial-gradient(rgba(196, 181, 253, .085) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 35%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 35%, transparent 100%);
}

/* ---------- Glass surfaces ---------- */
/* Cards carry no backdrop-filter either, for the same reason as the header
   below. A card's own hover states (.spot:hover::before, hover:border-*) repaint
   a child, and inside a backdrop-filter container that re-samples and
   re-composites the whole surface against the animated aurora — so hovering a
   card flashes it, exactly like the nav bar used to. The aurora is already
   blurred 90px, so at this alpha dropping the extra blur is near-identical. */
.panel {
    background: rgba(13, 15, 30, 0.62);
    border: 1px solid var(--line);
}
/* No backdrop-filter here, on any viewport — deliberately.

   The bar sits directly over a continuously animated aurora, and a
   backdrop-filter forces the WHOLE bar to re-sample and re-composite that layer
   whenever anything inside it repaints. Hovering a nav link is enough: the
   link's hover:bg-white/10 changes a child background, the bar re-blurs against
   the moving aurora, and the colour flashes across the full width.

   Without it, a hover only repaints that link's own small rect. The aurora is
   already blurred 90px, so dropping the extra blur is visually near-identical,
   and at this alpha nothing behind the bar registers as movement.

   (It also fixes the mobile case: the URL bar collapsing resizes the fixed
   aurora underneath, which re-composited the same way.) */
.panel-solid {
    background: rgba(8, 9, 19, 0.95);
    border-bottom: 1px solid var(--line);
}
/* The drawer inside the header gets the same treatment — it's the same
   mechanism, and it's still "the nav bar". Its links use hover:bg-white/10, so
   any child repaint inside a backdrop-filter container re-composites the whole
   surface against the moving aurora. Matching the bar's own background also
   makes the two read as one piece. */
header .panel {
    background: rgba(8, 9, 19, 0.95);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
/* Header that gains depth once the page is scrolled (toggled from JS) */
header.is-stuck { box-shadow: 0 12px 40px -18px rgba(0, 0, 0, .85); }

/* ---------- Gradient text ---------- */
.grad-text {
    background: linear-gradient(100deg, #c084fc 0%, #818cf8 45%, #34d399 100%);
    background-size: 180% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradShift 8s ease-in-out infinite;
}
@keyframes gradShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, background-color .28s ease, border-color .28s ease;
    overflow: hidden;
    isolation: isolate;
}
.btn-primary {
    background: linear-gradient(120deg, #a855f7 0%, #6366f1 55%, #38bdf8 130%);
    color: #fff;
    box-shadow: 0 10px 34px -12px rgba(168, 85, 247, .8);
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, #c026d3 0%, #4f46e5 55%, #0ea5e9 130%);
    opacity: 0;
    transition: opacity .3s ease;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -14px rgba(168, 85, 247, .95); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(-1px); }

.btn-ghost {
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.11);
    color: #e8eaf2;
}
.btn-ghost:hover { background: rgba(255,255,255,.085); border-color: rgba(255,255,255,.2); transform: translateY(-3px); }

.btn-ebay { background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.3); color: #fcd34d; }
.btn-ebay:hover { background: rgba(251,191,36,.18); transform: translateY(-3px); }

.btn-vinted { background: rgba(13,148,136,.12); border: 1px solid rgba(13,148,136,.35); color: #5eead4; }
.btn-vinted:hover { background: rgba(13,148,136,.2); transform: translateY(-3px); }

.btn-primary::before, .btn-ghost::before, .btn-ebay::before, .btn-vinted::before {
    content: '';
    position: absolute;
    top: 0; left: -120%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
}
.btn-primary:hover::before, .btn-ghost:hover::before, .btn-ebay:hover::before, .btn-vinted:hover::before { left: 130%; }

/* ---------- Spotlight cards ---------- */
.spot {
    position: relative;
    background: rgba(13, 15, 30, 0.55);
    border: 1px solid var(--line);
    transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .35s ease, box-shadow .45s ease;
}
.spot::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(168,85,247,.16), transparent 62%);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}
.spot:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, .38);
    box-shadow: 0 26px 60px -30px rgba(168, 85, 247, .7);
}
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; z-index: 1; }

/* ---------- Scroll reveal ---------- */
.rv   { opacity: 0; transform: translateY(28px); transition: opacity .85s cubic-bezier(.2,.75,.25,1), transform .85s cubic-bezier(.2,.75,.25,1); will-change: opacity, transform; }
.rv.in, .rv-l.in, .rv-r.in, .rv-blur.in { opacity: 1; transform: none; }
.rv-l    { opacity: 0; transform: translateX(-36px); transition: opacity .85s cubic-bezier(.2,.75,.25,1), transform .85s cubic-bezier(.2,.75,.25,1); }
.rv-r    { opacity: 0; transform: translateX(36px);  transition: opacity .85s cubic-bezier(.2,.75,.25,1), transform .85s cubic-bezier(.2,.75,.25,1); }
.rv-blur { opacity: 0; transform: translateY(22px); filter: blur(10px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.75,.25,1), filter .9s ease; }

.stagger > .rv:nth-child(1), .stagger > .rv-r:nth-child(1), .stagger > .rv-l:nth-child(1) { transition-delay: .04s; }
.stagger > .rv:nth-child(2), .stagger > .rv-r:nth-child(2), .stagger > .rv-l:nth-child(2) { transition-delay: .12s; }
.stagger > .rv:nth-child(3), .stagger > .rv-r:nth-child(3), .stagger > .rv-l:nth-child(3) { transition-delay: .2s; }
.stagger > .rv:nth-child(4), .stagger > .rv-r:nth-child(4), .stagger > .rv-l:nth-child(4) { transition-delay: .28s; }
.stagger > .rv:nth-child(5), .stagger > .rv-r:nth-child(5), .stagger > .rv-l:nth-child(5) { transition-delay: .36s; }
.stagger > .rv:nth-child(6), .stagger > .rv-r:nth-child(6), .stagger > .rv-l:nth-child(6) { transition-delay: .44s; }

/* ---------- Marquee ---------- */
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- Skeleton loading ---------- */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 37%, rgba(255,255,255,.04) 63%);
    background-size: 200% 100%;
    animation: shimmer 2.4s linear infinite;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ---------- Scroll progress bar ---------- */
#progressBar {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, #a855f7, #6366f1, #34d399);
    z-index: 90;
    transition: width .12s linear;
}

/* ---------- FAQ accordion ---------- */
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s cubic-bezier(.4,0,.2,1), opacity .35s ease;
    opacity: 0;
}
.faq.open .faq-body { opacity: 1; }
.faq.open .faq-icon { transform: rotate(45deg); color: #c084fc; }
.faq-icon { transition: transform .4s cubic-bezier(.4,0,.2,1), color .3s ease; }

/* ---------- Misc ---------- */
section[id], div[id] { scroll-margin-top: 6rem; }

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: rgba(168, 85, 247, .6) !important;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, .13);
}

.link-underline { position: relative; }
.link-underline::after {
    content: ''; position: absolute; left: 0; bottom: -3px; height: 1px; width: 0;
    background: linear-gradient(90deg, #a855f7, #34d399);
    transition: width .35s cubic-bezier(.4,0,.2,1);
}
.link-underline:hover::after { width: 100%; }

.num-badge {
    background: linear-gradient(140deg, rgba(168,85,247,.2), rgba(99,102,241,.14));
    border: 1px solid rgba(168,85,247,.35);
}

.text-gradient-animated, .text-gradient {
    background: linear-gradient(100deg, #c084fc 0%, #818cf8 45%, #34d399 100%);
    background-size: 180% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradShift 8s ease-in-out infinite;
}

/* Legacy class names kept so older page markup restyles without edits */
.glass-panel { background: rgba(13,15,30,.62); border: 1px solid var(--line); }
.glass-nav   { background: rgba(10,11,23,.9); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%); border-bottom: 1px solid var(--line); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .rv, .rv-l, .rv-r, .rv-blur { opacity: 1 !important; transform: none !important; filter: none !important; }
    .aurora span { animation: none !important; }
}
