:root{
  --seed:#7C3AED;         /* app seed */
  --seed2:#6D28D9;
  --bg:#ffffff;
  --ink:#0f172a;
  --muted:#64748b;
  --line:#e5e7eb;
  --soft:#f6f5ff;
  --card:#ffffff;
  --shadow: 0 14px 40px rgba(2,6,23,.10);
  --shadow2: 0 8px 22px rgba(2,6,23,.10);
  --r:18px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial; color:var(--ink); background:var(--bg)}
a{color:inherit;text-decoration:none}
img{max-width:100%; display:block}

.container{width:min(1200px, calc(100% - 32px)); margin:0 auto}
.full{width:100%}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(160%) blur(10px);
  background: rgba(255,255,255,.85);
  border-bottom: 1px solid rgba(229,231,235,.7);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 0;
  gap:12px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:900;
}
.brand-badge{
  width:34px; height:34px; border-radius:12px;
  background: linear-gradient(135deg, var(--seed), var(--seed2));
  box-shadow: var(--shadow2);
  display:grid; place-items:center; color:white; font-weight:900;
}
.nav{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  color: var(--muted);
  font-weight:700;
}
.nav a{padding:10px 10px; border-radius:999px}
.nav a:hover{background: rgba(124,58,237,.10); color: var(--seed)}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: white;
  font-weight:900;
  cursor:pointer;
}
.btn:hover{transform: translateY(-1px)}
.btn-primary{
  border:0;
  background: linear-gradient(135deg, var(--seed), var(--seed2));
  color:white;
  box-shadow: var(--shadow2);
}
.btn-ghost{
  background: rgba(124,58,237,.08);
  border:1px solid rgba(124,58,237,.18);
  color: var(--seed);
}

.hero{
  position:relative;
  overflow:hidden;
  padding: 34px 0 28px;
  background:
    radial-gradient(1200px 400px at 20% 0%, rgba(124,58,237,.18), transparent 60%),
    radial-gradient(900px 320px at 80% 10%, rgba(109,40,217,.14), transparent 55%),
    linear-gradient(180deg, var(--soft), #fff);
  border-bottom: 1px solid rgba(229,231,235,.8);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items:stretch;
}
@media (max-width: 900px){
  .hero-grid{grid-template-columns: 1fr}
}
.hero-card{
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(229,231,235,.85);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.kicker{
  display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px;
}
.pill{
  display:inline-flex; align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight:900;
  font-size: 12px;
  border:1px solid rgba(2,6,23,.10);
  background: rgba(255,255,255,.9);
}
.pill.primary{border-color: rgba(124,58,237,.25); background: rgba(124,58,237,.10); color: var(--seed)}
.pill.muted{color: var(--muted)}
.h1{
  font-size: clamp(30px, 3.8vw, 46px);
  line-height:1.05;
  letter-spacing:-.03em;
  margin: 0 0 8px;
  font-weight: 950;
}
.sub{
  color: var(--muted);
  font-weight:700;
  margin: 0 0 14px;
  line-height:1.5;
}

.search{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-top: 12px;
}
.search input, .search select{
  flex: 1 1 220px;
  padding: 12px 14px;
  border-radius: 14px;
  border:1px solid rgba(148,163,184,.45);
  outline:none;
  font-weight:800;
  background:white;
}
.search input:focus, .search select:focus{
  border-color: rgba(124,58,237,.55);
  box-shadow: 0 0 0 4px rgba(124,58,237,.15);
}
.search-actions{
  display:flex; gap:10px; flex-wrap:wrap;
}
.note{
  margin-top: 10px;
  color: var(--muted);
  font-weight:700;
  font-size: 13px;
}

.section{padding: 22px 0}
.section-head{
  display:flex; align-items:baseline; justify-content:space-between;
  gap:10px; flex-wrap:wrap;
  margin-bottom: 14px;
}
.h2{
  margin:0;
  font-size: 20px;
  font-weight: 950;
  letter-spacing:-.02em;
}
.small{color: var(--muted); font-weight:700}

.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1100px){.grid{grid-template-columns: repeat(3,1fr)}}
@media (max-width: 780px){.grid{grid-template-columns: repeat(2,1fr)}}
@media (max-width: 520px){.grid{grid-template-columns: 1fr}}

.card{
  background: var(--card);
  border: 1px solid rgba(229,231,235,.9);
  border-radius: var(--r);
  overflow:hidden;
  box-shadow: 0 2px 0 rgba(2,6,23,.02);
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
}
.thumb{
  position:relative;
  aspect-ratio: 16/10;
  background: #eef2ff;
}
.thumb img{width:100%;height:100%;object-fit:cover}
.thumb .badge{
  position:absolute; left:10px; top:10px;
  display:inline-flex; align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border:1px solid rgba(124,58,237,.22);
  color: var(--seed);
  font-weight:950;
  font-size:12px;
}
.card-body{padding: 12px}
.title{
  font-weight: 950;
  letter-spacing: -.02em;
  margin:0 0 6px;
}
.meta{
  display:flex; gap:8px; flex-wrap:wrap;
  color: var(--muted);
  font-weight:700;
  font-size: 13px;
}
.meta span{
  display:inline-flex; align-items:center; gap:6px;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(2,6,23,.08);
  background: rgba(2,6,23,.03);
}
.card-actions{
  margin-top: 10px;
  display:flex; gap:10px;
}
.card-actions a{
  flex:1;
  text-align:center;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 950;
  border:1px solid rgba(229,231,235,.9);
}
.card-actions a.primary{
  border:0;
  background: linear-gradient(135deg, var(--seed), var(--seed2));
  color:white;
}

.footer{
  border-top: 1px solid rgba(229,231,235,.85);
  background: linear-gradient(180deg, #fff, var(--soft));
  padding: 22px 0;
  margin-top: 30px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:16px;
}
@media (max-width: 900px){.footer-grid{grid-template-columns: 1fr}}
.footer p{margin:8px 0; color: var(--muted); font-weight:700}
.footer a{color: var(--seed); font-weight:900}

.alert{
  padding: 12px 14px;
  border-radius: 14px;
  border:1px solid rgba(239,68,68,.25);
  background: rgba(239,68,68,.07);
  color:#991b1b;
  font-weight:800;
}
