
/* =====================================================
   ai-ml.in — Assisted Intelligent Mobility Lab (Scooters)
   Red & White Professional Theme (static site)
   ===================================================== */

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
:root{
  --bg:#ffffff;
  --bg2:#f6f7fb;
  --surface:#ffffff;
  --surface2:#fff5f5;
  --line:rgba(15,23,42,.10);
  --text:#0f172a;
  --muted:#475569;
  --brand:#dc2626;
  --brand2:#b91c1c;
  --accent:#111827;
  --ok:#16a34a;
  --warn:#f59e0b;
  --shadow: 0 14px 36px rgba(2,6,23,.10);
  --radius: 18px;
}

body{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 520px at 12% 12%, rgba(220,38,38,.10), transparent 60%),
    radial-gradient(850px 520px at 90% 18%, rgba(185,28,28,.08), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height:100vh;
}

a{color: var(--brand2); text-decoration:none}
a:hover{color: var(--brand); text-decoration:underline}

.container{max-width:1150px;margin:0 auto;padding:28px 18px 70px}

.topbar{
  position:sticky;top:0;z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.86);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  max-width:1150px;margin:0 auto;padding:14px 18px;
  display:flex;align-items:center;justify-content:space-between;gap:14px
}
.brand{
  display:flex;align-items:center;gap:12px;
  text-decoration:none;color:var(--text)
}
.logo{
  width:42px;height:42px;border-radius:14px;
  background: conic-gradient(from 220deg, #ffffff, var(--brand), #ffffff, var(--brand2));
  border:1px solid rgba(220,38,38,.20);
  box-shadow: 0 10px 24px rgba(220,38,38,.10);
  position:relative;overflow:hidden
}
.logo:after{
  content:"";position:absolute;inset:-2px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), transparent 45%);
  transform: rotate(18deg);opacity:.85
}
.brand .name{font-weight:950;letter-spacing:.2px}
.brand .tag{display:block;font-size:12px;color:var(--muted);font-weight:750;margin-top:2px}

.nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.nav a{
  color:var(--muted);font-weight:850;font-size:13px;
  padding:9px 12px;border-radius:999px;border:1px solid transparent;
  transition: all .18s ease;
}
.nav a:hover{
  color:var(--text);
  background: rgba(220,38,38,.06);
  border-color: rgba(220,38,38,.18);
}

