/* NASPHALT — future-tech dark */
:root{
  --bg:#05070c;
  --bg2:#070a10;
  --panel:rgba(255,255,255,.04);
  --panel2:rgba(255,255,255,.06);
  --line:rgba(255,255,255,.10);
  --text:#e8ecff;
  --muted:#aab2d6;
  --brand:#7c3aed;
  --brand2:#22d3ee;
  --good:#22c55e;
  --warn:#f59e0b;
  --bad:#ef4444;
  --shadow: 0 22px 70px rgba(0,0,0,.55);
  --radius: 18px;
  --max: 1180px;
}
*{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;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(124,58,237,.35), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(34,211,238,.22), transparent 55%),
    radial-gradient(900px 700px at 50% 110%, rgba(124,58,237,.14), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2) 45%, var(--bg));
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--max); margin:0 auto; padding:0 18px;}
.nav{
  position:sticky; top:0; z-index:50;
  background: rgba(6,8,12,.58);
  backdrop-filter: blur(12px);
  border-bottom:1px solid var(--line);
}
.nav-inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0;}
.brand{display:flex; align-items:center; gap:10px; font-weight:900; letter-spacing:.5px;}
.logo{
  width:34px;height:34px;border-radius:12px;
  background: conic-gradient(from 210deg, var(--brand), var(--brand2), var(--brand));
  box-shadow: 0 14px 45px rgba(124,58,237,.22);
}
.nav-links{display:flex; gap:18px; align-items:center; color:var(--muted); font-weight:700;}
.nav-links a{opacity:.9}
.nav-links a:hover{opacity:1; color:var(--text)}
.nav-actions{display:flex; gap:10px; align-items:center;}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 14px; border-radius:12px; border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  font-weight:800;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  cursor:pointer;
  user-select:none;
}
.btn:hover{transform: translateY(-1px); border-color: rgba(255,255,255,.20); background: rgba(255,255,255,.06);}
.btn.primary{
  border: 1px solid rgba(124,58,237,.35);
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(34,211,238,.75));
  box-shadow: 0 18px 50px rgba(124,58,237,.22);
}
.btn.primary:hover{transform: translateY(-1px) scale(1.01)}
.btn.small{padding:8px 12px; border-radius:11px; font-weight:850;}
.btn.ghost{background: rgba(255,255,255,.02);}

.section{padding:52px 0;}
.hero{padding:72px 0 32px;}
.hero-grid{display:grid; grid-template-columns: 1.2fr .8fr; gap:18px; align-items:stretch;}
.kicker{
  display:inline-flex; gap:10px; align-items:center;
  padding:8px 12px; border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-weight:800;
  width:fit-content;
}
.dot{width:8px;height:8px;border-radius:99px;background:var(--good); box-shadow: 0 0 0 6px rgba(34,197,94,.12);}
h1{
  margin:16px 0 10px;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height:1.02;
  letter-spacing: -.9px;
}
.sub{
  color:var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  line-height:1.6;
  max-width: 58ch;
  margin: 0 0 22px;
}
.panel{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.mock{padding:16px; position:relative; overflow:hidden; min-height: 360px;}
.mock::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(650px 320px at 20% 20%, rgba(124,58,237,.35), transparent 65%),
    radial-gradient(500px 320px at 70% 30%, rgba(34,211,238,.25), transparent 60%);
  opacity:.85;
  pointer-events:none;
}
.mock-inner{position:relative}
.pill{
  display:inline-flex; gap:8px; align-items:center;
  padding:7px 10px; border-radius:999px;
  border:1px solid var(--line);
  color: var(--muted);
  font-weight:800; font-size:12px;
  background: rgba(255,255,255,.03);
}
.mock-top{display:flex; justify-content:space-between; gap:10px; align-items:center;
  padding:10px 10px; border:1px solid var(--line); border-radius: 14px;
  background: rgba(7,10,16,.55);
}
.grid2{display:grid; grid-template-columns: 1fr 1fr; gap:10px; margin-top:12px;}
.card{padding:12px; border:1px solid var(--line); border-radius: 14px; background: rgba(7,10,16,.45);}
.card h3{margin:0 0 6px; font-size:12px; color: var(--muted); font-weight:900; text-transform:uppercase; letter-spacing:.12em;}
.metric{font-size:18px; font-weight:950; letter-spacing:-.2px; display:flex; align-items:baseline; justify-content:space-between; gap:12px;}
.tag{
  font-size:12px; font-weight:900; padding:6px 10px; border-radius:999px;
  border:1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); white-space:nowrap;
}
.tag.good{border-color: rgba(34,197,94,.35); color: rgba(34,197,94,.95);}
.tag.warn{border-color: rgba(245,158,11,.35); color: rgba(245,158,11,.95);}
.tag.bad{border-color: rgba(239,68,68,.35); color: rgba(239,68,68,.95);}

