:root {
  --ds-navy-950: #071528;
  --ds-navy-900: #0b1f3a;
  --ds-navy-800: #12325a;
  --ds-blue: #246bfd;
  --ds-blue-dark: #1555dc;
  --ds-teal: #0aa6a6;
  --ds-purple: #7657ff;
  --ds-green: #1a9c78;
  --ds-gold: #efaa2c;
  --ds-health: #168da8;
  --ds-ink: #172033;
  --ds-muted: #5f6d7f;
  --ds-line: #dfe6ef;
  --ds-soft: #f5f8fc;
  --ds-white: #ffffff;
  --ds-shadow: 0 20px 55px rgba(7, 21, 40, .12);
}

body.dirasuite-public-home {
  background: #ffffff;
}

body.dirasuite-public-home .page-footer {
  display: none !important;
}

body.dirasuite-public-home .navbar {
  min-height: 72px;
  border-bottom: 1px solid var(--ds-line);
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: 0 1px 0 rgba(7, 21, 40, .05);
}

body.dirasuite-public-home .navbar .brand {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

body.dirasuite-public-home .navbar .brand img,
body.dirasuite-public-home .navbar .brand svg {
  width: 38px !important;
  height: 38px !important;
}

.ds-navbar-name {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.03;
}

.ds-navbar-name strong {
  color: var(--ds-navy-900);
  font-size: 15px;
  font-weight: 850;
}

.ds-navbar-name small {
  margin-top: 3px;
  color: var(--ds-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.dirasuite-public-home .navbar .ds-parent-company-link {
  color: var(--ds-navy-900) !important;
  font-weight: 750;
}

.dirasuite-codebase-home {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ds-ink);
  background: #ffffff;
}

.ds-container {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}

.ds-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 100px;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 13%, rgba(75, 183, 255, .22), transparent 25%),
    radial-gradient(circle at 12% 88%, rgba(10, 166, 166, .17), transparent 28%),
    linear-gradient(145deg, var(--ds-navy-950), var(--ds-navy-800));
}

.ds-hero::before {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, #000, transparent 95%);
  content: "";
}

.ds-hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ds-orb-one {
  width: 480px;
  height: 480px;
  top: -330px;
  right: -90px;
  background: rgba(36, 107, 253, .18);
}

.ds-orb-two {
  width: 370px;
  height: 370px;
  bottom: -290px;
  left: 25%;
  background: rgba(10, 166, 166, .15);
}

.ds-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: center;
}

.ds-eyebrow,
.ds-section-heading > span,
.ds-delivery-heading > span,
.ds-ecosystem-grid > div:first-child > span {
  color: #79dfd2;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ds-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.ds-eyebrow::before {
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ds-blue), var(--ds-teal));
  content: "";
}

.ds-product-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 35px;
}

.ds-product-brand img {
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .22);
}

.ds-product-brand strong,
.ds-product-brand span {
  display: block;
}

.ds-product-brand strong {
  color: #ffffff;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -.03em;
}

.ds-product-brand span {
  margin-top: 3px;
  color: #aebdd0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.ds-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.058em;
}

.ds-hero h1 span {
  display: block;
  background: linear-gradient(90deg, #ffffff, #6bc7ff 58%, #65dfcc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ds-hero-copy {
  max-width: 720px;
  margin: 29px 0 0;
  color: #c5d1e1;
  font-size: 18px;
  line-height: 1.75;
}

.ds-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.ds-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform .2s ease, background .2s ease;
}

.ds-button:hover {
  transform: translateY(-2px);
}

.ds-button-primary {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--ds-blue), var(--ds-blue-dark));
  box-shadow: 0 13px 30px rgba(36, 107, 253, .28);
}

.ds-button-secondary {
  color: var(--ds-navy-900) !important;
  background: #ffffff;
}

.ds-button-outline {
  color: var(--ds-blue) !important;
  border-color: #ccd9ec;
  background: #ffffff;
}

.ds-discipline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  color: #adbed2;
  font-size: 13px;
  font-weight: 650;
}

.ds-discipline-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ds-discipline-row span::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ds-teal);
  content: "";
}

