*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --ink: #1a1f36;
  --ink-muted: #5c6378;
  --surface: rgba(255, 255, 255, 0.92);
  --border: rgba(26, 31, 54, 0.08);
  --shadow: 0 12px 40px rgba(26, 31, 54, 0.08);
  --radius: 20px;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --accent: #6366f1;
  --accent-soft: #eef2ff;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(165deg, #f8f6ff 0%, #fff7f0 45%, #f0f9ff 100%);
  line-height: 1.55;
}

.page-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.blob-a {
  width: 420px;
  height: 420px;
  background: #c4b5fd;
  top: -120px;
  right: -80px;
}

.blob-b {
  width: 360px;
  height: 360px;
  background: #fdba74;
  bottom: 10%;
  left: -100px;
}

.blob-c {
  width: 280px;
  height: 280px;
  background: #7dd3fc;
  top: 40%;
  left: 55%;
}

.site-header,
.container,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.25rem 1.5rem;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.site-header h1 {
  margin: 1rem 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.title-main {
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.title-sub {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 36rem;
  margin-inline: auto;
  white-space: pre-line;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.section {
  margin-bottom: 2.75rem;
}

.section-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.tool-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .tool-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(26, 31, 54, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
}

.tool-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.tool-gemini:hover {
  border-color: rgba(66, 133, 244, 0.35);
}

.tool-sheets:hover {
  border-color: rgba(15, 157, 88, 0.35);
}

.tool-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 16px;
  background: #f8fafc;
}

.tool-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.tool-text strong {
  font-size: 1.1rem;
  font-weight: 700;
}

.tool-text span:last-child {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.tool-arrow {
  font-size: 1.25rem;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.hint {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.hint code {
  font-size: 0.8em;
  background: rgba(99, 102, 241, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.resource-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.resource-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.resource-card p {
  margin: 0 0 1.25rem;
  flex: 1;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #4f46e5;
}

.btn-secondary {
  background: #f1f5f9;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.steps {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.step-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ink-muted);
}

.step-list li {
  margin-bottom: 0.5rem;
}

.step-list li:last-child {
  margin-bottom: 0;
}

.site-footer {
  text-align: center;
  padding: 0 1.25rem 2.5rem;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.site-footer code {
  background: rgba(0, 0, 0, 0.05);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
