:root{
  --bg:#080b10;
  --surface:#0e131b;
  --surface2:#131a24;
  --surface3:#18202c;
  --border:#242d3a;

  --text:#f4f6f9;
  --muted:#8b97a7;

  --accent:#728cff;
  --accent-hover:#879dff;

  --green:#4bc98b;
  --red:#ff6e78;

  --radius:14px;
}

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  min-height:100%;
}

body{
  background:var(--bg);
  color:var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,input,textarea,select{
  font:inherit;
}

button{
  cursor:pointer;
}

.hidden{
  display:none!important;
}

.logo{
  width:34px;
  height:34px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  background:var(--accent);
  color:white;

  border-radius:9px;

  font-weight:800;
}

.brand,
.auth-brand,
.sidebar-brand{
  display:flex;
  align-items:center;
  gap:11px;

  color:white;
  font-weight:750;
  text-decoration:none;
}

.public-header{
  height:76px;

  max-width:1220px;
  margin:auto;
  padding:0 28px;

  display:flex;
  align-items:center;
  justify-content:space-between;
}

.header-actions{
  display:flex;
  gap:9px;
}

.primary,
.secondary,
.ghost{
  border-radius:9px;
  padding:10px 16px;

  border:1px solid transparent;

  transition:.15s ease;
}

.primary{
  color:white;
  background:var(--accent);
}

.primary:hover{
  background:var(--accent-hover);
}

.secondary{
  background:var(--surface);
  border-color:var(--border);
  color:var(--text);
}

.ghost{
  color:var(--muted);
  background:transparent;
  border-color:var(--border);
}

.large{
  padding:13px 22px;
}

.full{
  width:100%;
}

.landing{
  max-width:1220px;
  margin:auto;
  padding:90px 28px 70px;
}

.hero{
  min-height:580px;

  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:70px;

  align-items:center;
}

.eyebrow{
  color:#91a3ff;

  font-size:11px;
  font-weight:800;

  letter-spacing:.16em;
}

.hero h1{
  margin:19px 0;

  max-width:720px;

  font-size:65px;
  line-height:1.02;

  letter-spacing:-.045em;
}

.hero-copy>p{
  max-width:670px;

  color:var(--muted);

  font-size:18px;
  line-height:1.7;
}

.hero-actions{
  display:flex;
  gap:11px;

  margin-top:30px;
}

.product-preview{
  padding:22px;

  background:
    linear-gradient(
      145deg,
      #121824,
      #0d1219
    );

  border:1px solid #283244;
  border-radius:18px;

  box-shadow:
    0 40px 100px rgba(0,0,0,.38);
}

.preview-header{
  display:flex;
  justify-content:space-between;

  padding-bottom:18px;

  border-bottom:1px solid var(--border);

  font-weight:650;
}

.online{
  color:var(--green);
  font-size:12px;
}

.metrics{
  display:grid;
  grid-template-columns:1fr 1fr;

  gap:10px;

  margin:18px 0;
}

.metric{
  padding:15px;

  background:var(--surface2);

  border:1px solid #202938;
  border-radius:11px;
}

.metric small{
  display:block;

  color:var(--muted);

  font-size:10px;
  letter-spacing:.1em;
}

.metric strong{
  display:block;

  margin:8px 0 4px;

  font-size:21px;
}

.metric span{
  color:var(--muted);
  font-size:11px;
}

.ai-card{
  padding:18px;

  background:#0a0f16;

  border:1px solid var(--border);
  border-radius:11px;
}

.ai-card small{
  color:#91a3ff;

  font-size:10px;
  font-weight:750;

  letter-spacing:.12em;
}

.question{
  margin:13px 0;

  font-weight:650;
}

.answer{
  color:var(--muted);

  font-size:13px;
  line-height:1.6;
}

.features{
  display:grid;
  grid-template-columns:repeat(3,1fr);

  gap:14px;

  margin-top:70px;
}

.feature{
  padding:25px;

  border:1px solid var(--border);
  border-radius:var(--radius);

  background:var(--surface);
}

.feature-icon{
  color:#91a3ff;

  font-size:12px;
  font-weight:800;
}

.feature h3{
  margin:15px 0 8px;
}

.feature p{
  margin:0;

  color:var(--muted);

  line-height:1.6;
  font-size:14px;
}

.auth-view{
  min-height:calc(100vh - 76px);

  display:flex;
  justify-content:center;
  align-items:center;

  padding:30px;
}

.auth-card{
  width:min(430px,100%);

  padding:32px;

  background:var(--surface);

  border:1px solid var(--border);
  border-radius:16px;
}

.auth-brand{
  margin-bottom:34px;
}

.auth-card h2{
  margin-bottom:6px;
}

.muted{
  color:var(--muted);
}

label{
  display:block;

  margin:18px 0 7px;

  color:#c7d0dc;

  font-size:13px;
}

input,
textarea,
select{
  width:100%;

  padding:11px 12px;

  color:var(--text);
  background:#090e14;

  border:1px solid var(--border);
  border-radius:8px;

  outline:none;
}

input:focus,
textarea:focus,
select:focus{
  border-color:var(--accent);
}

form .primary{
  margin-top:22px;
}

.switch{
  margin-top:22px;

  color:var(--muted);

  text-align:center;
}

.link{
  padding:0;

  border:0;

  background:none;
  color:#91a3ff;
}

.app-shell{
  min-height:100vh;

  display:grid;
  grid-template-columns:240px minmax(0,1fr);
}

.sidebar{
  min-height:100vh;

  display:flex;
  flex-direction:column;

  padding:21px 15px;

  border-right:1px solid var(--border);

  background:#090d13;
}

.sidebar-brand{
  padding:0 8px 25px;
}

.sidebar nav{
  display:flex;
  flex-direction:column;
  gap:4px;
}

.sidebar nav button{
  display:flex;
  align-items:center;
  gap:10px;

  padding:10px 12px;

  text-align:left;

  color:var(--muted);
  background:transparent;

  border:0;
  border-radius:8px;
}

.sidebar nav button:hover,
.sidebar nav button.active{
  color:var(--text);
  background:var(--surface2);
}

.nav-divider{
  height:1px;

  margin:10px 5px;

  background:var(--border);
}

.sidebar-footer{
  margin-top:auto;

  padding-top:18px;

  border-top:1px solid var(--border);
}

#userMini{
  margin:0 7px 14px;

  color:var(--muted);

  font-size:12px;
  line-height:1.5;
}

