:root{
  --bg:#070a12;
  --bg2:#0b1220;
  --card:rgba(14,24,42,.54);
  --card2:rgba(18,30,52,.62);
  --line:rgba(255,255,255,.08);

  --text:#eef3ff;
  --muted:rgba(238,243,255,.72);

  --mint:#5efce8;
  --lilac:#a78bfa;

  --r:18px;
  --shadow:0 18px 50px rgba(0,0,0,.45);
  --glow:0 0 0 1px rgba(94,252,232,.16), 0 0 60px rgba(167,139,250,.10);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  line-height:1.55;
  background:
    radial-gradient(1200px 700px at 15% 10%, rgba(94,252,232,.14), transparent 60%),
    radial-gradient(900px 600px at 85% 25%, rgba(167,139,250,.12), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

a{color:inherit;text-decoration:none}
.container{max-width:1120px;margin:0 auto;padding:0 20px}

.muted{color:var(--muted)}
.center-text{text-align:center}
.brand-font{font-weight:950;letter-spacing:.14em;text-transform:uppercase}

/* Header */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(7,10,18,.68);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 0}

.brand{display:flex;gap:10px;align-items:center}
.brand-logo{
  width:34px;height:34px;
  display:block;
  object-fit:contain;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(7,10,18,.25);
  box-shadow:var(--shadow);
}

.brand-stack{display:flex;flex-direction:column;gap:2px}
.brand-name{font-weight:950;letter-spacing:.08em;font-size:14px}
.brand-tag{font-size:12px;color:rgba(238,243,255,.62);font-weight:750}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 16px;border-radius:14px;
  font-weight:950;
  border:1px solid rgba(94,252,232,.26);
  background:linear-gradient(135deg, rgba(94,252,232,.16), rgba(167,139,250,.14));
  box-shadow:var(--shadow);
  transition:transform .15s ease, box-shadow .15s ease;
  color:#fff;
}
.btn:hover{transform:translateY(-1px); box-shadow:0 22px 60px rgba(0,0,0,.55)}
.btn:active{transform:translateY(0)}
.btn-small{padding:9px 12px;border-radius:12px;font-size:13px}
.btn-ghost{
  background:rgba(14,24,42,.35);
  border:1px solid var(--line);
  box-shadow:none;
  color:#fff;
}
.btn:disabled{opacity:.65;cursor:not-allowed}

/* Cards */
.card{
  border:1px solid var(--line);
  background:var(--card);
  border-radius:var(--r);
  padding:16px;
}
.hover{
  transition:transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.hover:hover{
  transform:translateY(-3px);
  border-color:rgba(94,252,232,.28);
  background:var(--card2);
  box-shadow:var(--shadow), var(--glow);
}

/* HERO (centered) */
.hero{padding:70px 0 26px}
.hero-center{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:10px;
}
.hero-title{margin:6px 0 0;font-size:54px;line-height:1.02}
.hero-sub{margin:0;font-size:14px;color:rgba(238,243,255,.78)}
.hero-blurb{margin:6px 0 0;color:rgba(238,243,255,.78);max-width:70ch}

.hero-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:8px}
.hero-image{width:min(860px, 100%); margin-top:12px}

/* Mini cards */
.mini-cards{
  width:100%;
  margin-top:12px;
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
}
.mini-title{font-weight:950;margin-bottom:6px}

/* Sections */
.section{padding:56px 0}
.alt{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.02);
}
.section-head{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}
.section-head.center{align-items:center;text-align:center}
.section-head h2{margin:0;font-size:30px}

/* Grids */
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.mt{margin-top:12px}

