:root{
  --bg-start:#0b1021;
  --bg-end:#2a0c38;
  --glass: rgba(255,255,255,.08);
  --glass-2: rgba(255,255,255,.06);
  --text: #e9f2ff;
  --muted:#a9b8d6;
  --brand1:#7cc7ff;
  --brand2:#ff6e61;
  --accent:#8f7bff;
  --ok:#56e39f;
  --danger:#ff7d66;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
  color:var(--text);
  background: radial-gradient(1200px 800px at 10% 10%, #16204a 0%, rgba(22, 32, 74, 0) 60%),
              radial-gradient(900px 700px at 90% 30%, #361655 0%, rgba(54,22,85,0) 65%),
              linear-gradient(160deg,var(--bg-start),var(--bg-end));
  overflow-x:hidden;
}
.orb{position:fixed; pointer-events:none; filter: blur(45px); opacity:.25; z-index:0}
.orb.o1{width:420px;height:420px; background: #6db7ff; left:-80px; top:-80px; animation: float 12s ease-in-out infinite;}
.orb.o2{width:520px;height:520px; background: #8f7bff; right:-120px; top:120px; animation: float 16s ease-in-out infinite reverse;}
.orb.o3{width:420px;height:420px; background: #ff6e61; left:40%; bottom:-160px; animation: float 18s ease-in-out infinite;}
@keyframes float{0%,100%{transform:translateY(0)} 50%{transform:translateY(-30px)}}
header{
  position:sticky; top:0; z-index:40;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(10,12,25,.8), rgba(10,12,25,.35));
  border-bottom:1px solid rgba(255,255,255,.06);
}
.container{max-width:1100px; margin:0 auto; padding:0 20px;}
.nav{display:flex; align-items:center; justify-content:space-between; padding:14px 0;}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--text)}
.brand svg{width:34px; height:34px;}
.brand-name{font-weight:700; letter-spacing:.2px; font-size:20px}
.nav-actions{display:flex; align-items:center; gap:10px}
.btn{
  appearance:none; border:1px solid transparent; cursor:pointer; font-weight:600;
  padding:12px 16px; border-radius:14px; transition:.2s transform,.2s box-shadow,.2s background,.2s color,.2s border;
  background:var(--glass); color:var(--text); box-shadow:var(--shadow)
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn-ghost{background:transparent; border-color:rgba(255,255,255,.15)}
.btn-primary{
  background: linear-gradient(135deg, var(--brand2), var(--brand1));
  color:#0a0d1e;
  box-shadow:0 8px 24px rgba(124,199,255,.25), 0 8px 24px rgba(255,110,97,.15);
}
.hero{position:relative; z-index:1; padding:56px 0 28px;}
.hero-grid{display:grid; grid-template-columns:1.2fr .8fr; gap:28px; align-items:center;}
.h1{font-size:42px; line-height:1.1; margin:0 0 14px; text-shadow:0 6px 24px rgba(0,0,0,.35)}
.lead{color:var(--muted); font-weight:500; margin-bottom:22px}
.cta{display:flex; gap:12px; flex-wrap:wrap}
.demo{background:var(--glass); border:1px solid rgba(255,255,255,.08); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow);}
.bubble{
  position:relative; display:flex; align-items:flex-start; gap:12px; padding:16px 16px;
  border-radius:18px; background: linear-gradient(140deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.12); margin:12px 0; backdrop-filter: blur(6px);
  transition:.2s transform,.2s border-color,.2s background;
}
.bubble:hover{transform:translateX(4px); border-color: rgba(124,199,255,.45)}
.bubble .icon{
  width:36px;height:36px;border-radius:50%;
  display:grid; place-items:center;
  background:linear-gradient(135deg, rgba(124,199,255,.28), rgba(255,110,97,.28));
  flex-shrink:0;
}
.bubble p{margin:0; color:var(--text)}
.bubble small{display:block; color:var(--muted); margin-top:4px}
.divider{height:1px; background:rgba(255,255,255,.08); margin:14px 0}
.features{display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:34px}
.feature{padding:16px; border-radius:16px; background:var(--glass-2); border:1px solid rgba(255,255,255,.08); box-shadow:var(--shadow)}
.feature h3{margin:0 0 8px; font-size:18px}
.feature p{margin:0; color:var(--muted)}
.sec-heading{margin-top:36px; margin-bottom:12px; color:var(--muted)}
.modal{
  position:fixed; inset:0; display:none; place-items:center; padding:20px; z-index:50;
  background:rgba(5,8,20,.6); backdrop-filter: blur(6px);
}
.modal.open{display:grid;}
.card{
  width:min(860px,100%); display:grid; grid-template-columns: 1.1fr .9fr; gap:0;
  background:linear-gradient(165deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.12); border-radius:20px; overflow:hidden; box-shadow:var(--shadow);
  transform: translateY(8px); animation: pop .3s ease forwards;
}
@keyframes pop{to{transform: translateY(0)}}
.auth-visual{
  position:relative; padding:26px; overflow:hidden; background:
    radial-gradient(600px 380px at 20% 0%, rgba(124,199,255,.28), rgba(124,199,255,0) 60%),
    radial-gradient(600px 380px at 80% 100%, rgba(255,110,97,.24), rgba(255,110,97,0) 65%),
    linear-gradient(160deg, #0e193b, #1d0d2a);
}
.auth-visual h2{margin:0 0 10px}
.auth-visual p{color:var(--muted)}
.auth-panel{padding:50px; background:rgba(15,18,36,.55)}
.tabs{display:flex; gap:8px; margin-bottom:16px}
.tab{flex:1; text-align:center; padding:12px; border-radius:12px; cursor:pointer; font-weight:600;
  border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.05)}
.tab.active{background:linear-gradient(135deg,var(--brand2),var(--brand1)); color:#0b1021}
form{display:grid; gap:12px}
label{font-size:13px; color:var(--muted)}
input{
  width:100%; padding:12px 14px; border-radius:12px; border:1px solid rgba(255,255,255,.14);
  background:rgba(9,12,24,.6); color:var(--text); outline:none; transition:.2s border;
}
input:focus{border-color: var(--brand1)}
.helper{font-size:12px; color:var(--muted)}
.auth-actions .helper {
  text-align: center;
  display: block;
  width: 100%;
  margin-top: 8px;
  opacity: 0.8;
}
.auth-actions .helper a {
  color: var(--brand1);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-actions .helper a:hover {
  color: var(--brand2);
  text-decoration: underline;
}
.auth-actions{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:6px}
/* Close button – fixed padding so it never hugs the edge */
.close-x{
  position:absolute; top:14px; right:16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-size:20px; cursor:pointer;
  border-radius:12px; width:36px; height:36px;
  display:flex; align-items:center; justify-content:center;
  transition: all .2s ease;
}
.close-x:hover{ background: rgba(255,255,255,0.15); transform: scale(1.05);}
footer{margin:60px 0 40px; color:var(--muted); text-align:center}
footer a{color:var(--brand1); text-decoration:none}
@media (max-width:980px){
  .hero-grid{grid-template-columns:1fr}
  .h1{font-size:36px}
  .card{grid-template-columns:1fr}
  .auth-visual{display:none}
  .features{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .h1{font-size:30px}
  .btn{padding:12px 14px}
  .features{grid-template-columns:1fr}
  .brand-name{font-size:18px}
}

