:root{
  --text:#1f2937;
  --muted:#6b7280;
  --panel:rgba(255,255,255,.74);
  --panel-border:rgba(255,255,255,.55);
  --shadow:0 20px 60px rgba(0,0,0,.18);
  --radius:22px;

  --blue-1:#2f5ea8;
  --blue-2:#1f4d8b;

  --green-1:#2f7a3f;
  --green-2:#1f5f30;
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  overflow-x:hidden;
}

/* Background */
.bg{
  position:fixed; inset:0; z-index:-2;
  background:
    radial-gradient(1200px 600px at 50% 20%, rgba(255,255,255,.85), rgba(255,255,255,0) 55%),
    linear-gradient(180deg, #b8d8ff 0%, #dfefff 35%, #f3f6fb 70%, #f6f7fb 100%);
}

/* Layout */
.wrap{
  min-height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding: clamp(18px, 4vw, 48px) 14px;
  gap: 14px;
}

/* Hero */
.hero{
  text-align:center;
  padding: 6px 4px;
}

/* Shared logo */
.gateway-logo{
  width: 100%;
  display:flex;
  justify-content:center;
  align-items:center;
  margin: 6px 0 10px;
}
.gateway-logo img{
  width: clamp(74px, 14vw, 120px);
  height:auto;
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  padding: 10px;
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero h1{
  margin:0;
  font-weight:800;
  letter-spacing:.2px;
  font-size: clamp(24px, 6vw, 48px);
  line-height: 1.15;
  text-shadow: 0 1px 0 rgba(255,255,255,.65);
}
.hero p{
  margin: 10px 0 0;
  color:var(--muted);
  font-size: clamp(14px, 3.6vw, 18px);
}

/* Panel */
.panel{
  width: min(980px, 100%);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: clamp(14px, 2.4vw, 22px);
}

/* Cards */
.cards{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card{
  display:block;
  text-decoration:none;
  color:inherit;
  border-radius: 18px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  outline:none;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
  background: rgba(255,255,255,.94);
}

.card:focus-visible{
  box-shadow: 0 0 0 4px rgba(47,94,168,.25), 0 18px 40px rgba(0,0,0,.14);
}

.card-inner{
  padding: clamp(14px, 2.5vw, 18px);
  text-align:center;
}

/* Top badge */
.card-top{
  display:flex;
  justify-content:flex-start;
  margin-bottom: 10px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 750;
  font-size: 12px;
  letter-spacing: .2px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.65);
}

.badge-blue{ box-shadow: 0 8px 18px rgba(47,94,168,.12); }
.badge-green{ box-shadow: 0 8px 18px rgba(47,122,63,.12); }

/* Titles */
.org-title{
  margin: 6px 0 6px;
  font-weight: 850;
  font-size: clamp(18px, 4.6vw, 22px);
  text-align: center;
}

.org-sub{
  margin: 0 auto 16px;
  color: var(--muted);
  font-size: clamp(13px, 3.7vw, 15px);
  line-height: 1.45;
  text-align: center;
  max-width: 32ch;
  text-wrap: balance;
}

/* Context image */
.card-image{
  position: relative;
  width: 100%;
  margin: 10px 0 14px;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f3f4f6;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}

.card-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.card:hover .card-image img{
  transform: scale(1.04);
}

.image-badge{
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  color: #fff;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}

/* CTA */
.cta{
  width:100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 12px;
  color:#fff;
  font-weight:800;
  box-shadow: 0 10px 18px rgba(0,0,0,.14);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.cta-blue{ background: linear-gradient(180deg, var(--blue-1), var(--blue-2)); }
.cta-green{ background: linear-gradient(180deg, var(--green-1), var(--green-2)); }

.card:hover .cta{
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(0,0,0,.16);
  filter: brightness(1.02);
}

.cta-text{
  text-align:left;
  white-space: normal;
  line-height: 1.2;
}

.cta-arrow{
  flex: 0 0 auto;
  font-size: 26px;
  line-height: 1;
  opacity: .95;
}

/* Footer */
.panel-footer{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,.08);
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 8px;
  text-align:center;
}

.copyright{
  color: rgba(31,41,55,.75);
  font-size: 13px;
}

.links{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  flex-wrap: wrap;
}

.link{
  color: rgba(31,41,55,.78);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 13px;
}

.link:hover{ color: rgba(31,41,55,.95); }
.sep{ color: rgba(31,41,55,.35); }

/* Desktop */
@media (min-width: 860px){
  .cards{
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .panel-footer{
    flex-direction: row;
    justify-content: space-between;
    text-align:left;
  }
  .copyright{ font-size: 14px; }
  .link{ font-size: 14px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; }
}