.open-source-page {
  background:
    radial-gradient(circle at 12% 2%, rgba(121, 169, 255, 0.22), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(106, 157, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 22%, #ffffff 100%);
}

.open-source-page .container {
  width: min(1240px, calc(100% - 64px));
}

.open-source-page main {
  overflow: hidden;
}

@keyframes osFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes osFadeRight {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes osHeroFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes osPanelFloatLeft {
  0%,
  100% {
    transform: rotate(13deg) translateY(0);
  }

  50% {
    transform: rotate(13deg) translateY(-10px);
  }
}

@keyframes osPanelFloatMain {
  0%,
  100% {
    transform: rotate(7deg) translateY(0);
  }

  50% {
    transform: rotate(7deg) translateY(-12px);
  }
}

@keyframes osCardFloat {
  0%,
  100% {
    transform: rotate(8deg) translateY(0);
  }

  50% {
    transform: rotate(8deg) translateY(-12px);
  }
}

@keyframes osBrowserFloat {
  0%,
  100% {
    transform: rotate(6deg) translateY(0);
  }

  50% {
    transform: rotate(6deg) translateY(-8px);
  }
}

@keyframes osChipFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes osDotPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.14);
    opacity: 1;
  }
}

@keyframes osNumberPop {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.9);
    filter: blur(6px);
  }

  65% {
    opacity: 1;
    transform: translateY(-2px) scale(1.05);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes osStatLabelRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.os-hero {
  position: relative;
  padding: 36px 0 20px;
}

.os-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 0%, rgba(93, 149, 255, 0.16), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(72, 126, 255, 0.12), transparent 24%);
  pointer-events: none;
}

.os-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(360px, 1fr);
  align-items: center;
  gap: 40px;
}

.os-hero-copy {
  align-self: start;
  animation: osFadeUp 0.82s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.os-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4f5d78;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition:
    color 0.22s ease,
    transform 0.22s ease;
}

.os-back-link-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  position: relative;
}

.os-back-link-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.os-back-link:hover,
.os-back-link:focus-visible {
  color: #215eff;
  transform: translateY(-2px);
}

.os-eyebrow {
  margin: 18px 0 8px;
  color: #101625;
  font-size: clamp(52px, 6vw, 74px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.os-hero-copy h1 {
  margin: 0 0 0;
  max-width: 560px;
  color: #131927;
  font-size: clamp(30px, 3.55vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.os-hero-copy h1 span {
  color: #215eff;
  display: inline-block;
}

.os-hero-desc {
  margin: 22px 0 0;
  color: #3d4556;
  font-size: 16px;
  line-height: 1.95;
}

.os-hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 28px;
}

.os-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 156px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease;
}

.os-btn:hover,
.os-btn:focus-visible,
.os-all-link:hover,
.os-all-link:focus-visible,
.os-project-links a:hover,
.os-project-links a:focus-visible,
.os-org-copy a:hover,
.os-org-copy a:focus-visible,
.os-cta-button:hover,
.os-cta-button:focus-visible {
  transform: translateY(-2px);
}

.os-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.os-btn-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
}

.os-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #1d63ff 0%, #215eff 55%, #0d4ff5 100%);
  box-shadow: 0 16px 36px rgba(32, 95, 255, 0.24);
}

.os-btn-secondary {
  color: #215eff;
  border-color: rgba(33, 94, 255, 0.88);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 12px 32px rgba(89, 126, 196, 0.08);
}

.os-btn-icon-outline {
  background: rgba(33, 94, 255, 0.08);
}

.os-hero-art {
  position: relative;
  min-height: 400px;
  animation: osFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.os-art-browser,
.os-art-panel,
.os-art-card,
.os-art-chip,
.os-art-dot {
  position: absolute;
}

.os-art-browser {
  right: 10px;
  top: 12px;
  width: min(100%, 540px);
  height: 320px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(226, 238, 255, 0.9) 100%);
  box-shadow:
    0 30px 70px rgba(131, 167, 236, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: rotate(6deg);
  animation: osBrowserFloat 7s ease-in-out infinite 0.5s;
}

.os-art-browser::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto;
  height: 34px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(232, 239, 255, 0.56) 100%);
}

.os-art-browser::after {
  content: "";
  position: absolute;
  top: 28px;
  right: 28px;
  width: 42px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: -14px 0 0 rgba(255, 255, 255, 0.56), -28px 0 0 rgba(255, 255, 255, 0.32);
}

