:root {
  --bg: #FAF7F2;
  --bg-dark: #F0EBE1;
  --fg: #1a1814;
  --fg-muted: #6B6459;
  --accent: #C4922A;
  --accent-light: #E8C06A;
  --code-bg: #1E1B18;
  --code-fg: #E8DFD0;
  --card-bg: #FFFFFF;
  --border: #DDD6C8;
  --sans: 'DM Sans', system-ui, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  gap: 2rem;
}

.header-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.header-nav a:hover { color: var(--fg); }

/* HERO */
.hero {
  padding: 5rem 2rem 3rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
}

.hero-card-wrapper {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: var(--code-bg);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 60px rgba(26, 24, 20, 0.15);
}

.card-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.card-json {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--code-fg);
  white-space: pre-wrap;
}

.key { color: #9EC9F0; }
.string { color: #A8D8A8; }

.card-badge {
  position: absolute;
  bottom: -10px;
  right: 24px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-strip {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-strip span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

.dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* SECTION COMMONS */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-headline {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* FORMAT */
.format { padding: 5rem 2rem; background: var(--bg-dark); }
.format-inner { max-width: 1100px; margin: 0 auto; }
.format-header { margin-bottom: 3rem; }

.format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.format-code-block {
  background: var(--code-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26, 24, 20, 0.12);
}

.code-header {
  padding: 0.75rem 1.25rem;
  background: #2A2520;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.method {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(196, 146, 42, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
}

.endpoint {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #B5A890;
}

.code-block {
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #D4C9B8;
  line-height: 1.9;
}

.format-details { display: flex; flex-direction: column; gap: 1.5rem; }

.detail-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.detail-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.detail-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--fg);
}

.detail-item p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* OUTPUT */
.output { padding: 5rem 2rem; background: var(--bg); }
.output-inner { max-width: 1100px; margin: 0 auto; }
.output-header { margin-bottom: 3rem; }

.output-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.sample-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sample-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(26, 24, 20, 0.08);
}

.sample-card-label {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.sample-field {
  margin-bottom: 0.85rem;
}

.field-key {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.25rem;
}

.field-val {
  font-size: 0.875rem;
  color: var(--fg);
  font-weight: 500;
}

.sample-desc p, .sample-tag p {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--fg);
  line-height: 1.6;
}

/* PHILOSOPHY */
.philosophy { padding: 5rem 2rem; background: var(--code-bg); }
.philosophy-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.philosophy-text .section-eyebrow { color: var(--accent); }

.philosophy-headline {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: #E8DFD0;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.philosophy-text p {
  font-size: 1rem;
  color: #A89B87;
  line-height: 1.8;
  max-width: 520px;
}

.philosophy-text p + p { margin-top: 1rem; }

.philosophy-ornament {
  width: 120px;
  height: 120px;
  opacity: 0.7;
}

/* PRICING */
.pricing { padding: 5rem 2rem; background: var(--bg-dark); }
.pricing-inner { max-width: 1100px; margin: 0 auto; }
.pricing-header { margin-bottom: 3rem; text-align: center; }
.pricing-header .section-sub { margin: 0 auto; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-tier {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
}

.tier-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tier-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.tier-price {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.tier-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--fg-muted);
}

.tier-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.tier-features li {
  font-size: 0.875rem;
  color: var(--fg-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tier-features li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.tier-note {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-style: italic;
}

/* CLOSING */
.closing { padding: 5rem 2rem; background: var(--bg); }
.closing-inner { max-width: 1100px; margin: 0 auto; text-align: center; }

.closing-headline {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.closing-cta { display: inline-block; }

.cta-code {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--code-bg);
  border-radius: 10px;
  padding: 1rem 1.5rem;
}

.cta-code-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-code code {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: #D4C9B8;
}

/* FOOTER */
.site-footer {
  background: var(--code-bg);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: #E8DFD0;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: #7A7066;
  max-width: 240px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col h5 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7A7066;
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: #A89B87;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: #E8DFD0; }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #2A2520;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #5A5249;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-card-wrapper { justify-content: flex-start; }
  .hero-card { max-width: 100%; }
  .format-grid { grid-template-columns: 1fr; }
  .output-cards { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 360px; }
  .philosophy-inner { grid-template-columns: 1fr; }
  .philosophy-visual { display: none; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 2rem; }
  .hero-strip { gap: 1rem; }
  .header-nav { gap: 1rem; }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 1.5rem 2rem; }
  .hero-headline { font-size: 2rem; }
  .format, .output, .pricing, .closing { padding: 3rem 1.5rem; }
}