.table{margin-top:10px; border:1px solid var(--line); border-radius: 14px; overflow:hidden; background: rgba(7,10,16,.45);}
.row{display:grid; grid-template-columns: 1.2fr .7fr .7fr .6fr; gap:10px; padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.07); font-size:13px; color: rgba(232,236,255,.92);}
.row.head{color: var(--muted); font-weight:900; background: rgba(255,255,255,.02);}
.row:last-child{border-bottom:none}
.mini{margin-top:12px; color: rgba(169,177,214,.9); font-weight:700; font-size:14px;}
.mini span{color: var(--text);}

h2{margin:0 0 10px; font-size: clamp(22px, 2.8vw, 34px); letter-spacing:-.4px;}
.lead{margin:0 0 20px; color: var(--muted); line-height:1.65; max-width: 74ch; font-weight:650;}

.features{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px;}
.feat{padding:16px;}
.icon{
  width:42px; height:42px; border-radius:14px;
  border:1px solid var(--line);
  background: linear-gradient(135deg, rgba(124,58,237,.35), rgba(34,211,238,.18));
  display:flex; align-items:center; justify-content:center;
  font-weight:950;
  margin-bottom:10px;
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}
.feat h3{margin:0 0 8px; font-size:16px;}
.feat p{margin:0; color: var(--muted); line-height:1.6; font-size:14px; font-weight:650;}

.split{display:grid; grid-template-columns: 1fr 1fr; gap:14px;}
.box{padding:16px;}
.lbl{display:block; font-size:12px; font-weight:950; letter-spacing:.11em; color:var(--muted); margin:0 0 8px;}
.hint{font-size:12px; color:rgba(170,178,214,.85); margin-top:8px; font-weight:650;}
input, textarea, select{
  width:100%;
  background: rgba(7,10,16,.6);
  border: 1px solid var(--line);
  color: var(--text);
  padding:12px 12px;
  border-radius: 12px;
  font-weight:650;
  outline:none;
}
textarea{min-height: 120px; resize:vertical;}
input:focus, textarea:focus, select:focus{border-color: rgba(34,211,238,.35); box-shadow: 0 0 0 4px rgba(34,211,238,.10);}