.workspace{
  min-width:0;

  padding:30px;
}

.workspace-header{
  margin-bottom:27px;

  display:flex;
  justify-content:space-between;
  align-items:center;
}

.workspace-header h2{
  margin:5px 0 0;

  font-size:28px;
}

.view{
  max-width:1500px;
}

.card{
  padding:20px;

  background:var(--surface);

  border:1px solid var(--border);
  border-radius:var(--radius);
}

.grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);

  gap:13px;
}

.metric-value{
  margin-top:8px;

  font-size:29px;
  font-weight:750;
}

.section-title{
  margin:28px 0 13px;

  display:flex;
  justify-content:space-between;
  align-items:center;
}

.section-title h3{
  margin:0;
}

.project-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);

  gap:13px;
}

.project-card{
  cursor:pointer;

  transition:.15s ease;
}

.project-card:hover{
  transform:translateY(-1px);

  border-color:#414c5e;
}

.project-name{
  margin-top:14px;

  font-size:17px;
  font-weight:700;
}

.project-code{
  margin-top:4px;

  color:var(--muted);

  font-size:11px;
}

.progress{
  height:6px;

  margin:18px 0 8px;

  overflow:hidden;

  background:#202733;

  border-radius:20px;
}

.progress>span{
  display:block;

  height:100%;

  background:var(--accent);
}

.status{
  display:inline-block;

  padding:5px 8px;

  color:var(--muted);

  border:1px solid var(--border);
  border-radius:7px;

  font-size:10px;
}

.empty{
  padding:45px;

  color:var(--muted);

  text-align:center;

  border:1px dashed var(--border);
  border-radius:var(--radius);
}

.table-wrap{
  overflow:auto;

  border:1px solid var(--border);
  border-radius:var(--radius);
}

table{
  width:100%;
  min-width:700px;

  border-collapse:collapse;
}

th,
td{
  padding:12px 14px;

  border-bottom:1px solid var(--border);

  text-align:left;

  font-size:13px;
}

th{
  color:var(--muted);

  font-weight:600;
}

.modal-backdrop{
  position:fixed;

  inset:0;

  z-index:100;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:20px;

  background:rgba(0,0,0,.72);
}

.modal{
  width:min(520px,100%);

  padding:25px;

  background:var(--surface);

  border:1px solid var(--border);
  border-radius:15px;
}

.modal h3{
  margin-top:0;
}

#toast{
  position:fixed;

  z-index:200;

  top:20px;
  right:20px;
}

.toast{
  margin-bottom:8px;
  padding:12px 15px;

  background:#171e29;

  border:1px solid var(--border);
  border-radius:9px;

  box-shadow:0 15px 50px rgba(0,0,0,.35);
}

@media(max-width:1000px){

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

  .hero h1{
    font-size:52px;
  }

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

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

}

@media(max-width:720px){

  .app-shell{
    grid-template-columns:1fr;
  }

  .sidebar{
    min-height:auto;

    border-right:0;
    border-bottom:1px solid var(--border);
  }

  .sidebar nav{
    flex-direction:row;

    overflow:auto;
  }

  .sidebar-footer{
    display:none;
  }

  .workspace{
    padding:20px;
  }

  .grid,
  .project-grid,
  .metrics,
  .features{
    grid-template-columns:1fr;
  }

  .hero{
    min-height:auto;
  }

  .hero h1{
    font-size:42px;
  }

  .landing{
    padding-top:55px;
  }

  .header-actions .ghost{
    display:none;
  }

}
