:root{
  --bg:#070A12;
  --bg2:#0A1022;
  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --muted2: rgba(255,255,255,.52);
  --shadow: 0 20px 60px rgba(0,0,0,.55);
  --shadow2: 0 12px 30px rgba(0,0,0,.45);
  --radius: 22px;
  --radius2: 28px;
  --max: 1140px;

  --accent1:#7C5CFF;
  --accent2:#2EE9A6;
  --accent3:#51B8FF;
  --danger:#FF4D6D;
  --warn:#FFB84D;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1000px 700px at 20% 10%, rgba(124,92,255,.18), transparent 60%),
              radial-gradient(900px 650px at 90% 30%, rgba(46,233,166,.14), transparent 55%),
              radial-gradient(800px 600px at 55% 90%, rgba(81,184,255,.10), transparent 55%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.92}

.wrap{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0 60px;
}

.bg{position:fixed; inset:0; pointer-events:none; z-index:-1}
.glow{
  position:absolute; width:540px; height:540px; border-radius:999px;
  filter: blur(40px);
  opacity:.9;
}
.g1{left:-160px; top:-180px; background: radial-gradient(circle at 30% 30%, rgba(124,92,255,.65), transparent 60%)}
.g2{right:-220px; top:120px; background: radial-gradient(circle at 60% 40%, rgba(46,233,166,.55), transparent 62%)}
.g3{left:40%; bottom:-300px; transform:translateX(-50%);
  background: radial-gradient(circle at 50% 50%, rgba(81,184,255,.45), transparent 62%)
}
#stars{position:absolute; inset:0; width:100%; height:100%}

.nav{
  position:fixed; top:14px; left:0; right:0; z-index:50;
  width: min(var(--max), calc(100% - 28px));
  margin: 0 auto;
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(10,14,28,.55);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow2);
}

.brand{
  display:flex; align-items:center; gap:10px;
  padding: 6px 8px;
  border-radius: 999px;
}
.brand img{width:26px; height:26px; border-radius:8px}
.brand span{font-weight:700; letter-spacing:.2px}
.pill{
  font-size:12px; font-weight:600;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.82);
}

.navlinks{display:flex; gap:18px; align-items:center}
.navlinks a{font-size:14px; color: var(--muted); font-weight:600}
.navlinks a:hover{color: rgba(255,255,255,.92)}

.navcta{display:flex; gap:10px; align-items:center}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(81,184,255,.85));
  color: rgba(255,255,255,.95);
  font-weight:800;
  font-size:14px;
  box-shadow: 0 12px 34px rgba(124,92,255,.18);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover{transform: translateY(-1px); box-shadow: 0 18px 44px rgba(124,92,255,.22)}
.btn:active{transform: translateY(0px); opacity:.96}

.btn.ghost{
  background: rgba(255,255,255,.06);
  box-shadow:none;
  font-weight:750;
  color: rgba(255,255,255,.88);
}
.btn.big{padding: 12px 18px; font-size:15px}

.burger{
  display:none;
  background: transparent;
  border: none;
  padding: 10px 10px;
  border-radius: 12px;
}
.burger span{
  display:block; width:22px; height:2px; background: rgba(255,255,255,.85);
  margin: 4px 0; border-radius: 2px;
}
.mobilemenu{
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--max), calc(100% - 28px));
  border-radius: var(--radius);
  background: rgba(10,14,28,.80);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  padding: 14px;
  display:none;
  z-index:60;
  box-shadow: var(--shadow2);
}
.mobilemenu a{
  display:block;
  padding: 12px 12px;
  border-radius: 14px;
  color: rgba(255,255,255,.88);
  font-weight:650;
}
.mobilemenu a:hover{background: rgba(255,255,255,.06)}
.mobilemenu.show{display:block}

.hero{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
  padding-top: 12px;
}

.kicker{
  display:inline-flex; align-items:center; gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.86);
  font-weight:650;
  font-size:13px;
}
.dot{
  width:10px; height:10px; border-radius:999px;
  background: radial-gradient(circle at 30% 30%, var(--accent2), var(--accent3));
  box-shadow: 0 0 18px rgba(46,233,166,.35);
}

.hero h1{
  margin: 14px 0 10px;
  font-size: clamp(38px, 4.4vw, 58px);
  letter-spacing: -1.2px;
  line-height: 1.05;
}
.sub{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 54ch;
}
.hero-cta{display:flex; gap:12px; flex-wrap:wrap; margin: 18px 0 16px}
.mini{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; margin-top: 16px}
.mini-card{
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.mini-top{display:flex; justify-content:space-between; align-items:center; margin-bottom: 10px}
.mini-label{font-weight:800; font-size:13px; color: rgba(255,255,255,.90)}
.mini-chip{
  font-size:12px; font-weight:750;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.78);
}
.mini-value{font-weight:850; letter-spacing:-.2px}
.mini-desc{margin-top: 4px; color: var(--muted2); font-size: 12px}

