﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #f5d0fe 0%, #d8b4fe 22%, #93c5fd 48%, #67e8f9 70%, #fef9c3 100%);
  background-image: linear-gradient(135deg, rgba(245, 158, 255, 0.28) 0%, rgba(147, 197, 253, 0.32) 35%, rgba(16, 185, 129, 0.24) 65%, rgba(253, 230, 138, 0.3) 100%);
  color: #0f172a;
  min-height: 100vh;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a8a, #0ea5e9);
  color: #fff;
  padding: 80px 20px 92px;
  text-align: center;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.14);
}

.hero::before {
  content: '';
  position: absolute;
  left: -90px;
  top: -50px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(24px);
}

.hero::after {
  content: '';
  position: absolute;
  right: -100px;
  bottom: 12px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(28px);
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  margin-bottom: 18px;
  letter-spacing: 0.7px;
  text-shadow: 0 18px 30px rgba(0, 0, 0, 0.22);
  line-height: 1.05;
}

.hero p {
  font-size: 1.15rem;
  max-width: 920px;
  margin: auto;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

.search-box {
  margin-top: 34px;
}

.search-box input {
  width: min(720px, 100%);
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 18px;
  outline: none;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.12);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.search-box input:focus {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.26);
  transform: scale(1.01);
}

.search-box input.no-match {
  animation: shake-input 0.32s ease;
  border-color: rgba(244, 63, 94, 0.95);
  box-shadow: 0 0 0 6px rgba(244, 63, 94, 0.12);
}

@keyframes shake-input {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.container {
  width: min(92%, 1400px);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 3vw, 3.4rem);
  margin: 72px 0 34px;
  color: #0f172a;
  letter-spacing: 0.5px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 78px;
  height: 6px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8, #14b8a6, #f97316);
}

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

.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #eef2ff 100%);
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.09);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 28%),
              radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.14), transparent 28%);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-10px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 26px 68px rgba(15, 23, 42, 0.16);
}

.card h3 {
  font-size: 1.45rem;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.card p {
  line-height: 1.75;
  color: #334155;
  position: relative;
  z-index: 1;
}

.card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 28px;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  position: relative;
  z-index: 1;
}

.card a:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 22px 44px rgba(37, 99, 235, 0.28);
}

.card:nth-child(1) {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.card:nth-child(2) {
  background: linear-gradient(135deg, #dbeafe, #93c5fd);
}

.card:nth-child(3) {
  background: linear-gradient(135deg, #dcfce7, #86efac);
}

.card:nth-child(4) {
  background: linear-gradient(135deg, #ede9fe, #c4b5fd);
}

.card:nth-child(5) {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
}

.card:nth-child(6) {
  background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
}

.card:nth-child(7) {
  background: linear-gradient(135deg, #eff6ff, #bfdbfe);
}

.card:nth-child(8) {
  background: linear-gradient(135deg, #fff7ed, #ffd8a8);
}

.popular {
  position: relative;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(236, 72, 153, 0.12) 35%, rgba(16, 185, 129, 0.12) 65%, rgba(249, 115, 22, 0.12));
  padding: 82px 0 100px;
  margin-top: 64px;
  border-top: 1px solid rgba(59, 130, 246, 0.15);
  overflow: hidden;
}

.popular::before {
  content: '';
  position: absolute;
  left: 10%;
  top: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.18);
  filter: blur(24px);
  transform: translateX(-20%);
}

.popular::after {
  content: '';
  position: absolute;
  right: 8%;
  bottom: -30px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.18);
  filter: blur(24px);
  transform: translateX(20%);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.case-card {
  padding: 28px;
  border-radius: 28px;
  color: #111827;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.35);
  animation: float 8s ease-in-out infinite;
}

.case-card:nth-child(1) {
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
}

.case-card:nth-child(2) {
  background: linear-gradient(135deg, #a18cd1, #fbc2eb);
}

.case-card:nth-child(3) {
  background: linear-gradient(135deg, #84fab0, #8fd3f4);
}

.case-card:nth-child(4) {
  background: linear-gradient(135deg, #fccb90, #d57eeb);
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.18);
}

.highlight-target {
  border-color: rgba(255, 215, 0, 0.9);
  box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.18);
  animation: pulse-highlight 1.6s ease-in-out;
}

@keyframes pulse-highlight {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.24);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(245, 158, 11, 0);
  }
}

.case-card h4 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.case-card p {
  line-height: 1.75;
  font-size: 1rem;
  opacity: 0.96;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 72px 18px 82px;
  }
  .grid {
    gap: 20px;
  }
  .case-grid {
    gap: 20px;
  }
}

@media (max-width: 720px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .search-box {
    margin-top: 26px;
  }
  .search-box input {
    padding: 16px 20px;
  }
  .card {
    padding: 24px;
  }
  .case-card {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 60px 16px 68px;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.8rem;
    margin: 52px 0 26px;
  }
  .card {
    border-radius: 22px;
    padding: 22px;
  }
  .case-card {
    border-radius: 22px;
    padding: 22px;
  }
  .section-title::after {
    width: 60px;
  }
}
