/* Homepage replacement based on the supplied light reference. */
.home-page {
  --home-bg: #ffffff;
  --home-surface: #ffffff;
  --home-text: #1a1a2e;
  --home-muted: #6b7280;
  --home-line: rgba(0, 0, 0, 0);
  min-height: 100vh;
  background: var(--home-bg);
  color: var(--home-text);
  font-family: Inter, "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.home-page h1,
.home-page h2,
.home-page h3,
.home-page p {
  margin: 0;
}

.home-page button,
.home-page a {
  font: inherit;
}

.home-page .home-local-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
}

.home-page .home-button-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.home-page main {
  overflow: hidden;
}

.home-page .home-fallback-navigation {
  display: flex;
}

.home-page .hero {
  min-height: 100vh;
  padding: 120px 24px 80px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--home-line);
  text-align: center;
}

.home-page .hero::before {
  position: absolute;
  top: -50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translateX(-50%);
  content: "";
  background: radial-gradient(circle, rgba(59, 130, 246, .06) 0%, transparent 70%);
  pointer-events: none;
}

.home-page .hero-title {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 20px;
  color: var(--home-text);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
}

.home-page .hero-brand {
  color: transparent;
  background: linear-gradient(135deg, #1a1a2e 0%, #000000 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-page .hero-arrow {
  color: #22c55e;
  font-size: .8em;
  font-weight: 900;
}

.home-page .model-roller {
  position: relative;
  display: inline-flex;
  height: 1.15em;
  overflow: hidden;
  flex-direction: column;
  vertical-align: bottom;
}

.home-page .model-roller-inner {
  display: flex;
  flex-direction: column;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}

.home-page .model-name {
  height: 1.15em;
  color: transparent;
  background: linear-gradient(135deg, #19191a, #000000);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  white-space: nowrap;
}

.home-page .hero-subtitle {
  position: relative;
  z-index: 1;
  margin: 0 0 24px;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
}

.home-page .hero-subtitle .grad-1,
.home-page .hero-subtitle .grad-2 {
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-page .hero-subtitle .grad-1 {
  background-image: linear-gradient(135deg, #181818, #000000);
}

.home-page .hero-subtitle .grad-2 {
  background-image: linear-gradient(135deg, #141414, #050505);
}

.home-page .hero-desc {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 0 40px;
  color: rgba(0, 0, 0, .6);
  font-size: 17px;
  line-height: 1.8;
}

.home-page .btn-primary {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  border: 0;
  border-radius: 50px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 8px 32px rgba(59, 130, 246, .35);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}

.home-page .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, .5);
}

.home-page .btn-primary .arrow-icon {
  transition: transform .3s;
}

.home-page .btn-primary:hover .arrow-icon {
  transform: translateX(4px);
}

.home-page .hero-features {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  max-width: 900px;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.home-page .hero-feature-card {
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 16px;
  background: var(--home-surface);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .04);
  text-align: left;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}

.home-page .hero-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 0, 0, .12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
}

.home-page .hero-feature-icon {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 10px;
  background: rgba(59, 130, 246, .15);
  font-size: 18px;
}

.home-page .hero-feature-title {
  margin-bottom: 6px;
  color: var(--home-text);
  font-size: 15px;
  font-weight: 700;
}

.home-page .hero-feature-desc {
  color: rgba(0, 0, 0, .55);
  font-size: 13px;
  line-height: 1.6;
}

.home-page .hero-stats {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 72px;
  text-align: center;
}

.home-page .hero-stats-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-bottom: 24px;
  color: rgba(0, 0, 0, .5);
  font-size: 14px;
}

.home-page .hero-stats-counter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 60px;
  color: var(--home-text);
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1;
}

.home-page .flip-digit {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 68px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 6px;
  background: #f7f7f6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 5px 11px rgba(0, 0, 0, .08), inset 0 0 0 1px rgba(255, 255, 255, .9);
  color: #171717;
  font-size: 52px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 68px;
  perspective: 240px;
  transform: translateZ(0);
  will-change: box-shadow;
}

.home-page .flip-digit::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  z-index: 8;
  height: 1px;
  /* background: rgba(0, 0, 0, .2); */
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9), 0 -1px 0 rgba(0, 0, 0, .06);
  content: "";
  pointer-events: none;
}

