:root{
  --bg:#0a0c10;
  --card:#121622;
  --card2:#0f1320;
  --text:#f5f7fb;
  --muted:#a5afc4;
  --primary:#0b2343;
  --accent:#1e90ff;
  --accent2:#5fb0ff;
  --danger:#ff3b30;
  --success:#34c759;
  --border:rgba(255,255,255,.10);
  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1120px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(30,144,255,.22) 0%, rgba(10,12,16,0) 45%),
    radial-gradient(circle at 80% 10%, rgba(11,35,67,.6) 0%, rgba(10,12,16,0) 55%),
    var(--bg);
}
a{color:inherit}
.container{max-width:var(--max); margin:0 auto; padding:24px}
.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(12px);
  background: rgba(10,12,16,.72);
  border-bottom:1px solid var(--border);
}
.nav-inner{display:flex; align-items:center; justify-content:space-between; gap:14px}
.brand{
  display:flex; align-items:center; gap:12px; text-decoration:none;
  padding:12px 0;
}
.brand-badge{
  width:40px; height:40px; border-radius:12px;
  background: linear-gradient(135deg, rgba(30,144,255,.95), rgba(11,35,67,.95));
  display:grid; place-items:center;
  box-shadow: var(--shadow);
  border:1px solid rgba(255,255,255,.12);
}
.brand-badge svg{opacity:.95}
.brand-title{font-weight:800; letter-spacing:.2px}
.brand-sub{font-size:12px; color:var(--muted); margin-top:2px}
.nav-links{display:flex; flex-wrap:wrap; gap:8px; align-items:center}
.nav-links a{
  text-decoration:none;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
  color:var(--muted);
  font-weight:650;
  font-size:14px;
}
.nav-links a:hover{color:var(--text); border-color:var(--border); background:rgba(255,255,255,.04)}
.nav-links a.active{color:var(--text); border-color:rgba(30,144,255,.35); background:rgba(30,144,255,.10)}

.hero{
  padding:34px 0 22px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
}
@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr}
}
.card{
  background: linear-gradient(180deg, rgba(18,22,34,.95), rgba(15,19,32,.95));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card-pad{padding:18px}
.kicker{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border:1px solid rgba(30,144,255,.25);
  background: rgba(30,144,255,.10);
  border-radius:999px;
  color: var(--accent2);
  font-weight:700;
  font-size:12px;
}
.h1{font-size:40px; line-height:1.05; margin:12px 0 10px; font-weight:900}
@media (max-width: 520px){
  .h1{font-size:34px}
}
.lede{color:var(--muted); font-size:16px; line-height:1.45; margin:0 0 14px}
.btn-row{display:flex; flex-wrap:wrap; gap:10px; margin-top:10px}
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:11px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  text-decoration:none;
  font-weight:750;
  font-size:14px;
  background: rgba(255,255,255,.03);
}
.btn.primary{
  border-color: rgba(30,144,255,.45);
  background: linear-gradient(180deg, rgba(30,144,255,.22), rgba(30,144,255,.08));
}
.btn:hover{transform: translateY(-1px)}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:14px}
@media (max-width: 900px){.grid2{grid-template-columns:1fr}}
.section{margin-top:18px}
.section h2{font-size:20px; margin:0 0 10px}
.section p{color:var(--muted); margin:0 0 10px; line-height:1.45}

.list{display:grid; gap:10px}
.item{
  display:flex; gap:12px; align-items:flex-start;
  padding:12px;
  border:1px solid var(--border);
  border-radius:16px;
  background: rgba(255,255,255,.02);
}
.dot{
  width:12px; height:12px; border-radius:999px;
  background: var(--accent);
  margin-top:4px;
  box-shadow: 0 0 0 5px rgba(30,144,255,.12);
}
.small{font-size:13px; color:var(--muted)}
.badge{
  font-size:12px; font-weight:750;
  padding:6px 10px; border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--muted);
}
.table{
  width:100%; border-collapse:separate; border-spacing:0;
  overflow:hidden;
  border-radius: 16px;
  border:1px solid var(--border);
}
.table th, .table td{
  padding:10px 12px;
  border-bottom:1px solid var(--border);
  text-align:left;
  font-size:14px;
}
.table th{color:var(--muted); font-weight:800; background: rgba(255,255,255,.02)}
.table tr:last-child td{border-bottom:0}
.footer{
  margin:26px 0 10px;
  color:var(--muted);
  font-size:13px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}
.hr{height:1px; background:var(--border); margin:16px 0}
.notice{
  padding:12px 14px;
  border-radius:16px;
  border:1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size:14px;
  line-height:1.35;
}
form{display:grid; gap:10px}
input, textarea, select{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-size:14px;
}
textarea{min-height:120px; resize:vertical}
label{font-size:13px; color:var(--muted); font-weight:700}
.helper{font-size:12px; color:var(--muted)}
.split{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media (max-width: 700px){.split{grid-template-columns:1fr}}
.checkbox{display:flex; gap:10px; align-items:flex-start}
.checkbox input{width:auto; margin-top:3px}
.alert{
  border-left:4px solid rgba(30,144,255,.8);
  padding:12px 12px 12px 14px;
  background: rgba(30,144,255,.08);
  border-radius: 14px;
  border:1px solid rgba(30,144,255,.20);
}

/* --- Mobile usability upgrades --- */
.nav-toggle{
  display:none;
  align-items:center;
  justify-content:center;
  width:44px; height:44px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  cursor:pointer;
}
.nav-toggle:active{transform: translateY(1px)}
.nav-toggle svg{opacity:.9}

@media (max-width: 900px){
  .nav-inner{align-items:flex-start}
  .nav-links{
    width:100%;
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    padding:10px 0 12px;
  }
  .nav-links a{
    width:100%;
    padding:12px 12px;
    font-size:15px;
  }
  .nav-links.open{display:flex}
  .nav-toggle{display:inline-flex; margin-top:12px}
}

/* Embed wrappers help iframes behave on mobile */
.embed{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  overflow:hidden;
  background: rgba(255,255,255,.02);
}
.embed iframe{
  width:100%;
  border:0;
  display:block;
}

/* Taller calendar on phones */
.calendar-embed{height:520px}
@media (max-width: 600px){
  .calendar-embed{height:720px}
}

/* Tables: allow horizontal scroll on small screens */
.table-wrap{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
}
.table-wrap .table{min-width: 640px}
