:root {
  --bg: #FAFAF7;
  --bg-alt: #F1F2EE;
  --card: #FFFFFF;
  --ink: #12161C;
  --ink-soft: #3B414A;
  --ink-mute: #7A818B;
  --rule: #E4E4DE;
  --accent: #2F5BEA;
  --accent-dark: #2147C4;
  --live: #1D9E75;
  --beta: #D97706;
  --radius: 16px;
  --serif: 'Fraunces', Georgia, 'Pretendard Variable', Pretendard, 'Malgun Gothic', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
  --mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* Nav */
nav.site {
  position: sticky; top: 0; z-index: 20;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(8px);
}
nav.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo {
  font-family: var(--serif); font-weight: 600; font-size: 25px; letter-spacing: -0.5px;
  text-decoration: none; color: var(--ink);
}
.logo em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover { color: var(--accent); }
@media (max-width: 640px) { .nav-links .hide-mobile { display: none; } .nav-links { gap: 14px; } }

/* Hero */
.hero { padding: 84px 0 60px; text-align: center; border-bottom: 1px solid var(--rule); }
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 7vw, 74px); line-height: 1.06; letter-spacing: -2px;
  margin-bottom: 22px;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.hero .sub { font-size: 18px; color: var(--ink-soft); max-width: 620px; margin: 0 auto; }
.hero-actions { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; font-family: inherit;
  transition: transform .15s, background .15s, border-color .15s, color .15s;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn small { font-weight: 500; opacity: .8; font-size: 12.5px; }

/* Sections */
.section { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -1px; line-height: 1.12;
  font-size: clamp(28px, 4vw, 40px);
}
.section-head h2 em { font-style: italic; font-weight: 500; color: var(--accent); }
.section-head p { color: var(--ink-mute); font-size: 14.5px; max-width: 440px; }

/* Category filter */
.cat-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.cat-nav button {
  font-family: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer;
  padding: 8px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--rule); color: var(--ink-soft);
}
.cat-nav button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.cat-nav button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-nav button:disabled { cursor: default; color: var(--ink-mute); background: var(--bg-alt); }
.cat-nav .n { margin-left: 6px; font-size: 12px; opacity: .7; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 28px 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--rule);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); border-color: #D3D5DA; box-shadow: 0 12px 32px rgba(18, 22, 28, .08); }
.card[hidden] { display: none; }
.card-top { display: flex; align-items: center; gap: 14px; }
.card-top img { width: 56px; height: 56px; }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 23px; letter-spacing: -.4px; line-height: 1.2; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); }
.card .tagline { font-size: 13px; color: var(--ink-mute); }
.card .desc { font-size: 15px; color: var(--ink-soft); flex: 1; }
.card .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--ink-mute); }
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .3px;
  background: var(--bg-alt); color: var(--ink-soft);
}
.badge.live { background: #E3F4EE; color: var(--live); }
.badge.beta { background: #FDF0DF; color: var(--beta); }
.card .actions { position: relative; z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; }
.card .actions .btn { padding: 9px 16px; font-size: 13.5px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: step; }
.step { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--rule); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; margin-bottom: 12px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

/* Code */
.code {
  display: flex; align-items: center; gap: 12px;
  margin-top: 10px; padding: 12px 14px; border-radius: 10px;
  background: #12161C; color: #E8EAED; font-family: var(--mono); font-size: 13px;
}
.code code { flex: 1; min-width: 0; white-space: nowrap; overflow-x: auto; }
.code button {
  font-family: var(--sans); font-size: 12px; cursor: pointer; flex-shrink: 0;
  padding: 4px 10px; border-radius: 6px; border: 1px solid #3B414A; background: transparent; color: #E8EAED;
}
.code button:hover { border-color: #fff; }
code.inline { font-family: var(--mono); font-size: .9em; background: var(--bg-alt); padding: 1px 6px; border-radius: 5px; }

/* Product detail */
.product-hero { padding: 64px 0 52px; border-bottom: 1px solid var(--rule); }
.product-hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.product-hero img.icon { width: 168px; height: 168px; }
.product-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 62px); letter-spacing: -1.6px; line-height: 1.05; margin: 6px 0 16px; }
.product-hero .sub { font-size: 18px; color: var(--ink-soft); max-width: 600px; }
.product-hero .meta { margin-top: 14px; font-size: 13.5px; color: var(--ink-mute); }
.product-hero .hero-actions { justify-content: flex-start; }
@media (max-width: 720px) {
  .product-hero .wrap { grid-template-columns: 1fr; }
  .product-hero img.icon { width: 104px; height: 104px; grid-row: 1; }
}
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.feature { padding: 22px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--rule); }
.feature h3 { font-size: 16.5px; margin-bottom: 6px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); }
.req { list-style: none; display: grid; gap: 10px; }
.req li { padding-left: 22px; position: relative; color: var(--ink-soft); font-size: 15px; }
.req li::before { content: ''; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.note { margin-top: 16px; font-size: 13.5px; color: var(--ink-mute); }

/* Footer */
footer.site { padding: 40px 0 56px; color: var(--ink-mute); font-size: 13.5px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--ink-soft); text-decoration: none; }
footer.site a:hover { color: var(--accent); }
