/* ============================================================
   Bossy — ecosystem placeholder
   ============================================================ */

:root {
  --bg: #ffffff;
  --ink: #10131a;
  --ink-2: #667085;
  --ink-3: #98a2b3;
  --border: #e8eaee;
  --border-strong: #dfe2e7;
  --border-soft: #eef0f2;
  --card-bg: rgba(255, 255, 255, 0.85);
  --radius-card: 17px;
  --radius-control: 13px;
  --shadow-card: 0 8px 30px rgba(15, 23, 42, 0.025);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
p {
  margin: 0;
}

.icon {
  display: block;
  flex: none;
}

/* ============================================================
   Page shell
   ============================================================ */

.ecosystem-page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px 32px 64px;
  isolation: isolate;
}

/* ============================================================
   Ambient background
   ============================================================ */

.ambient-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.ambient--glow-tl {
  top: -24%;
  left: -16%;
  width: 54vw;
  height: 54vw;
  max-width: 760px;
  max-height: 760px;
  background: radial-gradient(
    circle at 42% 42%,
    rgba(196, 210, 236, 0.2),
    rgba(196, 210, 236, 0) 62%
  );
}

.ambient--glow-tr {
  top: -28%;
  right: -18%;
  width: 48vw;
  height: 48vw;
  max-width: 680px;
  max-height: 680px;
  background: radial-gradient(
    circle at 58% 42%,
    rgba(214, 220, 236, 0.16),
    rgba(214, 220, 236, 0) 64%
  );
}

.ambient--curve-bl {
  bottom: -38%;
  left: -14%;
  width: 60vw;
  height: 60vw;
  max-width: 840px;
  max-height: 840px;
  filter: blur(30px);
  background: radial-gradient(
    circle at 50% 28%,
    rgba(224, 228, 238, 0.32),
    rgba(224, 228, 238, 0) 60%
  );
}

.ambient--curve-br {
  right: -16%;
  bottom: -44%;
  width: 56vw;
  height: 56vw;
  max-width: 800px;
  max-height: 800px;
  filter: blur(30px);
  background: radial-gradient(
    circle at 50% 28%,
    rgba(230, 233, 240, 0.28),
    rgba(230, 233, 240, 0) 60%
  );
}

/* ============================================================
   Content column
   ============================================================ */

.ecosystem-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1080px;
  margin: auto 0;
  text-align: center;
}

/* ============================================================
   Brand
   ============================================================ */

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bossy-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.bossy-logo__mark {
  position: absolute;
  top: -14px;
  right: -26px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 38px;
  color: var(--ink);
}

.bossy-logo__sparkle {
  display: block;
  width: 28px;
  height: 38px;
}

.bossy-logo__sparkle--small {
  position: absolute;
  right: -17px;
  bottom: 1px;
  width: 12px;
  height: 16px;
  opacity: 0.92;
}

.bossy-logo__word {
  font-size: clamp(48px, 4.2vw, 62px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.brand__tagline {
  margin-top: 16px;
  max-width: 720px;
  font-size: clamp(20px, 1.55vw, 25px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.brand__subline {
  margin-top: 7px;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink-2);
}

/* ============================================================
   Product grid
   ============================================================ */

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 820px;
  margin-top: 26px;
  text-align: left;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 23px;
  background: var(--card-bg);
  border: 1px solid #e6e8ec;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.product-card__head {
  display: flex;
  align-items: center;
  gap: 13px;
}

.product-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.product-card__icon .icon {
  width: 20px;
  height: 20px;
}

.product-card__icon--violet {
  background: #f1effc;
  color: #6d5dd3;
}

.product-card__icon--mint {
  background: #eaf7f0;
  color: #2f9e6b;
}

.product-card__icon--blue {
  background: #eaf2fd;
  color: #3b82c4;
}

.product-card__icon--pink {
  background: #fdeef2;
  color: #d0698a;
}

.product-card__icon--teal {
  background: #e9f6f2;
  color: #1a927c;
}

.product-card__heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.product-card__title {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.product-card__status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.005em;
  color: var(--ink-2);
  background: #f4f5f7;
  border: 1px solid #e9ebef;
  border-radius: 999px;
}

.product-card__desc {
  flex: 1 1 auto;
  margin-top: 15px;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.002em;
  color: var(--ink-2);
}

.product-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--border-soft);
}

/* ============================================================
   Language list
   ============================================================ */

.language-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-2);
}

.language-list__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.language-list__item:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 11px;
  margin: 0 9px;
  background: var(--border);
}

.language-list--grid {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 6px 20px;
}

.language-list--grid .language-list__item::after {
  display: none;
}

/* ============================================================
   Flags
   ============================================================ */

.flag {
  display: inline-block;
  flex: none;
  width: 17px;
  height: 12px;
  border-radius: 2.5px;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(16, 19, 26, 0.06);
}

.flag--ua {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'><rect width='60' height='40' fill='%23005BBB'/><rect y='20' width='60' height='20' fill='%23FFD500'/></svg>");
}