.ds-delivery-panel {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 26px;
  background: rgba(255,255,255,.075);
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  backdrop-filter: blur(15px);
}

.ds-panel-header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 19px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.ds-panel-header > span {
  color: #9bacbf;
  font-size: 11px;
  font-weight: 750;
}

.ds-panel-dots {
  display: flex;
  gap: 7px;
}

.ds-panel-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ds-blue);
}

.ds-panel-dots i:nth-child(2) {
  background: var(--ds-teal);
}

.ds-panel-dots i:nth-child(3) {
  background: var(--ds-gold);
}

.ds-panel-body {
  padding: 29px;
}

.ds-panel-title {
  margin-bottom: 21px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
}

.ds-flow-item {
  display: grid;
  grid-template-columns: 43px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.ds-flow-number {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  color: #8fc5ff;
  background: rgba(36,107,253,.12);
  font-size: 11px;
  font-weight: 850;
}

.ds-flow-item strong,
.ds-flow-item small {
  display: block;
}

.ds-flow-item strong {
  color: #ffffff;
  font-size: 14px;
}

.ds-flow-item small {
  margin-top: 4px;
  color: #9eb0c5;
  font-size: 12px;
}

.ds-project-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.ds-project-strip span {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  color: #c9d6e5;
  background: rgba(255,255,255,.05);
  font-size: 10px;
  font-weight: 750;
}

.ds-capabilities,
.ds-builds {
  padding: 102px 0;
}

.ds-capabilities {
  background: #ffffff;
}

.ds-builds {
  background: var(--ds-soft);
}

.ds-section-heading {
  max-width: 790px;
  margin-bottom: 43px;
}

.ds-section-heading > span {
  color: var(--ds-blue);
}

.ds-section-heading h2,
.ds-delivery-heading h2,
.ds-ecosystem h2 {
  margin: 12px 0 16px;
  color: var(--ds-navy-900);
  font-size: clamp(36px, 4vw, 53px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.ds-section-heading p {
  margin: 0;
  color: var(--ds-muted);
  font-size: 17px;
  line-height: 1.7;
}

.ds-centered {
  margin-inline: auto;
  text-align: center;
}

.ds-four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 19px;
}

.ds-capability-card {
  min-height: 275px;
  padding: 28px;
  border: 1px solid var(--ds-line);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 35px rgba(7,21,40,.07);
}

.ds-card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 14px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.ds-icon-blue { background: var(--ds-blue); }
.ds-icon-teal { background: var(--ds-teal); }
.ds-icon-purple { background: var(--ds-purple); }
.ds-icon-gold {
  color: var(--ds-navy-950);
  background: var(--ds-gold);
}

.ds-capability-card h3,
.ds-build-card h3,
.ds-five-grid h3 {
  margin: 0 0 11px;
  color: var(--ds-navy-900);
  font-size: 19px;
}

.ds-capability-card p,
.ds-build-card p {
  margin: 0;
  color: var(--ds-muted);
  line-height: 1.68;
}

.ds-six-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ds-build-card {
  min-height: 250px;
  padding: 27px;
  border: 1px solid var(--ds-line);
  border-radius: 20px;
  background: #ffffff;
}

.ds-build-symbol {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 14px;
  color: var(--ds-blue);
  background: #eaf1ff;
  font-size: 13px;
  font-weight: 900;
}

.ds-build-card:nth-child(2) .ds-build-symbol {
  color: var(--ds-green);
  background: #e4f7f0;
}

.ds-build-card:nth-child(3) .ds-build-symbol {
  color: var(--ds-purple);
  background: #eeeaff;
}

.ds-build-card:nth-child(4) .ds-build-symbol {
  color: #8a5b00;
  background: #fff3d9;
}

.ds-build-card:nth-child(5) .ds-build-symbol {
  color: var(--ds-health);
  background: #e2f5f8;
}

.ds-build-card:nth-child(6) .ds-build-symbol {
  color: var(--ds-teal);
  background: #dff8f6;
}

.ds-delivery {
  padding: 96px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 14%, rgba(10,166,166,.18), transparent 26%),
    linear-gradient(145deg, var(--ds-navy-950), var(--ds-navy-800));
}

.ds-delivery-heading {
  max-width: 820px;
  margin-bottom: 45px;
}

.ds-delivery-heading > span {
  color: #79dfd2;
}

.ds-delivery-heading h2 {
  color: #ffffff;
}

.ds-five-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.ds-five-grid article {
  min-height: 225px;
  padding: 23px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}

.ds-five-grid b {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  margin-bottom: 22px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--ds-blue), var(--ds-teal));
  font-size: 11px;
}

