:root {
  color-scheme: light;
  --bg: #f5f7f8; --text: #17272c; --soft: #52656d; --muted: #64777f;
  --border: #dae2e6; --surface: #fff; --green: #137c5c; --green-deep: #0d6047;
  --blue: #285fa4; --accent: #137c5c; --shadow: none;
}
html[data-app-theme="dark"] {
  color-scheme: dark;
  --bg: #10191e; --text: #ecf2f3; --soft: #b0c0c7; --muted: #98adb7;
  --border: #31434c; --surface: #19272e; --green: #7dd9b6; --green-deep: #4db994;
  --blue: #9bbfff; --accent: #7dd9b6;
}
* { box-sizing: border-box; }
body.ecosystem-home { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); line-height: 1.5; }
.page { width: min(1200px, calc(100% - 64px)); margin: auto; min-height: 100dvh; display: flex; flex-direction: column; }
.page > main { flex: 1; padding: clamp(36px, 6vw, 80px) 0 64px; }
.ecosystem-intro { padding-bottom: clamp(32px, 5vw, 56px); max-width: 900px; }
.ecosystem-eyebrow { display: block; color: var(--green); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 20px; }
h1 { font-size: clamp(34px, 4.8vw, 62px); line-height: 1.12; letter-spacing: -.045em; margin: 0; font-weight: 750; text-wrap: balance; }
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.app-card { display: flex; flex-direction: column; align-items: stretch; padding: clamp(24px, 3vw, 38px); border: 1px solid var(--border); border-top: 3px solid var(--green); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s; min-width: 0; }
.app-card--crm { border-top-color: var(--blue); }
.app-card:hover { border-color: var(--green); background: color-mix(in srgb, var(--surface) 97%, var(--green)); }
.app-card--crm:hover { border-color: var(--blue); }
.app-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.app-card__top { display: flex; justify-content: space-between; color: var(--muted); }
.app-card__number { font-size: 12px; letter-spacing: .1em; }
.app-card__arrow { font-size: 25px; line-height: 1; color: var(--green); }
.app-card--crm .app-card__arrow { color: var(--blue); }
.app-card__brand { min-height: 82px; display: flex; align-items: center; margin-top: 14px; }
.app-card__brand img { width: auto; height: auto; max-width: 174px; max-height: 54px; object-fit: contain; object-position: left; }
.app-card__brand .brand-logo--dark, html[data-app-theme="dark"] .app-card__brand .brand-logo--light { display: none; }
html[data-app-theme="dark"] .app-card__brand .brand-logo--dark { display: block; }
.app-card h2 { margin: 12px 0; font-size: 26px; letter-spacing: -.03em; }
.app-card p { color: var(--soft); font-size: 16px; line-height: 1.7; margin: 0 0 28px; max-width: 56ch; }
.app-card__url { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border); color: var(--green); font-size: 14px; font-weight: 650; display: flex; justify-content: space-between; align-items: center; }
.app-card--crm .app-card__url { color: var(--blue); }
.site-footer { border-top: 1px solid var(--border); margin-top: 0; }
.ecosystem-home :is(.app-card, .lang-picker, .lang-picker__menu, .lang-picker__option, .theme-switch) { border-radius: 0; }
@media (max-width: 760px) {
  .page { width: calc(100% - 32px); }
  .apps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .page > main { padding: 32px 0; }
  .app-card { padding: 24px; }
  .app-card__brand { min-height: 62px; }
}
@media (prefers-reduced-motion: reduce) { .app-card { transition: none; } }
