/* SENTINEL — Dark + Minimal Design System */

:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-tertiary: #1a1a1e;
  --bg-card: #16161a;
  --bg-code: #1e1e24;
  --border: #2a2a30;
  --border-hover: #3a3a44;
  --text-primary: #e8e8ec;
  --text-secondary: #9898a4;
  --text-muted: #6a6a78;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.1);
  --red: #ef4444;
  --yellow: #eab308;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --max-width: 1120px;
  --radius: 8px;
  --radius-lg: 12px;
}

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

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

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav__logo {
  font-size: 1.1rem; font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}
.nav__logo-icon {
  width: 28px; height: 28px; background: var(--accent);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: white; font-weight: 800;
}
.nav__links { display: flex; gap: 32px; align-items: center; }
.nav__link {
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav__link:hover { color: var(--text-primary); }
.nav__link--active { color: var(--text-primary); }
.nav__cta {
  background: var(--accent); color: white; padding: 8px 18px;
  border-radius: 6px; font-size: 0.85rem; font-weight: 600;
  transition: background 0.2s;
}
.nav__cta:hover { background: var(--accent-hover); color: white; }

/* Mobile nav */
.nav__toggle { display: none; background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 1.5rem; }

@media (max-width: 768px) {
  .nav__links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-secondary); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 16px; }
  .nav__links.open { display: flex; }
  .nav__toggle { display: block; }
}

/* ── Hero ── */
.hero { padding: 160px 0 100px; text-align: center; }
.hero__badge {
  display: inline-block; padding: 6px 14px; background: var(--accent-glow);
  border: 1px solid rgba(99, 102, 241, 0.3); border-radius: 20px;
  font-size: 0.8rem; color: var(--accent-hover); font-weight: 500;
  margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800;
  line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.02em;
}
.hero__title span { color: var(--accent); }
.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem); color: var(--text-secondary);
  max-width: 640px; margin: 0 auto 40px; line-height: 1.5;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px;
  border-radius: var(--radius); font-size: 0.95rem; font-weight: 600;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn--primary { background: var(--accent); color: white; }
.btn--primary:hover { background: var(--accent-hover); color: white; transform: translateY(-1px); }
.btn--secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border); }
.btn--secondary:hover { border-color: var(--border-hover); color: white; transform: translateY(-1px); }
.btn--sm { padding: 8px 16px; font-size: 0.85rem; }

/* ── Cards ── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--border-hover); }
.card--highlight { border-color: var(--accent); position: relative; }
.card--highlight::before {
  content: ''; position: absolute; inset: -1px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--accent), transparent 60%);
  z-index: -1; opacity: 0.1;
}

/* ── Grid ── */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ── How It Works ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { text-align: center; }
.step__number {
  width: 48px; height: 48px; border-radius: 50%; background: var(--accent-glow);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700; color: var(--accent);
  margin: 0 auto 16px;
}
.step__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step__desc { color: var(--text-secondary); font-size: 0.9rem; }

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
}

/* ── Stats ── */
.stats { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; padding: 48px 0; }
.stat { text-align: center; }
.stat__value { font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.stat__label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ── Section Headers ── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header__title { font-size: 2rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.01em; }
.section-header__desc { color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

/* ── Code Blocks ── */
pre {
  background: var(--bg-code); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.7;
}
code { font-family: var(--font-mono); font-size: 0.85em; }
.inline-code {
  background: var(--bg-tertiary); padding: 2px 7px; border-radius: 4px;
  font-size: 0.85em; border: 1px solid var(--border);
}
pre .comment { color: var(--text-muted); }
pre .string { color: #a5d6ff; }
pre .keyword { color: #ff7b72; }
pre .number { color: #79c0ff; }
pre .response { color: var(--green); }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card { padding: 36px 32px; }
.pricing-card__name { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.pricing-card__price { font-size: 2.8rem; font-weight: 800; margin-bottom: 4px; }
.pricing-card__price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.pricing-card__desc { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 24px; }
.pricing-card__features { list-style: none; margin-bottom: 32px; }
.pricing-card__features li {
  padding: 8px 0; color: var(--text-secondary); font-size: 0.9rem;
  display: flex; align-items: center; gap: 10px;
}
.pricing-card__features li::before { content: '✓'; color: var(--green); font-weight: 700; }
.pricing-card .btn { width: 100%; justify-content: center; }

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* ── Docs ── */
.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.docs-sidebar { position: sticky; top: 88px; align-self: start; }
.docs-sidebar__list { list-style: none; }
.docs-sidebar__item { margin-bottom: 4px; }
.docs-sidebar__link {
  display: block; padding: 6px 12px; border-radius: 6px;
  color: var(--text-secondary); font-size: 0.9rem;
  transition: all 0.15s;
}
.docs-sidebar__link:hover { color: var(--text-primary); background: var(--bg-tertiary); }
.docs-sidebar__link--active { color: var(--accent); background: var(--accent-glow); }

.docs-content h2 { font-size: 1.5rem; font-weight: 700; margin: 48px 0 16px; padding-top: 24px; border-top: 1px solid var(--border); }
.docs-content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.docs-content h3 { font-size: 1.15rem; font-weight: 600; margin: 32px 0 12px; }
.docs-content p { color: var(--text-secondary); margin-bottom: 16px; }
.docs-content pre { margin-bottom: 24px; }
.docs-content table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.docs-content th { text-align: left; padding: 10px 14px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.docs-content td { padding: 10px 14px; font-size: 0.9rem; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.docs-content td code { color: var(--accent); }

.endpoint { margin-bottom: 48px; }
.endpoint__method {
  display: inline-block; padding: 4px 10px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700;
  margin-right: 8px;
}
.endpoint__method--get { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.endpoint__method--post { background: rgba(99, 102, 241, 0.15); color: var(--accent); }
.endpoint__path { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 600; }

@media (max-width: 768px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { display: none; }
}

/* ── FAQ ── */
.faq { max-width: 720px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__question {
  width: 100%; padding: 20px 0; background: none; border: none;
  color: var(--text-primary); font-size: 1rem; font-weight: 600;
  text-align: left; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; font-family: var(--font-sans);
}
.faq__question::after { content: '+'; font-size: 1.3rem; color: var(--text-muted); transition: transform 0.2s; }
.faq__question.open::after { transform: rotate(45deg); }
.faq__answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq__answer p { padding-bottom: 20px; color: var(--text-secondary); font-size: 0.9rem; }

/* ── Contact / Sign-up ── */
.contact-form { max-width: 560px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 14px; background: var(--bg-tertiary);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-primary); font-size: 0.95rem; font-family: var(--font-sans);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent);
}
.form-group textarea { min-height: 100px; resize: vertical; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border); padding: 48px 0;
  color: var(--text-muted); font-size: 0.85rem;
}
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer__links { display: flex; gap: 24px; }
.footer__link { color: var(--text-muted); transition: color 0.2s; }
.footer__link:hover { color: var(--text-secondary); }

/* ── Utilities ── */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Page top padding for fixed nav ── */
.page-content { padding-top: 64px; }
