/* ── Tokens ─────────────────────────── */
:root {
  --bg: #faf9f7;
  --surface: #f2efe9;
  --surface2: #e8e3db;
  --border: rgba(28, 25, 23, 0.08);
  --border-strong: rgba(28, 25, 23, 0.16);
  --text: #1c1917;
  --text-secondary: #57534e;
  --muted: #57534e;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --accent-light: #fff1eb;
  --accent-warm: #ea580c;
  --accent-amber: #f59e0b;
  --accent-rose: #e11d48;
  --green: #15803d;
  --green-light: #f0fdf4;
  --step1: #2563eb;
  --step2: #7c3aed;
  --step3: #be185d;
  --step4: #b45309;
  --step5: #15803d;
  --step6: #b91c1c;
  --step7: #0e7490;
  --step8: #0f766e;
  --step9: #9d174d;

  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Premium typographic scale */
  --tracking-display: -0.035em;
  --tracking-heading: -0.025em;
  --tracking-body: 0;
  --tracking-eyebrow: 0.12em;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-precise: cubic-bezier(0.7, 0, 0.3, 1);
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Background Art Layers ─────────────── */
/* Layer 1: Fixed SVG fractal noise (film grain overlay) — sits above background, below content */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: multiply;
}

/* Layer 2: Top aurora — soft accent gradient at the top of the page */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 480px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%,
      rgba(194, 65, 12, 0.10),
      rgba(234, 88, 12, 0.05) 35%,
      transparent 70%);
}

/* Ensure main content sits above art layers */
main {
  position: relative;
  z-index: 2;
}

/* ── Constellation Decoration (removed) ─────────────────────────── */
/* Earlier iterations added a flow-field particle canvas here. Reverted
   because it carried no product meaning — decoration should either
   reinforce brand identity (Stripe mesh, Vercel grid) or illustrate a
   product mechanic. This section is intentionally left blank for now. */

code {
  font-family: var(--font-mono);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* ── Entrance animations ────────────── */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes blur-in {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes shimmer-sweep {
  from { background-position: -200% 0; }
  to { background-position: 200% 0; }
}

.anim {
  animation: fade-up 700ms var(--ease-out) both;
}

.anim-1 { animation-delay: 80ms; }
.anim-2 { animation-delay: 180ms; }
.anim-3 { animation-delay: 280ms; }
.anim-4 { animation-delay: 380ms; }
.anim-5 { animation-delay: 480ms; }
.anim-6 { animation-delay: 580ms; }

/* Reveal on scroll (initially hidden, animates when .in-view class added) */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .anim {
    animation: fade-in 200ms var(--ease-out) both;
  }
  .anim-1, .anim-2, .anim-3, .anim-4, .anim-5, .anim-6 {
    animation-delay: 0ms;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Nav ─────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(28, 25, 23, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 150ms;
  font-family: var(--font-body);
}

.nav-copy-btn:hover {
  background: var(--surface2);
  border-color: var(--accent);
  color: var(--accent);
}

.nav-copy-btn.copied {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green);
}

.nav-copy-btn svg {
  width: 14px;
  height: 14px;
}

/* ── Language Switch ─────────────────────────── */
.lang-switch {
  display: flex;
  align-items: center;
  margin: 0 8px;
}

.lang-btn {
  padding: 4px 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms;
  font-family: var(--font-body);
}

.lang-btn:first-child {
  border-radius: 4px 0 0 4px;
}

.lang-btn:last-child {
  border-radius: 0 4px 4px 0;
  border-left: none;
}

.lang-btn:hover {
  background: var(--surface);
}

.lang-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ── Buttons ─────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  transition: all 200ms var(--ease-out);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(232,93,4,0.25);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232,93,4,0.3);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface2);
  border-color: var(--border-strong);
}

/* ── Sections ─────────────────────────── */
.section {
  padding: 120px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 72px;
}

#claude-config .section-header {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

#workflow .section-header {
  margin-bottom: 80px;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: var(--tracking-heading);
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 20px;
  font-feature-settings: 'ss01' on;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.8;
}

/* ── Divider ─────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(28, 25, 23, 0.08), transparent);
  max-width: 1200px;
  margin: 0 auto;
}

/* Artistic dotted divider — single line of dots centered */
.divider-dotted {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 32px;
}

.divider-dotted::before,
.divider-dotted::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(28, 25, 23, 0.12), transparent);
}

.divider-dotted span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
}

.divider-dotted span:nth-child(2) {
  opacity: 0.7;
  transform: scale(1.4);
}

.divider-dotted span:nth-child(3) {
  opacity: 1;
  transform: scale(1.8);
}

.divider-dotted span:nth-child(4) {
  opacity: 0.7;
  transform: scale(1.4);
}

.divider-dotted span:nth-child(5) {
  opacity: 0.4;
}

/* ── Footer ─────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 64px 32px;
  background: var(--bg);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-brand-mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 380px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 150ms, background 150ms;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.footer-copy {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

