:root{
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --card:#f6f7f9;
  --border:rgba(15,23,42,.10);
  --shadow:0 18px 45px rgba(2,6,23,.10);
  --shadow2:0 10px 25px rgba(2,6,23,.08);
  --radius:22px;
  --radius2:16px;
  --accent:#a63232;
  --accent2:#701f1f;
  --max:1160px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.sr-only{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

.container{
  width:min(var(--max), calc(100% - 48px));
  margin:0 auto;
}

.header{
  position:sticky;
  top:0;
  z-index:60;
  border-bottom:1px solid var(--border);
  background:rgba(255,255,255,.74);
  backdrop-filter:saturate(180%) blur(16px);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:170px;
}
.brand img{height:34px;display:block}

.nav{
  display:flex;
  gap:10px;
  align-items:center;
}
.nav a{
  font-size:14px;
  color:var(--muted);
  padding:9px 12px;
  border-radius:999px;
}
.nav a:hover{background:rgba(15,23,42,.06);color:var(--text)}

.header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.select{
  height:38px;
  border-radius:999px;
  border:1px solid var(--border);
  padding:0 12px;
  background:rgba(255,255,255,.9);
  color:var(--text);
  font-size:14px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height:40px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:650;
  font-size:14px;
  box-shadow:0 1px 0 rgba(2,6,23,.04);
  transition:transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn:hover{transform:translateY(-1px);box-shadow:var(--shadow2)}
.btn.primary{
  border-color:transparent;
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  color:#fff;
}
.btn.primary:hover{filter:brightness(1.03)}
.btn.ghost{
  background:rgba(255,255,255,.84);
}
.btn.small{height:36px;padding:0 14px;font-weight:650}

.hero{
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(2,6,23,.78) 0%, rgba(2,6,23,.30) 55%, rgba(2,6,23,.15) 100%),
    var(--hero-img);
  background-size:cover;
  background-position:center;
  transform:scale(1.03);
}
.hero::after{
  content:"";
  position:absolute;
  inset:-20px;
  background:
    radial-gradient(800px 400px at 15% 20%, rgba(166,50,50,.35), transparent 60%),
    radial-gradient(700px 420px at 70% 10%, rgba(255,255,255,.15), transparent 55%);
  pointer-events:none;
}
.hero-inner{
  position:relative;
  padding:92px 0 58px;
  color:#fff;
}
.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.15);
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.h1{
  margin:14px 0 10px;
  font-size:44px;
  line-height:1.08;
}
.lead{
  margin:0;
  max-width:650px;
  color:rgba(255,255,255,.85);
  font-size:16px;
}
.hero-cta{
  margin-top:22px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.section{
  padding:66px 0;
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.section h2{
  margin:0;
  font-size:28px;
  letter-spacing:-.01em;
}
.sub{
  margin:6px 0 0;
  color:var(--muted);
}

.grid-2{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:18px;
}
.grid-4{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:16px;
}

.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 12px 30px rgba(2,6,23,.06);
  transition:transform .12s ease, box-shadow .12s ease;
}
.card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.cover{
  height:230px;
  background:#111827;
}
.cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.card-body{padding:18px}
.card-top{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
}
.icon{
  width:36px;
  height:36px;
  border-radius:12px;
  background:rgba(15,23,42,.06);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.icon img{width:26px;height:26px;object-fit:contain}
.card h3{
  margin:0;
  font-size:18px;
}
.card p{
  margin:10px 0 14px;
  color:var(--muted);
  font-size:14px;
}
.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.footer{
  border-top:1px solid var(--border);
  background:linear-gradient(180deg, rgba(246,247,249,.75), rgba(255,255,255,1));
  padding:26px 0;
}
.footer-links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
  color:var(--muted);
  font-size:14px;
}
.footer-links a:hover{color:var(--text)}
.footer-bottom{
  margin-top:14px;
  color:var(--muted);
  font-size:13px;
}

.login-wrap{
  min-height:calc(100vh - 76px);
  display:flex;
  align-items:center;
  padding:40px 0;
}
.login-card{
  width:min(560px, 100%);
  margin:0 auto;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.login-head{
  padding:22px;
  border-bottom:1px solid var(--border);
  background:linear-gradient(180deg, rgba(166,50,50,.06), rgba(255,255,255,0));
}
.login-head h1{margin:0;font-size:22px}
.login-body{padding:22px}
.note{margin:0 0 16px;color:var(--muted)}
.small{font-size:13px;color:var(--muted)}

.form{
  display:grid;
  gap:12px;
  margin-top:14px;
}
.field label{
  display:block;
  font-size:13px;
  color:var(--muted);
  margin-bottom:6px;
}
.input{
  width:100%;
  height:42px;
  border-radius:14px;
  border:1px solid var(--border);
  padding:0 12px;
  font-size:14px;
}
.input:focus{outline:none;box-shadow:0 0 0 4px rgba(166,50,50,.14);border-color:rgba(166,50,50,.55)}
.form-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:6px;
}

@media (max-width: 980px){
  .grid-4{grid-template-columns:repeat(2, minmax(0,1fr));}
  .h1{font-size:38px;}
  .hero-inner{padding:82px 0 46px;}
}
@media (max-width: 740px){
  .container{width:calc(100% - 32px);}
  .nav{display:none;}
  .grid-2{grid-template-columns:1fr;}
  .h1{font-size:34px;}
  .cover{height:210px;}
}
