:root {
  --bg-primary: #037fc3;
  --text-brand: #f4a3c7;
  --text-brand-light: #ffc1dc;
  --ui-light: #e6f4fb;
  --ui-soft: #b9e3f6;
  --accent-pink: #ff4f7b;
  --accent-orange: #ff9f1c;
  --accent-yellow: #ffd60a;
  --accent-aqua: #34d1bf;
  --accent-purple: #7b61ff;
  --text-dark: #0b2a3a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 5%, color-mix(in srgb, var(--accent-aqua), transparent 75%) 0, transparent 35%),
    radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--accent-purple), transparent 80%) 0, transparent 42%),
    var(--bg-primary);
  color: var(--ui-light);
  font-family: "Avenir Next", "Helvetica Neue", sans-serif;
}

a {
  color: var(--text-brand-light);
}

.page-wrap {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero-panel,
.team-card {
  background: color-mix(in srgb, var(--ui-light), transparent 12%);
  border: 2px solid color-mix(in srgb, var(--ui-soft), var(--accent-aqua) 20%);
  border-radius: 1.4rem;
  color: var(--text-dark);
  box-shadow: 0 16px 40px rgba(7, 29, 43, 0.2);
}

.hero-panel {
  padding: 2rem;
  text-align: center;
}

.home-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--ui-light);
  padding-top: 0.5rem;
}

.hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-top-inline {
  flex-direction: row;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.hero-logo {
  width: min(320px, 65vw);
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.nav-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-word {
  margin: 0 0 0.35rem;
  color: var(--text-brand);
  font-size: clamp(2.8rem, 9vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  font-weight: 900;
  font-family: "Arial Rounded MT Bold", "Avenir Next", "Trebuchet MS", sans-serif;
}

.brand-link {
  text-decoration: none;
  margin-bottom: 0;
}

.brand-link:hover {
  color: var(--text-brand-light);
}

h1 {
  margin: 0 0 1rem;
  color: var(--text-brand);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

.button-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.btn-primary {
  padding: 0.9rem 1.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, var(--accent-pink), var(--accent-orange));
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.btn-secondary {
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  background: color-mix(in srgb, var(--text-brand-light), white 35%);
  border: 2px solid var(--accent-yellow);
}

.gif-row {
  margin: 1.8rem 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
  flex-wrap: nowrap;
}

.image-card {
  background: var(--ui-light);
  border: 2px solid var(--ui-soft);
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gif-frame {
  height: 230px;
  border: 2px solid var(--ui-soft);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--ui-light);
  flex: 0 1 auto;
}

.gif-frame img {
  height: 100%;
  width: auto;
  display: block;
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 1.2rem;
  align-items: stretch;
}

.team-card {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
}

.team-image-card {
  max-width: 420px;
}

@media (max-width: 850px) {
  .gif-row {
    flex-direction: column;
    align-items: center;
  }

  .gif-frame {
    width: min(100%, 460px);
    height: 220px;
  }

  .gif-frame img {
    width: 100%;
    object-fit: cover;
  }

  .team-layout {
    grid-template-columns: 1fr;
  }

  .team-image-card {
    max-width: none;
  }
}
