/* VORTEX — Minimal Dark UI (clean + professional)
   Works with your current HTML classes/ids.
*/

/* Always show page */
html, body { opacity: 1 !important; visibility: visible !important; }

:root{
  --bg: #07090d;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.08);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.60);

  --border: rgba(255,255,255,.10);
  --border2: rgba(255,255,255,.16);

  --accent: #6d5efc;      /* subtle violet */
  --accent2: #4c43d8;

  --radius: 14px;
  --shadow: 0 16px 50px rgba(0,0,0,.55);
  --shadow2: 0 10px 26px rgba(0,0,0,.40);

  --mx: 50vw;
  --my: 35vh;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: radial-gradient(1000px 700px at 50% 0%, rgba(109,94,252,.14), transparent 60%),
              radial-gradient(900px 700px at 0% 30%, rgba(255,255,255,.05), transparent 60%),
              radial-gradient(900px 700px at 100% 30%, rgba(255,255,255,.04), transparent 60%),
              var(--bg);
  overflow-x:hidden;
}

/* subtle vignette + mouse glow */
body::before{
  content:"";
  position: fixed;
  inset:0;
  pointer-events:none;
  background: radial-gradient(1100px 800px at 50% 60%, rgba(0,0,0,0), rgba(0,0,0,.70));
}
body::after{
  content:"";
  position: fixed;
  inset:0;
  pointer-events:none;
  background: radial-gradient(620px 620px at var(--mx) var(--my),
      rgba(109,94,252,.18),
      rgba(109,94,252,.10) 22%,
      transparent 60%);
  mix-blend-mode: screen;
  opacity: .9;
}

/* Layout helpers */
.wrap{ width:min(1120px, calc(100% - 44px)); margin: 0 auto; }
.hidden{ display:none !important; }
.w-full{ width:100%; }
.small{ font-size:12px; }
.muted{ color: var(--muted); }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace; }
.divider{ height:1px; background: var(--border); margin: 14px 0; }
.stack{ display:flex; flex-direction:column; gap: 10px; }

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
}

/* Entrance animation */
@keyframes enterUp { from { opacity:0; transform: translateY(10px);} to {opacity:1; transform: translateY(0);} }
@keyframes enterRight { from { opacity:0; transform: translateX(16px);} to {opacity:1; transform: translateX(0);} }

body:not(.is-ready) .topbar__inner,
body:not(.is-ready) .hero__left,
body:not(.is-ready) .hero__card,
body:not(.is-ready) .grid3{
  opacity:0; transform: translateY(10px);
}
body.is-ready .topbar__inner{ animation: enterUp .45s ease-out both; }
body.is-ready .hero__left{ animation: enterUp .55s ease-out both; animation-delay:.06s; }
body.is-ready .hero__card{ animation: enterRight .60s ease-out both; animation-delay:.10s; }
body.is-ready .grid3{ animation: enterUp .55s ease-out both; animation-delay:.14s; }

/* Optional: split-word headline animation (if using data-split="words") */
h1 .w{ display:inline-block; opacity:0; transform: translateY(10px); animation: enterUp .6s ease-out both; animation-delay: calc(var(--i,0) * 40ms); }

