:root{
  --bg1:#070A12;
  --bg2:#0B1020;
  --card:#0E1630cc;
  --text:#EAF0FF;
  --muted:#A9B7E1;
  --danger:#FF6B7A;
  --ok:#4FE3A3;
  --shadow: 0 18px 60px rgba(0,0,0,.45);
  --radius: 20px;
  --stroke: rgba(36,50,90,.75);
  --stroke2: rgba(36,50,90,.55);
  --chipbg: rgba(10,16,34,.40);
  --chipbg2: rgba(10,16,34,.55);
  --grad: linear-gradient(135deg, rgba(109,92,255,1), rgba(32,211,255,1));
  --grad2: linear-gradient(90deg, rgba(109,92,255,1), rgba(32,211,255,1));
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 18% 18%, rgba(109,92,255,.18), transparent 60%),
    radial-gradient(900px 500px at 82% 22%, rgba(32,211,255,.14), transparent 60%),
    radial-gradient(900px 600px at 50% 92%, rgba(79,227,163,.10), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
  min-height:100vh;
}

a{ color:inherit; text-decoration:none; }
.wrap{ max-width:1040px; margin:0 auto; padding:18px; }

/* Sticky Header */
.nav{
  position:sticky;
  top:0;
  z-index:60;
  backdrop-filter: blur(10px);
  background: rgba(7,10,18,.55);
  border-bottom: 1px solid var(--stroke2);
}
.navInner{
  max-width:1040px;
  margin:0 auto;
  padding:12px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  position:relative;
}

.brandLink{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:900;
  letter-spacing:.2px;
  min-width: 170px;
}
.logo{
  width:36px; height:36px; border-radius:14px;
  background: var(--grad);
  box-shadow: 0 12px 30px rgba(109,92,255,.22);
  position:relative;
  overflow:hidden;
  flex: 0 0 auto;
}
.logo:after{
  content:"";
  position:absolute; inset:-40%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), transparent 45%);
  transform: rotate(20deg);
}
.logoSmall{
  width:30px;
  height:30px;
  border-radius:12px;
}

/* Real logo image in navbar/drawer */
.logoImg{
  width:36px;
  height:36px;
  border-radius:14px;
  display:block;
  flex: 0 0 auto;
  box-shadow: 0 12px 30px rgba(109,92,255,.22);
}
.logoImgSmall{
  width:30px;
  height:30px;
  border-radius:12px;
}

/* Desktop menu */
.menu{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
  max-width: 560px;
}
.menu a{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: var(--chipbg);
  color:#CFE0FF;
  font-size:13px;
  white-space:nowrap;
}
.menu a:hover{ border-color: rgba(109,92,255,.7); }

/* Mobile hamburger */
.burger{
  display:none;
  width:42px; height:40px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: var(--chipbg2);
  align-items:center;
  justify-content:center;
  cursor:pointer;
  flex: 0 0 auto;
}
.burgerLines{
  width:18px; height:14px; position:relative;
}
.burgerLines span{
  position:absolute; left:0; right:0;
  height:2px; border-radius:999px;
  background:#CFE0FF;
  opacity:.9;
  transition: .2s ease;
}
.burgerLines span:nth-child(1){ top:0; }
.burgerLines span:nth-child(2){ top:6px; }
.burgerLines span:nth-child(3){ top:12px; }

/* Mobile drawer */
.drawerBackdrop{
  position:fixed; inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  display:none;
  z-index:70;
}
.drawer{
  position:fixed;
  top:0; right:0;
  height:100vh;
  width:min(340px, 86vw);
  background: rgba(10,16,34,.92);
  border-left: 1px solid rgba(36,50,90,.65);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  transform: translateX(100%);
  transition: transform .22s ease;
  z-index:80;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.drawerHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:6px 4px 10px;
  border-bottom: 1px solid rgba(36,50,90,.55);
}
.drawerTitle{
  display:flex; align-items:center; gap:10px;
  font-weight:900;
  color:#EAF0FF;
}
.closeBtn{
  width:42px; height:40px;
  border-radius:14px;
  border:1px solid rgba(36,50,90,.75);
  background: rgba(8,12,26,.6);
  color:#CFE0FF;
  cursor:pointer;
  font-size:18px;
}
.drawerNav{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:6px 4px;
}
.drawerNav a{
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(36,50,90,.75);
  background: rgba(8,12,26,.55);
  color:#CFE0FF;
  font-size:14px;
}
.drawerSmall{
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  padding: 10px 6px;
  margin-top:auto;
  border-top:1px solid rgba(36,50,90,.55);
}

.drawerOpen .drawerBackdrop{ display:block; }
.drawerOpen .drawer{ transform: translateX(0); }

/* Anchor offset */
#generator, #how, #keywords, #faq, #privacy { scroll-margin-top: 92px; }

/* Hero */
.hero{
  margin-top:16px;
  display:grid;
  gap:10px;
}
h1{
  font-size:24px;
  margin:0;
  line-height:1.25;
}
.sub{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
  max-width: 920px;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(36,50,90,.8);
  background: rgba(10,16,34,.55);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  font-size:12px;
  color:var(--muted);
  width: fit-content;
}
.dot{
  width:8px; height:8px; border-radius:999px;
  background: rgba(79,227,163,1);
  box-shadow: 0 0 0 6px rgba(79,227,163,.12);
}

