:root {
  --tool-ink: #2C3E50;
  --tool-action: #3498DB;
  --tool-action-dark: #21618C;
  --tool-action-strong: #21618C;
  --tool-action-pressed: #1B4F72;
  --tool-action-soft: #EBF5FB;
  --tool-action-border: #BDE0F5;
  --tool-canvas: #F5F5F5;
  --tool-surface: #FFFFFF;
  --tool-text: #333333;
  --tool-muted: #566573;
  --tool-success: #196F3D;
  --tool-shadow: 0 14px 40px rgba(44, 62, 80, .12);
  --type-hero: clamp(36px, 7vw, 64px);
  --type-title: 24px;
  --type-lead: clamp(17px, 2.3vw, 21px);
  --type-section: 17px;
  --type-body: 15px;
  --type-small: 13px;
  --type-caption: 12px;
  --type-micro: 11px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--tool-text);
  background: var(--tool-canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Malgun Gothic", sans-serif;
  font-size: var(--type-body);
  line-height: 1.6;
  padding-bottom: 130px;
}
a { color: inherit; }
button { font: inherit; }

.site-header {
  overflow: hidden;
  color: var(--tool-surface);
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--tool-action) 70%, transparent), transparent 28%),
    linear-gradient(135deg, var(--tool-ink), var(--tool-action-dark) 58%, var(--tool-action));
}
.site-nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.brand { font-size: var(--type-body); font-weight: 850; text-decoration: none; letter-spacing: -.02em; }
.site-nav-links { display: flex; gap: var(--space-4); font-size: var(--type-small); font-weight: 700; }
.site-nav-links a { color: color-mix(in srgb, var(--tool-surface) 82%, transparent); text-decoration: none; }
.site-nav-links a:hover { color: var(--tool-surface); }

.hero {
  max-width: 1120px;
  min-height: 460px;
  margin: 0 auto;
  padding: var(--space-10) var(--space-4) var(--space-14);
  display: grid;
  align-items: center;
  gap: var(--space-12);
}
.eyebrow, .section-kicker {
  margin: 0 0 var(--space-3);
  color: var(--tool-action-border);
  font-size: var(--type-caption);
  font-weight: 800;
  letter-spacing: .14em;
}
.hero h1 { margin: 0; max-width: 720px; font-size: var(--type-hero); line-height: 1.08; letter-spacing: -.05em; text-wrap: balance; }
.hero-lead { max-width: 640px; margin: var(--space-5) 0 var(--space-6); font-size: var(--type-lead); font-weight: 650; color: color-mix(in srgb, var(--tool-surface) 85%, transparent); }
.hero-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: var(--space-3) var(--space-5);
  border: 1px solid color-mix(in srgb, var(--tool-surface) 48%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--tool-surface) 14%, transparent);
  color: var(--tool-surface);
  font-size: var(--type-body);
  font-weight: 800;
  text-decoration: none;
}
.hero-cta:hover { background: color-mix(in srgb, var(--tool-surface) 22%, transparent); }

.hero-stack { position: relative; min-height: 260px; perspective: 900px; }
.stack-card {
  position: absolute;
  width: min(290px, 78vw);
  height: 178px;
  padding: var(--space-5);
  border: 1px solid color-mix(in srgb, var(--tool-surface) 36%, transparent);
  border-radius: 20px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--tool-surface) 24%, transparent), color-mix(in srgb, var(--tool-ink) 54%, transparent));
  box-shadow: 0 24px 64px color-mix(in srgb, var(--tool-ink) 52%, transparent);
  backdrop-filter: blur(12px);
}
.stack-card span { display: block; font-size: var(--type-micro); font-weight: 850; letter-spacing: .14em; color: var(--tool-action-border); }
.stack-card strong { display: block; margin-top: var(--space-2); font-size: var(--type-title); }
.stack-card i { display: block; width: 72%; height: 8px; margin-top: var(--space-8); border-radius: 8px; background: color-mix(in srgb, var(--tool-surface) 20%, transparent); box-shadow: 0 20px 0 color-mix(in srgb, var(--tool-surface) 12%, transparent); }
.stack-web { top: 0; right: var(--space-6); transform: rotate(7deg); }
.stack-product { top: calc(var(--space-10) - 2px); right: calc(var(--space-12) + var(--space-6)); transform: rotate(-5deg); }
.stack-book { top: calc(var(--space-14) + var(--space-5)); right: calc(var(--space-10) + 2px); transform: rotate(2deg); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-4); }
.works-summary {
  position: relative;
  z-index: 2;
  margin-top: -28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 16px;
  background: var(--tool-surface);
  box-shadow: var(--tool-shadow);
}
.works-stat { padding: var(--space-4); text-align: center; }
.works-stat + .works-stat { border-left: 1px solid var(--tool-action-soft); }
.works-stat strong { display: block; color: var(--tool-ink); font-size: var(--type-title); line-height: 1.2; }
.works-stat span { color: var(--tool-muted); font-size: var(--type-caption); font-weight: 700; }