.os-art-panel {
  border-radius: 24px;
  backdrop-filter: blur(10px);
}

.os-art-panel-left {
  left: 118px;
  top: 104px;
  width: 128px;
  height: 166px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(225, 236, 255, 0.88));
  box-shadow: 0 18px 40px rgba(158, 184, 232, 0.18);
  transform: rotate(13deg);
  animation: osPanelFloatLeft 7.6s ease-in-out infinite 0.8s;
}

.os-art-panel-left::before,
.os-art-panel-left::after,
.os-art-panel-main::before,
.os-art-panel-main::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  border-radius: 999px;
}

.os-art-panel-left::before {
  top: 28px;
  height: 12px;
  background: rgba(181, 206, 255, 0.7);
}

.os-art-panel-left::after {
  top: 56px;
  height: 64px;
  border-radius: 16px;
  background: rgba(197, 219, 255, 0.64);
}

.os-art-panel-main {
  right: 46px;
  bottom: 34px;
  width: 300px;
  height: 188px;
  background: linear-gradient(135deg, #3d7dff 0%, #1d62ff 100%);
  box-shadow: 0 22px 48px rgba(54, 113, 255, 0.24);
  transform: rotate(7deg);
  animation: osPanelFloatMain 8.2s ease-in-out infinite 1.1s;
}

.os-art-panel-main::before {
  top: 28px;
  height: 12px;
  background: rgba(255, 255, 255, 0.42);
}

.os-art-panel-main::after {
  top: 58px;
  height: 82px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.09);
}

.os-art-card {
  left: 206px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 220px;
  height: 244px;
  border-radius: 34px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
  box-shadow:
    0 26px 64px rgba(139, 169, 226, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transform: rotate(8deg);
  animation: osCardFloat 6.8s ease-in-out infinite;
}

.os-art-card svg {
  width: 108px;
  height: 108px;
  fill: #121827;
}

.os-art-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 16px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(219, 229, 255, 0.74), rgba(244, 248, 255, 0.28));
}

.os-art-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 62px;
  padding: 0 18px;
  border-radius: 18px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #75a7ff 0%, #4c83ff 100%);
  box-shadow: 0 14px 34px rgba(86, 132, 250, 0.22);
  animation: osChipFloat 5.8s ease-in-out infinite;
}

.os-art-chip-code {
  left: 122px;
  top: 14px;
  min-width: 70px;
  height: 62px;
  color: #ecf2ff;
  animation-delay: 0.4s;
}

.os-art-chip-braces {
  right: 18px;
  top: 182px;
  animation-delay: 1s;
}

.os-art-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(75, 132, 255, 0.34), rgba(116, 166, 255, 0.14));
  animation: osDotPulse 4.6s ease-in-out infinite;
}

.os-art-dot-1 {
  left: 188px;
  top: 86px;
  animation-delay: 0.4s;
}

.os-art-dot-2 {
  left: 34px;
  top: 188px;
  width: 14px;
  height: 14px;
  animation-delay: 1.2s;
}

.os-art-dot-3 {
  right: 4px;
  top: 154px;
  animation-delay: 2s;
}

.os-org-wrap {
  padding: 12px 0 30px;
}

.os-org-card,
.os-project-card,
.os-purpose-card,
.os-cta-card {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 60px rgba(119, 150, 210, 0.16);
}

.os-org-card {
  display: grid;
  grid-template-columns: minmax(360px, 1.48fr) minmax(0, 2fr);
  border-radius: 24px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  animation: osFadeUp 0.86s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.os-org-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 76px rgba(119, 150, 210, 0.22);
}

.os-org-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 28px;
}

.os-org-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 14px 34px rgba(28, 55, 105, 0.08);
}

.os-org-avatar svg {
  width: 44px;
  height: 44px;
  fill: #111827;
}

.os-org-label {
  margin: 0 0 8px;
  color: #444b58;
  font-size: 16px;
  line-height: 1.2;
}

.os-org-copy h2 {
  margin: 0;
  color: #131927;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.os-org-copy a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #215eff;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
}

.os-org-copy a svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.os-org-copy p:last-child {
  margin: 12px 0 0;
  color: #404858;
  font-size: 16px;
  line-height: 1.72;
}