.flag--gb {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'><rect width='60' height='40' fill='%23012169'/><path d='M0 0 60 40M60 0 0 40' stroke='%23fff' stroke-width='8'/><path d='M0 0 60 40M60 0 0 40' stroke='%23C8102E' stroke-width='4'/><path d='M30 0V40M0 20H60' stroke='%23fff' stroke-width='13'/><path d='M30 0V40M0 20H60' stroke='%23C8102E' stroke-width='8'/></svg>");
}

.flag--de {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 36'><rect width='60' height='36' fill='%23000'/><rect y='12' width='60' height='12' fill='%23DD0000'/><rect y='24' width='60' height='12' fill='%23FFCE00'/></svg>");
}

.flag--es {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'><rect width='60' height='40' fill='%23AA151B'/><rect y='10' width='60' height='20' fill='%23F1BF00'/></svg>");
}

.flag--ru {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'><rect width='60' height='40' fill='%23fff'/><rect y='13.34' width='60' height='13.33' fill='%230039A6'/><rect y='26.67' width='60' height='13.33' fill='%23D52B1E'/></svg>");
}

.flag--tm {
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'><rect width='60' height='40' fill='%2300843D'/><rect x='10' width='8' height='40' fill='%23CE1126'/><path d='M14 3l2 3-2 3-2-3z' fill='%23fff'/><path d='M14 12l2 3-2 3-2-3z' fill='%23fff'/><path d='M14 21l2 3-2 3-2-3z' fill='%23fff'/><path d='M14 30l2 3-2 3-2-3z' fill='%23fff'/><path d='M26 6a5 5 0 1 0 0 9 6 6 0 1 1 0-9z' fill='%23fff'/><circle cx='36' cy='6' r='1.3' fill='%23fff'/><circle cx='41' cy='9' r='1.3' fill='%23fff'/><circle cx='39' cy='14.5' r='1.3' fill='%23fff'/><circle cx='33.5' cy='14.5' r='1.3' fill='%23fff'/><circle cx='31.5' cy='9' r='1.3' fill='%23fff'/></svg>");
}

/* ============================================================
   Product action
   ============================================================ */

.product-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: none;
  height: 44px;
  margin-left: auto;
  padding: 0 16px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #e6e8ec;
  border-radius: var(--radius-control);
  transition: background-color 170ms ease, border-color 170ms ease;
}

.product-action .icon {
  width: 15px;
  height: 15px;
}

.product-action:hover {
  background: #f7f8fa;
  border-color: var(--border-strong);
}

.product-action:focus-visible {
  outline: 2px solid #b9c0cc;
  outline-offset: 2px;
}

.product-action__arrow {
  transition: transform 170ms ease;
}

.product-action:hover .product-action__arrow {
  transform: translateX(2.5px);
}

.product-action--disabled {
  color: var(--ink-3);
  background: #f5f6f8;
  border-color: #eceef1;
  cursor: default;
}

.product-action--disabled .icon {
  width: 14px;
  height: 14px;
}

.product-action--disabled:hover {
  background: #f5f6f8;
  border-color: #eceef1;
}

/* ============================================================
   Coming soon
   ============================================================ */

.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: -0.003em;
  color: var(--ink-3);
}

.coming-soon::before,
.coming-soon::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--border);
}

/* ============================================================
   Decorative background wordmark
   ============================================================ */

.wordmark-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.background-wordmark {
  position: absolute;
  left: 50%;
  bottom: -0.3em;
  transform: translateX(-50%);
  font-size: clamp(160px, 24vw, 420px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.05em;
  white-space: nowrap;
  user-select: none;
  opacity: 0.55;
  background: linear-gradient(180deg, #ffffff 0%, #f4f6fa 45%, #eaedf3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   Copyright
   ============================================================ */

.copyright {
  position: absolute;
  left: 34px;
  bottom: 26px;
  z-index: 3;
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: -0.002em;
  color: var(--ink-3);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .ecosystem-page {
    padding: 44px 26px 64px;
  }
}

@media (max-width: 860px) {
  .ecosystem-page {
    align-items: flex-start;
    min-height: 0;
    padding: 52px 18px 72px;
  }

  .products {
    grid-template-columns: 1fr;
    max-width: 460px;
    gap: 14px;
  }

  .product-card__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .product-action {
    width: 100%;
  }

  .language-list--grid {
    grid-template-columns: repeat(2, max-content);
  }

  .background-wordmark {
    bottom: -0.16em;
    font-size: 40vw;
  }

  .copyright {
    position: static;
    order: 99;
    align-self: flex-start;
    margin-top: 40px;
    padding-left: 2px;
  }
}

@media (max-width: 380px) {
  .language-list--grid {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 820px) and (min-width: 861px) {
  .ecosystem-page {
    padding-top: 34px;
    padding-bottom: 52px;
  }

  .products {
    margin-top: 20px;
  }

  .brand__tagline {
    margin-top: 13px;
  }

  .coming-soon {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-action,
  .product-action__arrow {
    transition: none;
  }
}
