:root {
  --bg: #f3f4ef;
  --text: #171717;
  --muted: #4b4b4b;
  --card: rgba(255, 255, 255, 0.85);
  --surface: #ffffff;
  --surface-soft: #ececec;
  --surface-text: #171717;
  --disabled-bg: #ececec;
  --disabled-text: #666666;
  --footer-text: #666666;
  --line: rgba(0, 0, 0, 0.12);
  --accent: #d64933;
  --accent-2: #1f6f78;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 15%, rgba(214, 73, 51, 0.14), transparent 35%),
    radial-gradient(circle at 88% 28%, rgba(31, 111, 120, 0.12), transparent 34%),
    var(--bg);
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: "Noto Serif SC", serif;
}

.bg-shape {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 28% 72% 63% 37% / 38% 35% 65% 62%;
  z-index: -1;
  filter: blur(4px);
  animation: drift 14s ease-in-out infinite;
}

.bg-shape-left {
  left: -120px;
  top: 30%;
  background: rgba(214, 73, 51, 0.13);
}

.bg-shape-right {
  right: -120px;
  top: 8%;
  background: rgba(31, 111, 120, 0.16);
  animation-delay: -7s;
}

.hero,
.container,
footer {
  width: min(1000px, 92vw);
  margin: 0 auto;
}

.hero {
  padding: 5rem 0 2rem;
  animation: rise-in 700ms ease;
}

.hero-tag {
  display: inline-block;
  margin: 0;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  margin: 0.8rem 0;
}

.hero-intro {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1rem;
}

.hero-actions a {
  display: inline-flex;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(120deg, var(--accent-2), #15535a);
}

.hero-actions a:hover {
  opacity: 0.9;
}

.panel {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 20px;
  padding: 1.4rem;
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow);
  animation: rise-in 800ms ease;
}

.panel + .panel {
  margin-top: 1rem;
}

.section-head {
  margin-bottom: 1rem;
}

.section-head p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  max-height: 280px;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, max-height 1s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  max-height: 640px;
  transition-delay: 0s, 0s, 1s;
  z-index: 3;
}

.card h3 {
  margin-bottom: 0.4rem;
}

.domain {
  display: none;
}

.card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card:hover .card-desc {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.card a,
.disabled {
  margin-top: auto;
  display: inline-flex;
  align-self: flex-start;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  font-weight: 600;
}

.card a {
  color: #fff;
  background: linear-gradient(120deg, var(--accent), #b92e1a);
}

.card a:hover {
  opacity: 0.9;
}

.disabled {
  color: var(--disabled-text);
  background: var(--disabled-bg);
}

footer {
  padding: 1.5rem 0 2.2rem;
  color: var(--footer-text);
  font-size: 0.92rem;
}

footer p {
  margin: 0.25rem 0;
}

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

footer a:hover {
  text-decoration: underline;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(6deg);
  }
}

@media (max-width: 680px) {
  .hero {
    padding-top: 3.2rem;
  }

  .panel {
    padding: 1.1rem;
  }

  .card {
    min-height: 250px;
    max-height: 250px;
  }
}