.os-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.os-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 182px;
  padding: 24px 14px;
  text-align: center;
  border-left: 1px solid rgba(215, 223, 236, 0.88);
  transition:
    transform 0.28s ease,
    background-color 0.28s ease;
}

.os-stat-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(180deg, rgba(246, 250, 255, 0.94) 0%, rgba(238, 244, 255, 0.82) 100%);
}

.os-stat-icon,
.os-value-icon {
  display: grid;
  place-items: center;
}

.os-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

.os-stat-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.os-stat-icon-blue {
  color: #2f67ff;
  background: linear-gradient(180deg, #f0f6ff 0%, #e6efff 100%);
}

.os-stat-icon-gold {
  color: #f3a312;
  background: linear-gradient(180deg, #fff7e6 0%, #ffefc5 100%);
}

.os-stat-icon-green {
  color: #14b869;
  background: linear-gradient(180deg, #ebfff4 0%, #daf6e7 100%);
}

.os-stat-icon-purple {
  color: #7a4df7;
  background: linear-gradient(180deg, #f4edff 0%, #eadfff 100%);
}

.os-stat-card strong {
  color: #151a25;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  transition:
    transform 0.28s ease,
    text-shadow 0.28s ease,
    color 0.28s ease;
  animation: osNumberPop 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.os-stat-card span {
  color: #404857;
  font-size: 14px;
  line-height: 1.55;
  animation: osStatLabelRise 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.os-stat-card:nth-child(1) strong,
.os-stat-card:nth-child(1) span {
  animation-delay: 0.24s;
}

.os-stat-card:nth-child(2) strong,
.os-stat-card:nth-child(2) span {
  animation-delay: 0.34s;
}

.os-stat-card:nth-child(3) strong,
.os-stat-card:nth-child(3) span {
  animation-delay: 0.44s;
}

.os-stat-card:nth-child(4) strong,
.os-stat-card:nth-child(4) span {
  animation-delay: 0.54s;
}

.os-stat-card:hover strong {
  color: #215eff;
  transform: scale(1.08);
  text-shadow: 0 10px 22px rgba(33, 94, 255, 0.18);
}

.os-projects {
  padding: 34px 0 28px;
}

.os-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  animation: osFadeRight 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.os-section-head h2,
.os-purpose-copy h2,
.os-cta-brand h2 {
  margin: 0;
  color: #111727;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.os-section-head h2 {
  font-size: 32px;
  line-height: 1.12;
}

.os-section-head p {
  margin: 8px 0 0;
  color: #495061;
  font-size: 16px;
  line-height: 1.72;
}

.os-all-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: #215eff;
  font-size: 16px;
  font-weight: 600;
}

.os-all-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.os-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.os-project-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(232, 238, 247, 0.92);
  border-radius: 18px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
  animation: osFadeUp 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.os-project-card:nth-child(1) {
  animation-delay: 0.18s;
}

.os-project-card:nth-child(2) {
  animation-delay: 0.26s;
}

.os-project-card:nth-child(3) {
  animation-delay: 0.34s;
}

.os-project-card:nth-child(4) {
  animation-delay: 0.42s;
}

.os-project-card:nth-child(5) {
  animation-delay: 0.5s;
}

.os-project-card:nth-child(6) {
  animation-delay: 0.58s;
}

.os-project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(177, 198, 245, 0.92);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 251, 255, 0.98) 100%);
  box-shadow: 0 28px 72px rgba(119, 150, 210, 0.2);
}

.os-project-card:hover .os-project-title-link {
  color: #215eff;
}

.os-project-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(113, 141, 193, 0.14);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.os-project-entry {
  display: inline-flex;
  width: fit-content;
}

.os-project-entry:hover .os-project-icon,
.os-project-entry:focus-visible .os-project-icon {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 22px 40px rgba(92, 125, 193, 0.22);
}

.os-project-icon img,
.os-project-icon svg {
  width: 100%;
  height: 100%;
}

.os-project-icon-bluebot,
.os-project-icon-orange,
.os-project-icon-cyan,
.os-project-icon-rose {
  display: grid;
  place-items: center;
}

.os-project-icon-bluebot {
  background: linear-gradient(180deg, #f5f9ff 0%, #ebf2ff 100%);
}

.os-project-icon-orange {
  background: linear-gradient(135deg, #ff9c2b 0%, #f38219 100%);
}

.os-project-icon-cyan {
  background: linear-gradient(135deg, #41d0eb 0%, #1b9ec6 100%);
}

.os-project-icon-rose {
  background: linear-gradient(135deg, #ff6d8d 0%, #dc4968 100%);
}

.os-project-card h3 {
  margin: 18px 0 0;
  color: #171c28;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.os-project-title-link {
  color: inherit;
  transition: color 0.22s ease;
}

.os-project-title-link:hover,
.os-project-title-link:focus-visible {
  color: #215eff;
}

.os-project-card p {
  margin: 10px 0 0;
  color: #3f4758;
  font-size: 14px;
  line-height: 1.8;
}

.os-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  margin-top: 14px;
}

.os-tags span {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  background: #f4f7fc;
  color: #5b6272;
}

.os-tags span:nth-child(1) {
  color: #2f9870;
  background: #eaf8f1;
}

.os-tags span:nth-child(2) {
  color: #215eff;
  background: #edf3ff;
}

.os-tags span:nth-child(3) {
  color: #727987;
  background: #f3f5f8;
}

.os-tags span:nth-child(4) {
  color: #727987;
  background: #f3f5f8;
}

.os-card-divider {
  margin-top: 14px;
  height: 0;
  background: transparent;
}

.os-project-demo {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  color: #667085;
  line-height: 1.65;
}

.os-project-demo-label {
  flex: none;
  color: #2f3748;
  font-size: 13px;
  font-weight: 600;
}

.os-project-demo-link,
.os-project-demo-text {
  min-width: 0;
  font-size: 12px;
  word-break: break-all;
}

.os-project-demo-link {
  color: #215eff;
  text-decoration: none;
  transition: color 0.22s ease;
}

.os-project-demo-link:hover,
.os-project-demo-link:focus-visible {
  color: #1248d8;
  text-decoration: underline;
}

.os-project-demo-text {
  color: #667085;
}

.os-project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.os-project-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2f3748;
  font-size: 14px;
  line-height: 1;
}

.os-project-links a[aria-disabled="true"] {
  cursor: default;
}

.os-project-card time {
  margin-top: 14px;
  color: #838998;
  font-size: 14px;
  line-height: 1.4;
}

.os-purpose {
  padding: 24px 0 36px;
}

.os-purpose-card {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 28px 30px 30px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 8% 22%, rgba(139, 181, 255, 0.22), transparent 26%),
    linear-gradient(180deg, #f6faff 0%, #f2f6ff 100%);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  animation: osFadeUp 0.86s cubic-bezier(0.22, 1, 0.36, 1) 0.26s both;
}

.os-purpose-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 74px rgba(119, 150, 210, 0.2);
}

.os-purpose-illustration {
  position: relative;
  min-height: 220px;
}

.os-cubes {
  position: absolute;
  inset: 14px 8px 0 0;
}

.os-cubes::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 30px;
  bottom: 18px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(140, 176, 244, 0.42), rgba(140, 176, 244, 0) 72%);
  filter: blur(3px);
}

.os-cube {
  position: absolute;
  border-radius: 12px;
  background: linear-gradient(180deg, #edf3ff 0%, #d8e6ff 100%);
  box-shadow: 0 14px 30px rgba(110, 145, 217, 0.15);
  transform: rotate(45deg);
}

.os-cube-main {
  left: 84px;
  bottom: 36px;
  width: 86px;
  height: 86px;
  background: linear-gradient(180deg, #5994ff 0%, #2f6cff 100%);
  animation: osHeroFloat 5.8s ease-in-out infinite;
}

.os-cube-top {
  left: 126px;
  top: 20px;
  width: 56px;
  height: 56px;
  background: linear-gradient(180deg, #7db0ff 0%, #538fff 100%);
  animation: osHeroFloat 6.4s ease-in-out infinite 0.8s;
}

.os-cube-left {
  left: 34px;
  top: 60px;
  width: 54px;
  height: 54px;
  animation: osHeroFloat 6s ease-in-out infinite 0.4s;
}

.os-cube-right {
  right: 32px;
  top: 68px;
  width: 46px;
  height: 46px;
  animation: osHeroFloat 6.6s ease-in-out infinite 1.2s;
}

.os-cube-float-1,
.os-cube-float-2,
.os-cube-float-3 {
  background: linear-gradient(180deg, #f3f7ff 0%, #e8f0ff 100%);
}

.os-cube-float-1 {
  right: 4px;
  bottom: 34px;
  width: 30px;
  height: 30px;
  animation: osDotPulse 4.8s ease-in-out infinite 0.8s;
}

.os-cube-float-2 {
  left: 56px;
  top: 6px;
  width: 26px;
  height: 26px;
  animation: osDotPulse 4.6s ease-in-out infinite 1.3s;
}

.os-cube-float-3 {
  right: 82px;
  top: 14px;
  width: 22px;
  height: 22px;
  animation: osDotPulse 4.2s ease-in-out infinite 1.8s;
}

.os-purpose-chip {
  position: absolute;
  left: 14px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #5391ff 0%, #2a69ff 100%);
  box-shadow: 0 18px 30px rgba(75, 121, 224, 0.2);
  animation: osChipFloat 5.4s ease-in-out infinite 0.6s;
}

.os-purpose-copy h2 {
  font-size: 28px;
  line-height: 1.12;
}

.os-purpose-copy > p {
  margin: 10px 0 0;
  color: #465063;
  font-size: 16px;
  line-height: 1.72;
}

.os-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.os-values article {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 16px;
  transition:
    transform 0.28s ease,
    background-color 0.28s ease,
    box-shadow 0.28s ease;
}

.os-values article:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 16px 34px rgba(124, 149, 200, 0.12);
}

.os-value-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.os-value-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.os-value-blue {
  color: #2464ff;
  background: #ebf2ff;
}

.os-value-green {
  color: #18af69;
  background: #eaf8f1;
}

.os-value-indigo {
  color: #336cf0;
  background: #eef2ff;
}

.os-value-pink {
  color: #ef5b8f;
  background: #ffedf4;
}

.os-values h3 {
  margin: 0;
  color: #1d2431;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.os-values p {
  margin: 0;
  color: #4c5565;
  font-size: 14px;
  line-height: 1.7;
}

.os-cta {
  padding: 10px 0 40px;
}

.os-cta-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 36px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 26%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(100deg, #14378f 0%, #1c54cc 44%, #2d76ff 100%);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  animation: osFadeUp 0.92s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}

.os-cta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 78px rgba(31, 73, 170, 0.28);
}

.os-cta-card::before {
  content: "";
  position: absolute;
  left: 220px;
  right: 160px;
  bottom: -66px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(126, 169, 255, 0.3), rgba(126, 169, 255, 0) 70%);
  animation: osChipFloat 8s ease-in-out infinite;
}

.os-cta-card::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 24px;
  width: 160px;
  height: 86px;
  opacity: 0.42;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.42) 1px, transparent 1.5px);
  background-size: 12px 12px;
  animation: osDotPulse 6.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .open-source-page *,
  .open-source-page *::before,
  .open-source-page *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .os-btn:hover,
  .os-btn:focus-visible,
  .os-all-link:hover,
  .os-all-link:focus-visible,
  .os-project-links a:hover,
  .os-project-links a:focus-visible,
  .os-org-copy a:hover,
  .os-org-copy a:focus-visible,
  .os-cta-button:hover,
  .os-cta-button:focus-visible,
  .os-project-card:hover,
  .os-org-card:hover,
  .os-purpose-card:hover,
  .os-cta-card:hover,
  .os-values article:hover,
  .os-stat-card:hover {
    transform: none;
  }
}

