/* =========================
   THEME TOKENS (defaults)
   ========================= */

:root{
  --bg:#0d0e12;

  --panel:rgba(18, 20, 28, .55);
  --panel2:rgba(18, 20, 28, .35);

  --text:#e9ecff;
  --muted:rgba(233,236,255,.72);

  --line:rgba(255,255,255,.10);
  --line2:rgba(255,255,255,.16);

  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --shadow2: 0 12px 32px rgba(0,0,0,.34);

  --radius: 18px;
  --tap: 52px;
  --maxw: 520px;

  --overlay: rgba(0,0,0,.22);

  --menuBg: rgba(16, 18, 26, .95);
  --menuBg2: rgba(16, 18, 26, .92);
}

@media (prefers-color-scheme: light){
  html:not([data-theme]){
    --bg:#f6f7fb;

    --panel:rgba(255,255,255,.74);
    --panel2:rgba(255,255,255,.60);

    --text:#141726;
    --muted:rgba(20,23,38,.66);

    --line:rgba(20,23,38,.10);
    --line2:rgba(20,23,38,.16);

    --shadow: 0 18px 60px rgba(10,12,18,.12);
    --shadow2: 0 12px 32px rgba(10,12,18,.10);

    --overlay: rgba(10,12,18,.12);

    --menuBg: rgba(255,255,255,.96);
    --menuBg2: rgba(255,255,255,.92);
  }
}

html[data-theme="dark"]{
  --bg:#0d0e12;
  --panel:rgba(18, 20, 28, .55);
  --panel2:rgba(18, 20, 28, .35);
  --text:#e9ecff;
  --muted:rgba(233,236,255,.72);
  --line:rgba(255,255,255,.10);
  --line2:rgba(255,255,255,.16);
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --shadow2: 0 12px 32px rgba(0,0,0,.34);
  --overlay: rgba(0,0,0,.22);
  --menuBg: rgba(16, 18, 26, .95);
  --menuBg2: rgba(16, 18, 26, .92);
}

html[data-theme="light"]{
  --bg:#f6f7fb;
  --panel:rgba(255,255,255,.74);
  --panel2:rgba(255,255,255,.60);
  --text:#141726;
  --muted:rgba(20,23,38,.66);
  --line:rgba(20,23,38,.10);
  --line2:rgba(20,23,38,.16);
  --shadow: 0 18px 60px rgba(10,12,18,.12);
  --shadow2: 0 12px 32px rgba(10,12,18,.10);
  --overlay: rgba(10,12,18,.12);
  --menuBg: rgba(255,255,255,.96);
  --menuBg2: rgba(255,255,255,.92);
}

/* =========================
   BASE
   ========================= */

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  color:var(--text);
  background: var(--bg);
  font-family: system-ui, -apple-system, "Roboto", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:-20%;
  background:
    radial-gradient(900px 520px at 20% 15%, rgba(0,229,255,.20), transparent 55%),
    radial-gradient(700px 520px at 85% 25%, rgba(255,61,242,.16), transparent 55%),
    radial-gradient(900px 620px at 50% 95%, rgba(124,77,255,.14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 30%, rgba(255,255,255,.02));
  filter: saturate(1.2);
  z-index:-2;
}
html[data-theme="light"] body::before,
html:not([data-theme]) body::before{ opacity:.55; filter:none; }

body::after{
  content:"";
  position:fixed;
  inset:0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.03) 0,
      rgba(255,255,255,.03) 1px,
      transparent 1px,
      transparent 22px
    );
  opacity:.10;
  z-index:-1;
  pointer-events:none;
}
html[data-theme="light"] body::after,
html:not([data-theme]) body::after{ opacity:.06; }

.wrap{
  width: min(var(--maxw), calc(100% - 32px));
  margin: 18px auto 32px;
  padding-bottom: 10px;
}

.hero{
  margin-top: 8px;
  position: relative;
  z-index: 10;
}

.brand{
  display:flex;
  gap:14px;
  align-items:center;
  padding: 14px 14px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position:relative;
  overflow:hidden;
}