.hero{
  margin-top:18px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,245,245,.92));
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.hero:before{
  content:"";
  position:absolute;inset:0;
  background: repeating-linear-gradient(135deg, rgba(220,38,38,.06), rgba(220,38,38,.06) 6px, transparent 6px, transparent 14px);
  opacity:.18;
  pointer-events:none;
}
.hero-inner{
  position:relative;
  padding: 34px 24px 26px;
  display:grid;
  gap: 18px;
}
.badges{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.badge{
  font-size:12px;font-weight:950;letter-spacing:.25px;text-transform:uppercase;
  padding:8px 12px;border-radius:999px;
  background: rgba(15,23,42,.03);
  border:1px solid rgba(15,23,42,.10);
}
.badge.primary{border-color: rgba(220,38,38,.22); background: rgba(220,38,38,.08); color: var(--brand2)}
.badge.dark{border-color: rgba(15,23,42,.14); background: rgba(15,23,42,.03); color: var(--accent)}
.badge.ok{border-color: rgba(22,163,74,.20); background: rgba(22,163,74,.07); color: var(--ok)}

.title{font-size:40px;line-height:1.05;letter-spacing:-0.8px;font-weight:980}
.grad{
  background: linear-gradient(90deg, var(--brand2), var(--brand));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.subtitle{margin-top:12px;color:var(--muted);font-size:15px;max-width:70ch}

.cta-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 16px;border-radius:999px;
  font-weight:950;text-decoration:none;font-size:14px;
  border:1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.95);
  color:var(--text);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  cursor:pointer;
}
.btn:hover{transform: translateY(-1px); background:#ffffff; border-color: rgba(220,38,38,.25); text-decoration:none}
.btn.primary{
  background: linear-gradient(90deg, rgba(220,38,38,.96), rgba(185,28,28,.96));
  border-color: rgba(185,28,28,.35);
  color:#fff;
}
.btn.primary:hover{filter: brightness(1.02)}
.btn.ghost{
  background: rgba(220,38,38,.05);
  border-color: rgba(220,38,38,.20);
}

.quote{
  padding:18px;border-radius: var(--radius);
  border:1px solid rgba(220,38,38,.18);
  background:#fff;
  box-shadow: 0 10px 24px rgba(2,6,23,.08);
}
.quote h3{
  font-size:13px;font-weight:980;letter-spacing:.25px;text-transform:uppercase;
  color: var(--brand2); margin-bottom:10px
}
.q-text{font-size:16px;line-height:1.5;font-weight:900}
.q-by{margin-top:10px;color: var(--muted);font-size:13px;font-weight:850}
.quote .meta{
  margin-top:10px;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  color: rgba(71,85,105,.98);
  font-size:12px;font-weight:800;
}
.pill{
  padding:7px 10px;border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background: rgba(220,38,38,.05);
}

.section{
  margin-top:18px;
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.section h2{font-size:18px;font-weight:980;color:#111827;margin-bottom:10px}
.section p{color:var(--muted); margin-top:10px}
.section ul{margin:12px 0 0 18px}
.section li{margin-bottom:10px;color:var(--text)}
.small{font-size:13px;color:var(--muted)}
.hr{height:1px;background:var(--line);margin:16px 0}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: 0 10px 26px rgba(2,6,23,.08);
}
.card h3{font-size:15px;margin-bottom:6px;font-weight:980;color:#111827}
.card p{color:var(--muted);font-size:14px;line-height:1.6}
.kpi{
  display:inline-flex;gap:8px;align-items:center;
  padding:7px 10px;border-radius:999px;
  border:1px solid rgba(220,38,38,.20);
  background: rgba(220,38,38,.05);
  font-weight:900;font-size:12px;color:#111827;
  margin-top:10px;
}

.table-wrap{overflow:auto;border-radius:14px;border:1px solid var(--line);margin-top:12px}
table{width:100%;border-collapse:collapse;min-width:780px;background:#fff}
th,td{padding:12px 12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}
th{background: rgba(220,38,38,.05); font-size:12px; text-transform:uppercase; letter-spacing:.25px; font-weight:980; color:#111827}
td{font-size:14px}
tr:hover td{background: rgba(220,38,38,.03)}
.tag{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 10px;border-radius:999px;font-weight:950;font-size:12px;
  border:1px solid rgba(15,23,42,.12); background: rgba(15,23,42,.03); color:#111827
}
.tag.red{border-color: rgba(220,38,38,.22); background: rgba(220,38,38,.06)}
.tag.ok{border-color: rgba(22,163,74,.20); background: rgba(22,163,74,.07); color: var(--ok)}
.tag.warn{border-color: rgba(245,158,11,.25); background: rgba(245,158,11,.08); color:#92400e}

.link-block{
  margin-top:14px;display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-start;
}
.link-chip{
  display:inline-flex;align-items:center;gap:10px;
  padding:10px 14px;border-radius:999px;
  border:1px solid rgba(220,38,38,.22);
  background: rgba(220,38,38,.06);
  color:#111827;font-weight:980;
  transition: transform .18s ease, background .18s ease;
}
.link-chip:hover{transform: translateY(-1px); background: rgba(220,38,38,.10); text-decoration:none}

details{
  border:1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px;
  background:#fff;
  margin-top: 10px;
}
summary{cursor:pointer;font-weight:950}
details p{margin-top:10px}

footer{
  margin-top:24px;text-align:center;
  color: rgba(71,85,105,.98);
  font-size: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.fade-in{animation: fadeInUp .65s ease both}
@keyframes fadeInUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}

@media (max-width: 980px){
  .title{font-size:34px}
  .grid{grid-template-columns:1fr}
  table{min-width: 720px}
}
