:root {
  --bg: #0b0f14;
  --surface: #121821;
  --border: #232d3b;
  --text: #e6edf3;
  --muted: #93a1b2;
  --accent: #2ea043;
  --accent-hover: #3fb950;
  --warn: #d29922;
  --error: #f85149;
  --success: #2ea043;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  display: block;
  flex-shrink: 0;
}

.logo-text {
  letter-spacing: -0.01em;
}

@media (max-width: 420px) {
  .logo-text {
    font-size: 0.95rem;
  }
}

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

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
}

.nav a:hover {
  color: var(--text);
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* Hero */
.hero {
  padding: 48px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
  align-items: center;
}

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

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
  font-weight: 700;
}

.hero-lead {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-cta-line {
  margin: 0 0 16px;
  font-size: 1rem;
  color: var(--text);
}

.card-plain {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.hero-meta {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.after-cards {
  max-width: 42rem;
  margin: 28px auto 0;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
}

.hero-diagram {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.hero-diagram img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.hero-photo {
  padding: 0;
  overflow: hidden;
  background: #000;
}

.hero-diagram figcaption {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Sections */
section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

h2 {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 700;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 600;
}

.muted {
  color: var(--muted);
}

.section-sub {
  margin: -8px 0 24px;
  font-size: 0.9rem;
}

.prose p {
  margin: 0 0 16px;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Cards */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

.card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.card li {
  margin-bottom: 10px;
}

.card li:last-child {
  margin-bottom: 0;
}

.card dt {
  font-weight: 600;
  margin-top: 12px;
}

.card dt:first-child {
  margin-top: 0;
}

.card dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.product-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05rem;
  margin: 0 0 12px;
  color: var(--warn);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 780px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.form-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 640px;
}

.contact-section {
  padding-bottom: 56px;
}

.contact-block {
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 32px;
}

.contact-block p {
  margin: 0 0 16px;
}

.contact-block p:last-child {
  margin-bottom: 0;
}

.contact-email {
  font-size: 1.35rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.contact-email a {
  color: var(--accent);
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}