/* Tool grid */
.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  margin-top:16px;
}
@media (min-width: 900px){
  .grid{ grid-template-columns: 1.2fr .8fr; }
}

.card{
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.cardHead{
  padding:16px 18px;
  border-bottom: 1px solid rgba(36,50,90,.65);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.cardTitle{ font-size:13px; color:var(--muted); letter-spacing:.25px; }
.pill{
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(36,50,90,.8);
  background: rgba(10,16,34,.45);
  color:#CFE0FF;
  white-space:nowrap;
}
.cardBody{ padding:18px; }

label{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:10px;
  font-size:13px;
  color:#CFE0FF;
  margin-bottom:8px;
}
label .hint{ color:var(--muted); font-size:12px; }

.input{
  width:100%;
  padding:14px 14px;
  border-radius:16px;
  border:1px solid rgba(36,50,90,.85);
  background: rgba(8,12,26,.7);
  color:var(--text);
  outline:none;
  transition: .15s ease;
}
.input:focus{
  border-color: rgba(109,92,255,.85);
  box-shadow: 0 0 0 6px rgba(109,92,255,.14);
}

.row3{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-top:14px;
}
@media (min-width: 560px){
  .row3{ grid-template-columns: 1fr 1fr 1fr; }
}

.note{
  margin-top:12px;
  color:var(--muted);
  font-size:12.5px;
  line-height:1.5;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(36,50,90,.7);
  background: rgba(8,12,26,.55);
}

/* Token */
.tokenWrap{ display:grid; gap:12px; margin-top:16px; }
.tokenBox{
  border-radius:22px;
  padding:16px;
  border:1px solid rgba(36,50,90,.8);
  background:
    radial-gradient(800px 220px at 10% 20%, rgba(109,92,255,.22), transparent 55%),
    radial-gradient(800px 220px at 80% 40%, rgba(32,211,255,.18), transparent 55%),
    rgba(8,12,26,.7);
  text-align:center;
  position:relative;
  overflow:hidden;
}
.tokenBox:after{
  content:"";
  position:absolute; inset:-60%;
  background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.10), transparent 55%);
  transform: rotate(15deg);
  pointer-events:none;
}
.token{
  font-size:46px;
  font-weight:900;
  letter-spacing:6px;
  margin:2px 0 6px;
  position:relative;
  word-break: break-all;
}
.tokenMeta{
  color:var(--muted);
  font-size:13px;
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  position:relative;
}

.k{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(36,50,90,.8);
  background: rgba(8,12,26,.55);
  color:#CFE0FF;
  font-size:12px;
  white-space:nowrap;
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.btn{
  border:1px solid rgba(36,50,90,.8);
  background: rgba(10,16,34,.55);
  color:var(--text);
  padding:12px 14px;
  border-radius:16px;
  cursor:pointer;
  font-weight:700;
  transition:.15s ease;
  width:100%;
}
@media (min-width: 560px){
  .btn{ width:auto; }
}
.btn:hover{ transform: translateY(-1px); }
.btn:disabled{ opacity:.55; cursor:not-allowed; transform:none; }
.btnPrimary{
  background: var(--grad);
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(109,92,255,.18);
  color: #0b0f1e;
}

/* Progress bar (RIGHT -> LEFT decreasing) */
.bar{
  height:10px;
  border-radius:999px;
  background: rgba(8,12,26,.8);
  border:1px solid rgba(36,50,90,.75);
  overflow:hidden;
  margin-top:14px;
}
.bar > div{
  height:100%;
  width:0%;
  margin-left:auto; /* anchor to right */
  background: var(--grad2);
  transition: width .2s linear;
}

.toast{ min-height:18px; margin-top:10px; font-size:13px; color:var(--ok); }
.toast.err{ color:var(--danger); }

/* Sections */
.section{
  margin-top:18px;
  padding:18px;
  border-radius: var(--radius);
  border:1px solid rgba(36,50,90,.65);
  background: rgba(10,16,34,.35);
  backdrop-filter: blur(8px);
}
.section h2{ margin:0 0 10px; font-size:18px; }
.section h3{ margin:14px 0 8px; font-size:15px; color:#DCE6FF; }
.section p, .section li{ color:var(--muted); line-height:1.65; font-size:14px; }
.section ul{ margin:8px 0 0 18px; }

/* Footer */
.footer{
  margin-top:18px;
  padding:18px;
  text-align:center;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
  border-top:1px solid rgba(36,50,90,.55);
}

/* Mobile tuning */
@media (max-width: 820px){
  .menu{ display:none; }
  .burger{ display:flex; }
  .navInner{ padding:10px 12px; }
  .wrap{ padding:14px 12px; }
}
@media (max-width: 520px){
  h1{ font-size:20px; }
  .token{ font-size:38px; letter-spacing:4px; }
  .cardBody{ padding:14px; }
  .cardHead{ padding:14px; }
  .brandLink{ min-width: unset; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; transition:none !important; }
}