.logo{
  width: 44px;
  height: 44px;
  display:grid;
  place-items:center;
  font-size: 22px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line2);
  flex:0 0 auto;
}

.brandText{ flex: 1 1 auto; }
.title{ margin:0; font-size: 20px; letter-spacing: .2px; }
.subtitle{
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.section{
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.h2{
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: .2px;
  color: var(--text);
}

.btn{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: var(--tap);
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration:none;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-weight: 700;
  letter-spacing:.2px;
}

.btn:active{ transform: translateY(1px) scale(.99); }

.btnPrimary{
  border-color: rgba(0,229,255,.35);
  background: linear-gradient(180deg, rgba(0,229,255,.18), rgba(124,77,255,.08));
  box-shadow:
    0 0 0 1px rgba(0,229,255,.18),
    0 12px 40px rgba(0,229,255,.10),
    0 10px 28px rgba(124,77,255,.08);
  position:relative;
  overflow:hidden;
  animation: pulseNeon 1.8s ease-in-out infinite;
}

@keyframes pulseNeon{
  0%,100%{ box-shadow: 0 0 0 1px rgba(0,229,255,.18), 0 12px 40px rgba(0,229,255,.10), 0 10px 28px rgba(124,77,255,.08); }
  50%{ box-shadow: 0 0 0 1px rgba(0,229,255,.26), 0 18px 60px rgba(0,229,255,.14), 0 14px 36px rgba(255,61,242,.08); }
}

.btnGhost{ background: rgba(255,255,255,.05); }

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.cards{ display:grid; gap: 10px; }

.card{
  display:block;
  text-decoration:none;
  color: var(--text);
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
}

.cardTitle{ font-weight: 800; letter-spacing: .2px; }
.cardMeta{ margin-top: 4px; color: var(--muted); font-size: 12px; }

.steps{
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.45;
  font-size: 13px;
  opacity:.92;
}
.steps li{ margin: 8px 0; }

.footer{ margin-top: 14px; text-align:center; opacity: .8; }
.footerText{ margin: 10px 0 0; color: var(--muted); font-size: 12px; }

/* =========================
   THEME UI
   ========================= */

.iconBtn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line2);
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  color: var(--text);
  font-size: 18px;
  display:grid;
  place-items:center;
  -webkit-tap-highlight-color: transparent;
  position:relative;
  z-index: 20;
}

.panel{
  position:absolute;
  top: 60px;
  right: 12px;
  width: min(340px, calc(100% - 24px));
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--menuBg), var(--menuBg2));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px;
  z-index: 30;
  display:none;
}

.panelTitle{
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 12px;
  margin: 6px 0 8px;
  color: var(--muted);
}
.panelTitle2{ margin-top: 12px; }

.seg{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.seg2{ grid-template-columns: 1fr 1fr; }

.segBtn{
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 14px;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .2px;
  -webkit-tap-highlight-color: transparent;
}

.segBtn.isActive{
  border-color: rgba(0,229,255,.34);
  box-shadow: 0 0 0 1px rgba(0,229,255,.16);
  background: linear-gradient(180deg, rgba(0,229,255,.16), rgba(124,77,255,.08));
}

.overlay{
  position:fixed;
  inset:0;
  background: var(--overlay);
  z-index: 25;
  display:none;
}

/* =========================
   LITE MODE (manual switch)
   ========================= */

html[data-lite="1"] body::before,
html[data-lite="1"] body::after{
  opacity: .04 !important;
}

html[data-lite="1"] .brand,
html[data-lite="1"] .section,
html[data-lite="1"] .panel{
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: var(--shadow2) !important;
}

html[data-lite="1"] .btnPrimary{
  animation: none !important;
}

@media (max-width: 360px){
  .grid2{ grid-template-columns: 1fr; }
  .wrap{ width: calc(100% - 24px); }
}

@media (prefers-reduced-motion: reduce){
  *{
    transition: none !important;
    animation: none !important;
  }
}