/* Media */
.media{
  aspect-ratio:16/9;
  width:100%;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.06);
  background:
    radial-gradient(1200px 200px at 20% 30%, rgba(94,252,232,.06), transparent 60%),
    radial-gradient(900px 220px at 80% 50%, rgba(167,139,250,.06), transparent 55%),
    rgba(7,10,18,.35);
  position:relative;
  overflow:hidden;
  margin-bottom:12px;
  display:grid;
  place-items:center;
}
.media-img{
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;object-position:center;
  opacity:0;
  transform:scale(1.02);
  transition:opacity .18s ease, transform .18s ease;
}
.media-fallback{position:relative;z-index:2;text-align:center;padding:12px}
.media-label{font-weight:950;font-size:13px;color:rgba(238,243,255,.85)}
.media-sub{font-size:12px;color:rgba(238,243,255,.62);max-width:44ch}
.media.is-loaded .media-img{opacity:1;transform:scale(1)}
.media.is-loaded .media-fallback{display:none}
.media::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(7,10,18,.08), rgba(7,10,18,.35));
  opacity:0;
  transition:opacity .18s ease;
}
.media.is-loaded::after{opacity:1}

/* Codes */
.code-grid{
  display:flex;flex-wrap:wrap;gap:10px;
  justify-content:center;
  margin-bottom:14px;
}
.code{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(7,10,18,.30);
  padding:10px 12px;border-radius:999px;
  font-weight:900;font-size:13px;
  color:rgba(238,243,255,.80);
}
.center-card{max-width:920px;margin:0 auto;text-align:center}
.center-title{margin:0 0 6px}

/* Form */
.form{max-width:920px;margin:0 auto;padding:18px}

.note{
  display:flex;gap:10px;align-items:flex-start;
  padding:12px 12px;border-radius:16px;
  border:1px solid rgba(94,252,232,.18);
  background:rgba(94,252,232,.06);
  color:rgba(238,243,255,.82);
  font-weight:750;
  margin-bottom:14px;
}
.note.center{justify-content:center;text-align:center}
.spark{color:rgba(94,252,232,.95)}

.block{margin-top:16px;padding-top:16px;border-top:1px solid rgba(255,255,255,.06)}
/* Align section number inline with title + description */
.block-head{
  display:flex;
  align-items:center;   /* ← THIS fixes the vertical shift */
  gap:12px;
  margin-bottom:12px;
}
.field{margin-bottom:12px}
label{
  display:block;
  font-size:12px;font-weight:950;
  color:rgba(238,243,255,.72);
  margin-bottom:6px;
}
input,select,textarea{
  width:100%;
  padding:11px 12px;border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(7,10,18,.45);
  color:var(--text);
  outline:none;
  transition:border-color .14s ease, box-shadow .14s ease;
}
input:focus,select:focus,textarea:focus{
  border-color:rgba(94,252,232,.35);
  box-shadow:0 0 0 3px rgba(94,252,232,.10);
}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}