.catalog, .trust-section, .faq-section { padding-top: var(--space-14); }
.ad-inline { display: flex; min-height: 0; justify-content: center; margin-top: var(--space-10); overflow: hidden; }
.section-kicker { color: var(--tool-action-dark); }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: var(--space-4); }
.catalog h2, .trust-section h2, .faq-section h2 { margin: 0; color: var(--tool-ink); font-size: var(--type-title); line-height: 1.2; letter-spacing: -.03em; }
.works-count { margin: 0; color: var(--tool-muted); font-size: var(--type-small); font-weight: 700; }
.works-filter { display: flex; gap: var(--space-2); margin: var(--space-6) 0; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scroll-padding-inline: var(--space-4); padding: 0 var(--space-1) var(--space-1); }
.works-filter button {
  min-height: 44px;
  flex: 0 0 auto;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--tool-action-border);
  border-radius: 999px;
  background: var(--tool-surface);
  color: var(--tool-action-dark);
  cursor: pointer;
  font-size: var(--type-body);
  font-weight: 800;
}
.works-filter button span { margin-left: var(--space-1); opacity: .7; font-size: var(--type-caption); }
.works-filter button:hover { background: var(--tool-action-soft); }
.works-filter button[aria-pressed="true"] { border-color: var(--tool-action-strong); background: var(--tool-action-strong); color: var(--tool-surface); }
.works-filter button[aria-pressed="true"] span { opacity: 1; }
.works-filter button:active { border-color: var(--tool-action-pressed); background: var(--tool-action-pressed); color: var(--tool-surface); }

.works-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
.works-card { min-width: 0; overflow: hidden; border-radius: 14px; background: var(--tool-surface); box-shadow: 0 4px 16px color-mix(in srgb, var(--tool-ink) 8%, transparent); }
.works-card[hidden] { display: none; }
.works-card > a { height: 100%; display: flex; flex-direction: column; text-decoration: none; }
.works-cover { aspect-ratio: 5 / 3; overflow: hidden; background: var(--tool-action-soft); }
.works-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.book-card .works-cover { background: linear-gradient(135deg, var(--tool-ink), var(--tool-action-dark)); }
.book-card .works-cover img { object-fit: contain; }
.works-info { flex: 1; display: flex; flex-direction: column; padding: var(--space-5); }
.works-meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.works-meta span { padding: var(--space-1) var(--space-2); border-radius: 999px; background: var(--tool-action-soft); color: var(--tool-action-dark); font-size: var(--type-micro); font-weight: 800; }
.works-info h3 { margin: 0; overflow-wrap: anywhere; color: var(--tool-ink); font-size: var(--type-section); line-height: 1.35; letter-spacing: -.02em; }
.works-info p { margin: var(--space-3) 0 var(--space-5); color: var(--tool-muted); font-size: var(--type-body); }
.works-link { margin-top: auto; display: inline-flex; align-items: center; gap: var(--space-1); color: var(--tool-action-dark); font-size: var(--type-small); font-weight: 850; }
.works-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.works-card:hover { transform: translateY(-2px); box-shadow: var(--tool-shadow); }
.works-card:active { transform: translateY(0); }

.trust-grid { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.trust-grid > div { padding: var(--space-5); border-left: 4px solid var(--tool-action); border-radius: 0 12px 12px 0; background: var(--tool-surface); }
.trust-grid strong { color: var(--tool-ink); font-size: var(--type-section); }
.trust-grid p { margin: var(--space-2) 0 0; color: var(--tool-muted); font-size: var(--type-body); }
.faq-list { margin-top: var(--space-6); display: grid; gap: var(--space-3); }
.faq-list details { padding: var(--space-4) var(--space-5); border-radius: 12px; background: var(--tool-surface); }
.faq-list summary { color: var(--tool-ink); cursor: pointer; font-size: var(--type-body); font-weight: 800; }
.faq-list p { margin: var(--space-3) 0 0; color: var(--tool-muted); font-size: var(--type-body); }
.site-footer { padding: var(--space-14) var(--space-4) var(--space-4); text-align: center; color: var(--tool-muted); font-size: var(--type-caption); }
.site-footer a { color: var(--tool-action-dark); text-decoration: none; }

:focus-visible { outline: 3px solid var(--tool-action); outline-offset: 3px; }
.works-card, .hero-cta, .works-filter button { transition: transform 120ms ease-out, box-shadow 120ms ease-out, background-color 120ms ease-out; }

@media (min-width: 640px) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  body { padding-bottom: 120px; }
  .hero { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); }
  .works-stat { padding: var(--space-5); }
}
@media (min-width: 1024px) {
  .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .works-card, .hero-cta, .works-filter button { transition: none; }
  .works-card:hover, .works-card:active { transform: none; }
}