.os-cta-brand {
  display: flex;
  align-items: center;
  gap: 22px;
  position: relative;
  z-index: 1;
}

.os-cta-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.os-cta-logo svg {
  width: 36px;
  height: 36px;
  fill: #fff;
}

.os-cta-brand h2 {
  color: #fff;
  font-size: 28px;
  line-height: 1.12;
}

.os-cta-brand p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.6;
}

.os-cta-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.2;
}

.os-cta-meta span + span::before {
  content: "·";
  margin-right: 12px;
  color: rgba(255, 255, 255, 0.42);
}

.os-cta-actions {
  display: flex;
  gap: 18px;
  flex: none;
  position: relative;
  z-index: 1;
}

.os-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 164px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 16px 36px rgba(10, 28, 76, 0.16);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    border-color 0.22s ease;
}

.os-cta-button svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.os-cta-button-light {
  color: #1e2432;
  background: #fff;
}

.os-cta-button-ghost {
  color: #215eff;
  background: rgba(255, 255, 255, 0.96);
}

@media (max-width: 1024px) {
  .open-source-page .container {
    width: min(1240px, calc(100% - 48px));
  }

  .os-hero-inner,
  .os-purpose-card,
  .os-cta-card {
    grid-template-columns: 1fr;
  }

  .os-hero-art {
    min-height: 380px;
    margin-top: 12px;
  }

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

  .os-cta-card {
    align-items: flex-start;
  }
}

