:root {
  --primary: #165dff;
  --secondary: #7b61ff;
  --success: #00b42a;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --line: #e5e6eb;
  --text: #1d2129;
  --muted: #4e5969;
  --soft: #86909c;
  --chip-blue: rgba(22, 93, 255, 0.1);
  --chip-purple: rgba(123, 97, 255, 0.1);
  --chip-green: rgba(0, 180, 42, 0.1);
  --shadow: 0 12px 32px rgba(22, 93, 255, 0.08);
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}
.brand-subtitle { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 720px; }
.nav-wrap { display: flex; align-items: center; gap: 12px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px; }
.nav a, .lang-switch a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  font-size: 14px;
  background: rgba(255,255,255,0.9);
}
.nav a:hover, .lang-switch a:hover { border-color: rgba(22, 93, 255, 0.35); color: var(--primary); }
.lang-switch { display: flex; gap: 8px; }
.lang-switch a.active { color: var(--primary); border-color: rgba(22, 93, 255, 0.35); background: rgba(22, 93, 255, 0.06); }
.hero {
  background: linear-gradient(135deg, rgba(22, 93, 255, 0.96), rgba(123, 97, 255, 0.92));
  color: white;
  padding: 72px 0 54px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}
.hero h1 { margin: 0 0 18px; font-size: 46px; line-height: 1.08; letter-spacing: -0.04em; }
.hero p { margin: 0; font-size: 18px; line-height: 1.8; opacity: 0.95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
}
.hero-actions .solid { background: white; color: var(--primary); }
.hero-actions .soft { background: rgba(255,255,255,0.12); color: white; border: 1px solid rgba(255,255,255,0.18); }
.hero-panel {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 22px;
}
.hero-panel-title { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.78; margin-bottom: 14px; }
.hero-list { display: grid; gap: 12px; }
.hero-list-item { padding: 14px 14px; border-radius: 14px; background: rgba(255,255,255,0.08); }
.hero-list-item strong { display: block; font-size: 16px; margin-bottom: 6px; }
.hero-list-item span { font-size: 14px; line-height: 1.6; opacity: 0.88; }
.section { padding: 34px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.section-head h2, .section-head h3 { margin: 0; letter-spacing: -0.03em; }
.section-head h2 { font-size: 30px; }
.section-head h3 { font-size: 24px; }
.section-head p { margin: 8px 0 0; color: var(--muted); line-height: 1.7; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.principle { padding: 22px; }
.principle strong { display: block; font-size: 19px; margin-bottom: 10px; }
.principle p { margin: 0; color: var(--muted); line-height: 1.7; }
.today-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pick-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge, .tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}
.badge { background: var(--chip-blue); color: var(--primary); }
.badge.alt { background: var(--chip-purple); color: var(--secondary); }
.badge.good { background: var(--chip-green); color: var(--success); }
.tag { background: #f2f3f5; color: var(--muted); }
.pick-card h3 { margin: 0; font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; }
.pick-card .summary { margin: 0; color: var(--muted); line-height: 1.75; }
.pick-sections { display: grid; gap: 10px; }
.pick-sections div {
  border-top: 1px solid #f0f1f4;
  padding-top: 10px;
}
.pick-sections strong { display: block; margin-bottom: 6px; font-size: 14px; }
.pick-sections p { margin: 0; color: var(--muted); line-height: 1.7; }
.pick-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--soft); font-size: 13px; }
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
}
.feed-list { display: grid; gap: 12px; }
.feed-item { padding: 18px 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; }
.feed-index {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--chip-blue);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.feed-item h4 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.feed-item p { margin: 0; color: var(--muted); line-height: 1.7; }
.feed-actions { display: flex; flex-direction: column; gap: 8px; align-items: end; }
.feed-actions a {
  border: 1px solid rgba(22, 93, 255, 0.15);
  background: rgba(22, 93, 255, 0.04);
  color: var(--primary);
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}
.use-case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.use-case { padding: 22px; }
.use-case-icon { font-size: 28px; margin-bottom: 14px; }
.use-case h3 { margin: 0 0 10px; font-size: 20px; }
.use-case p { margin: 0; color: var(--muted); line-height: 1.75; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.category-card { padding: 20px; }
.category-card h3 { margin: 0 0 10px; font-size: 18px; }
.category-card p { margin: 0 0 12px; color: var(--muted); line-height: 1.7; }
.category-count { color: var(--primary); font-weight: 700; font-size: 14px; }
.agent-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.endpoint-list, .agent-note { padding: 22px; }
.endpoint-code {
  display: block;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #0f1728;
  color: #dce8ff;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
  overflow: auto;
}
.agent-note p { margin: 0 0 12px; color: var(--muted); line-height: 1.75; }
.item-page .hero { padding: 44px 0; }
.detail-top { display: grid; gap: 18px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
}
.detail-card { padding: 24px; }
.detail-card h1 { margin: 8px 0 14px; font-size: 38px; letter-spacing: -0.04em; }
.detail-card .summary { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.8; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.detail-block { padding: 20px; }
.detail-block strong { display: block; margin-bottom: 10px; color: var(--primary); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.detail-block p { margin: 0; color: var(--muted); line-height: 1.75; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.detail-actions a {
  border: 1px solid rgba(22, 93, 255, 0.15);
  background: rgba(22, 93, 255, 0.04);
  color: var(--primary);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
}
.footer {
  background: #1d2129;
  color: rgba(255,255,255,0.72);
  padding: 40px 0 56px;
  margin-top: 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }
.footer h3 { color: white; margin: 0 0 12px; font-size: 18px; }
.footer p, .footer li, .footer a { color: rgba(255,255,255,0.72); line-height: 1.8; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 14px; }
@media (max-width: 1080px) {
  .hero-grid, .today-grid, .agent-grid, .use-case-grid, .category-grid, .principles, .footer-grid, .detail-grid { grid-template-columns: 1fr; }
  .feed-item { grid-template-columns: 1fr; }
  .feed-actions { align-items: start; }
}
@media (max-width: 760px) {
  .header {
    position: static;
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.96);
  }
  .header-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
  }
  .brand {
    gap: 0;
    min-width: 0;
  }
  .brand-title {
    font-size: 18px;
  }
  .brand-subtitle {
    display: none;
  }
  .nav-wrap {
    width: auto;
    margin-left: auto;
  }
  .nav {
    display: none;
  }
  .lang-switch a {
    padding: 8px 10px;
    font-size: 13px;
  }
  .hero {
    padding: 40px 0 36px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero p {
    font-size: 16px;
    line-height: 1.7;
  }
  .hero-actions {
    width: 100%;
  }
  .hero-actions a {
    flex: 1 1 100%;
  }
  .section-head h2 {
    font-size: 25px;
  }
  .pick-card h3, .detail-card h1 {
    font-size: 28px;
  }
}
