:root {
  --bg: #090b0d;
  --bg-surface: #12161a;
  --bg-glass: rgba(10, 12, 15, 0.9);
  --border: rgba(255, 255, 255, 0.105);
  --border-hover: rgba(255, 255, 255, 0.2);
  --text-primary: #f2f4f5;
  --text-secondary: #c3c9ce;
  --text-muted: #858e97;
  --accent-1: #55c8ff;
  --accent-2: #87aebd;
  --accent-3: #a6bec7;
}

body:not(.light-mode) {
  background: #090b0d;
  color: var(--text-primary);
}

body:not(.light-mode) .ambient-bg {
  background-image:
    radial-gradient(circle at 18% 0%, rgba(44, 133, 176, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 84% 22%, rgba(83, 113, 127, 0.055) 0%, transparent 34%),
    linear-gradient(145deg, #090b0d 0%, #0d1115 48%, #080a0c 100%);
}

body:not(.light-mode) .grid-overlay {
  opacity: 0.42;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
}

body:not(.light-mode) .navbar-inner {
  background: rgba(9, 11, 13, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.025);
}

body:not(.light-mode) .brand,
body:not(.light-mode) .hero-title,
body:not(.light-mode) .section-title,
body:not(.light-mode) .card-title,
body:not(.light-mode) .case-title {
  color: #f4f5f6;
}

body:not(.light-mode) .hero-title [data-i18n="hero_title"] {
  color: #f4f5f6 !important;
  -webkit-text-fill-color: currentColor;
  background: none;
}

body:not(.light-mode) .hero-glow {
  background: radial-gradient(circle at center, rgba(53, 157, 207, 0.075) 0%, rgba(30, 56, 68, 0.035) 38%, transparent 70%);
}

body:not(.light-mode) .ghost-btn {
  color: #d7dce0;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(7, 9, 11, 0.32);
}

body:not(.light-mode) .ghost-btn:hover {
  border-color: rgba(85, 200, 255, 0.7);
  background: rgba(85, 200, 255, 0.08);
}

/* Give the brand room to lead, then let the product and collaboration follow quietly. */
.hero {
  min-height: clamp(500px, 64svh, 680px) !important;
  padding: 132px 0 76px !important;
  justify-content: center;
}

.hero .hero-title {
  font-size: clamp(104px, 12vw, 148px) !important;
  line-height: 0.96;
  margin-bottom: 12px !important;
}

.hero > div.reveal:not(.hero-actions) {
  margin-bottom: 26px !important;
}

.hero > p.reveal {
  max-width: 660px !important;
  font-size: 17px !important;
  line-height: 1.8 !important;
}

.hero .hero-actions {
  margin-top: 36px !important;
}

#about {
  padding: 34px 0 18px;
}

#about .section-header {
  max-width: 760px;
  margin-bottom: 0;
}

#about .section-label {
  margin-bottom: 9px;
}

#about .section-title {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.2;
}

#about .section-link {
  color: var(--text-secondary);
}

#collaboration {
  padding: 26px 0 108px;
}

#collaboration .collab-stage {
  grid-template-columns: minmax(320px, 0.82fr) minmax(480px, 1.18fr);
  min-height: 510px;
  gap: clamp(52px, 7vw, 96px);
  padding: 54px 0 58px;
  border-right: 0;
  border-left: 0;
  overflow: visible;
}

#collaboration .collab-stage::after {
  display: none;
}

#collaboration .collab-copy .section-title {
  max-width: 520px;
  margin-top: 16px;
  font-size: clamp(40px, 4vw, 52px);
  line-height: 1.08;
}

#collaboration .collab-description {
  max-width: 500px;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.75;
}

#collaboration .collab-actions {
  margin-top: 30px;
}

#collaboration .collab-canvas-preview {
  min-height: 380px;
  transform: none;
}

#collaboration .collab-flow {
  display: none;
}

body:not(.light-mode) .magic-card,
body:not(.light-mode) .case-card,
body:not(.light-mode) .download-item,
body:not(.light-mode) .subpage-panel {
  background: #111519;
  border-color: rgba(255, 255, 255, 0.105);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.22);
}

body:not(.light-mode) .collab-stage {
  border-color: rgba(255, 255, 255, 0.12);
  background: transparent;
  box-shadow: none;
}

body:not(.light-mode) .collab-canvas-preview {
  border-color: rgba(255, 255, 255, 0.13);
  background: #0c1013;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

body:not(.light-mode) .collab-preview-board {
  background-color: #0c1013;
}

body:not(.light-mode) .collab-preview-node {
  background: rgba(18, 23, 28, 0.98);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.4);
}

body:not(.light-mode) .collab-flow,
body:not(.light-mode) .collab-flow li {
  border-color: rgba(255, 255, 255, 0.105);
}

body:not(.light-mode) footer {
  color: #7f8992;
  border-color: rgba(255, 255, 255, 0.1);
}

body.light-mode #collaboration .collab-stage {
  background: transparent;
  box-shadow: none;
}

@media (max-width: 1100px) {
  #collaboration .collab-stage {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 470px !important;
    padding: 112px 0 56px !important;
  }

  .hero .hero-title {
    font-size: clamp(82px, 17vw, 108px) !important;
  }

  #collaboration .collab-stage {
    min-height: 0;
    padding: 44px 0 52px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 420px !important;
    padding: 100px 0 48px !important;
  }

  .hero .hero-title {
    font-size: clamp(68px, 21vw, 84px) !important;
  }

  .hero > div.reveal:not(.hero-actions) {
    margin-bottom: 20px !important;
  }

  .hero > p.reveal {
    display: none;
  }

  .hero .hero-actions {
    margin-top: 24px !important;
  }

  #about {
    padding: 28px 0 14px;
  }

  #about .section-title {
    font-size: 23px;
  }

  #collaboration {
    padding: 20px 0 72px;
  }

  #collaboration .collab-stage {
    gap: 34px;
    padding: 36px 0 42px;
  }

  #collaboration .collab-canvas-preview {
    min-height: 300px;
  }
}