.home-page .flip-digit::after {
  position: absolute;
  inset: 1px;
  z-index: 7;
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .38), transparent 13%, transparent 84%, rgba(0, 0, 0, .045));
  content: "";
  pointer-events: none;
}

.home-page .flip-half {
  position: absolute;
  right: 0;
  left: 0;
  height: 50%;
  overflow: hidden;
  backface-visibility: hidden;
  background: #f8f8f8;
  line-height: 68px;
  transform-style: preserve-3d;
}

.home-page .flip-half span {
  position: absolute;
  right: 0;
  left: 0;
  height: 68px;
  text-align: center;
}

.home-page .flip-half-top {
  top: 0;
  z-index: 3;
  transform-origin: 50% 100%;
  /* border-bottom: 1px solid rgba(0, 0, 0, .08); */
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8f8f7 57%, #eeeeed 100%);
}

.home-page .flip-half-top span {
  top: 0;
}

.home-page .flip-half-bottom {
  bottom: 0;
  z-index: 2;
  transform-origin: 50% 0;
  /* border-top: 1px solid rgba(0, 0, 0, .06); */
  border-radius: 0 0 5px 5px;
  background: linear-gradient(180deg, #e7e7e6 0%, #f2f2f1 38%, #ffffff 100%);
}

.home-page .flip-half-bottom span {
  top: -34px;
}

.home-page .flip-half-old-top {
  z-index: 5;
  visibility: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #e5e5e4 100%);
  box-shadow: 0 5px 10px rgba(0, 0, 0, .24);
}

.home-page .flip-half-new-bottom {
  z-index: 4;
  visibility: hidden;
  transform: rotateX(90deg);
  background: linear-gradient(180deg, #dededd 0%, #ffffff 100%);
  box-shadow: 0 -5px 10px rgba(0, 0, 0, .2);
}

.home-page .flip-digit.is-flipping {
  box-shadow: 0 2px 5px rgba(0, 0, 0, .16), 0 10px 20px rgba(0, 0, 0, .14), inset 0 0 0 1px rgba(255, 255, 255, .9);
}

.home-page .flip-digit.is-flipping .flip-half-old-top {
  visibility: visible;
  animation: home-flip-top .34s cubic-bezier(.55, .05, .68, .19) forwards;
}

.home-page .flip-digit.is-flipping .flip-half-new-bottom {
  visibility: visible;
  animation: home-flip-bottom .34s .3s cubic-bezier(.32, .72, .37, 1) forwards;
}

@keyframes home-flip-top {
  0% { transform: rotateX(0); filter: brightness(1); }
  55% { filter: brightness(.72); }
  100% { transform: rotateX(-90deg); filter: brightness(.58); }
}

@keyframes home-flip-bottom {
  0% { transform: rotateX(90deg); filter: brightness(.55); }
  45% { filter: brightness(.78); }
  100% { transform: rotateX(0); filter: brightness(1); }
}

.home-page .hero-stats-plus {
  margin-right: 3px;
  color: var(--home-text);
  font-size: 24px;
  font-weight: 800;
}

.home-page .hero-stats-row {
  display: flex;
  min-width: 0;
  flex-flow: row wrap;
  justify-content: center;
  gap: 48px;
}

.home-page .hero-stat-item {
  display: flex;
  min-width: 74px;
  flex-direction: column;
  gap: 0;
  text-align: center;
}

.home-page .hero-stat-num {
  color: transparent;
  background: linear-gradient(135deg, #080808, #020202);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
}

.home-page .hero-stat-text {
  margin-top: 4px;
  color: rgba(0, 0, 0, .5);
  font-size: 13px;
}

.home-page .container {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 0 24px;
}

.home-page .section-label {
  display: inline-block;
  margin-bottom: 12px;
  color: #b45309;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.home-page .section-title {
  margin-bottom: 16px;
  color: var(--home-text);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
}

.home-page .section-desc {
  max-width: 640px;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.8;
}

.home-page .ecosystem {
  position: relative;
  padding: 100px 0;
  background: var(--home-bg);
}

.home-page .ecosystem-header {
  margin-bottom: 60px;
  text-align: center;
}

.home-page .ecosystem-header .section-desc {
  margin: 0 auto;
}

.home-page .stack-container {
  position: relative;
  width: 100%;
  max-width: 1120px;
  height: 390px;
  margin: 0 auto;
  perspective: 1200px;
}

.home-page .stack-card {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  width: min(420px, calc(100% - 40px));
  height: 340px;
  padding: 36px;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .04);
  color: var(--home-text);
  cursor: pointer;
  opacity: var(--stack-opacity, 1);
  transform: translate3d(calc(-50% + var(--stack-x, 0px)), var(--stack-y, 0px), 0) rotate(var(--stack-rotate, 0deg)) scale(var(--stack-scale, 1));
  transform-origin: 50% 100%;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1), opacity .45s ease, box-shadow .3s;
}

.home-page .stack-card:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 4px;
}

