:root {
  --ink: #182033;
  --muted: #64708a;
  --line: rgba(47, 84, 168, 0.14);
  --blue: #1677ff;
  --cyan: #28d7ff;
  --orange: #ff9d2f;
  --cream: #fff8ec;
  --card: rgba(255, 255, 255, 0.84);
  --shadow: 0 24px 80px rgba(35, 83, 178, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(40, 215, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 8%, rgba(255, 157, 47, 0.22), transparent 30rem),
    linear-gradient(180deg, #f6f9ff 0%, #fffaf2 48%, #f7fbff 100%);
  min-height: 100vh;
}

button, a { font: inherit; }

.page-shell { overflow: hidden; }

.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  border-bottom-left-radius: 46px;
  border-bottom-right-radius: 46px;
  overflow: hidden;
  box-shadow: 0 26px 90px rgba(31, 63, 145, 0.24);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("./assets/kv.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  animation: heroFloat 11s ease-in-out infinite alternate;
  z-index: -3;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(115deg, rgba(255, 252, 244, 0.94) 0%, rgba(255, 252, 244, 0.74) 31%, rgba(20, 57, 134, 0.10) 58%, rgba(15, 32, 76, 0.30) 100%),
    radial-gradient(circle at 44% 43%, rgba(40, 215, 255, 0.26), transparent 20rem);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.18)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 110px);
  mix-blend-mode: screen;
}

.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 26px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #17316f;
}

.brand-mark, .source-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(37, 103, 237, 0.18);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: 0 14px 42px rgba(47, 93, 175, 0.14);
}

.brand-mark { font-weight: 900; letter-spacing: 0.04em; }
.brand-mark .material-symbols-outlined { color: var(--orange); }
.source-pill { font-size: 14px; color: #38517a; }

.hero-content {
  width: min(1180px, calc(100% - 40px));
  margin: auto auto 94px;
  padding-top: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0b74db;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(24, 119, 255, 0.16);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  box-shadow: 0 12px 40px rgba(39, 116, 241, 0.13);
}

.hero h1 {
  max-width: 780px;
  margin: 26px 0 18px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  color: #183774;
  text-shadow: 0 5px 0 rgba(255,255,255,0.65), 0 24px 60px rgba(28, 84, 179, 0.24);
}

.hero-subtitle {
  max-width: 610px;
  color: #3f526f;
  font-size: 18px;
  line-height: 1.85;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.primary-btn {
  color: white;
  text-decoration: none;
  font-weight: 900;
  border-radius: 18px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #146dff, #18c9ff 58%, #ff9d2f);
  box-shadow: 0 16px 42px rgba(24, 119, 255, 0.34);
  transition: transform .25s ease, box-shadow .25s ease;
}

.primary-btn:hover { transform: translateY(-3px); box-shadow: 0 24px 56px rgba(24, 119, 255, 0.42); }

.usage-note {
  max-width: 420px;
  color: #516280;
  font-size: 13px;
  line-height: 1.7;
  background: rgba(255, 248, 236, 0.74);
  border: 1px solid rgba(255, 157, 47, 0.22);
  border-radius: 16px;
  padding: 12px 16px;
}

.content-wrap {
  width: min(1220px, calc(100% - 36px));
  margin: -56px auto 80px;
  position: relative;
  z-index: 2;
}

.control-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(34, 104, 255, 0.12);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.panel-title > .material-symbols-outlined {
  color: #0b74db;
  font-size: 34px;
  background: #ecf7ff;
  border-radius: 16px;
  padding: 10px;
}

.panel-title h2 { margin: 0; font-size: 24px; letter-spacing: -0.03em; }
.panel-title p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }

.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(108px, 1fr));
  gap: 10px;
  min-width: 360px;
}

.tab-btn {
  border: 1px solid rgba(31, 102, 234, 0.14);
  background: rgba(244, 249, 255, 0.86);
  border-radius: 18px;
  padding: 14px 16px;
  cursor: pointer;
  color: #39506f;
  transition: all .22s ease;
}

.tab-btn:hover { transform: translateY(-2px); border-color: rgba(31, 102, 234, 0.30); }
.tab-btn.active { color: white; background: linear-gradient(135deg, #145bea, #19bff2); box-shadow: 0 14px 34px rgba(24, 119, 255, 0.28); }
.tab-name { display: block; font-weight: 900; }
.tab-count { display: block; margin-top: 4px; opacity: .78; font-size: 12px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 22px 0;
}

.stat-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.74);
  border-radius: 24px;
  padding: 18px 20px;
  box-shadow: 0 12px 40px rgba(39, 96, 183, 0.10);
}
.stat-card .num { font-size: 32px; font-weight: 900; color: #185ddd; }
.stat-card .label { color: var(--muted); font-size: 13px; margin-top: 4px; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(26, 92, 220, 0.12);
  box-shadow: 0 18px 60px rgba(40, 87, 172, 0.13);
  backdrop-filter: blur(14px);
  transition: transform .24s ease, box-shadow .24s ease;
}

.case-card:hover { transform: translateY(-6px); box-shadow: 0 28px 74px rgba(40, 87, 172, 0.22); }

.media-frame {
  position: relative;
  min-height: 420px;
  background:
    radial-gradient(circle at 50% 28%, rgba(40, 215, 255, 0.18), transparent 12rem),
    linear-gradient(160deg, #ecf6ff, #fff6e8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 24px;
  pointer-events: none;
  z-index: 2;
}

.media-frame img, .media-frame video {
  max-width: 100%;
  width: auto;
  height: 420px;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

.media-frame video { background: #0f254c; }

.media-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: white;
  background: rgba(15, 36, 83, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 800;
}

.case-body { padding: 22px; }
.case-kicker { color: #0b74db; font-size: 12px; font-weight: 900; letter-spacing: 0.08em; }
.agency { margin: 8px 0 12px; font-size: 24px; line-height: 1.25; letter-spacing: -0.03em; }

.tool-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(235, 246, 255, 0.9);
  color: #28527a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}
.tool-line .material-symbols-outlined { font-size: 18px; color: var(--orange); margin-top: 1px; }

.details { margin-top: 16px; display: grid; gap: 12px; }
.detail-block h4 {
  margin: 0 0 6px;
  font-size: 13px;
  color: #264778;
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-block p, .detail-block li {
  color: #5e6b81;
  font-size: 12px;
  line-height: 1.8;
}
.detail-block p { margin: 0 0 6px; }
.detail-block ul { margin: 0; padding-left: 18px; }
.source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #1768d8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  margin-top: 4px;
}
.source-link .material-symbols-outlined {
  font-size: 16px;
}
.source-link:hover { text-decoration: underline; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  color: var(--muted);
}

@keyframes heroFloat {
  from { transform: scale(1.03) translate3d(0,0,0); }
  to { transform: scale(1.08) translate3d(-1.2%, -1%, 0); }
}

@media (max-width: 1060px) {
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .control-panel { align-items: stretch; flex-direction: column; }
  .tabs { min-width: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .hero { min-height: 650px; border-bottom-left-radius: 30px; border-bottom-right-radius: 30px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .hero-content { margin-bottom: 82px; }
  .hero-subtitle { font-size: 15px; }
  .content-wrap { width: min(100% - 24px, 1220px); margin-top: -44px; }
  .tabs { grid-template-columns: 1fr; }
  .case-grid, .stats-grid { grid-template-columns: 1fr; }
  .media-frame { min-height: 360px; }
  .media-frame img, .media-frame video { height: 360px; }
}
