:root {
  --navy-950: #071222;
  --navy-900: #101c30;
  --navy-800: #29344d;
  --blue-600: #416f99;
  --aqua-400: #69b9c0;
  --aqua-300: #8dced0;
  --aqua-100: #dff1f0;
  --ink: #182131;
  --muted: #687283;
  --paper: #f4f6f4;
  --white: #ffffff;
  --line: #dbe5e3;
  --shadow: 0 18px 50px rgba(20, 40, 58, .09);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--paper); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 83% 4%, rgba(141, 206, 208, .28), transparent 30rem), linear-gradient(135deg, #f7faf9, var(--aqua-100));
}

.shell { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(2rem, 7vw, 6rem) 0 2rem; }

.hero { max-width: 760px; margin-bottom: clamp(2.4rem, 6vw, 4.8rem); }

.brand {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 2rem;
  border-radius: 0;
  background: radial-gradient(circle at 78% -45%, rgba(141, 206, 208, .34), transparent 37%), linear-gradient(110deg, #203448, #274653);
  color: var(--white);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 12px 28px rgba(20, 40, 58, .18);
}

.eyebrow { margin: 0 0 .75rem; color: var(--blue-600); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

h1 { margin: 0; font-size: clamp(3rem, 8vw, 6rem); line-height: .96; letter-spacing: -.065em; }

.intro { max-width: 610px; margin: 1.35rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.3rem); line-height: 1.55; }

.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.portal-card {
  position: relative;
  min-height: 172px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 0;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.portal-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(20, 40, 58, .14); }
.portal-card:focus-visible { outline: 4px solid rgba(38, 100, 145, .3); outline-offset: 3px; }
.portal-card--mint { background: linear-gradient(145deg, #dff1f0, #f7faf9); }
.portal-card--blue { background: linear-gradient(145deg, #e8f1f1, #f7faf9); }
.portal-card--sand { background: linear-gradient(145deg, #f4f6f4, #ffffff); }
.portal-card--coral { background: linear-gradient(145deg, #dff1f0, #ffffff); }
.portal-card--violet { background: linear-gradient(145deg, #e8f1f1, #ffffff); }
.portal-card--slate { background: linear-gradient(145deg, #edf3f3, #f7faf9); }

.symbol {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 19px;
  background: rgba(255, 255, 255, .7);
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(20, 40, 58, .05);
}

.card-content { min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.card-content strong { font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -.025em; }
.card-content span { color: var(--muted); line-height: 1.45; }
.arrow { font-size: 1.7rem; transition: transform .2s ease; }
.portal-card:hover .arrow { transform: translateX(5px); }

.empty { padding: 2rem; border: 1px dashed var(--line); border-radius: 24px; background: rgba(255,255,255,.55); }
.empty h2 { margin-top: 0; }
.empty p { margin-bottom: 0; color: var(--muted); }

footer { margin-top: 4rem; padding-top: 1.3rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
footer a { color: inherit; text-underline-offset: 3px; }

@media (max-width: 720px) {
  .link-grid { grid-template-columns: 1fr; }
  .portal-card { min-height: 145px; }
}

@media (max-width: 430px) {
  .shell { width: min(100% - 1.25rem, 1080px); }
  .portal-card { grid-template-columns: auto 1fr; }
  .arrow { display: none; }
  .symbol { width: 52px; height: 52px; border-radius: 15px; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-card, .arrow { transition: none; }
}