.home-page .stack-card:hover,
.home-page .stack-card:focus-visible {
  z-index: 10 !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .14), 0 2px 8px rgba(0, 0, 0, .06);
}

.home-page .stack-card-icon {
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 14px;
  font-size: 26px;
}

.home-page .stack-card-icon-red {
  background: rgba(239, 68, 68, .1);
}

.home-page .stack-card-icon-amber {
  background: rgba(245, 158, 11, .1);
}

.home-page .stack-card-icon-neutral {
  background: rgba(0, 0, 0, .06);
}

.home-page .stack-card-icon-indigo {
  background: rgba(99, 102, 241, .1);
}

.home-page .stack-card-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.home-page .stack-card-title {
  margin-bottom: 12px;
  color: var(--home-text);
  font-size: 24px;
  font-weight: 800;
}

.home-page .stack-card-desc {
  flex: 1;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.7;
}

.home-page .stack-card-tag {
  display: inline-block;
  margin-top: 16px;
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.home-page .stack-hint {
  margin-top: 40px;
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
}

.home-page .stack-hint span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: home-pulse-hint 2s ease-in-out infinite;
}

@keyframes home-pulse-hint {

  0%,
  100% {
    opacity: .5;
  }

  50% {
    opacity: 1;
  }
}

.home-page .value {
  padding: 80px 0 100px;
  background: var(--home-bg);
}

.home-page .value-header {
  margin-bottom: 48px;
}

.home-page .value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.home-page .value-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 16px;
  background: var(--home-surface);
  transition: transform .3s, box-shadow .3s;
}

.home-page .value-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
}

.home-page .value-card-icon {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(180, 83, 9, .08);
  font-size: 22px;
}

.home-page .value-card-title {
  margin-bottom: 8px;
  color: var(--home-text);
  font-size: 20px;
  font-weight: 700;
}

.home-page .value-card-desc {
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.7;
}

.home-page .testimonials {
  padding: 100px 0;
  overflow: hidden;
}

.home-page .testimonials-header {
  margin-bottom: 56px;
  text-align: center;
}

.home-page .testimonials-header .section-desc {
  margin: 0 auto;
  color: rgba(0, 0, 0, .55);
}

.home-page .masonry-wrapper {
  position: relative;
  max-width: 1100px;
  height: 560px;
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.home-page .masonry-track {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 20px;
  animation: home-masonry-scroll 40s linear infinite;
}

.home-page .masonry-wrapper:hover .masonry-track {
  animation-play-state: paused;
}

@keyframes home-masonry-scroll {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(var(--masonry-distance, -50%));
  }
}

.home-page .masonry-row {
  display: flex;
  width: 100%;
  flex-shrink: 0;
  gap: 20px;
}

.home-page .masonry-col {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 20px;
}

.home-page .masonry-row .masonry-col:nth-child(2) {
  margin-top: 40px;
}

.home-page .masonry-row .masonry-col:nth-child(3) {
  margin-top: 80px;
}

.home-page .testimonial-card {
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 16px;
  background: var(--home-surface);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
  transition: border-color .3s, box-shadow .3s;
}

.home-page .testimonial-card:hover {
  border-color: rgba(0, 0, 0, .12);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
}

.home-page .testimonial-text {
  margin-bottom: 20px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.7;
}