.ds-five-grid h3 {
  color: #ffffff;
}

.ds-five-grid p {
  margin: 0;
  color: #b7c6d8;
  font-size: 14px;
  line-height: 1.65;
}

.ds-ecosystem {
  padding: 82px 0;
  background: #ffffff;
}

.ds-ecosystem-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 75px;
  align-items: center;
}

.ds-ecosystem-grid > div:first-child > span {
  color: var(--ds-blue);
}

.ds-ecosystem h2 {
  font-size: clamp(34px, 4vw, 48px);
}

.ds-ecosystem p {
  margin: 0;
  color: var(--ds-muted);
  font-size: 17px;
  line-height: 1.75;
}

.ds-marketing-footer {
  color: #bdc9d8;
  background: var(--ds-navy-950);
}

.ds-footer-grid {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.ds-footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ds-footer-brand img {
  border-radius: 13px;
}

.ds-footer-brand strong,
.ds-footer-brand span {
  display: block;
}

.ds-footer-brand strong {
  color: #ffffff;
  font-size: 17px;
}

.ds-footer-brand span {
  max-width: 510px;
  margin-top: 5px;
  color: #8fa1b6;
  font-size: 13px;
}

.ds-footer-links {
  display: flex;
  gap: 22px;
  color: #c7d2df;
  font-weight: 700;
}

.ds-footer-bottom {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #7f91a7;
  font-size: 12px;
}

.ds-portfolio-line {
  height: 5px;
  background:
    linear-gradient(
      90deg,
      var(--ds-purple) 0 25%,
      var(--ds-green) 25% 50%,
      var(--ds-gold) 50% 75%,
      var(--ds-health) 75% 100%
    );
}

@media (max-width: 1020px) {
  .ds-hero-grid,
  .ds-ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .ds-delivery-panel {
    max-width: 720px;
  }

  .ds-four-grid,
  .ds-five-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ds-six-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .ds-container {
    width: min(100% - 28px, 1180px);
  }

  .ds-hero {
    padding: 68px 0 76px;
  }

  .ds-hero h1 {
    font-size: 46px;
  }

  .ds-four-grid,
  .ds-five-grid,
  .ds-six-grid {
    grid-template-columns: 1fr;
  }

  .ds-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ds-button {
    width: 100%;
  }

  .ds-footer-grid,
  .ds-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 27px;
  }

  .ds-footer-links {
    flex-wrap: wrap;
  }

  .ds-navbar-name {
    display: none;
  }
}

/* Public marketing homepage navigation cleanup. */
body:has(.dirasuite-codebase-home)
.navbar a[href="/explore"],

body:has(.dirasuite-codebase-home)
.navbar a[href^="/explore/"],

body:has(.dirasuite-codebase-home)
.navbar a[href*="forgejo.org/docs"],

body:has(.dirasuite-codebase-home)
.navbar a[href$="/help"] {
  display: none !important;
}

body:has(.dirasuite-codebase-home)
.navbar a.brand {
  display: inline-flex !important;
  align-items: center;
  gap: 11px;
  min-width: 190px;
}

body:has(.dirasuite-codebase-home)
.navbar a.brand:not(.ds-brand-ready)::after {
  content: "DiraSuite Codebase";
  color: #0b1f3a;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.ds-codebase-nav-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 11px;
  min-width: 190px;
}

.ds-codebase-nav-brand img,
.ds-codebase-nav-brand svg {
  flex: 0 0 auto;
}

@media (max-width: 680px) {
  body:has(.dirasuite-codebase-home)
  .navbar a.brand:not(.ds-brand-ready)::after {
    content: "Codebase";
    font-size: 14px;
  }

  .ds-codebase-nav-brand {
    min-width: auto;
  }
}