/* Topbar */
.topbar{
  position: sticky;
  top:0;
  z-index: 50;
  padding: 16px 0;
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.30);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Brand */
.brand{ display:flex; align-items:center; gap: 12px; cursor:pointer; user-select:none; }
.brand__logo{
  width: 38px; height: 38px;
  border-radius: 12px;
  display:grid; place-items:center;
  border: 1px solid rgba(109,94,252,.30);
  background: rgba(109,94,252,.12);
  overflow:hidden;
}
.brand__logoimg{ width: 22px; height: 22px; object-fit: contain; display:block; }
.brand__name{ font-weight: 900; letter-spacing: .08em; line-height: 1; }
.brand__sub{ font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Nav */
.nav{ display:flex; align-items:center; gap: 8px; }
.nav__icon{
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  display:grid; place-items:center;
  cursor:pointer;
  transition: background .15s ease, border-color .15s ease, transform .08s ease;
}
.nav__icon img{ width: 16px; height: 16px; object-fit: contain; opacity:.9; }
.nav__icon:hover{ background: rgba(255,255,255,.05); border-color: var(--border2); }
.nav__icon:active{ transform: translateY(1px); }

.nav__btn{
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  padding: 9px 12px;
  border-radius: 12px;
  font-weight: 700;
  cursor:pointer;
  transition: background .15s ease, border-color .15s ease, transform .08s ease;
}
.nav__btn:hover{ background: rgba(255,255,255,.05); border-color: var(--border); }
.nav__btn:active{ transform: translateY(1px); }

.actions{ display:flex; align-items:center; gap: 10px; }

/* Buttons */
.btn{
  border-radius: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 800;
  cursor:pointer;
  transition: transform .08s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover{ border-color: var(--border2); background: rgba(255,255,255,.06); box-shadow: var(--shadow2); }
.btn:active{ transform: translateY(1px); }
.btn--ghost{ background: transparent; }
.btn--ghost:hover{ background: rgba(255,255,255,.05); }

.btn--primary{
  border-color: rgba(109,94,252,.45);
  background: rgba(109,94,252,.14);
}
.btn--primary:hover{
  border-color: rgba(109,94,252,.65);
  background: rgba(109,94,252,.18);
}
.btn:disabled{ opacity:.55; cursor:not-allowed; box-shadow:none; }

/* Views */
.view{ padding: 26px 0 56px; }

/* Hero */
.hero{
  display:grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 22px;
  align-items:start;
  padding: 18px 0 12px;
}
@media (max-width: 920px){
  .topbar__inner{ border-radius: 22px; }
  .hero{ grid-template-columns: 1fr; }
}

/* Chip */
.chip{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.86);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 16px;
}

/* Typography */
h1{
  font-size: clamp(34px, 4.6vw, 54px);
  margin: 0 0 10px;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
h2{ margin: 0 0 6px; font-size: 24px; letter-spacing: -0.01em; }
p{ margin:0; line-height:1.6; max-width: 62ch; }

.hero__cta{ display:flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

/* Bullets (more minimal) */
.bullets{ margin-top: 20px; display:flex; flex-direction:column; gap: 12px; }
.bullet{ display:flex; gap: 10px; align-items:flex-start; }
.dot{
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(255,255,255,.75);
  margin-top: 8px;
}
.bullet__title{ font-weight: 850; }

/* Cards */
.card{
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 18px 45px rgba(0,0,0,.24);
  backdrop-filter: blur(12px);
}
.card__title{ font-weight: 900; margin-bottom: 10px; }

/* Grids */
.grid3{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 920px){ .grid3{ grid-template-columns: 1fr; } }

.grid2{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 920px){ .grid2{ grid-template-columns: 1fr; } }

.row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* Pills */
.pill{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 850;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
}

/* Forms */
.field label{
  display:block;
  font-size: 12px;
  font-weight: 850;
  color: rgba(255,255,255,.72);
  margin-bottom: 6px;
}
.field input, .field select{
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  outline: none;
  background: rgba(0,0,0,.22);
  color: var(--text);
  font-weight: 700;
}
.field input::placeholder{ color: rgba(255,255,255,.38); }
.field input:focus, .field select:focus{
  border-color: rgba(109,94,252,.55);
  box-shadow: 0 0 0 4px rgba(109,94,252,.12);
}

/* KV */
.kv{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 12px;
  align-items:center;
}
.kv__k{ font-size: 12px; font-weight: 850; color: rgba(255,255,255,.62); }
.kv__v{ font-weight: 750; overflow-wrap:anywhere; }

/* Empty */
.empty{
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,.18);
  color: rgba(255,255,255,.60);
  background: rgba(255,255,255,.03);
}

/* Callout */
.callout{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  padding: 12px;
}
.callout__title{ font-weight: 850; margin-bottom: 4px; }

/* License cards */
.lic{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0,0,0,.14);
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.lic__top{ display:flex; align-items:flex-start; justify-content:space-between; gap: 10px; }
.badge{
  font-size: 12px;
  font-weight: 850;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
}

/* Table */
.table{ width:100%; border-collapse: collapse; }
.table th, .table td{
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  text-align:left;
  font-size: 13px;
}
.table th{ color: rgba(255,255,255,.70); font-weight: 850; }

/* Modal */
.modal{
  position: fixed;
  inset: 0;
  z-index: 80;
  display:grid;
  place-items:center;
  padding: 20px;
}
.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.70);
  backdrop-filter: blur(10px);
}
.modal__panel{
  position:relative;
  width: min(440px, 100%);
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15,16,20,.88);
  box-shadow: var(--shadow);
  padding: 14px;
}
.modal__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 6px 6px 10px;
}
.modal__title{ font-weight: 900; font-size: 18px; }
.modal__body{ padding: 6px; }

.iconbtn{
  width: 36px; height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  cursor:pointer;
  font-weight: 900;
  color: var(--text);
}
.iconbtn:hover{ border-color: var(--border2); box-shadow: var(--shadow2); }

/* Tabs */
.tabs{ display:flex; gap: 8px; padding: 0 6px 8px; }
.tab{
  flex:1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  font-weight: 850;
  cursor:pointer;
  color: var(--text);
}
.tab--active{
  border-color: rgba(109,94,252,.55);
  background: rgba(109,94,252,.14);
}

/* Toast */
.toast{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  font-weight: 800;
}
.toast--ok{ border-color: rgba(109,94,252,.45); background: rgba(109,94,252,.12); }
.toast--bad{ border-color: rgba(255,77,77,.30); background: rgba(255,77,77,.10); }

/* Cursor ring + dot (matches the HTML I gave you) */
.has-cursor{ cursor: none; }
.cursor-dot, .cursor-ring{
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-999px, -999px, 0);
}
.cursor-dot{
  width: 6px; height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  margin-left: -3px; margin-top: -3px;
}
.cursor-ring{
  width: 68px; height: 68px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.03);
  margin-left: -34px; margin-top: -34px;
  backdrop-filter: blur(6px);
}

/* Mobile: don’t hide cursor */
@media (pointer: coarse){
  .cursor-dot, .cursor-ring{ display:none !important; }
  .has-cursor{ cursor: auto; }
}
