:root {
  --emerald-950: #0c321e;
  --emerald-900: #164e30;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;
  --gold-400: #fbbf24;
  --gold-100: #fef3c7;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --surface-bg: #f8fafc;
  --surface-card: #ffffff;
  --border-subtle: #e2e8f0;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --danger-ink: #991b1b;
  --info-bg: #eff6ff;
  --info-border: #bfdbfe;
  --info-ink: #1e40af;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.06);
  --shadow-hero: 0 20px 44px rgba(6, 29, 16, 0.28);
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: var(--surface-bg);
  color: var(--ink-900);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--emerald-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container--narrow {
  max-width: 860px;
}

/* Top Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-900);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(12, 50, 30, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--ink-700);
  font-weight: 600;
  font-size: 0.93rem;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--emerald-50);
  color: var(--emerald-700);
  text-decoration: none;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--emerald-950) 0%, var(--emerald-900) 55%, var(--emerald-700) 100%);
  color: #ffffff;
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero--compact {
  padding: 44px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--emerald-100);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--gold-400);
}

.hero p.lead {
  font-size: 1.08rem;
  color: rgba(236, 253, 245, 0.92);
  max-width: 60ch;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hero);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold-400);
  color: var(--emerald-950);
}

.btn-primary:hover {
  background: #f59e0b;
}

.btn-emerald {
  background: var(--emerald-700);
  color: #ffffff;
}

.btn-emerald:hover {
  background: var(--emerald-900);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: #ffffff;
  color: var(--emerald-700);
  border-color: var(--emerald-700);
}

.btn-outline:hover {
  background: var(--emerald-50);
}

/* Sections & Cards */
.section {
  padding: 56px 0;
}

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

.section-header h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--ink-900);
}

.section-header p {
  color: var(--ink-600);
  max-width: 65ch;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink-900);
}

.card p {
  color: var(--ink-600);
  font-size: 0.96rem;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  margin-bottom: 10px;
}

/* Screenshots Showcase */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.shot-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-card);
}

.shot-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
}

.shot-card figcaption {
  margin-top: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-700);
  text-align: center;
}

/* Legal & Documentation Content */
.doc-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.doc-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink-900);
  margin-top: 28px;
  margin-bottom: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.doc-card h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.doc-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-top: 18px;
  margin-bottom: 8px;
}

.doc-card p {
  color: var(--ink-700);
  margin-bottom: 12px;
}

.doc-card ul,
.doc-card ol {
  margin: 8px 0 16px 22px;
  color: var(--ink-700);
}

.doc-card li {
  margin-bottom: 6px;
}

/* Callouts */
.callout {
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 18px 0;
  border: 1px solid var(--border-subtle);
  background: var(--emerald-50);
  border-color: var(--emerald-100);
  color: var(--emerald-950);
}

.callout--info {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info-ink);
}

.callout--warn {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-ink);
}

.callout strong {
  display: block;
  margin-bottom: 4px;
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

th {
  background: var(--surface-bg);
  color: var(--ink-900);
  font-weight: 700;
}

td {
  color: var(--ink-700);
}

/* Step list */
.steps {
  list-style: none;
  margin: 16px 0 !important;
  padding: 0;
  counter-reset: step-counter;
}

.steps li {
  counter-increment: step-counter;
  position: relative;
  padding: 12px 14px 12px 50px;
  background: var(--surface-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--emerald-700);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
.site-footer {
  background: var(--emerald-950);
  color: rgba(236, 253, 245, 0.85);
  padding: 36px 0;
  margin-top: 40px;
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

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

.footer-links a {
  color: #a7f3d0;
  font-weight: 600;
}

.muted {
  color: var(--ink-500);
  font-size: 0.9rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 5px;
  color: var(--ink-900);
}

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

  .screenshots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .doc-card {
    padding: 22px 18px;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
  }
}
