:root {
  --bg-dark: #1D1F23;
  --text-light: #F7F7F7;
  --gold: #FABC31;
  --gold-light: #FFC83D;
  --gold-deep: #F5A900;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/montserrat-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/montserrat-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/montserrat-700.woff2') format('woff2');
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.logo {
  width: 140px;
  height: 140px;
}

.badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-beta {
  border-color: #8a6bc9;
  color: #b28fef;
}

.badge-wtc {
  border-color: #c0543a;
  color: #e07c55;
}

.badge-checkmk {
  border-color: #1a8f76;
  color: #28c2a0;
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
  opacity: 0.4;
}

.lang-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #26282d;
  border: 1px solid #35373d;
  color: var(--text-light);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease;
}

.lang-switch:hover {
  border-color: var(--gold-deep);
}

.lang-option {
  opacity: 0.4;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.lang-option.active {
  opacity: 1;
  color: var(--gold);
}

.lang-sep {
  opacity: 0.3;
}

/* --- Site-wide layout --- */

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-light);
}

.site-header .brand img {
  width: 32px;
  height: 32px;
}

.site-header .brand .accent {
  color: var(--gold);
}

.site-header .lang-switch {
  position: static;
}

main {
  flex: 1;
  width: 100%;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: filter 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: var(--bg-dark);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 1px solid #35373d;
}

.btn-secondary:hover {
  border-color: var(--gold-deep);
}

.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Hero --- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 8vh 24px 9vh;
}

.hero .eyebrow {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1.2;
  max-width: 700px;
}

.hero p.lede {
  max-width: 560px;
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.85;
  line-height: 1.6;
  margin: 0;
}

/* --- Product cards (home page) --- */

.section {
  padding: 6vh 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  opacity: 0.7;
  max-width: 500px;
  margin: 0 auto 40px;
  font-size: 0.95rem;
}

.section-title + .product-grid {
  margin-top: 32px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #24262b;
  border: 1px solid #33353b;
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  border-color: var(--gold-deep);
  transform: translateY(-2px);
}

.product-card img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
}

.product-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.product-card p {
  margin: 0;
  opacity: 0.75;
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}

.product-card .card-cta {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}

.product-card .status-pill {
  align-self: flex-start;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(250, 188, 49, 0.12);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-card .status-pill-beta {
  background: rgba(178, 143, 239, 0.15);
  color: #b28fef;
}

.product-card .status-pill-wtc {
  background: rgba(224, 124, 85, 0.15);
  color: #e07c55;
}

.product-card .status-pill-checkmk {
  background: rgba(40, 194, 160, 0.15);
  color: #28c2a0;
}

/* --- Product page --- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  opacity: 0.6;
  text-decoration: none;
}

.back-link:hover {
  opacity: 1;
}

.product-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 4vh 24px 7vh;
}

.product-hero img.product-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
}

.product-hero h1 {
  margin: 0;
  font-size: 2.2rem;
}

.product-hero .lede {
  max-width: 560px;
  font-size: 1.1rem;
  opacity: 0.85;
  line-height: 1.6;
  margin: 0;
}

.product-hero .fine-print {
  font-size: 0.8rem;
  opacity: 0.5;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: #24262b;
  border: 1px solid #33353b;
  border-radius: 14px;
  padding: 22px;
}

.feature-card .feature-icon {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.feature-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.72;
  line-height: 1.5;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  background: #24262b;
  border: 1px solid #33353b;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.pricing-card.featured {
  border-color: var(--gold-deep);
  background: linear-gradient(180deg, rgba(250, 188, 49, 0.08), #24262b 60%);
}

.pricing-card .plan-name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.pricing-card .plan-price {
  font-size: 2rem;
  font-weight: 700;
}

.pricing-card .plan-period {
  font-size: 0.85rem;
  opacity: 0.6;
  font-weight: 500;
}

.pricing-card .plan-desc {
  font-size: 0.85rem;
  opacity: 0.7;
  line-height: 1.5;
  flex: 1;
}

.cta-band {
  text-align: center;
  padding: 6vh 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.cta-band h2 {
  margin: 0;
  font-size: 1.6rem;
}

@media (max-width: 640px) {
  .site-header {
    padding: 16px 20px;
  }
  .hero h1, .product-hero h1 {
    font-size: 1.8rem;
  }
}

/* --- Legal pages --- */

.legal {
  max-width: 720px;
  padding: 4vh 32px 8vh;
  line-height: 1.7;
}

.legal h1 {
  font-size: 1.9rem;
  margin: 24px 0 8px;
}

.legal h2 {
  font-size: 1.1rem;
  margin: 32px 0 8px;
  color: var(--gold);
}

.legal p, .legal ul {
  margin: 0 0 8px;
  opacity: 0.9;
  font-size: 0.95rem;
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 4px;
}

.legal a {
  color: var(--gold);
}

footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --- Plugin listing (checkmk product page) --- */

.plugin-section {
  margin-bottom: 44px;
}

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

.plugin-section-header {
  margin-bottom: 16px;
}

.plugin-section-header h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.plugin-section-header p {
  margin: 0;
  opacity: 0.65;
  font-size: 0.85rem;
}

.plugin-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plugin-card {
  background: #24262b;
  border: 1px solid #33353b;
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plugin-card h4 {
  margin: 0;
  font-size: 0.95rem;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  color: var(--text-light);
}

.plugin-card p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.75;
  line-height: 1.55;
}

.plugin-card .card-cta {
  align-self: flex-start;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}

.plugin-empty {
  opacity: 0.5;
  font-size: 0.85rem;
  font-style: italic;
}
