:root {
  color-scheme: light;
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #0f172a;
  background: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(8px);
}

.brand {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav-btn,
.ghost,
.primary,
.secondary {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.nav-btn {
  background: transparent;
  color: #334155;
}

.nav-btn.active,
.nav-btn:hover {
  background: #eef2ff;
  color: #3730a3;
}

.hero {
  min-height: 52vh;
  padding: 72px 24px 48px;
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
}

.hero h1 {
  max-width: 640px;
  margin: 0 auto;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-align: center;
}

.hero p {
  max-width: 560px;
  margin: 16px auto 0;
  color: #475569;
  text-align: center;
}

.search {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 420px;
  margin: 24px auto 0;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.search input {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  background: white;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.primary {
  background: #4f46e5;
  color: white;
  font-weight: 700;
}

.secondary,
.ghost {
  background: white;
  color: #0f172a;
  box-shadow: inset 0 0 0 1px #cbd5e1;
}

.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

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

.card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
}

.section-lead {
  margin: 0 0 16px;
  color: #475569;
}

.hover-card {
  position: relative;
  min-height: 168px;
}

.hover-only-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: #4f46e5;
  color: transparent;
  font-size: 0;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
}

.hover-only-btn.is-on,
.hover-card:hover .hover-only-btn {
  opacity: 1;
  pointer-events: auto;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: auto;
  padding: 0 10px;
}

.spacer {
  height: 720px;
  display: grid;
  place-items: center;
  color: #94a3b8;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 24px;
}

.delayed {
  min-height: 56px;
}

.widget {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
}

.form {
  display: grid;
  gap: 12px;
  max-width: 420px;
}

.form input {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
}

dialog {
  border: 0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.4);
}

/* Tuto UI 가 top layer 에 올라갔는지 눈으로 확인하는 함정 요소. */
.zindex-trap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147483647;
  padding: 6px 12px;
  background: linear-gradient(90deg, #f43f5e, #f59e0b);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 800px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