.checks{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.check{
  display:flex;gap:10px;align-items:flex-start;
  padding:10px 12px;border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(7,10,18,.28);
  color:rgba(238,243,255,.82);
  font-weight:850;font-size:13px;
  transition:border-color .14s ease, background .14s ease;
}
.check:hover{border-color:rgba(167,139,250,.22);background:rgba(18,30,52,.40)}
.check input{width:auto;margin-top:2px}

.conditional{
  margin-top:10px;padding:12px;border-radius:16px;
  border:1px solid rgba(167,139,250,.18);
  background:rgba(167,139,250,.06);
}
.callout{
  display:flex;gap:10px;align-items:center;justify-content:space-between;
  padding:10px 12px;border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(7,10,18,.30);
  margin-bottom:10px;
}

.actions{margin-top:16px;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.status{margin:0;font-size:13px;color:rgba(238,243,255,.74)}

/* Footer */
.footer{
  padding:28px 0 40px;
  border-top:1px solid var(--line);
  background:rgba(0,0,0,.10);
}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:12px}
.foot-left{display:flex;gap:10px;align-items:center}
.foot-brand{font-weight:950;letter-spacing:.08em}
.foot-right{display:flex;gap:14px;color:rgba(238,243,255,.72);font-weight:900;font-size:13px}
.foot-right a:hover{color:var(--text)}

/* Honeypot */
.hp{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}

/* ===== Burger menu additions (NEW) ===== */
.header-actions{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
}

.icon-btn{
  width:42px;height:42px;border-radius:14px;
  border:1px solid rgba(94,252,232,.26);
  background:linear-gradient(135deg, rgba(94,252,232,.16), rgba(167,139,250,.14));
  box-shadow:var(--shadow);
  display:grid;place-items:center;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
  color:#fff;
}
.icon-btn:hover{transform:translateY(-1px); box-shadow:0 22px 60px rgba(0,0,0,.55)}
.burger{width:18px}
.burger span{
  display:block;height:2px;border-radius:999px;
  background:#fff;
  margin:4px 0;
  opacity:.95;
}

.menu{
  position:absolute;
  right:0;
  top:52px;
  min-width:220px;
  padding:10px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(7,10,18,.92);
  box-shadow:var(--shadow), var(--glow);
  display:none;
  z-index:999;
}
.menu.is-open{display:block}

.menu-item{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
  font-weight:900;
  color:rgba(238,243,255,.90);
}
.menu-item:hover{
  border-color:rgba(94,252,232,.22);
  background:rgba(18,30,52,.55);
}

@media (max-width: 1020px){
  .grid-3{grid-template-columns:1fr}
  .mini-cards{grid-template-columns:1fr}
  .hero-center{text-align:left;align-items:flex-start}
  .hero-actions{justify-content:flex-start}
  .hero-title{font-size:42px}
}
@media (max-width: 780px){
  .checks{grid-template-columns:1fr}
  .two{grid-template-columns:1fr}
}
/* Plain inline section numbers (no box) */
.num{
  width:auto;
  height:auto;
  padding:0;
  margin:0;
  border:none;
  background:none;
  color:rgba(238,243,255,.55);
  font-weight:950;
  font-size:14px;
  line-height:1.2;
}
/* ===== FORCE FIX: section numbers inline, no box ===== */
/* ===== FORCE FIX v2: number aligns with title ===== */
.block-head{
  display:grid !important;
  grid-template-columns:auto 1fr !important;
  column-gap:12px !important;
  margin-bottom:12px !important;
  align-items:start !important;
}

.block-head .num{
  all: unset !important;
  font-weight:950 !important;
  font-size:14px !important;
  line-height:1 !important;
  color:rgba(238,243,255,.55) !important;

  /* align with the first line of the title */
  align-self:start !important;
  padding-top: 2.2rem !important;  /* matches typical h4 height */
}

/* tighten the title block so baseline is consistent */
.block-head h4{
  margin:0 !important;
  line-height:1.1 !important;
}
.block-head p{
  margin:6px 0 0 !important;
}

.block-head .num{
  /* nuke the old box styles completely */
  all: unset !important;

  /* re-apply only what we want */
  font-weight:950 !important;
  font-size:14px !important;
  line-height:1.2 !important;
  color:rgba(238,243,255,.55) !important;

  /* align with the title line */
  margin-top:2px !important;
}
/* Align the number with the title line (not the top of the whole block) */
.block-head{
  align-items: start !important;
}

.block-head .num{
  margin-top: 18px !important; /* tune this */
}
/* Remove section numbers completely */
.block-head .num{
  display: none !important;
}
/* AWS code hover polish */
.code{
  transition:
    transform .16s ease,
    background .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;
  cursor: default;
}

.code:hover{
  transform: translateY(-2px);
  border-color: rgba(94,252,232,.30);
  background: rgba(18,30,52,.55);
  box-shadow:
    0 12px 30px rgba(0,0,0,.35),
    0 0 0 1px rgba(94,252,232,.18),
    0 0 40px rgba(167,139,250,.12);
}
/* Make every card use the same title slot so images align perfectly */
.cert-card{
  display:flex;
  flex-direction:column;
}

.cert-h3{
  margin: 0 0 12px !important;
  text-align:center;
  font-weight:950;
  font-size:18px;
  line-height:1.2;

  /* THIS is the important part */
  height: 2.4em;          /* exactly 2 lines (2 * 1.2em) */
  display:flex;
  align-items:center;
  justify-content:center;
}
.cert-h3{
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