@media (max-width: 960px) {
  .open-source-page .container {
    width: min(1180px, calc(100% - 40px));
  }

  .os-hero {
    padding-top: 42px;
  }

  .os-eyebrow {
    font-size: 48px;
  }

  .os-hero-copy h1 {
    font-size: 34px;
  }

  .os-back-link {
    font-size: 15px;
  }

  .os-hero-desc,
  .os-org-copy p:last-child,
  .os-section-head p,
  .os-purpose-copy > p,
  .os-values p,
  .os-project-card p,
  .os-cta-brand p {
    font-size: 16px;
  }

  .os-btn,
  .os-org-copy a,
  .os-all-link,
  .os-cta-button {
    font-size: 18px;
  }

  .os-org-copy h2,
  .os-stat-card strong,
  .os-section-head h2,
  .os-purpose-copy h2,
  .os-cta-brand h2 {
    font-size: 34px;
  }

  .os-org-card {
    grid-template-columns: 1fr;
  }

  .os-project-grid,
  .os-values,
  .os-stats-grid {
    grid-template-columns: 1fr;
  }

  .os-org-profile {
    border-bottom: 1px solid rgba(220, 227, 238, 0.86);
  }

  .os-stat-card {
    border-left: none;
    border-top: 1px solid rgba(215, 223, 236, 0.88);
  }

  .os-section-head,
  .os-hero-actions,
  .os-cta-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .os-btn,
  .os-cta-button {
    width: 100%;
  }

  .os-hero-art {
    min-height: 290px;
  }

  .os-art-browser {
    width: 330px;
    height: 196px;
  }

  .os-art-card {
    left: 118px;
    width: 146px;
    height: 162px;
  }

  .os-art-card svg {
    width: 72px;
    height: 72px;
  }

  .os-art-panel-left {
    left: 40px;
    width: 94px;
    height: 124px;
  }

  .os-art-panel-main {
    width: 186px;
    height: 122px;
    right: 24px;
  }

  .os-art-chip {
    min-width: 58px;
    height: 46px;
    font-size: 18px;
  }

  .os-purpose-card,
  .os-cta-card,
  .os-org-profile,
  .os-project-card {
    padding-inline: 22px;
  }
}

