:root {
  --bg-deep: #0f3550;
  --bg-soft: #dff1f8;
  --sand: #f6f5ef;
  --card: #ffffff;
  --ink: #153349;
  --ink-soft: #4f687c;
  --line: rgba(20, 61, 92, 0.2);
  --teal: #0e8aa8;
  --teal-dark: #08617f;
  --mint: #4cc5b2;
  --amber: #f5b66d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 8% -12%, rgba(76, 197, 178, 0.36), transparent 46%),
    radial-gradient(ellipse at 92% 8%, rgba(245, 182, 109, 0.24), transparent 40%),
    linear-gradient(160deg, var(--bg-soft), #f3fbff 42%, #e9f7fc);
  min-height: 100vh;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 22px;
  border-radius: 26px;
  color: #f4fdff;
  background:
    linear-gradient(118deg, rgba(8, 60, 84, 0.96), rgba(8, 89, 120, 0.94) 52%, rgba(15, 53, 80, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -100px auto;
  width: 270px;
  height: 270px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(76, 197, 178, 0.62), transparent 70%);
  pointer-events: none;
}

.hero-logo {
  width: 290px;
  max-width: 56vw;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9de9db;
}

h1,
h2,
h3 {
  font-family: "Fraunces", "Georgia", serif;
}

h1 {
  margin: 5px 0 0;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.subtitle {
  margin: 9px 0 0;
  max-width: 680px;
  color: #ddf3f9;
  line-height: 1.45;
}

.hero-note {
  margin: 10px 0 0;
  color: #c2e7f1;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.panel {
  position: relative;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 16px 34px rgba(15, 53, 80, 0.11);
}

h2 {
  margin: 0;
  font-size: 1.45rem;
}

.cards {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid rgba(14, 97, 127, 0.2);
  padding: 16px 14px 16px;
  min-height: 172px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  animation: cardRise 620ms ease both;
}

.card:nth-child(1) {
  animation-delay: 80ms;
}

.card:nth-child(2) {
  animation-delay: 140ms;
}

.card:nth-child(3) {
  animation-delay: 200ms;
}

.card:nth-child(4) {
  animation-delay: 260ms;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 5px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--teal-dark), var(--teal), var(--mint));
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 97, 127, 0.46);
  box-shadow: 0 14px 26px rgba(8, 89, 120, 0.16);
}

.card-index {
  display: inline-block;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal-dark);
  background: rgba(14, 138, 168, 0.12);
}

.card h3 {
  margin: 0 0 7px;
  font-size: 1.25rem;
  color: var(--ink);
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
  font-size: 0.95rem;
}

@keyframes cardRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-logo {
    width: 240px;
    max-width: 76vw;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 146px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }
}
