:root {
  --bg: #0e0e10;
  --surface: #141417;
  --surface-2: #1a1a1f;
  --surface-hover: #212127;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f4f4f6;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --primary-bg: #f4f4f6;
  --primary-hover: #ffffff;
  --primary-text: #0e0e10;

  --radius-sm: 6px;
  --radius-md: 8px;
  --transition: 150ms ease-out;
  --container-max: 1040px;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.mono {
  font-family: "Cascadia Mono", Consolas, ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.brand-mark {
  color: var(--text-secondary);
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.btn-primary {
  background: var(--primary-bg);
  color: var(--primary-text);
}

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

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.btn-full {
  width: 100%;
}

/* Sections */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.hero {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 720px;
}

.hero-title {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-meta {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.section-title {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
}

/* Supported environments table */
.env-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.env-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.env-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.env-kind {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.card-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Install steps (ordered sequence) */
.steps-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-num {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.plan-card-featured {
  border-color: var(--border-strong);
}

.plan-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.plan-price {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.plan-period {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
}

.plan-desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.plan-list {
  margin: 16px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.plan-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.billing-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Requirements & FAQ */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.spec-table th,
.spec-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table th {
  width: 34%;
  font-weight: 500;
  color: var(--text-secondary);
}

.spec-table td {
  color: var(--text);
}

/* Legal pages */
.legal-main {
  padding: 48px 0 64px;
}

.legal-article {
  max-width: 760px;
}

.legal-article h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
}

.legal-date {
  margin: 0 0 32px;
  font-size: 13px;
  color: var(--text-muted);
}

.legal-article h2 {
  margin: 32px 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.legal-article p,
.legal-article li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.legal-article p {
  margin: 0 0 12px;
}

.legal-article ul {
  margin: 0 0 16px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg);
}

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

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

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

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .site-nav {
    gap: 16px;
  }

  .hero-title {
    font-size: 28px;
  }

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

  .feature-grid,
  .steps-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .spec-table th {
    width: 44%;
  }
}

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

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

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
