/* ─── DOCS SHARED STYLES ─── */
/* Design tokens inherited from landing page */

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

:root {
  --coral:    #F05234;
  --coral-bg: #FEF1EE;
  --ink:      #111111;
  --ink-2:    #3A3A3A;
  --muted:    #9A9A9A;
  --faint:    #C8C3BC;
  --rule:     #EBEBEB;
  --card:     #FFFFFF;
  --bg:       #F9F6F1;
  --warm:     #F9F6F1;
  --green:    #1A7C4A;
  --green-bg: #EDFAF3;
  --amber:    #8A5D0A;
  --amber-bg: #FFF8E6;
  --blue:     #3A5BD9;
  --blue-bg:  #EEF3FF;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249,246,241,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 64px;
}

.logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
  text-decoration: none;
}
.logo-dot { color: var(--coral); }

.nav-center { display: flex; gap: 0; }

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--ink); background: rgba(0,0,0,.04); }

.nav-right { display: flex; gap: 10px; align-items: center; }

.btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s cubic-bezier(.16,1,.3,1);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 8px 18px;
  border: 1.5px solid var(--rule);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn-dark {
  background: var(--ink);
  color: #fff;
  padding: 9px 22px;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.btn-dark:hover { box-shadow: 0 4px 16px rgba(0,0,0,.2); }

.btn-coral {
  background: var(--coral);
  color: #fff;
  padding: 9px 22px;
  box-shadow: 0 2px 8px rgba(240,82,52,.25);
}
.btn-coral:hover { box-shadow: 0 4px 16px rgba(240,82,52,.35); }

/* ─── DOCS LAYOUT ─── */
.docs-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 60px 120px;
  display: flex;
  gap: 48px;
}

.docs-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 112px;
  align-self: flex-start;
}

.docs-sidebar-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}

.docs-sidebar a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
  margin-bottom: 2px;
}

.docs-sidebar a:hover {
  color: var(--ink);
  background: rgba(0,0,0,.03);
}

.docs-sidebar a.active {
  color: var(--coral);
  background: var(--coral-bg);
  border-left-color: var(--coral);
  font-weight: 600;
}

.docs-content {
  flex: 1;
  min-width: 0;
}

/* ─── BREADCRUMB ─── */
.docs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 32px;
}

.docs-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}

.docs-breadcrumb a:hover { color: var(--ink); }

.docs-breadcrumb span { color: var(--faint); }

.docs-breadcrumb-current { color: var(--ink); }

/* ─── ARTICLE CARD ─── */
.docs-article {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 56px 56px 48px;
}

.docs-article h1 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 16px;
}

.docs-article-desc {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}

.docs-article h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 16px;
}

.docs-article h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 12px;
}

.docs-article p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.docs-article ul, .docs-article ol {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  margin-bottom: 16px;
  padding-left: 24px;
}

.docs-article li {
  margin-bottom: 8px;
}

.docs-article strong {
  color: var(--ink);
  font-weight: 600;
}

.docs-article a {
  color: var(--coral);
  text-decoration: none;
  font-weight: 500;
  transition: opacity .15s;
}

.docs-article a:hover { opacity: .8; }

/* ─── CODE BLOCKS ─── */
.docs-article code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px;
  background: rgba(0,0,0,.05);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--ink);
}

.docs-article pre {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 24px 28px;
  overflow-x: auto;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,.06);
}

.docs-article pre code {
  background: transparent;
  color: #E8E6E3;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.7;
}

/* ─── CALLOUT BOXES ─── */
.docs-callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.65;
}

.docs-callout-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1.5;
}

.docs-callout-info {
  background: var(--blue-bg);
  border: 1px solid rgba(58,91,217,.12);
  color: var(--ink-2);
}

.docs-callout-tip {
  background: var(--green-bg);
  border: 1px solid rgba(26,124,74,.12);
  color: var(--ink-2);
}

.docs-callout-warn {
  background: var(--amber-bg);
  border: 1px solid rgba(138,93,10,.12);
  color: var(--ink-2);
}

/* ─── STEPS ─── */
.docs-steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  margin-bottom: 24px;
}

.docs-steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
}

.docs-steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── DOCS INDEX GRID ─── */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.docs-grid-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  transition: all .3s cubic-bezier(.16,1,.3,1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-grid-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.06);
  border-color: var(--coral);
}

.docs-grid-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 4px;
}

.docs-grid-card-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}

.docs-grid-card-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* ─── METRIC CARDS ─── */
.docs-metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 24px;
}

.docs-metric-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}

.docs-metric-item:last-child { border-bottom: none; }

.docs-metric-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.docs-metric-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ─── TOOL LIST ─── */
.docs-tool-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 24px;
  list-style: none;
  padding-left: 0;
}

.docs-tool-list li {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 8px;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--rule);
  padding: 80px 60px 40px;
  background: var(--card);
  position: relative;
  overflow: hidden;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}

.footer-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 14px;
}

.footer-logo span { color: var(--coral); }

.footer-tagline {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 220px;
}

@keyframes footerPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(26,124,74,.15); }
  50% { box-shadow: 0 0 0 6px rgba(26,124,74,.08); }
}

.footer-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-status-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.footer-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.footer-status-dot-green {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(26,124,74,.15);
  animation: footerPulse 2.5s ease-in-out infinite;
}

.footer-status-dot-blue {
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(58,91,217,.15);
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 0;
  transition: color .15s, transform .15s;
}

.footer-col a:hover {
  color: var(--ink);
  transform: translateX(3px);
}

.footer-col a .fc-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: .6;
  transition: opacity .15s, transform .15s;
}

.footer-col a:hover .fc-dot {
  opacity: 1;
  transform: scale(1.3);
}

.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 12px;
  color: var(--faint);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 12px;
  color: var(--faint);
  text-decoration: none;
  transition: color .15s;
}

.footer-bottom-links a:hover { color: var(--muted); }

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  text-decoration: none;
  transition: background .15s, color .15s, transform .15s;
}

.footer-social a:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 15px;
  height: 15px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .nav { padding: 0 24px; }
  .docs-wrapper { padding: 32px 24px 80px; gap: 32px; }
  .docs-article { padding: 40px 32px 36px; }
  .docs-article h1 { font-size: 32px; }
  .footer { padding: 60px 24px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-center { display: none; }
  .docs-wrapper { flex-direction: column; padding: 24px 16px 60px; gap: 0; }
  .docs-sidebar { position: static; width: 100%; margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 4px; }
  .docs-sidebar-title { width: 100%; margin-bottom: 8px; }
  .docs-sidebar a { padding: 6px 12px; font-size: 13px; border-left: none; border-radius: 100px; border: 1px solid var(--rule); }
  .docs-sidebar a.active { border-color: var(--coral); }
  .docs-article { padding: 28px 20px 24px; border-radius: 16px; }
  .docs-article h1 { font-size: 28px; }
  .docs-article h2 { font-size: 20px; }
  .docs-article pre { padding: 16px 18px; }
  .docs-grid { grid-template-columns: 1fr; }
  .docs-tool-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
