*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

:root{
  --bg-top:#020617;
  --bg-mid:#020617;
  --bg-bottom:#041425;
  --header:#4a637d;
  --header-border:rgba(255,255,255,.12);
  --text:#e5eef7;
  --text-soft:rgba(229,238,247,.78);
  --pill:rgba(255,255,255,.10);
  --card-bg:rgba(3,26,51,.94);
  --card-border:rgba(121,179,218,.16);
  --card-border-hover:rgba(121,204,255,.30);
  --card-shadow:0 12px 34px rgba(0,0,0,.22);
  --card-shadow-hover:0 20px 42px rgba(0,0,0,.30);
  --accent:#4bb6e6;
  --accent-dark:#062337;
  --accent-link:#79ccff;
  --button-secondary:rgba(255,255,255,.15);
  --max-width:1200px;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Inter',sans-serif;
  background:linear-gradient(
    180deg,
    var(--bg-top) 0%,
    var(--bg-mid) 40%,
    var(--bg-bottom) 100%
  );
  color:var(--text);
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  display:block;
  max-width:100%;
}

.actions-cell {
    vertical-align: middle;
}

.site-shell{
  min-height:100vh;
}

.topbar{
  background:var(--header);
  padding:16px 24px;
  border-bottom:1px solid var(--header-border);
  box-shadow:0 4px 20px rgba(0,0,0,.25);
}

.topbar-inner{
  max-width:1280px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.brand{
  display:flex;
  align-items:center;
  gap:16px;
  flex:0 0 auto;
}

.logo{
  width:84px;
  height:auto;
  display:block;
}

.brand-text{
  line-height:1.05;
}

.site-title{
  font-family:'Libre Baskerville',serif;
  font-size:26px;
  font-weight:700;
  color:#ffffff;
  margin-bottom:4px;
}

.site-subtitle{
  font-size:11px;
  letter-spacing:3.5px;
  text-transform:uppercase;
  color:rgba(255,255,255,.82);
}

.nav{
  display:flex;
  align-items:center;
  gap:28px;
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
}

.nav a{
  color:#eef4fa;
  transition:color .2s ease, opacity .2s ease;
}

.nav a:hover{
  color:#ffffff;
  opacity:1;
}

.portal-btn{
  padding:12px 22px;
  border-radius:999px;
  border:1px solid #7bbbe3;
  background:rgba(121,179,218,.10);
  color:#e6f5ff;
  font-weight:700;
  white-space:nowrap;
  transition:transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.portal-btn:hover{
  transform:translateY(-1px);
  background:rgba(121,179,218,.18);
  box-shadow:0 8px 20px rgba(0,0,0,.16);
}

.hero{
  text-align:center;
  max-width:1100px;
  margin:0 auto;
  padding:62px 20px 48px;
}

.hero-pill{
  display:inline-block;
  padding:10px 18px;
  border-radius:999px;
  background:var(--pill);
  color:#e9f0f7;
  font-size:14px;
  margin-bottom:26px;
}

h1{
  font-family:'Libre Baskerville',serif;
  font-size:56px;
  line-height:1.08;
  margin-bottom:18px;
  color:#f6f8fc;
}

.subhead{
  font-size:26px;
  font-weight:800;
  margin-bottom:18px;
  color:#f1f6fb;
}

.lead{
  max-width:980px;
  margin:0 auto 30px;
  font-size:17px;
  line-height:1.75;
  color:var(--text-soft);
}

.cta-row{
  display:flex;
  gap:16px;
  justify-content:center;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:190px;
  padding:14px 28px;
  border-radius:999px;
  font-weight:800;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn-primary{
  background:var(--accent);
  color:var(--accent-dark);
  box-shadow:0 10px 24px rgba(75,182,230,.18);
}

.btn-primary:hover{
  box-shadow:0 14px 28px rgba(75,182,230,.25);
}

.btn-secondary{
  background:var(--button-secondary);
  color:#ffffff;
}

.btn-secondary:hover{
  background:rgba(255,255,255,.20);
}

/* ── CARDS ─────────────────────────────────────────────────────────────────
   Fixed: removed negative margin, added proper top spacing, flex layout
   so the arrow link always sits at the bottom regardless of text length.
──────────────────────────────────────────────────────────────────────────── */
.cards{
  max-width:var(--max-width);
  margin:40px auto 60px auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
  padding:0 20px;
}

.card{
  background:var(--card-bg);
  padding:36px 30px;
  border-radius:24px;
  border:1px solid var(--card-border);
  box-shadow:var(--card-shadow);
  display:flex;
  flex-direction:column;
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    background .22s ease;
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:var(--card-shadow-hover);
  border-color:var(--card-border-hover);
  background:rgba(5,31,58,.98);
}

.card h3{
  font-size:24px;
  line-height:1.15;
  margin-bottom:16px;
  color:#f3f7fc;
}

.card p{
  color:var(--text-soft);
  line-height:1.65;
  font-size:15px;
  flex:1;
}

.card a{
  color:var(--accent-link);
  font-weight:700;
  font-size:15px;
  margin-top:28px;
  display:inline-block;
}

.footer{
  border-top:1px solid rgba(255,255,255,.08);
  text-align:center;
  padding:18px 20px 28px;
  color:rgba(232,238,247,.72);
  font-size:14px;
}

@media (max-width:1100px){
  .topbar-inner{
    gap:18px;
  }

  .logo{
    width:78px;
  }

  .site-title{
    font-size:24px;
  }

  .nav{
    gap:20px;
    font-size:13px;
  }

  h1{
    font-size:50px;
  }

  .subhead{
    font-size:22px;
  }
}

@media (max-width:900px){
  .topbar-inner{
    flex-wrap:wrap;
    justify-content:flex-start;
  }

  .nav{
    display:none;
  }

  .hero{
    padding:52px 20px 36px;
  }

  h1{
    font-size:40px;
  }

  .subhead{
    font-size:20px;
  }

  .lead{
    font-size:16px;
  }

  .cards{
    margin:24px auto 44px auto;
    grid-template-columns:1fr;
    gap:20px;
  }
}

@media (max-width:640px){
  .topbar{
    padding:16px 16px 18px;
  }

  .topbar-inner{
    gap:16px;
  }

  .brand{
    width:100%;
  }

  .logo{
    width:72px;
  }

  .site-title{
    font-size:20px;
  }

  .site-subtitle{
    font-size:10px;
    letter-spacing:2.4px;
  }

  .portal-btn{
    padding:12px 18px;
    font-size:15px;
  }

  .hero{
    padding:48px 18px 32px;
  }

  .hero-pill{
    font-size:13px;
    margin-bottom:20px;
  }

  h1{
    font-size:34px;
    line-height:1.08;
    margin-bottom:16px;
  }

  .subhead{
    font-size:19px;
    margin-bottom:16px;
  }

  .lead{
    font-size:15px;
    line-height:1.65;
    margin-bottom:24px;
  }

  .cta-row{
    gap:12px;
  }

  .btn{
    min-width:0;
    width:calc(50% - 6px);
    padding:14px 12px;
  }

  .cards{
    padding:0 16px;
    margin:20px auto 36px auto;
  }

  .card{
    padding:28px 24px;
  }

  .card h3{
    font-size:22px;
  }

  .footer{
    font-size:13px;
    padding:16px 16px 24px;
  }
}