:root{
  --bg:#0b0f17;
  --panel:#111827;
  --card:#0f172a;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --line:rgba(255,255,255,.08);
  --brand:#7c3aed;
  --brand2:#22c55e;
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius: 18px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 70% -10%, rgba(124,58,237,.25), transparent 60%),
              radial-gradient(900px 600px at 0% 20%, rgba(34,197,94,.15), transparent 55%),
              var(--bg);
  color: var(--text);
  line-height:1.45;
}

a{ color:inherit; text-decoration:none; }
a.link{ color: #c4b5fd; }
a.link:hover{ text-decoration:underline; }

.container{
  width:min(1100px, calc(100% - 40px));
  margin:0 auto;
}

.site-header{
  position:sticky;
  top:0;
  backdrop-filter: blur(10px);
  background: rgba(11,15,23,.65);
  border-bottom:1px solid var(--line);
  z-index:10;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:14px;
}

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

.brand-mark{
  display:inline-flex;
  width:36px; height:36px;
  align-items:center; justify-content:center;
  border-radius:12px;
  background: linear-gradient(135deg, rgba(124,58,237,1), rgba(34,197,94,1));
  box-shadow: var(--shadow);
  font-weight:800;
}

.brand-name{
  font-weight:700;
  letter-spacing:.2px;
}

.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:999px;
  background: linear-gradient(135deg, rgba(124,58,237,1), rgba(124,58,237,.75));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  font-weight:650;
  cursor:pointer;
}

.btn:hover{ filter: brightness(1.06); }
.btn:active{ transform: translateY(1px); }

.btn-ghost{
  background: transparent;
  box-shadow:none;
  border:1px solid rgba(255,255,255,.12);
}

main.container{ padding: 26px 0 56px; }

.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:22px;
  align-items:stretch;
  padding: 22px 0 6px;
}

.hero h1{
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height:1.05;
  margin: 10px 0 12px;
}

.lead{
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 18px;
}

.hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom: 18px;
}

.hero-panel .panel-card{
  background: linear-gradient(180deg, rgba(17,24,39,.85), rgba(15,23,42,.65));
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.panel-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom: 14px;
}

.badge{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(124,58,237,.18);
  border:1px solid rgba(124,58,237,.35);
  font-weight:650;
  font-size:.85rem;
}

.panel-metrics{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-bottom: 10px;
}

.metric{
  background: rgba(0,0,0,.18);
  border:1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.metric-num{
  font-size: 1.8rem;
  font-weight:800;
}

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

.panel-list{
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.panel-item{
  display:flex;
  gap:10px;
  padding: 8px 0;
  color: rgba(229,231,235,.92);
}

.dot{
  width:10px; height:10px;
  border-radius:999px;
  background: rgba(34,197,94,.9);
  margin-top:6px;
  flex:0 0 auto;
}

.trust{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-top: 10px;
}

.trust-card{
  background: rgba(0,0,0,.18);
  border:1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}

.section{ padding: 20px 0; }
.section h1, .section h2{ margin:0 0 10px; }
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom: 10px;
}

.grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
}
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}

.card{
  background: rgba(15,23,42,.68);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.card-highlight{
  border-color: rgba(124,58,237,.5);
  box-shadow: 0 16px 40px rgba(124,58,237,.18);
}

.price{
  font-size: 2rem;
  font-weight:850;
  margin: 8px 0;
}

.muted{ color: var(--muted); }
.hint{ color: var(--muted); font-size:.95rem; margin-top:6px; }

.narrow{ width:min(520px, 100%); margin:0 auto; }

.form{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top: 12px;
}

label{ font-weight:650; }
input, textarea, select{
  background: rgba(0,0,0,.22);
  border:1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--text);
  outline:none;
}

input:focus, textarea:focus, select:focus{
  border-color: rgba(124,58,237,.55);
  box-shadow: 0 0 0 4px rgba(124,58,237,.16);
}

.alert{
  background: rgba(239,68,68,.12);
  border:1px solid rgba(239,68,68,.35);
  color: rgba(254,226,226,1);
  border-radius: 14px;
  padding: 10px 12px;
  margin-top: 10px;
}

.table{
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(0,0,0,.14);
}

.row{
  display:grid;
  grid-template-columns: 1.4fr 1fr .8fr .6fr .3fr;
  gap:10px;
  padding: 12px 14px;
  border-top:1px solid var(--line);
  align-items:center;
}

.tasks-table .tasks-row{
  grid-template-columns: 1.6fr 1fr .8fr .6fr;
}

.row:first-child{ border-top:0; }
.row-head{
  background: rgba(255,255,255,.04);
  font-weight:750;
  color: rgba(229,231,235,.92);
}

.pill{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  font-weight:650;
  font-size:.85rem;
  text-transform: lowercase;
}

.pill-todo{ background: rgba(255,255,255,.06); }
.pill-doing{ background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.30); }
.pill-done{ background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.30); }

.checkbox{
  display:flex;
  align-items:center;
  gap:10px;
  user-select:none;
}

.list{ margin:10px 0 0; padding-left:18px; color: var(--muted); }
.comments{ display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.comment{ border:1px solid var(--line); border-radius:14px; padding:10px 12px; background: rgba(0,0,0,.12); }
.comment-top{ display:flex; justify-content:space-between; gap:10px; align-items:center; margin-bottom:6px; }

.pillbox{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 10px;
}

.site-footer{
  border-top:1px solid var(--line);
  padding: 22px 0;
  color: var(--muted);
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

/* Responsive */
@media (max-width: 920px){
  .hero{ grid-template-columns: 1fr; }
  .trust{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .row{
    grid-template-columns: 1.2fr .9fr .7fr .7fr;
  }
  .row > div:last-child{ display:none; }
  .tasks-table .tasks-row{ grid-template-columns: 1.2fr .9fr .7fr .7fr; }
}


/* Platform admin overrides */
body.admin .nav-links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
body.admin .nav-inner{
  gap:12px;
  flex-wrap:wrap;
}
@media (max-width: 860px){
  body.admin .nav-links{ display:flex; }
  body.admin .nav-right{ width:100%; justify-content:flex-end; }
}