@media (max-width: 640px) {
  .open-source-page .container {
    width: calc(100% - 28px);
  }

  .os-hero {
    padding-top: 26px;
  }

  .os-eyebrow {
    font-size: 34px;
  }

  .os-hero-copy h1 {
    font-size: 26px;
  }

  .os-back-link {
    font-size: 14px;
  }

  .os-hero-desc {
    line-height: 1.9;
  }

  .os-hero-desc br {
    display: none;
  }

  .os-org-card,
  .os-purpose-card,
  .os-cta-card {
    border-radius: 18px;
  }

  .os-org-profile {
    flex-direction: column;
    align-items: flex-start;
  }

  .os-org-copy h2 {
    font-size: 28px;
  }

  .os-org-copy a,
  .os-all-link {
    font-size: 16px;
  }

  .os-art-browser {
    right: 0;
    width: 262px;
    height: 156px;
  }

  .os-art-card {
    left: 88px;
    top: 18px;
    width: 116px;
    height: 128px;
    border-radius: 22px;
  }

  .os-art-panel-left {
    left: 18px;
    top: 74px;
    width: 76px;
    height: 98px;
  }

  .os-art-panel-main {
    right: 18px;
    width: 150px;
    height: 96px;
    bottom: 44px;
  }

  .os-art-chip-code {
    left: 18px;
    top: 6px;
  }

  .os-art-chip-braces {
    right: 0;
    top: 116px;
  }

  .os-project-card {
    min-height: 0;
  }

  .os-purpose-copy h2,
  .os-cta-brand h2,
  .os-section-head h2 {
    font-size: 28px;
  }

  .os-cta-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .os-cta-meta {
    gap: 10px;
    font-size: 14px;
  }

  .os-cta-meta span + span::before {
    margin-right: 10px;
  }
}
