:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card-bg: #0f172a;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.15);
  --accent-alt: #38bdf8;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: #1f2933;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.35);
  --max-width: 1120px;
}

/* Reset */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1f2937 0, #020617 55%);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.88), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.docs-header { position: static; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 12px;
}

.logo-block { display: flex; align-items: center; gap: 10px; }

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: radial-gradient(circle at 20% 20%, #22c55e, #0ea5e9 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #020617;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.7);
}

.logo-text { display: flex; flex-direction: column; }
.logo-name { font-weight: 700; letter-spacing: 0.03em; font-size: 16px; }
.logo-tagline { font-size: 11px; color: var(--text-muted); }

.main-nav { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.main-nav a { color: var(--text-muted); text-decoration: none; padding: 4px 0; }
.main-nav a:hover { color: #f9fafb; }

/* Hero */
.hero { padding: 32px 0 40px; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(32px, 4vw, 40px);
  line-height: 1.1;
  margin: 0 0 16px;
}

.hero-lead {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.hero-subnote { font-size: 13px; color: var(--text-muted); margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.1s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}

.btn-big { padding: 11px 22px; }

.btn-primary {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  color: #020617;
  box-shadow: 0 14px 32px rgba(16, 185, 129, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(16, 185, 129, 0.6);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
}

.btn-ghost:hover { background: rgba(15, 23, 42, 0.9); }

.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover { background: rgba(34, 197, 94, 0.1); }

.btn-label { font-weight: 600; }
.btn-note { font-size: 11px; opacity: 0.75; margin-left: 8px; }

/* Hero media */
.hero-media { display: flex; flex-direction: column; align-items: center; }

.phone-frame {
  width: 260px;
  max-width: 100%;
  aspect-ratio: 9 / 19;
  border-radius: 32px;
  padding: 10px;
  background: radial-gradient(circle at 10% 0, #38bdf8, #020617 72%);
  box-shadow: var(--shadow-soft);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  background: #020617;
  padding: 8px;
  display: flex;
}

.phone-img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  display: block;
  object-fit: cover;
}

.hero-media-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* Sections */
.section { padding: 40px 0; }

.section-alt {
  background: radial-gradient(circle at top, #020617 0, #020617 40%, #020617 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.section-title { font-size: 24px; margin: 0 0 6px; }
.section-intro { margin: 0 0 24px; color: var(--text-muted); font-size: 14px; }

/* Grids */
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* Cards */
.card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: var(--shadow-card);
}

.card h3 { font-size: 16px; margin: 0 0 6px; }
.card p { margin: 0; font-size: 13px; color: var(--text-muted); }

/* Screens */
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.screen-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: var(--shadow-card);
}

.screen-img {
  width: 100%;
  border-radius: 12px;
  display: block;
  margin-bottom: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.7);
}

.screen-placeholder {
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  background: radial-gradient(circle at top, #1d283a, #020617 70%);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.screen-card p { margin: 0; font-size: 13px; color: var(--text-muted); }

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.step {
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  position: relative;
  box-shadow: var(--shadow-card);
}

.step-number {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.step h3 { margin: 0 0 6px; font-size: 15px; }
.step p { margin: 0; font-size: 13px; color: var(--text-muted); }

/* Demo PDF */
.demo-pdf-block {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: center;
}

.demo-pdf-preview {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-lg);
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-card);
}

.demo-pdf-img {
  width: 100%;
  border-radius: 10px;
  display: block;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.85);
}

.demo-pdf-text h3 { margin: 0 0 8px; }
.demo-pdf-text ul { margin: 0 0 14px 18px; padding: 0; font-size: 13px; color: var(--text-muted); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.pricing-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  padding: 18px 16px 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-card);
}

.pricing-card-highlight {
  border-color: rgba(34, 197, 94, 0.7);
  box-shadow: 0 16px 40px rgba(22, 163, 74, 0.4);
}

.pricing-card h3 { margin: 0 0 4px; }

.price-label {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--accent-alt);
  font-weight: 600;
}

.pricing-list { margin: 0 0 10px 18px; padding: 0; font-size: 13px; color: var(--text-muted); }
.pricing-note { margin: 0; font-size: 12px; color: var(--text-muted); }

/* FAQ */
.faq-list {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 18px;
}

.faq-item {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  padding: 14px 16px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.faq-item h3 { font-size: 15px; margin: 0 0 6px; }
.faq-item p { margin: 0; font-size: 13px; color: var(--text-muted); }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.98);
  padding: 12px 0 14px;
  font-size: 12px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
}

.footer-sub { margin: 2px 0 0; color: var(--text-muted); font-size: 11px; }

.footer-right { display: flex; align-items: center; gap: 14px; }
.footer-right a { color: var(--text-muted); text-decoration: none; }
.footer-right a:hover { color: #f9fafb; }

/* Docs layout */
.docs-body {
  background: radial-gradient(circle at top, #020617 0, #020617 50%, #020617 100%);
}

.docs-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px;
  gap: 18px;
}

.docs-sidebar {
  position: sticky;
  top: 16px;
  align-self: flex-start;
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  padding: 12px 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-card);
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.docs-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 999px;
}

.docs-nav a:hover {
  color: #f9fafb;
  background: rgba(148, 163, 184, 0.12);
}

.docs-main {
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow-card);
}

.docs-section + .docs-section {
  margin-top: 20px;
  border-top: 1px solid rgba(51, 65, 85, 0.7);
  padding-top: 16px;
}

.docs-section h1 { margin-top: 0; font-size: 24px; }
.docs-section h2 { margin-top: 0; font-size: 18px; }
.docs-section h3 { font-size: 15px; }

.docs-section p { font-size: 14px; color: var(--text-main); }
.docs-section ul, .docs-section ol { font-size: 14px; color: var(--text-muted); }

.note {
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

/* Docs special blocks */
.docs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
  align-items: start;
  margin-top: 12px;
}

.docs-hero-card {
  background: rgba(2, 6, 23, 0.25);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  padding: 14px 14px 12px;
}

.docs-hero-card h2 { margin: 0 0 8px; font-size: 16px; }
.docs-hero-card ol { margin: 0 0 12px 18px; padding: 0; color: var(--text-muted); font-size: 14px; }

.docs-hero-media { display: flex; flex-direction: column; gap: 8px; }

.docs-pdf {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  align-items: start;
  margin-top: 12px;
}

.docs-img {
  width: 100%;
  border-radius: 14px;
  display: block;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.docs-caption {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-media { order: -1; }
  .main-nav { display: none; }

  .demo-pdf-block { grid-template-columns: minmax(0, 1fr); }
  .faq-list { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; }

  .docs-layout { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .docs-sidebar { position: static; order: -1; display: flex; overflow-x: auto; }
  .docs-nav { flex-direction: row; flex-wrap: nowrap; }
  .docs-nav a { white-space: nowrap; }

  .docs-hero { grid-template-columns: minmax(0, 1fr); }
  .docs-pdf { grid-template-columns: minmax(0, 1fr); }
}