.checks{display:flex; flex-wrap:wrap; gap:10px;}
.ck{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  font-weight:800;
  color: rgba(232,236,255,.92);
}
.ck input{width:auto}
.btnrow{display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:14px;}
.status{color: var(--muted); font-weight:750; font-size:14px;}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; font-weight:950;
  padding:7px 10px; border-radius:999px;
  border:1px solid rgba(124,58,237,.35);
  background: rgba(124,58,237,.12);
}
.cta{padding:22px;}
.footer{
  padding:28px 0 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.foot{display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; align-items:center;}
.fine{font-size:13px; font-weight:650; line-height:1.55;}

.modal-backdrop{
  position:fixed; inset:0;
  background: rgba(0,0,0,.62);
  display:none; align-items:center; justify-content:center;
  padding:18px; z-index:100;
}
.modal{
  width:min(560px, 100%);
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  padding:16px;
}
.modal-head{display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:8px;}
.tabs{display:flex; gap:10px; margin:10px 0;}
.tab{padding:8px 10px; border-radius:999px; border:1px solid var(--line); background: rgba(255,255,255,.03); font-weight:850; color: var(--muted); cursor:pointer;}
.tab.active{background: rgba(124,58,237,.18); border-color: rgba(124,58,237,.35); color: var(--text);}
.kv{display:grid; grid-template-columns: 1fr 1fr; gap:10px;}
hr.sep{border:none; border-top:1px solid rgba(255,255,255,.10); margin:14px 0;}

.codebox{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  background: rgba(7,10,16,.65);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding:12px;
  white-space:pre-wrap;
  line-height:1.55;
}
.toast{
  position: fixed;
  right: 14px;
  bottom: 14px;
  background: rgba(7,10,16,.72);
  border:1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding:10px 12px;
  box-shadow: var(--shadow);
  display:none;
  max-width: min(440px, calc(100% - 28px));
  z-index: 200;
  color: rgba(232,236,255,.95);
  font-weight:750;
}

@media (max-width: 920px){
  .hero-grid{grid-template-columns:1fr;}
  .mock{min-height: 320px;}
  .features{grid-template-columns:1fr;}
  .split{grid-template-columns:1fr;}
  .nav-links{display:none;}
  .kv{grid-template-columns:1fr;}
}


/* =========================
   CHAT UI (NASPHALT Official)
   ========================= */
:root{
  --bg0:#06070B;
  --bg1:#0A0D16;
  --panel:#0D1222;
  --panel2:#0B1020;
  --stroke:rgba(168,181,255,.14);
  --stroke2:rgba(168,181,255,.09);
  --text:#EAF0FF;
  --muted:rgba(192,205,255,.72);
  --muted2:rgba(192,205,255,.55);
  --good:#57E4B6;
  --warn:#FFD37A;
}

body{
  background:
    radial-gradient(1200px 600px at 18% -10%, rgba(96,112,255,.18), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(74,240,255,.10), transparent 55%),
    radial-gradient(900px 600px at 60% 110%, rgba(255,102,204,.08), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

.nav{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(6,7,11,.65);
  border-bottom: 1px solid var(--stroke2);
}

.logo{
  width: 16px; height: 16px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(96,112,255,.95), rgba(74,240,255,.65));
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 10px 30px rgba(96,112,255,.18);
}

.chat-shell{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  align-items: stretch;
  min-height: calc(100vh - 84px);
}

.chat-side{
  border: 1px solid var(--stroke2);
  background: linear-gradient(180deg, rgba(13,18,34,.72), rgba(10,13,22,.72));
  border-radius: 16px;
  padding: 14px;
}

.chat-main{
  border: 1px solid var(--stroke2);
  background: linear-gradient(180deg, rgba(10,13,22,.80), rgba(8,10,18,.80));
  border-radius: 16px;
  padding: 14px;
  display:flex;
  flex-direction: column;
  min-height: 72vh;
}

.chat-log{
  flex: 1;
  overflow:auto;
  padding: 6px;
  border-radius: 12px;
  border: 1px dashed rgba(168,181,255,.10);
  background: rgba(6,7,11,.35);
}

.msg{
  display:flex;
  gap: 10px;
  margin: 10px 0;
}
.msg .avatar{
  width: 30px; height: 30px;
  border-radius: 10px;
  background: rgba(96,112,255,.18);
  border: 1px solid rgba(96,112,255,.25);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  color: rgba(234,240,255,.92);
}
.msg .bubble{
  max-width: 860px;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid var(--stroke2);
  background: rgba(13,18,34,.62);
}
.msg.user .avatar{
  background: rgba(74,240,255,.14);
  border-color: rgba(74,240,255,.25);
}
.msg.user .bubble{
  background: rgba(8,12,22,.62);
  border-color: rgba(74,240,255,.18);
}
.msg .meta{
  color: var(--muted2);
  font-size: 12px;
  margin-bottom: 6px;
}
.msg .content{
  white-space: pre-wrap;
  line-height: 1.45;
}

.chat-compose{
  margin-top: 10px;
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.compose-row{
  display:flex;
  gap: 10px;
  align-items: center;
}
#chatInput{
  width: 100%;
  min-height: 54px;
  resize: vertical;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke2);
  background: rgba(6,7,11,.35);
  color: var(--text);
  outline: none;
}
#chatInput:focus{
  border-color: rgba(96,112,255,.35);
  box-shadow: 0 0 0 4px rgba(96,112,255,.10);
}
.uploader{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content: space-between;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--stroke2);
  background: rgba(6,7,11,.25);
}
.preview{
  display:flex;
  gap: 10px;
  align-items:center;
}
.preview img{
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
}
.kicker{
  color: var(--muted);
  font-size: 13px;
}
.smallmuted{ color: var(--muted2); font-size: 12px; }
.tag{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke2);
  background: rgba(13,18,34,.45);
  color: rgba(234,240,255,.88);
  font-weight: 800;
  font-size: 12px;
}
.quick{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.quick button{
  cursor:pointer;
}
@media (max-width: 980px){
  .chat-shell{ grid-template-columns: 1fr; }
  .chat-side{ order: 2; }
  .chat-main{ order: 1; }
}
