:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #0f172a;
  --card: #ffffff;
  --primary: #c96442;
  --primary-foreground: #ffffff;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --radius: 12px;
  --code: #0f172a;
  --code-text: #e2e8f0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.hero-bg {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(201,100,66,0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(37,99,235,0.08), transparent),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(201,100,66,0.06), transparent);
}
.hero-bg::before, .hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}
.hero-bg::before { width: 320px; height: 320px; top: -80px; left: -80px; background: rgba(201,100,66,0.18); }
.hero-bg::after { width: 280px; height: 280px; bottom: -60px; right: -60px; background: rgba(37,99,235,0.12); animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(20px,30px); } }
.hero-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 120px; background: linear-gradient(to top, var(--background), transparent); pointer-events: none; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
header { position: relative; z-index: 10; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.7); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; }
.mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; overflow: hidden; background: var(--primary); }
.mark svg { display: block; width: 100%; height: 100%; }
.brand-title { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.brand-subtitle { color: var(--muted-foreground); font-size: 13px; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
button, .button-link {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--foreground);
  cursor: pointer; font: inherit; font-size: 14px; font-weight: 500; padding: 10px 16px;
  text-decoration: none; transition: all 0.15s ease;
}
button.primary, .button-link.primary { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
button:hover, .button-link:hover { filter: brightness(1.05); text-decoration: none; }

.hero-wrap { position: relative; text-align: center; padding: 80px 0 48px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,0.6); backdrop-filter: blur(8px); padding: 6px 16px; font-size: 13px; font-weight: 500; color: var(--muted-foreground); margin-bottom: 24px; }
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }

h1 { margin: 0 auto 20px; font-size: clamp(32px, 5vw, 56px); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; max-width: 900px; }
.lead { margin: 0 auto 16px; color: var(--muted-foreground); font-size: clamp(16px, 2vw, 20px); max-width: 640px; line-height: 1.6; }
.hero-desc { margin: 0 auto 32px; color: var(--muted-foreground); font-size: 15px; max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 56px; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.value-card { border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,0.5); backdrop-filter: blur(12px); padding: 28px; text-align: left; transition: all 0.2s ease; }
.value-card:hover { border-color: rgba(201,100,66,0.3); background: rgba(255,255,255,0.8); }
.value-card .icon-box { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(201,100,66,0.1); color: var(--primary); margin-bottom: 16px; }
.value-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--foreground); }
.value-card p { margin: 0; font-size: 14px; color: var(--muted-foreground); line-height: 1.55; }

main { padding: 48px 0 64px; }
section { margin-top: 64px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.section-note { margin: 8px 0 0; color: var(--muted-foreground); font-size: 15px; }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 22px; transition: border-color 0.15s ease; }
.card:hover { border-color: rgba(201,100,66,0.3); }
.card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.card p { margin: 0; color: var(--muted-foreground); font-size: 14px; line-height: 1.55; }

.endpoint { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 14px; align-items: start; }
.method { display: inline-grid; place-items: center; height: 26px; border-radius: 6px; background: #f0fdf4; color: #166534; font-size: 11px; font-weight: 800; padding: 0 8px; }

.steps { counter-reset: step; display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); transition: border-color 0.15s ease; }
.step:hover { border-color: rgba(201,100,66,0.3); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: white; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.step strong { display: block; margin-bottom: 4px; font-size: 15px; }
.step span { color: var(--muted-foreground); font-size: 14px; }

code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
code.inline { padding: 2px 7px; border-radius: 6px; background: var(--muted); color: var(--foreground); font-size: 13px; overflow-wrap: anywhere; }
pre { position: relative; margin: 0; padding: 20px; overflow: auto; border-radius: var(--radius); background: var(--code); color: var(--code-text); font-size: 13px; line-height: 1.6; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.copy-status { min-height: 20px; color: #15803d; font-size: 13px; font-weight: 600; }

footer { padding: 32px 0 48px; color: var(--muted-foreground); font-size: 13px; text-align: center; border-top: 1px solid var(--border); }

.param-field {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 600;
}

.param-field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--foreground);
  font: inherit;
  font-size: 14px;
  padding: 9px 11px;
}

@media (max-width: 768px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .actions { justify-content: flex-start; width: 100%; }
  .value-grid, .card-grid, .two-col { grid-template-columns: 1fr; }
  .hero-wrap { padding: 56px 0 36px; }
  main { padding-top: 24px; }
}

.llm-skill-source {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: pre-wrap;
  border: 0;
}
