:root{
    --bg0:#050812;
    --bg1:#070d18;
    --bg2:#0b1426;
  
    --card:rgba(255,255,255,.06);
    --card2:rgba(255,255,255,.04);
    --line:rgba(255,255,255,.10);
  
    --ink:#eaf2ff;
    --muted:rgba(234,242,255,.72);
  
    --brand:#7c3aed;  /* purple */
    --brand2:#22c55e; /* green */
    --brand3:#06b6d4; /* cyan */
  
    --good:#22c55e;
    --danger:#ef4444;
  
    --r:16px;
    --r2:22px;
  
    --shadow:0 20px 60px rgba(0,0,0,.55);
    --glow:0 0 0 1px rgba(255,255,255,.06) inset, 0 18px 60px rgba(124,58,237,.18);
  }
  
  *{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;
    line-height:1.6;
    color:var(--ink);
    background:
      radial-gradient(900px 600px at 12% -10%, rgba(124,58,237,.30), transparent 55%),
      radial-gradient(800px 520px at 90% 0%, rgba(6,182,212,.22), transparent 55%),
      radial-gradient(700px 480px at 70% 110%, rgba(34,197,94,.16), transparent 55%),
      linear-gradient(180deg, var(--bg0), var(--bg1) 45%, var(--bg2));
  }
  
  /* ===== Containers ===== */
  .container{max-width:1200px; margin:0 auto; padding:0 18px}
  
  /* ===== Nav ===== */
  .nav{
    position:sticky; top:0; z-index:50;
    background:rgba(8,12,26,.72);
    backdrop-filter: blur(14px);
    border-bottom:1px solid var(--line);
    box-shadow:0 10px 40px rgba(0,0,0,.35);
  }
  .nav-inner{display:flex; align-items:center; justify-content:space-between; padding:12px 0}
  .brand{display:flex; align-items:center; gap:10px; font-weight:900; letter-spacing:.3px}
  .dot{
    width:30px; height:30px; border-radius:12px;
    background:conic-gradient(from 200deg, var(--brand), var(--brand3), var(--brand2), var(--brand));
    box-shadow:0 0 0 1px rgba(255,255,255,.10) inset, 0 14px 40px rgba(6,182,212,.22);
  }
  .pill{
    margin-left:6px;
    font-size:12px;
    padding:4px 10px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.12);
    background:linear-gradient(135deg, rgba(124,58,237,.18), rgba(6,182,212,.14));
    color:rgba(234,242,255,.92);
  }
  .nav-actions{display:flex; gap:8px; align-items:center; flex-wrap:wrap}
  
  /* ===== Buttons ===== */
  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    padding:10px 14px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:14px;
    background:rgba(255,255,255,.06);
    color:rgba(234,242,255,.92);
    cursor:pointer;
    font-weight:800;
    transition: box-shadow .2s, transform .06s, border-color .2s, background .2s;
  }
  .btn:hover{
    border-color:rgba(6,182,212,.40);
    box-shadow:0 14px 40px rgba(0,0,0,.35);
    background:rgba(255,255,255,.08);
  }
  .btn:active{transform:translateY(1px)}
  .btn.primary{
    border:0;
    color:#07101c;
    background:linear-gradient(135deg, var(--brand3), var(--brand2));
    box-shadow:0 18px 50px rgba(6,182,212,.20);
  }
  .btn.primary:hover{
    box-shadow:0 22px 60px rgba(34,197,94,.18);
  }
  .btn.ghost{
    background:linear-gradient(135deg, rgba(124,58,237,.16), rgba(6,182,212,.12));
    border:1px solid rgba(255,255,255,.14);
  }
  a.btn{text-decoration:none}
  .btn-small{padding:10px 14px; border-radius:14px}
  
  /* ===== Inputs ===== */
  .input{
    width:100%;
    padding:13px 14px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:14px;
    background:rgba(8,12,26,.55);
    color:rgba(234,242,255,.92);
    font-size:1rem;
    box-shadow:0 0 0 1px rgba(255,255,255,.04) inset;
  }
  .input::placeholder{color: rgba(234,242,255,.55); font-weight:700}
  .input:focus-visible{
    outline:none;
    border-color:rgba(6,182,212,.55);
    box-shadow:0 0 0 3px rgba(6,182,212,.18), 0 20px 60px rgba(0,0,0,.35);
  }
  
  .pw{position:relative}
  .pw .input{padding-right:52px}
  .pw .eye{
    position:absolute; right:10px; top:50%; transform:translateY(-50%);
    width:38px; height:38px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:12px;
    background:rgba(255,255,255,.08);
    color:rgba(234,242,255,.92);
    cursor:pointer;
    box-shadow:0 14px 40px rgba(0,0,0,.35);
  }
  .pw .eye:hover{border-color:rgba(6,182,212,.55)}
  .pw .eye:active{transform:translateY(-50%) translateY(1px)}
  
  /* ===== Hero ===== */
  .hero{
    color:var(--ink);
    padding:70px 0 76px;
    background:
      radial-gradient(900px 650px at 15% 10%, rgba(124,58,237,.35), transparent 60%),
      radial-gradient(850px 600px at 85% 20%, rgba(6,182,212,.24), transparent 60%),
      linear-gradient(180deg, rgba(5,8,18,.25), rgba(5,8,18,0));
    border-bottom:1px solid rgba(255,255,255,.10);
  }
  .hero-grid{
    display:grid;
    grid-template-columns: 1.1fr .9fr;
    gap:18px;
    align-items:stretch;
  }
  .kicker{
    display:inline-block;
    font-size:12px;
    letter-spacing:2px;
    opacity:.95;
    padding:6px 10px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:999px;
    background:rgba(255,255,255,.06);
    margin-bottom:10px;
  }
  .hero h1{font-size:clamp(30px,5vw,56px); line-height:1.05; margin:.2em 0 .35em}
  .hero .sub{opacity:.82; max-width:62ch; margin:0 0 16px; color:var(--muted)}
  .hero-cta{display:flex; flex-wrap:wrap; gap:10px; align-items:center}
  .tiny{opacity:.75; font-size:12px; color:var(--muted)}
  
  /* ===== Right panel ===== */
  .hero-panel{
    border-radius:22px;
    border:1px solid rgba(255,255,255,.12);
    background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    box-shadow:var(--shadow);
    overflow:hidden;
  }
  .panel-top{
    display:flex; align-items:center; justify-content:space-between;
    padding:14px 14px;
    border-bottom:1px solid rgba(255,255,255,.10);
    background:linear-gradient(135deg, rgba(124,58,237,.16), rgba(6,182,212,.14));
  }
  .panel-title{font-weight:900; letter-spacing:1px; font-size:12px; opacity:.95}
  .status{display:flex; align-items:center; gap:8px; font-size:12px; opacity:.9}
  .led{width:10px; height:10px; border-radius:999px; background:rgba(34,197,94,.95); box-shadow:0 0 12px rgba(34,197,94,.55)}
  .panel-body{padding:14px}
  .meter{margin:12px 0}
  .meter-label{font-size:12px; opacity:.85; margin-bottom:6px; color:var(--muted)}
  .bar{
    height:10px; border-radius:999px;
    background:rgba(255,255,255,.10);
    overflow:hidden;
    border:1px solid rgba(255,255,255,.10);
  }
  .bar span{
    display:block; height:100%;
    background:linear-gradient(90deg, var(--brand3), var(--brand2));
    border-radius:999px;
  }
  .grid-mini{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:14px}
  .mini{
    border:1px solid rgba(255,255,255,.10);
    background:rgba(255,255,255,.06);
    border-radius:16px;
    padding:10px;
  }
  .mini-h{font-weight:900; font-size:13px}
  .mini-p{opacity:.78; font-size:12px; color:var(--muted)}
  
  /* ===== Features ===== */
  .features{padding:66px 0}
  .features h2{margin:0 0 8px}
  .muted{color:var(--muted); margin:0 0 16px}
  .grid{display:grid; grid-template-columns:repeat(3,1fr); gap:16px}
  .card{
    background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
    border:1px solid rgba(255,255,255,.12);
    border-radius:20px;
    padding:18px;
    box-shadow:var(--shadow);
  }
  .card h3{margin:0 0 6px}
  
  /* ===== Footer ===== */
  .footer{
    padding:40px 0 64px;
    color:rgba(234,242,255,.65);
    border-top:1px solid rgba(255,255,255,.10);
    text-align:center
  }
  
  /* ===== Modals ===== */
  .modal-backdrop{
    position:fixed; inset:0;
    background:rgba(0,0,0,.60);
    display:none;
    align-items:center; justify-content:center;
    padding:18px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: mbFade .18s ease-out;
  }
  .modal-backdrop.open{display:flex}
  @keyframes mbFade{from{opacity:0}to{opacity:1}}
  
  .modal{
    width:min(520px,100%);
    background:linear-gradient(180deg, rgba(10,16,34,.92), rgba(10,16,34,.82));
    border:1px solid rgba(255,255,255,.12);
    border-radius:22px;
    box-shadow:0 30px 100px rgba(0,0,0,.60);
    overflow:hidden;
    transform: translateY(6px);
    animation: mbPop .22s cubic-bezier(.2,.9,.2,1);
  }
  @keyframes mbPop{
    from{transform: translateY(14px) scale(.98); opacity:.6}
    to{transform: translateY(6px) scale(1); opacity:1}
  }
  
  .modal header{
    display:flex; align-items:center; justify-content:space-between;
    padding:16px 18px;
    border-bottom:1px solid rgba(255,255,255,.10);
    background:linear-gradient(135deg, rgba(124,58,237,.16), rgba(6,182,212,.14));
  }
  .modal header h2{
    margin:0;
    font-size:18px;
    letter-spacing:.2px;
  }
  
  .modal .close{
    all:unset;
    cursor:pointer;
    width:36px; height:36px;
    display:grid; place-items:center;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.08);
    color:rgba(234,242,255,.92);
    transition: transform .08s, box-shadow .2s, border-color .2s;
  }
  .modal .close:hover{
    border-color:rgba(6,182,212,.55);
    box-shadow:0 14px 40px rgba(0,0,0,.40);
  }
  .modal .close:active{transform: translateY(1px)}
  
  .form{padding:18px}
  .form .input{margin-bottom:12px}
  
  .actions{
    display:flex;
    justify-content:center;
    gap:12px;
    margin-top:12px;
    padding-top:12px;
    border-top:1px solid rgba(255,255,255,.10);
  }
  .actions .btn{
    padding:11px 16px;
    border-radius:14px;
  }
  .actions .btn.primary{min-width:140px}
  
  .alert{
    display:none;
    margin:14px 18px 0;
    padding:12px 12px;
    border-radius:14px;
    font-weight:900;
  }
  .alert.success{display:block; background:rgba(34,197,94,.12); border:1px solid rgba(34,197,94,.22); color:#bbf7d0}
  .alert.error{display:block; background:rgba(239,68,68,.12); border:1px solid rgba(239,68,68,.22); color:#fecaca}
  
  /* Auth switch */
  .switch-auth{
    margin-top:14px;
    padding-top:12px;
    border-top:1px solid rgba(255,255,255,.10);
    text-align:center;
    font-size:14px;
    color:rgba(234,242,255,.70);
  }
  .link-btn{
    all:unset;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-left:6px;
    padding:6px 10px;
    border-radius:12px;
    font-weight:900;
    color:rgba(234,242,255,.95);
    background:linear-gradient(135deg, rgba(124,58,237,.22), rgba(6,182,212,.16));
    border:1px solid rgba(255,255,255,.12);
  }
  .link-btn:hover{border-color:rgba(6,182,212,.55)}
  .link-btn:active{transform: translateY(1px)}
  
  /* Responsive */
  @media(max-width:980px){
    .hero-grid{grid-template-columns:1fr;}
    .grid{grid-template-columns:1fr}
  }
  @media (max-width:420px){
    .modal{border-radius:18px}
    .actions{flex-direction:column}
    .actions .btn,
    .actions .btn.primary{width:100%}
  }
  

  .input,
  .input:focus,
  .input:focus-visible{
    background:rgba(8,12,26,.55) !important;
    color:rgba(234,242,255,.92) !important;
    border-color:rgba(6,182,212,.55) !important;
    outline:none !important;
  }
  .input::placeholder{
    color:rgba(234,242,255,.55) !important;
  }
  

  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus,
  textarea:-webkit-autofill,
  textarea:-webkit-autofill:hover,
  textarea:-webkit-autofill:focus{
    -webkit-text-fill-color: rgba(234,242,255,.92) !important;
    -webkit-box-shadow: 0 0 0px 1000px rgba(8,12,26,.70) inset !important;
    box-shadow: 0 0 0px 1000px rgba(8,12,26,.70) inset !important;
    border:1px solid rgba(6,182,212,.55) !important;
    transition: background-color 9999s ease-out 0s;
  }
  

  html, body{ width:100%; overflow-x:hidden; }
  img, svg, video, canvas{ max-width:100%; height:auto; }
  .container{ width:100%; }
  

  .nav-inner{ gap:10px; }
  .nav-actions{ flex-wrap:nowrap; }
  
  @media (max-width:520px){
    .container{ padding:0 12px; }
    .nav-inner{ padding:10px 0; }
    .nav-actions{ gap:6px; }
    .btn{ padding:9px 12px; border-radius:12px; font-size:14px; }
    .pill{ display:none; }
  }
  
  @media (max-width:380px){
    .btn{ padding:8px 10px; font-size:13px; }
  }
  

  @media (max-width:600px){
    .hero{ padding:44px 0 46px; }
    .hero h1{
      font-size: clamp(26px, 8.5vw, 44px);
      line-height: 1.06;
      max-width: 100%;
    }
    .hero .sub{
      font-size: 16px;
      line-height: 1.55;
      max-width: 100%;
    }
  }
  

  @media (max-width:600px){
    .hero-panel{ border-radius:18px; }
    .panel-top{ padding:12px; }
    .panel-body{ padding:12px; }
    .grid-mini{ grid-template-columns:1fr; }
  }
  



  
  