:root{
  --bg:#0f1115; --panel:#151821; --panel-2:#1b1f2a;
  --text:#e8ecf2; --muted:#a7b0c0;
  --brand:#7289da; --brand-2:#90a5ef;
  --accent:#2a3040; --ring:rgba(114,137,218,.35);
  --radius:16px; --radius-sm:12px; --shadow:0 12px 30px rgba(0,0,0,.35);
  --container: 1080px;
}

/* Reset-ish */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: radial-gradient(1200px 800px at 85% -10%, rgba(114,137,218,.12), transparent 60%), var(--bg);
  color:var(--text);
  font:500 16px/1.6 ui-sans-serif, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
  letter-spacing:.2px;
}
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
.container{max-width:var(--container); margin:0 auto; padding:0 20px}

/* Announcement bar (global) */
.bar{
  background:linear-gradient(90deg,var(--brand),var(--brand-2));
  color:#0b0f19; text-align:center; padding:8px 0; font-weight:800;
}

/* Header / Nav (global) */
header{
  position:sticky; top:0; z-index:40;
  backdrop-filter: blur(8px);
  background: rgba(15,17,21,.65);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.nav{display:flex; align-items:center; justify-content:space-between; height:64px}
.brand{display:flex; gap:12px; align-items:center}
.brand-badge{width:36px;height:36px;}
.links{display:flex; gap:16px; align-items:center; flex-wrap:wrap}
.links a{color:var(--muted); padding:8px 10px; border-radius:10px}
.links a:hover{color:var(--text); background:var(--accent)}
.links a.login{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:12px;
  font-weight:800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#0b0f19;               /* dark text = better contrast on the light gradient */
  border:none;
  box-shadow: 0 6px 16px rgba(0,0,0,.35), 0 0 14px rgba(114,137,218,.45);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.links a.login:hover{
  transform:translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,0,0,.4), 0 0 18px rgba(114,137,218,.55);
}
.links a.login:active{ transform:none; opacity:.9 }
.links a.login:focus-visible{
  outline:2px solid transparent;
  box-shadow: 0 0 0 3px rgba(114,137,218,.55);
}



/* Breadcrumbs + page head (shared) */
.crumbs{padding:16px 0 0; color:var(--muted); font-size:14px}
.crumbs a:hover{color:var(--text)}
.page-head{padding:18px 0 6px}
.title{margin:.25rem 0 .2rem; font-size: clamp(24px, 4.5vw, 38px); line-height:1.15}
.subtitle{color:var(--muted); margin:0}
.muted{color:var(--muted)}

/* Hero (landing) */
.hero{padding:72px 0 26px; text-align:center}
.eyebrow{
  display:inline-flex; gap:8px; align-items:center;
  padding:6px 10px; border-radius:999px;
  background: rgba(114,137,218,0.12);
  border:1px solid rgba(114,137,218,0.25);
  color: var(--brand-2);
  font-size:13px; font-weight:700; letter-spacing:.3px;
}
.hero h2{margin:18px auto 10px; max-width:790px; font-size: clamp(28px, 6vw, 48px); line-height:1.1}
.hero p{margin:0 auto; max-width:720px; color:var(--muted); font-size: clamp(14px, 2.4vw, 18px)}

/* Cards + grids (shared) */
.card{
  background:linear-gradient(180deg,var(--panel),var(--panel-2));
  border:1px solid rgba(255,255,255,.06);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:20px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.card:hover{transform: translateY(-2px); border-color: rgba(114,137,218,0.35); background: linear-gradient(180deg, #171b25, #202536)}

/* Stats (landing) */
.stats{display:grid; gap:16px; grid-template-columns: repeat(4, minmax(0,1fr)); padding:28px 0 72px}
@media (max-width: 900px){ .stats{grid-template-columns: repeat(2, minmax(0,1fr))} }
@media (max-width: 520px){ .stats{grid-template-columns: 1fr} }
.card .label{color:var(--muted); font-size:13px; letter-spacing:.4px; text-transform:uppercase}
.card .value{margin-top:6px; font-size: clamp(26px, 5vw, 40px); font-weight:800}

/* Store page */
.filters{margin:12px 0 8px; display:grid; gap:12px; grid-template-columns: 1fr 220px}
@media (max-width: 800px){ .filters{grid-template-columns:1fr} }
.search{
  display:flex; align-items:center; gap:10px;
  background:linear-gradient(180deg,var(--panel),var(--panel-2));
  border:1px solid rgba(255,255,255,.06);
  border-radius:999px; padding:8px 12px; box-shadow:var(--shadow);
}
.search input{flex:1; background:transparent; border:none; outline:none; color:var(--text); font:inherit}
.select{
  background:linear-gradient(180deg,var(--panel),var(--panel-2));
  border:1px solid rgba(255,255,255,.06);
  border-radius:12px; padding:10px 12px; box-shadow:var(--shadow);
  color:var(--text);
}
.chips{display:flex; gap:10px; flex-wrap:wrap; padding:8px 0 12px}
.chip{
  padding:8px 12px; border-radius:999px; font-weight:700; font-size:14px;
  background:rgba(114,137,218,.12); border:1px solid rgba(114,137,218,.25); color:var(--brand-2);
  cursor:pointer; user-select:none;
}
.chip.is-active{background:linear-gradient(135deg,var(--brand),var(--brand-2)); color:#0b0f19; border-color:transparent; box-shadow:0 10px 24px var(--ring)}
.grid{display:grid; gap:16px; grid-template-columns: repeat(3, minmax(0,1fr)); padding:8px 0 52px}
@media (max-width: 1000px){ .grid{grid-template-columns: repeat(2, minmax(0,1fr))} }
@media (max-width: 620px){ .grid{grid-template-columns: 1fr} }
.store-card{position:relative; overflow:hidden}
.card.thumb{padding:0}
.thumb{aspect-ratio: 16/9; background:#0c0f16; border-bottom:1px solid rgba(255,255,255,.06)}
.badge{
  position:absolute; left:12px; top:12px;
  padding:6px 10px; border-radius:999px; font-size:12px; font-weight:900;
  background:linear-gradient(135deg,var(--brand),var(--brand-2)); color:#0b0f19; box-shadow:0 8px 18px var(--ring)
}
.content{padding:14px}
.name{margin:0; font-size:18px; line-height:1.25}
.desc{margin:.3rem 0 0; color:var(--muted); font-size:14px}
.meta{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:12px}
.price{font-weight:900; color:var(--brand-2)}
.cta{padding:8px 12px; border-radius:10px; font-weight:800; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.04); color:var(--text); cursor:pointer}
.cta:hover{background:var(--accent)}
.tags{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
.tag{font-size:12px; padding:4px 8px; border-radius:999px; background:rgba(255,255,255,.06); color:var(--muted); border:1px solid rgba(255,255,255,.08)}
.pager{display:flex; gap:10px; align-items:center; justify-content:center; padding:8px 0 60px}
.page-btn{
  padding:8px 12px; border-radius:10px; border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04); color:var(--text); cursor:pointer; min-width:40px; text-align:center;
}
.demo-btn {
  display: inline-block;
  background: var(--accent, linear-gradient(135deg, #0ea5e9, #6366f1));
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.demo-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.page-btn:hover{background:var(--accent)}
.page-btn.is-active{background:linear-gradient(135deg,var(--brand),var(--brand-2)); color:#0b0f19; border-color:transparent; box-shadow:0 8px 22px var(--ring)}

/* Product page */
.product-head{display:grid; gap:18px; align-items:start; grid-template-columns: 1.2fr .8fr; padding:22px 0 8px}
@media (max-width: 900px){ .product-head{grid-template-columns:1fr} }
.title-lg{margin:4px 0 0; font-size: clamp(22px, 4.5vw, 34px); line-height:1.15}
.price-lg{color:var(--brand-2); font-weight:900; font-size: clamp(18px, 3.5vw, 26px)}
.buy{
  display:flex; gap:10px; align-items:center; flex-wrap:wrap;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#0b0f19; border:none; padding:12px 16px; border-radius:14px; font-weight:900;
  box-shadow:0 10px 28px var(--ring); cursor:pointer;
}
.banner{border-radius:var(--radius); overflow:hidden; border:1px solid rgba(255,255,255,.06); background:linear-gradient(180deg,var(--panel),var(--panel-2)); box-shadow:var(--shadow)}
.banner img{width:100%; display:block; aspect-ratio: 16/7; object-fit:cover}
.grid-split{display:grid; gap:16px; padding:18px 0 60px; grid-template-columns: 1.3fr .7fr}
@media (max-width: 900px){ .grid-split{grid-template-columns:1fr} }
.list-grid{display:grid; gap:12px; grid-template-columns:1fr 1fr}
@media (max-width: 600px){ .list-grid{grid-template-columns:1fr} }
ul.feature-list{margin:10px 0 0; padding-left:18px}
ul.feature-list li{margin:6px 0}

/* ToS page */
.layout{display:grid; gap:18px; grid-template-columns: 280px 1fr; padding:16px 0 60px}
@media (max-width: 980px){ .layout{grid-template-columns:1fr} }
.sidebar{
  position:sticky; top:88px; align-self:start;
  background:linear-gradient(180deg,var(--panel),var(--panel-2));
  border:1px solid rgba(255,255,255,.06);
  border-radius:var(--radius); box-shadow:var(--shadow);
  padding:14px; max-height: calc(100vh - 110px); overflow:auto;
}
.sidebar h3{margin:2px 6px 6px; font-size:14px; color:var(--muted); text-transform:uppercase; letter-spacing:.4px}
.toc{list-style:none; margin:0; padding:0}
.toc li{margin:2px 0}
.toc a{display:block; padding:8px 10px; border-radius:10px; color:var(--muted); font-size:14px}
.toc a:hover, .toc a.active{color:var(--text); background:var(--accent)}
.note{background:rgba(114,137,218,.1); border:1px solid rgba(114,137,218,.25); border-radius:12px; padding:12px 14px; margin:10px 0}

/* Footer (global) */
footer{border-top:1px solid rgba(255,255,255,.06); background:rgba(15,17,21,.65); padding:28px 0; color:var(--muted)}
.foot{display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap}

/* Back to top button (ToS) */
.top{
  position:fixed; right:16px; bottom:16px; z-index:60; display:none;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#0b0f19; border:none; padding:10px 14px; border-radius:999px; font-weight:900; box-shadow:0 16px 40px var(--ring); cursor:pointer;
}

/* Print */
@media print{
  header, .bar, .sidebar, .top, .crumbs {display:none !important}
  body{background:#fff; color:#000}
  .card{box-shadow:none; border:none; padding:0}
  .container{max-width:800px}
}

/* STORE: custom select */
.select-wrap{
  position: relative;
  display: inline-block;
  width: 100%;
}
.select{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  width: 100%;
  height: 44px;
  padding: 0 42px 0 12px;

  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  color: var(--text);
  font: inherit;

  box-shadow: var(--shadow);
  transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.select:hover{
  border-color: rgba(114,137,218,.35);
}
.select:focus{
  outline: none;
  border-color: rgba(114,137,218,.55);
  box-shadow: 0 0 0 3px rgba(114,137,218,.25), var(--shadow);
}
.select:active{ transform: translateY(1px); }

/* custom chevron */
.select-wrap::after{
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 10px; height: 10px;
  transform: translateY(-60%) rotate(45deg);
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  pointer-events: none;
  opacity: .9;
  transition: opacity .15s ease, transform .15s ease;
}
.select-wrap:focus-within::after{
  opacity: 1;
  transform: translateY(-60%) rotate(45deg) scale(1.05);
}

/* dark dropdown popover hint (Chromium/Firefox) */
.select, .select * { color-scheme: dark; }

/* optional: smaller on narrow screens */
@media (max-width: 800px){
  .select{ height: 42px; }
}

/* Custom select v2 */
.select2{
  position: relative;
  width: 100%;
  max-width: 100%;
}

/* Keep native select for form semantics but visually hide it */
.select2-native{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;                /* still focusable via label, but we’ll handle focus on the button */
  pointer-events: none;      /* interaction through custom UI */
}

/* The visible button */
.select2-btn{
  width: 100%;
  height: 44px;
  padding: 0 42px 0 12px;
  text-align: left;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  color: var(--text);
  font: inherit;
  box-shadow: var(--shadow);
  cursor: pointer;
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.select2-btn:hover{ border-color: rgba(114,137,218,.35); }
.select2-btn:focus-visible{
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(114,137,218,.25), var(--shadow);
}

/* Chevron */
.select2-btn::after{
  content:"";
  position:absolute; right:12px; top:50%;
  width:10px; height:10px;
  transform: translateY(-60%) rotate(45deg);
  border-right:2px solid var(--muted);
  border-bottom:2px solid var(--muted);
  opacity:.9;
  transition: transform .15s ease, opacity .15s ease;
}
.select2-btn[aria-expanded="true"]::after{
  transform: translateY(-40%) rotate(225deg);
}

/* Dropdown */
.select2-list{
  position: absolute;
  z-index: 60;
  left: 0; right: 0;
  margin-top: 6px;
  padding: 6px;
  list-style: none;
  background: linear-gradient(180deg, #171b25, #202536);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  max-height: 260px;
  overflow: auto;
}
.select2-list li{
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
}
.select2-list li[aria-selected="true"]{
  background: rgba(114,137,218,.12);
  outline: 1px solid rgba(114,137,218,.25);
}
.select2-list li:hover{
  background: var(--accent);
}

/* Product page: sticky mobile buy (CTA) */
.sticky-buy{
  position: fixed;
  left: 0; right: 0; bottom: 12px;
  z-index: 60;
  display: none;                 /* hidden by default (desktop) */
  justify-content: center;
  pointer-events: none;
}
.sticky-buy .wrap{
  pointer-events: auto;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0b0f19;
  box-shadow: 0 16px 40px rgba(114,137,218,.35), 0 6px 20px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 900px){
  .sticky-buy{ display: flex; }
}