.home-page .testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-page .testimonial-avatar {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.home-page .testimonial-avatar-image {
  object-fit: cover;
}

.home-page .testimonial-author>div {
  display: flex;
  flex-direction: column;
}

.home-page .testimonial-name {
  color: var(--home-text);
  font-size: 14px;
  font-weight: 600;
}

.home-page .testimonial-role {
  margin-top: 2px;
  color: rgba(0, 0, 0, .5);
  font-size: 12px;
}

.home-page .advantages {
  padding: 100px 0;
  background: var(--home-surface);
}

.home-page .advantages-header {
  margin-bottom: 56px;
  text-align: center;
}

.home-page .advantages-header .section-desc {
  max-width: 720px;
  margin: 0 auto;
}

.home-page .advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 20px;
  background: var(--home-surface);
}

.home-page .advantage-item {
  padding: 40px 32px;
  border-right: 1px solid rgba(0, 0, 0, .06);
  transition: background .3s;
}

.home-page .advantage-item:last-child {
  border-right: 0;
}

.home-page .advantage-item:hover {
  background: #f9fafb;
}

.home-page .advantage-icon {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 12px;
  font-size: 22px;
}

.home-page .advantage-icon.orange {
  background: rgba(249, 115, 22, .1);
}

.home-page .advantage-icon.blue {
  background: rgba(59, 130, 246, .1);
}

.home-page .advantage-icon.green {
  background: rgba(16, 185, 129, .1);
}

.home-page .advantage-title {
  margin-bottom: 12px;
  color: var(--home-text);
  font-size: 18px;
  font-weight: 700;
}

.home-page .advantage-desc {
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.8;
}

.home-page .cta {
  padding: 80px 0 100px;
  background: var(--home-bg);
}

.home-page .cta-card {
  position: relative;
  overflow: hidden;
  padding: 72px 48px;
  border: 1px solid rgba(0, 0, 0, .04);
  border-radius: 28px;
  background: var(--home-surface);
  box-shadow: 0 4px 30px rgba(0, 0, 0, .06);
  text-align: center;
}

.home-page .cta-card::before {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  content: "";
  background: radial-gradient(circle, rgba(180, 83, 9, .06) 0%, transparent 70%);
  pointer-events: none;
}

.home-page .cta-title {
  position: relative;
  margin-bottom: 16px;
  color: var(--home-text);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0;
}

.home-page .cta-desc {
  position: relative;
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.8;
}

.home-page .btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 44px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #b45309, #92400e);
  box-shadow: 0 6px 24px rgba(180, 83, 9, .3);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
}

.home-page .btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(180, 83, 9, .4);
}

.home-page .home-footer {
  padding: 48px 0;
  border-top: 1px solid rgba(0, 0, 0, .06);
  background: var(--home-surface);
}

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

.home-page .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(0, 0, 0, .85);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.home-page .footer-logo-icon {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  font-size: 16px;
}

.home-page .footer-copy {
  color: rgba(0, 0, 0, .4);
  font-size: 13px;
}

.home-page .footer-links {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-page .footer-links a {
  color: rgba(0, 0, 0, .5);
  font-size: 13px;
  text-decoration: none;
  transition: color .2s;
}

.home-page .footer-links a:hover {
  color: rgba(0, 0, 0, .85);
}

html[data-theme="dark"] .home-page {
  --home-bg: #0c0c0c;
  --home-surface: #151515;
  --home-text: #f5f5f5;
  --home-muted: #a3a3a3;
  --home-line: rgba(255, 255, 255, .1);
  background: var(--home-bg);
}

html[data-theme="dark"] .home-page .hero {
  border-color: var(--home-line);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .07) 0%, transparent 58%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 255, 255, .035) 0%, transparent 50%),
    var(--home-bg);
}

html[data-theme="dark"] .home-page .hero::before {
  background: radial-gradient(circle, rgba(255, 255, 255, .045) 0%, transparent 70%);
  opacity: 1;
}

