/* =====================================================================
   RA19 DIGITAL ASSETS — design system
   Shared by index.html and product.html
   ===================================================================== */

:root {
  --bg: #07060d;
  --bg-2: #0d0b18;
  --card: #12101f;
  --card-2: #171430;
  --text: #f4f2ff;
  --muted: #a29dc4;
  --line: rgba(255, 255, 255, 0.09);
  --g1: #7c3aed;
  --g2: #ec4899;
  --g3: #22d3ee;
  --g4: #f59e0b;
  --radius: 20px;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }

.grad-text {
  background: linear-gradient(100deg, var(--g3), var(--g1) 45%, var(--g2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px);
  opacity: 0.42; pointer-events: none; z-index: 0;
}

/* ---- nav ---- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); background: rgba(7, 6, 13, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.02em; font-size: 1.05rem; }
.logo img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.93rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-links .dropdown { position: relative; }
.nav-links .dropdown > a::after { content: " ▾"; font-size: 0.7em; opacity: 0.7; }
.nav-links .dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: var(--card-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 8px; min-width: 230px; opacity: 0; visibility: hidden; transition: 0.2s;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.nav-links .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-links .dropdown-menu a { display: block; padding: 9px 14px; border-radius: 9px; font-size: 0.9rem; color: var(--muted); }
.nav-links .dropdown-menu a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 0.95rem; border: 0; cursor: pointer;
  padding: 13px 26px; border-radius: 999px;
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
  font-family: inherit; white-space: nowrap;
}
.btn-grad {
  background: linear-gradient(100deg, var(--g3), var(--g1) 50%, var(--g2));
  background-size: 180% 180%; color: #0a0714;
  box-shadow: 0 10px 34px rgba(124, 58, 237, 0.45);
  animation: shift 7s ease infinite;
}
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(236, 72, 153, 0.5); }
@keyframes shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: #fff; border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.11); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }
.nav .btn { display: none; }
@media (min-width: 900px) { .nav .btn { display: inline-flex; } }

/* ---- hero ---- */
.hero { position: relative; padding: 96px 0 84px; overflow: hidden; }
.blob-1 { width: 560px; height: 560px; background: #7c3aed; top: -220px; left: -160px; }
.blob-2 { width: 480px; height: 480px; background: #ec4899; top: 40px; right: -180px; }
.blob-3 { width: 420px; height: 420px; background: #22d3ee; bottom: -260px; left: 35%; opacity: 0.3; }
.hero-in { position: relative; z-index: 1; text-align: center; max-width: 880px; margin: 0 auto; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--muted);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 10px #22d3ee; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.3rem); line-height: 1.05; font-weight: 900; letter-spacing: -0.04em; margin: 26px 0 22px; }
.hero p.lead { font-size: clamp(1rem, 2.2vw, 1.18rem); color: var(--muted); max-width: 660px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.trust { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-top: 44px; color: var(--muted); font-size: 0.87rem; }
.trust span { display: flex; align-items: center; gap: 8px; }
.check { color: #22d3ee; font-weight: 800; }

/* ---- marquee ---- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 16px 0; overflow: hidden; background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 52px; width: max-content; animation: scroll 30s linear infinite; }
.marquee-track span {
  font-weight: 800; font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.34); white-space: nowrap;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---- sections ---- */
section { position: relative; padding: 88px 0; }
.sec-head { text-align: center; max-width: 700px; margin: 0 auto 54px; }
.sec-head h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.sec-head p { color: var(--muted); margin-top: 14px; font-size: 1.03rem; }
.eyebrow { display: block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--g3); margin-bottom: 14px; }
.cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.cat-head .cat-title { display: flex; align-items: center; gap: 16px; }
.cat-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem;
  background: linear-gradient(140deg, var(--c1, #22d3ee), var(--c2, #ec4899));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}
.cat-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.15; }
.cat-head .cat-tag { color: var(--muted); font-size: 0.95rem; margin-top: 4px; max-width: 560px; }
.count-badge { font-size: 0.8rem; font-weight: 700; color: var(--muted); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }

/* ---- filters ---- */
.filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: -24px 0 44px; }
.chip {
  padding: 9px 20px; border-radius: 999px; font-size: 0.87rem; font-weight: 600; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--muted);
  font-family: inherit; transition: 0.2s;
}
.chip:hover { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.chip.active { background: linear-gradient(100deg, var(--g3), var(--g1) 55%, var(--g2)); color: #0a0714; border-color: transparent; }

/* ---- product grid / cards ---- */
.grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(160deg, var(--card), var(--card-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-7px); border-color: rgba(255, 255, 255, 0.22); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55); }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--c1, #22d3ee), var(--c2, #ec4899)); }
.thumb {
  position: relative; overflow: hidden; height: 180px; display: block;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.14), transparent 60%), linear-gradient(140deg, var(--c1, #22d3ee), var(--c2, #ec4899));
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.card:hover .thumb img { transform: scale(1.05); }
.thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3.4rem; z-index: 1; }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 8, 20, 0.72)); }
.badge {
  position: absolute; top: 13px; right: 13px; z-index: 2;
  padding: 5px 11px; border-radius: 999px; font-size: 0.7rem; font-weight: 800;
  background: linear-gradient(100deg, var(--g4), #ef4444); color: #150a02;
}
.badge.soon { background: rgba(7, 6, 13, 0.8); color: var(--muted); border: 1px solid var(--line); }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.card-body h3 a:hover { color: var(--g3); }
.subtitle { color: var(--g3); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin: 6px 0 8px; }
.card-body .desc { color: var(--muted); font-size: 0.92rem; flex: 1; }
.feat { list-style: none; margin: 16px 0 18px; display: flex; flex-direction: column; gap: 7px; }
.feat li { font-size: 0.85rem; color: #cfc9ee; display: flex; gap: 9px; align-items: flex-start; }
.feat li::before { content: "✦"; color: var(--g3); font-size: 0.8rem; line-height: 1.5; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; padding-top: 16px; border-top: 1px dashed rgba(255, 255, 255, 0.14); margin-bottom: 16px; }
.price { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.03em; }
.price small { font-size: 0.7rem; font-weight: 600; color: var(--muted); margin-left: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.old-price { font-size: 0.95rem; color: var(--muted); text-decoration: line-through; }
.card-actions { display: flex; align-items: center; gap: 14px; }
.card-actions .btn { flex: 1; }
.link-sm { color: var(--muted); font-size: 0.88rem; font-weight: 600; white-space: nowrap; }
.link-sm:hover { color: #fff; }

/* ---- featured banner ---- */
.featured-banner {
  position: relative; overflow: hidden; border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(120deg, rgba(34, 211, 238, 0.16), rgba(124, 58, 237, 0.2) 45%, rgba(236, 72, 153, 0.2));
  display: grid; gap: 0; grid-template-columns: 1fr;
}
@media (min-width: 860px) { .featured-banner { grid-template-columns: 1fr 1.25fr; } }
.featured-img { min-height: 280px; position: relative; overflow: hidden; }
.featured-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, rgba(13, 11, 24, 0.9)); }
@media (max-width: 859px) { .featured-img::after { background: linear-gradient(180deg, transparent 40%, rgba(13, 11, 24, 0.95)); } }
.featured-body { padding: 44px 40px; }
.featured-body h3 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.12; }
.featured-body > p { color: #d7d2f2; margin-top: 14px; font-size: 0.98rem; }
.featured-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.featured-cta .price { font-size: 2.6rem; }
.regulator-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.reg-chip { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); color: #e6e2ff; }

/* ---- faq ---- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 13px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 0 22px; transition: border-color 0.2s; }
details[open] { border-color: rgba(124, 58, 237, 0.55); background: var(--card-2); }
summary { cursor: pointer; list-style: none; padding: 19px 0; font-weight: 700; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; color: var(--g3); transition: transform 0.25s; line-height: 1; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 20px; font-size: 0.95rem; }

/* ---- final cta ---- */
.final { text-align: center; position: relative; overflow: hidden; }
.final h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.06; }
.final p { color: var(--muted); max-width: 520px; margin: 18px auto 32px; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); padding: 40px 0; background: var(--bg-2); }
.foot { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
@media (min-width: 760px) { .foot { flex-direction: row; justify-content: space-between; text-align: left; } }
footer small { color: var(--muted); font-size: 0.85rem; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.foot-links a { color: var(--muted); font-size: 0.87rem; transition: color 0.2s; }
.foot-links a:hover { color: #fff; }

/* ---- breadcrumb ---- */
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 0.88rem; color: var(--muted); margin-bottom: 24px; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: 0.5; }

/* ---- product detail ---- */
.pdp { position: relative; padding: 54px 0 80px; overflow: hidden; }
.pdp-grid { display: grid; gap: 40px; grid-template-columns: 1fr; position: sticky; z-index: 1; }
@media (min-width: 960px) { .pdp-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; } }
.pdp-media { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--card); position: sticky; top: 92px; }
.pdp-media img { width: 100%; display: block; }
.pdp-info h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.12; margin: 10px 0 12px; }
.pdp-info .sub { color: var(--g3); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.82rem; }
.pdp-info .summary { color: var(--muted); font-size: 1.02rem; margin: 16px 0 22px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin: 22px 0; }
.pdp-price .price { font-size: 2.8rem; }
.buy-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-top: 26px; }
.buy-card .btn { width: 100%; }
.buy-note { color: var(--muted); font-size: 0.82rem; text-align: center; margin-top: 12px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; margin-top: 26px; }
.panel h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.panel ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.panel ul li { color: #d3cef0; font-size: 0.93rem; display: flex; gap: 10px; align-items: flex-start; }
.panel ul li::before { content: "✓"; color: var(--g3); font-weight: 800; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 11px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.1); font-size: 0.92rem; vertical-align: top; }
.spec-table td:first-child { color: var(--muted); width: 40%; padding-right: 16px; }
.spec-table tr:last-child td { border-bottom: 0; }
.related { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.not-found { text-align: center; padding: 120px 20px; }
.not-found h1 { font-size: 2rem; margin-bottom: 12px; }
.not-found p { color: var(--muted); margin-bottom: 26px; }

/* ---- toast ---- */
#toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 140%);
  background: var(--card-2); border: 1px solid rgba(124, 58, 237, 0.6);
  color: #fff; padding: 13px 22px; border-radius: 12px; font-size: 0.9rem; z-index: 99;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.6); transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3);
  max-width: 92vw; text-align: center;
}
#toast.show { transform: translate(-50%, 0); }

/* ---- legal / policy pages ---- */
.legal { position: relative; padding: 60px 0 90px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 34px; }
.legal h2 { font-size: 1.22rem; font-weight: 800; letter-spacing: -0.02em; margin: 34px 0 12px; }
.legal p { color: #cfc9ee; font-size: 0.96rem; margin-bottom: 14px; }
.legal ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 0 0 16px; }
.legal ul li { color: #cfc9ee; font-size: 0.94rem; display: flex; gap: 10px; align-items: flex-start; }
.legal ul li::before { content: "•"; color: var(--g3); font-weight: 800; }
.legal a { color: var(--g3); text-decoration: underline; text-underline-offset: 2px; }
.legal .back { margin-top: 40px; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  section { padding: 64px 0; }
  .featured-body { padding: 32px 26px; }
}
