/* ============================================================
   FONTS
   ============================================================ */

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-600-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-600-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-600-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-600-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-600-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-cyrillic-ext.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-cyrillic.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-greek.woff2") format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   CSS VARIABLES & RESET
   ============================================================ */

:root {
  --accent: #0969da;
  --bg-soft: #fafafa;
  --text-primary: #0f1115;
  --text-secondary: #4a4f57;
  --text-muted: #8a8f96;
  --border: #e8e8e8;
  --border-strong: #16181b;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'IBM Plex Sans', -apple-system, system-ui, sans-serif;
  --container: 1180px;
  --px: 32px;
}

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

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

body {
  font-family: var(--sans);
  color: var(--text-primary);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }
a { text-decoration: none; }
img { max-width: 100%; display: block; }

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

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

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.section-heading {
  margin: 18px 0 0;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.nav-brand-dot {
  width: 15px;
  height: 15px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.nav-brand-name {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.nav-brand-badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid #e0e0e0;
  padding: 2px 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-left: 36px;
}

.nav-links a {
  color: var(--text-secondary);
  transition: color 0.15s;
}

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

.nav-left {
  display: flex;
  align-items: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-star {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #d4d6d9;
  background: #fff;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.btn-star .star-icon { color: var(--accent); }

.btn-star .star-count {
  font-family: var(--mono);
  color: var(--text-muted);
  border-left: 1px solid #e2e2e2;
  padding-left: 8px;
}

.btn-primary-sm {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  background: var(--text-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-primary);
  transition: opacity 0.2s;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 58px 0 0 0;
  background: #fff;
  z-index: 49;
  flex-direction: column;
  padding: 24px var(--px);
  border-top: 1px solid var(--border);
  gap: 0;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

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

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.mobile-nav-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  font-size: 15px;
  font-weight: 500;
  border-bottom: none !important;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(#ffffff, var(--bg-soft));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  padding: 74px 0 78px;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.hero-eyebrow .sep { color: #c8ccd0; }

.hero-title {
  margin: 22px 0 0;
  font-size: 57px;
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 620px;
}

.hero-subtitle {
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 560px;
}

.hero-cta-group {
  margin: 32px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 22px;
  background: var(--text-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.15s;
}

.btn-primary:hover { opacity: 0.85; }

.btn-outline {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 22px;
  background: #fff;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.15s;
}

.btn-outline:hover { background: #f5f5f5; }

.hero-meta {
  margin: 26px 0 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: #7c828a;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-meta .sep { color: #d4d6d9; }
.hero-meta .accent { color: var(--accent); }

.hero-media {
  padding: 24px 0;
}

.browser-window {
  border: 1px solid #dfe1e4;
  background: #fff;
  box-shadow: 0 24px 60px -28px rgba(15, 17, 21, 0.28);
}

.browser-bar {
  height: 36px;
  border-bottom: 1px solid var(--border);
  background: #f7f8f9;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 7px;
}

.browser-dot {
  width: 10px;
  height: 10px;
  background: #d6d9dc;
  display: inline-block;
  flex-shrink: 0;
}

.browser-url {
  font-family: var(--mono);
  font-size: 11px;
  color: #9aa0a6;
  margin-left: 10px;
}

.browser-screenshot {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: top left;
  border-bottom: 1px solid #eee;
}

.terminal {
  margin-top: 16px;
  background: #0f1115;
  border: 1px solid #1d2026;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  box-shadow: 0 18px 44px -26px rgba(15, 17, 21, 0.5);
}

.terminal-comment { color: #5b6168; }
.terminal-cmd { color: #e8eaed; }
.terminal-success { color: #3fbf6e; }

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent);
  margin-left: 6px;
  transform: translateY(2px);
  animation: blink 1.1s steps(1) infinite;
  vertical-align: middle;
}

/* ============================================================
   WHY OPEN SOURCE
   ============================================================ */

.why-section {
  border-bottom: 1px solid var(--border);
}

.why-header {
  padding: 84px 0 28px;
  max-width: 760px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  margin-bottom: 84px;
}

.why-card {
  padding: 34px 36px;
}

.why-card:nth-child(odd) { border-right: 1px solid var(--border); }
.why-card:nth-child(-n+2) { border-bottom: 1px solid var(--border); }

.why-card-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

.why-card h3 {
  margin: 12px 0 8px;
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
}

.why-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.62;
  color: #52575f;
}

/* ============================================================
   WHAT IT DOES
   ============================================================ */

.how-section {
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.how-header {
  padding: 78px 0 30px;
  max-width: 820px;
}

.how-header p {
  margin: 0;
  font-size: 16px;
  line-height: 1.62;
  color: #52575f;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #e3e4e6;
  background: #fff;
}

.metric-card {
  padding: 30px 26px;
}

.metric-card:not(:last-child) { border-right: 1px solid var(--border); }

.metric-icon {
  width: 9px;
  height: 9px;
  display: inline-block;
}

.metric-icon--circle { background: var(--accent); }

.metric-icon--diamond {
  background: var(--text-primary);
  transform: rotate(45deg);
}

.metric-icon--dot {
  background: var(--text-primary);
  border-radius: 50%;
}

.metric-icon--square { background: var(--text-primary); }

.metric-name {
  margin: 14px 0 6px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.metric-desc {
  font-family: var(--mono);
  font-size: 12.5px;
  color: #7c828a;
  line-height: 1.5;
}

.how-footnote {
  margin: 18px 0 80px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: #8a8f96;
}

/* ============================================================
   PRICING
   ============================================================ */

.pricing-section {
  border-bottom: 1px solid var(--border);
}

.pricing-header {
  padding: 84px 0 34px;
  max-width: 760px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--text-primary);
}

.pricing-card {
  display: flex;
  flex-direction: column;
}

.pricing-card:not(:last-child) { border-right: 1px solid #e2e3e5; }

.pricing-accent-bar {
  height: 6px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.pricing-accent-bar--blue { background: var(--accent); border-bottom: none; }

.pricing-body {
  padding: 30px 30px 34px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pricing-bg { background: #fcfcfd; }

.pricing-tier-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pricing-tier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pricing-popular {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--text-primary);
  padding: 3px 7px;
}

.pricing-price {
  margin: 16px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pricing-price-amount {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.pricing-price-period {
  font-size: 15px;
  color: var(--text-muted);
}

.pricing-desc {
  margin: 8px 0 22px;
  font-size: 14px;
  line-height: 1.55;
  color: #52575f;
}

.pricing-desc code {
  font-family: var(--mono);
  color: var(--text-primary);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
  color: #52575f;
  margin-bottom: 26px;
  list-style: none;
  padding: 0;
}

.pricing-features li {
  display: flex;
  gap: 9px;
}

.pricing-features li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
}

.pricing-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.15s;
}

.pricing-cta:hover { opacity: 0.85; }
.pricing-cta--outline { border: 1px solid var(--text-primary); color: var(--text-primary); }
.pricing-cta--filled { background: var(--text-primary); color: #fff; }

.pricing-note {
  margin: 20px 0 84px;
  font-family: var(--mono);
  font-size: 13px;
  color: #52575f;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-note::before {
  content: '●';
  color: var(--accent);
}

.pricing-selfhost {
  margin-top: 16px;
  border: 1px solid var(--border);
  background: #fafafa;
}

.pricing-selfhost-inner {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pricing-selfhost-desc {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #52575f;
}

.pricing-selfhost-desc code {
  font-family: var(--mono);
  color: var(--text-primary);
}

.pricing-selfhost-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.pricing-selfhost-price {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.pricing-selfhost-cta {
  white-space: nowrap;
  padding: 0 20px;
}

/* ============================================================
   ROADMAP
   ============================================================ */

.roadmap-section {
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.roadmap-header {
  padding: 84px 0 38px;
  max-width: 760px;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #e3e4e6;
  background: #fff;
  margin-bottom: 84px;
}

.roadmap-card {
  padding: 34px 32px;
}

.roadmap-card:not(:last-child) { border-right: 1px solid var(--border); }

.roadmap-phase {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.roadmap-phase--now { color: var(--accent); }
.roadmap-phase--next,
.roadmap-phase--later { color: var(--text-muted); }

.roadmap-phase-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  flex-shrink: 0;
}

.roadmap-phase-dot--filled { background: var(--accent); }
.roadmap-phase-dot--empty { border: 1px solid #b6bbc1; }

.roadmap-card p {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: #52575f;
}

.roadmap-card--now p { color: #2a2e34; }

/* ============================================================
   GITHUB CTA
   ============================================================ */

.github-section {
  border-bottom: 1px solid var(--border);
}

.github-grid {
  padding: 84px 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.github-content h2 {
  margin: 18px 0 0;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text-primary);
}

.github-content p {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.62;
  color: #52575f;
  max-width: 520px;
}

.github-cta-group {
  margin: 30px 0 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary-lg {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  background: var(--text-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.15s;
}

.btn-primary-lg:hover { opacity: 0.85; }
.btn-primary-lg .star { color: var(--accent); }

.btn-outline-lg {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 22px;
  background: #fff;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.15s;
}

.btn-outline-lg:hover { background: #f5f5f5; }

.code-block {
  background: #0f1115;
  border: 1px solid #1d2026;
  padding: 22px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.85;
}

.code-comment { color: #5b6168; }
.code-cmd { color: #e8eaed; }
.code-success { color: #3fbf6e; margin-top: 8px; display: block; }

/* ============================================================
   FAQ
   ============================================================ */

.faq-section {
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.faq-container { max-width: 840px; }

.faq-header {
  padding: 78px 0 34px;
}

.faq-header h2 {
  margin: 18px 0 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-list {
  border-top: 1px solid #e3e4e6;
  margin-bottom: 84px;
}

.faq-item {
  border-bottom: 1px solid #e3e4e6;
  background: #fff;
}

.faq-trigger {
  width: 100%;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
}

.faq-trigger:hover { background: #fafafa; }

.faq-question {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--sans);
}

.faq-icon {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--accent);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.faq-answer {
  display: none;
  padding: 0 26px 26px;
  font-size: 15px;
  line-height: 1.62;
  color: #52575f;
  max-width: 680px;
}

.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon::after { content: '–'; }
.faq-item:not(.open) .faq-icon::after { content: '+'; }
.faq-icon::after { content: '+'; }

/* ============================================================
   FINAL CTA
   ============================================================ */

.cta-section {
  background: #0f1115;
}

.cta-inner {
  padding: 96px 0;
  text-align: center;
}

.cta-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7178;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cta-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  display: inline-block;
}

.cta-title {
  margin: 20px 0 0;
  font-size: 48px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: #fff;
}

.cta-subtitle {
  margin: 18px auto 0;
  font-size: 17px;
  line-height: 1.6;
  color: #9aa0a6;
  max-width: 520px;
}

.cta-buttons {
  margin: 34px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-white {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  background: #fff;
  color: #0f1115;
  font-size: 15px;
  font-weight: 600;
  transition: opacity 0.15s;
}

.btn-white:hover { opacity: 0.9; }

.btn-ghost {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  background: transparent;
  border: 1px solid #3a3f46;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: border-color 0.15s;
}

.btn-ghost:hover { border-color: #666; }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: #0f1115;
  border-top: 1px solid #1d2026;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.footer-brand-dot {
  width: 13px;
  height: 13px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.footer-brand-name {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.footer-brand-url {
  font-family: var(--mono);
  font-size: 12px;
  color: #4f555c;
}

.footer-brand-license {
  font-family: var(--mono);
  font-size: 12px;
  color: #6b7178;
  margin-left: 8px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--mono);
  font-size: 13px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #9aa0a6;
  transition: color 0.15s;
}

.footer-links a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */

@media (max-width: 1024px) {
  :root { --px: 24px; }

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

  .section-heading { font-size: 34px; }

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

  .metric-card:nth-child(2) { border-right: none; }
  .metric-card:nth-child(1),
  .metric-card:nth-child(2) { border-bottom: 1px solid var(--border); }
  .metric-card:nth-child(3) { border-right: 1px solid var(--border); }

  .github-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 60px 0;
  }

  .github-content p { max-width: 100%; }

  .cta-title { font-size: 38px; }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */

@media (max-width: 768px) {
  :root { --px: 20px; }

  /* Nav */
  .nav-links { display: none; }
  .btn-star { display: none; }
  .btn-primary-sm { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-content {
    padding: 48px 0 0;
  }

  .hero-media {
    padding: 0 0 48px;
  }

  .hero-title { font-size: 36px; max-width: 100%; }
  .hero-subtitle { font-size: 15px; max-width: 100%; }

  /* Why */
  .why-grid {
    grid-template-columns: 1fr;
    margin-bottom: 60px;
  }

  .why-card { border-right: none !important; }
  .why-card:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .why-card:nth-child(3) { border-bottom: 1px solid var(--border); }
  .why-header { padding: 60px 0 24px; }

  .section-heading { font-size: 28px; }

  /* What it does */
  .how-header { padding: 56px 0 24px; }
  .how-footnote { margin-bottom: 56px; }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
    border: 1px solid var(--text-primary);
  }

  .pricing-card { border-right: none !important; }
  .pricing-card:not(:last-child) { border-bottom: 1px solid #e2e3e5; }
  .pricing-header { padding: 56px 0 28px; }
  .pricing-note { margin-bottom: 56px; }
  .pricing-selfhost-inner { flex-direction: column; align-items: flex-start; }
  .pricing-selfhost-right { flex-direction: row; align-items: center; }

  /* Roadmap */
  .roadmap-grid {
    grid-template-columns: 1fr;
    margin-bottom: 56px;
  }

  .roadmap-card { border-right: none !important; }
  .roadmap-card:not(:last-child) { border-bottom: 1px solid var(--border); }
  .roadmap-header { padding: 56px 0 28px; }

  /* GitHub */
  .github-grid { padding: 48px 0; }

  /* FAQ */
  .faq-header { padding: 56px 0 24px; }
  .faq-list { margin-bottom: 56px; }

  /* CTA */
  .cta-inner { padding: 64px 0; }
  .cta-title { font-size: 30px; }
  .cta-subtitle { font-size: 15px; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 0;
  }

  .footer-brand-license { margin-left: 0; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ============================================================ */

@media (max-width: 480px) {
  .hero-title { font-size: 30px; }
  .hero-cta-group { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-outline { justify-content: center; }
  .browser-screenshot { height: 220px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card { border-right: none !important; border-bottom: 1px solid var(--border); }
  .metric-card:last-child { border-bottom: none; }
  .pricing-price-amount { font-size: 34px; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .btn-white, .btn-ghost { justify-content: center; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-main {
  min-height: calc(100vh - 58px);
  padding: 72px 0 96px;
}

.contact-container {
  max-width: 720px;
}

.contact-header {
  margin-bottom: 48px;
}

.contact-title {
  margin: 18px 0 0;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-subtitle {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.contact-email-line {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.contact-email-line a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form-wrap {
  border: 1px solid var(--border);
  background: #fff;
  padding: 36px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.form-input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d4d6d9;
  background: #fff;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--accent);
}

.form-input--error {
  border-color: #d1242f;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8f96' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-textarea {
  height: 140px;
  padding: 10px 12px;
  resize: vertical;
  min-height: 100px;
}

.form-error {
  font-size: 12px;
  color: #d1242f;
  font-family: var(--mono);
  display: none;
}

.form-error--api {
  align-self: center;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.form-submit {
  height: 44px;
  padding: 0 24px;
  background: var(--text-primary);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.form-submit:hover:not(:disabled) { opacity: 0.85; }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Success state */
.contact-success {
  text-align: center;
  padding: 56px 24px;
}

.contact-success-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  margin: 0 auto 20px;
}

.contact-success-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-success-body {
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-success-back {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 20px;
}

@media (max-width: 640px) {
  .contact-main { padding: 48px 0 64px; }
  .contact-title { font-size: 30px; }
  .contact-form-wrap { padding: 24px 20px; }
  .form-row--two { grid-template-columns: 1fr; }
}

/* ============================================================
   LEGAL PAGE
   ============================================================ */

.legal-main {
  min-height: calc(100vh - 58px);
  padding: 72px 0 96px;
  background: var(--bg-soft);
}

.legal-container {
  max-width: 800px;
}

.legal-header {
  margin-bottom: 40px;
}

.legal-title {
  margin: 18px 0 8px;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text-primary);
}

.legal-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.legal-toc {
  background: #fff;
  border: 1px solid var(--border);
  padding: 20px 24px;
  margin-bottom: 40px;
}

.legal-toc-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.legal-toc-list {
  margin: 0;
  padding: 0 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-toc-list li { margin: 0; }

.legal-toc-list a {
  font-size: 14px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-toc-list a:hover { opacity: 0.8; }

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.legal-section {
  background: #fff;
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 32px 36px;
}

.legal-section:last-of-type {
  border-bottom: 1px solid var(--border);
}

.legal-section h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.legal-section h3 {
  margin: 20px 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: var(--mono);
}

.legal-section p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.7;
  color: #3a3f47;
}

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

.legal-section ul {
  margin: 0 0 12px;
  padding: 0 0 0 20px;
}

.legal-section li {
  font-size: 15px;
  line-height: 1.7;
  color: #3a3f47;
  margin-bottom: 4px;
}

.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-contact-box {
  margin-top: 32px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.legal-contact-box a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .legal-main { padding: 48px 0 64px; }
  .legal-title { font-size: 26px; }
  .legal-section { padding: 24px 20px; }
  .legal-toc { padding: 16px 20px; }
}