html[data-theme="dark"] .home-page .hero-brand,
html[data-theme="dark"] .home-page .model-name,
html[data-theme="dark"] .home-page .hero-subtitle .grad-1,
html[data-theme="dark"] .home-page .hero-subtitle .grad-2,
html[data-theme="dark"] .home-page .hero-stat-num {
  background-image: linear-gradient(135deg, #ffffff, #a3a3a3);
}

html[data-theme="dark"] .home-page .hero-arrow {
  color: #a3a3a3;
}

html[data-theme="dark"] .home-page .hero-desc,
html[data-theme="dark"] .home-page .hero-stats-label,
html[data-theme="dark"] .home-page .hero-stat-text,
html[data-theme="dark"] .home-page .hero-feature-desc,
html[data-theme="dark"] .home-page .testimonial-role,
html[data-theme="dark"] .home-page .footer-copy,
html[data-theme="dark"] .home-page .footer-links a {
  color: #8f8f8f;
}

html[data-theme="dark"] .home-page .hero-stats-counter,
html[data-theme="dark"] .home-page .hero-stats-plus {
  color: #f5f5f5;
}

html[data-theme="dark"] .home-page .flip-digit {
  border-color: rgba(255, 255, 255, .16);
  background: linear-gradient(180deg, #292929 0%, #202020 48%, #141414 50%, #292929 52%, #202020 100%);
  box-shadow: 0 2px 7px rgba(0, 0, 0, .38), inset 0 0 0 1px rgba(255, 255, 255, .04);
  color: #f5f5f5;
}

html[data-theme="dark"] .home-page .flip-digit::before {
  background: rgba(255, 255, 255, .18);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .4);
}

html[data-theme="dark"] .home-page .flip-digit::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), transparent 15%, transparent 84%, rgba(0, 0, 0, .2));
}

html[data-theme="dark"] .home-page .flip-half {
  background: #222222;
}