.phone{
  position:relative;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  padding: 14px;
}
.phone-top{
  display:flex; gap:10px; align-items:center;
  padding: 8px 10px 12px;
}
.cam{
  width:10px; height:10px; border-radius:999px;
  background: rgba(255,255,255,.35);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.25);
}
.ear{
  width:86px; height:10px; border-radius:999px;
  background: rgba(255,255,255,.16);
}
.screen{
  border-radius: 18px;
  background: rgba(5,8,16,.65);
  border: 1px solid rgba(255,255,255,.10);
  overflow:hidden;
}
.screen-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.screen-title{display:flex; gap:10px; align-items:center}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; font-weight:850;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(124,92,255,.16);
  border: 1px solid rgba(124,92,255,.22);
}
.badge.soft{
  background: rgba(46,233,166,.12);
  border-color: rgba(46,233,166,.22);
}
.muted{color: var(--muted); font-weight:650; font-size:12px}
.tiny{
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
  font-weight:800;
  cursor:pointer;
}
.tiny:hover{background: rgba(255,255,255,.08)}
.tiny.danger{
  border-color: rgba(255,77,109,.22);
  background: rgba(255,77,109,.10);
}

.feed{padding: 12px; display:flex; flex-direction:column; gap:10px; min-height: 300px}
.post{
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
}
.post .meta{
  display:flex; justify-content:space-between; align-items:center;
  margin-bottom: 8px;
}
.tag{
  font-size:12px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.74);
  background: rgba(255,255,255,.04);
}
.post p{margin:0; color: rgba(255,255,255,.86); line-height: 1.35}

.screen-foot{
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hint{color: var(--muted2); font-size:12px; font-weight:650}

.shadowtext{
  margin-top: 14px;
  display:flex;
  justify-content:space-between;
  opacity:.75;
}
.shadowtext .line{
  font-weight:900;
  letter-spacing:-.8px;
  color: rgba(255,255,255,.12);
}

.section{padding: 70px 0 0}
.section-head h2{
  margin: 0 0 10px;
  font-size: clamp(26px, 2.3vw, 36px);
  letter-spacing: -0.6px;
}
.section-head p{
  margin: 0;
  color: var(--muted);
  max-width: 80ch;
  line-height: 1.55;
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 18px;
}
.card{
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}
.card h3{margin: 0 0 8px; font-size: 18px}
.card p{margin: 0 0 12px; color: var(--muted); line-height:1.55}
.card ul{margin:0; padding-left: 18px; color: rgba(255,255,255,.84)}
.card li{margin: 6px 0}

.demo{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.demo-left, .demo-right{
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}
.label{display:block; color: rgba(255,255,255,.86); font-weight:800; margin-bottom: 10px}
textarea{
  width:100%;
  min-height: 140px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  color: rgba(255,255,255,.92);
  outline:none;
  resize: vertical;
  font-size: 14px;
  line-height: 1.45;
}
textarea:focus{border-color: rgba(81,184,255,.35); box-shadow: 0 0 0 4px rgba(81,184,255,.10)}
.row{display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top: 12px; flex-wrap:wrap}
.toggle{
  display:flex; align-items:center; gap:10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.86);
  font-weight:750;
}
.toggle input{accent-color: var(--accent3)}
.note{margin-top: 12px; color: var(--muted2); font-size: 13px; line-height: 1.45}
.note code{background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 8px; border: 1px solid rgba(255,255,255,.10)}

.preview{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(5,8,16,.55);
  overflow:hidden;
}
.preview-top{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.preview-body{padding: 12px; color: rgba(255,255,255,.90); line-height:1.45; min-height: 112px}
.preview-actions{
  display:flex; gap:10px;
  padding: 12px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.toast{
  display:none;
  margin: 0 12px 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
  font-weight:700;
}
.toast.show{display:block}
.chips{display:flex; flex-wrap:wrap; gap:8px; margin-top: 12px}
.chip{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.78);
  font-weight:750;
  font-size: 12px;
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.accordion{
  margin-top: 16px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
details{
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  padding: 14px 16px;
}
summary{
  cursor:pointer;
  font-weight:900;
  letter-spacing:-.2px;
}
details p{margin: 10px 0 0; color: var(--muted); line-height:1.55}
details a{text-decoration:underline; text-underline-offset:3px}

.cta{padding: 70px 0 0}
.cta-card{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius2);
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(46,233,166,.10));
  box-shadow: var(--shadow2);
}
.cta-card h2{margin:0 0 6px; letter-spacing:-.6px}
.cta-card p{margin:0; color: var(--muted); line-height:1.55}
.cta-right{display:flex; gap:10px; flex-wrap:wrap}

.footer{
  margin-top: 70px;
  padding: 22px 6px 10px;
  border-top: 1px solid rgba(255,255,255,.10);
  display:flex; justify-content:space-between; align-items:center; gap:14px;
}
.foot-left{display:flex; gap:12px; align-items:center}
.foot-left img{width:38px; height:38px; border-radius: 12px}
.foot-title{font-weight:900; letter-spacing:-.4px}
.foot-sub{margin-top: 2px}
.foot-right{display:flex; gap:14px; flex-wrap:wrap}
.foot-right a{color: var(--muted); font-weight:750}
.foot-right a:hover{color: rgba(255,255,255,.92)}

/* Fallback: show content even if JS doesn't load */
.reveal{
  opacity: 1;
  transform: none;
}

/* Only hide + animate when JS successfully enables it */
html.js .reveal{
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .6s ease, transform .6s ease;
}
html.js .reveal.on{
  opacity: 1;
  transform: translateY(0px);
}


@media (max-width: 980px){
  .hero{grid-template-columns: 1fr; gap: 22px}
  .mini{grid-template-columns: 1fr; }
  .grid{grid-template-columns: 1fr}
  .demo{grid-template-columns: 1fr}
  .split{grid-template-columns: 1fr}
  .navlinks, .navcta{display:none}
  .burger{display:block}
  .wrap{padding-top: 100px}
}