html[data-theme="dark"] .home-page .flip-half-top {
  border-color: rgba(255, 255, 255, .08);
  background: linear-gradient(#2b2b2b, #202020);
}

html[data-theme="dark"] .home-page .flip-half-bottom {
  border-color: rgba(255, 255, 255, .06);
  background: linear-gradient(#171717, #252525);
}

html[data-theme="dark"] .home-page .flip-half-old-top {
  background: linear-gradient(#303030, #1b1b1b);
  box-shadow: 0 4px 8px rgba(0, 0, 0, .45);
}

html[data-theme="dark"] .home-page .flip-half-new-bottom {
  background: linear-gradient(#1a1a1a, #2a2a2a);
  box-shadow: 0 -4px 8px rgba(0, 0, 0, .42);
}

html[data-theme="dark"] .home-page .flip-digit::before {
  box-shadow: 0 1px 0 rgba(0, 0, 0, .45), 0 -1px 0 rgba(255, 255, 255, .05);
}

html[data-theme="dark"] .home-page .btn-primary,
html[data-theme="dark"] .home-page .btn-cta {
  background: #f5f5f5;
  box-shadow: 0 8px 28px rgba(255, 255, 255, .08);
  color: #0a0a0a;
}

html[data-theme="dark"] .home-page .btn-primary:hover,
html[data-theme="dark"] .home-page .btn-cta:hover {
  background: #ffffff;
  box-shadow: 0 10px 34px rgba(255, 255, 255, .13);
}

html[data-theme="dark"] .home-page .home-local-icon {
  filter: brightness(0) invert(1);
}

html[data-theme="dark"] .home-page .btn-primary .home-button-icon {
  filter: none;
}

html[data-theme="dark"] .home-page .section-label,
html[data-theme="dark"] .home-page .stack-card-tag {
  color: #c7c7c7;
}

html[data-theme="dark"] .home-page .testimonials-header .section-desc,
html[data-theme="dark"] .home-page .testimonial-text {
  color: #b8b8b8;
}

html[data-theme="dark"] .home-page .hero-feature-card,
html[data-theme="dark"] .home-page .value-card,
html[data-theme="dark"] .home-page .testimonial-card,
html[data-theme="dark"] .home-page .cta-card {
  border-color: var(--home-line);
  background: var(--home-surface);
  box-shadow: none;
}

html[data-theme="dark"] .home-page .hero-feature-card:hover,
html[data-theme="dark"] .home-page .value-card:hover,
html[data-theme="dark"] .home-page .testimonial-card:hover {
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .home-page .hero-feature-icon,
html[data-theme="dark"] .home-page .value-card-icon,
html[data-theme="dark"] .home-page .stack-card-icon {
  background: #242424;
}

html[data-theme="dark"] .home-page .stack-card-icon-indigo .stack-card-logo {
  filter: invert(1);
}

html[data-theme="dark"] .home-page .stack-card {
  border-color: var(--home-line);
  background: var(--home-surface);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] .home-page .stack-card:focus-visible {
  outline-color: #f5f5f5;
}

html[data-theme="dark"] .home-page .stack-card-desc,
html[data-theme="dark"] .home-page .value-card-desc,
html[data-theme="dark"] .home-page .advantage-desc,
html[data-theme="dark"] .home-page .cta-desc {
  color: var(--home-muted);
}

html[data-theme="dark"] .home-page .testimonials {
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .045) 0%, transparent 60%), var(--home-bg);
}

html[data-theme="dark"] .home-page .testimonial-avatar,
html[data-theme="dark"] .home-page .footer-logo-icon {
  background: linear-gradient(135deg, #5a5a5a, #202020);
}

html[data-theme="dark"] .home-page .advantages {
  background: #101010;
}

html[data-theme="dark"] .home-page .advantages-grid {
  border-color: var(--home-line);
  background: var(--home-surface);
}

html[data-theme="dark"] .home-page .advantage-item {
  border-color: var(--home-line);
}

html[data-theme="dark"] .home-page .advantage-item:hover {
  background: #1b1b1b;
}

html[data-theme="dark"] .home-page .advantage-icon {
  background: #242424;
}

html[data-theme="dark"] .home-page .cta-card::before {
  background: radial-gradient(circle, rgba(255, 255, 255, .04) 0%, transparent 70%);
}

html[data-theme="dark"] .home-page .home-footer {
  border-color: var(--home-line);
  background: #090909;
}

html[data-theme="dark"] .home-page .footer-logo {
  color: var(--home-text);
}

html[data-theme="dark"] .home-page .footer-links a:hover {
  color: #ffffff;
}

@media (max-width: 900px) {
  .home-page .home-fallback-navigation {
    display: none;
  }

  .home-page .hero-features {
    max-width: 400px;
    grid-template-columns: 1fr;
  }

  .home-page .value-grid,
  .home-page .advantages-grid {
    grid-template-columns: 1fr;
  }

  .home-page .advantage-item {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
  }

  .home-page .advantage-item:last-child {
    border-bottom: 0;
  }

  .home-page .masonry-col:nth-child(3) {
    display: none;
  }

  .home-page .hero-stats-row {
    gap: 28px;
  }

  .home-page .hero-title {
    font-size: 52px;
  }

  .home-page .hero-subtitle {
    font-size: 42px;
  }

  .home-page .section-title {
    font-size: 38px;
  }

  .home-page .cta-title {
    font-size: 36px;
  }
}

@media (max-width: 600px) {
  .home-page .container {
    padding: 0 20px;
  }

  .home-page .hero {
    min-height: auto;
    padding: 100px 20px 70px;
  }

  .home-page .hero-title {
    gap: 9px;
    font-size: 38px;
  }

  .home-page .hero-subtitle {
    font-size: 31px;
  }

  .home-page .hero-desc {
    font-size: 14px;
  }

  .home-page .hero-desc br {
    display: none;
  }

  .home-page .hero-features {
    margin-top: 44px;
  }

  .home-page .hero-stats {
    margin-top: 54px;
  }

  .home-page .hero-stats-row {
    display: grid;
    width: min(100%, 320px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
    margin: 0 auto;
  }

  .home-page .hero-stat-num {
    font-size: 22px;
  }

  .home-page .hero-stats-counter {
    font-size: 26px;
  }

  .home-page .flip-digit {
    width: 24px;
    height: 38px;
    font-size: 30px;
    line-height: 38px;
  }

  .home-page .flip-half {
    line-height: 38px;
  }

  .home-page .flip-half span {
    height: 38px;
  }

  .home-page .flip-half-bottom span {
    top: -19px;
  }

  .home-page .ecosystem,
  .home-page .testimonials,
  .home-page .advantages {
    padding: 72px 0;
  }

  .home-page .value {
    padding: 64px 0 72px;
  }

  .home-page .section-title {
    font-size: 31px;
  }

  .home-page .stack-container {
    height: 340px;
  }

  .home-page .stack-card {
    height: 320px;
    padding: 28px;
  }

  .home-page .value-card {
    padding: 24px;
  }

  .home-page .masonry-wrapper {
    height: 510px;
  }

  .home-page .masonry-col:nth-child(2) {
    display: none;
  }

  .home-page .advantages-grid {
    border-radius: 16px;
  }

  .home-page .advantage-item {
    padding: 30px 24px;
  }

  .home-page .cta {
    padding: 64px 0 72px;
  }

  .home-page .cta-card {
    padding: 48px 24px;
    border-radius: 20px;
  }

  .home-page .cta-title {
    font-size: 30px;
  }

  .home-page .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {

  .home-page *,
  .home-page *::before,
  .home-page *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Oplaude brand layer: a restrained Google-inspired palette with distinct product accents. */
.home-page {
  --home-bg: #f8fafd;
  --home-surface: #ffffff;
  --home-text: #202124;
  --home-muted: #5f6368;
  --home-line: #e8eaed;
  background: var(--home-bg);
}
.home-page .hero {
  background: #f8fafd;
  border-bottom: 1px solid #e8eaed;
}
.home-page .hero-brand { color: #1a73e8 !important; background: none !important; -webkit-text-fill-color: #1a73e8 !important; }
.home-page .hero-arrow { color: #34a853; }
.home-page .hero-subtitle .grad-1 { color: #4285f4; }
.home-page .hero-subtitle .grad-2 { color: #ea4335; }
.home-page .btn-primary { background: #1a73e8 !important; box-shadow: 0 10px 25px rgba(26,115,232,.22); }
.home-page .hero-feature-card,
.home-page .stack-card,
.home-page .value-card,
.home-page .testimonial-card { border-color: #e8eaed; box-shadow: 0 8px 22px rgba(60,64,67,.06); }
.home-page .hero-feature-icon { background: #e8f0fe !important; }
.home-page .hero-feature-card:nth-child(2) .hero-feature-icon { background: #e6f4ea; }
.home-page .hero-feature-card:nth-child(3) .hero-feature-icon { background: #fce8e6; }
.home-page .section-label { color: #1a73e8; }
.home-page .stack-card-tag { color: #1a73e8; }
.home-page .value-card-icon { background: #e8f0fe; }
.home-page .value-card:nth-child(2) .value-card-icon { background: #e6f4ea; }
.home-page .value-card:nth-child(3) .value-card-icon { background: #fef7e0; }
.home-page .value-card:nth-child(4) .value-card-icon { background: #fce8e6; }
.home-page .advantages { background: #ffffff !important; }
.home-page .advantage-item { border-top-color: #4285f4; background: #f8fafd; }
.home-page .advantage-item:nth-child(2) { border-top-color: #ea4335; }
.home-page .advantage-item:nth-child(3) { border-top-color: #34a853; }
.home-page .cta-card { background: #e8f0fe; border: 1px solid #d2e3fc; }
.home-page .btn-cta { background: #1a73e8; box-shadow: 0 10px 25px rgba(26,115,232,.22); }

/* Editorial spacing pass: clearer hierarchy and a calmer reading measure. */
.home-page .hero {
  min-height: 760px;
  padding: 112px 24px 84px;
  justify-content: flex-start;
}
.home-page .hero-title {
  font-size: clamp(52px, 5.2vw, 72px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.home-page .hero-subtitle {
  max-width: 760px;
  margin-top: 24px;
  font-size: clamp(32px, 3.5vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.18;
}
.home-page .hero-desc {
  max-width: 560px;
  margin: 24px auto 0;
  font-size: 16px;
  line-height: 1.85;
}
.home-page .btn-primary {
  margin-top: 32px;
  min-width: 184px;
  min-height: 54px;
}
.home-page .hero-features {
  width: min(900px, 100%);
  gap: 18px;
  margin-top: 56px;
}
.home-page .hero-feature-card {
  min-height: 152px;
  padding: 24px 25px 22px;
}
.home-page .hero-stats {
  margin-top: 58px;
}
.home-page .section-title { letter-spacing: -0.03em; }

@media (max-width: 600px) {
  .home-page .hero { min-height: 760px; padding: 78px 20px 60px; }
  .home-page .hero-title { font-size: clamp(40px, 12vw, 54px); }
  .home-page .hero-subtitle { margin-top: 18px; font-size: 30px; }
  .home-page .hero-desc { margin-top: 20px; font-size: 14px; line-height: 1.8; }
  .home-page .btn-primary { margin-top: 26px; }
  .home-page .hero-features { margin-top: 42px; gap: 12px; }
  .home-page .hero-feature-card { min-height: 132px; padding: 19px 20px; }
  .home-page .hero-stats { margin-top: 44px; }
}
