/* Homepage Databiomics®
   Visual system shared by Databiomics + WBPereira Tech/WBPereira.
   Loaded after legacy styles so the homepage remains isolated from other pages. */

:root {
  --db-home-navy: #0b2b50;
  --db-home-blue: #155f8f;
  --db-home-cyan: #49b9e8;
  --db-home-green: #6cae3e;
  --db-home-green-deep: #376f3d;
  --db-home-ink: #142b3d;
  --db-home-muted: #5d7180;
  --db-home-line: rgba(11, 43, 80, 0.13);
  --db-home-surface: #ffffff;
  --db-home-soft: #f4f9fb;
  --db-home-soft-green: #f5f9f1;
  --db-home-shadow: 0 18px 52px rgba(11, 43, 80, 0.10);
  --db-home-shadow-hover: 0 24px 64px rgba(11, 43, 80, 0.15);
}

/* Overall homepage rhythm */
.landing .landing-wrapper {
  max-width: 1280px !important;
  width: min(100% - 2rem, 1280px) !important;
  padding: 1.25rem clamp(1rem, 2.8vw, 2.2rem) 4rem !important;
}

.landing .landing-wrapper > .section {
  margin: 0 0 1.5rem;
  padding: clamp(3.25rem, 6vw, 5.4rem) clamp(1.25rem, 4vw, 3.6rem);
  border: 1px solid var(--db-home-line);
  border-radius: 28px;
  background: var(--db-home-surface);
  box-shadow: 0 10px 34px rgba(11, 43, 80, 0.05);
}

.landing .landing-wrapper > .section.alt {
  background: linear-gradient(145deg, var(--db-home-soft), var(--db-home-soft-green));
}

.landing .section-heading {
  max-width: 850px;
  margin: 0 0 clamp(1.8rem, 4vw, 2.8rem);
}

.landing .section-heading h2 {
  margin: .35rem 0 .75rem;
  color: var(--db-home-navy);
  font-size: clamp(1.8rem, 3.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.landing .section-heading p,
.landing .info-card p,
.landing .db-parent-company p,
.landing .db-lead-copy p {
  color: var(--db-home-muted);
  line-height: 1.7;
}

.db-section-kicker,
.db-kicker {
  margin: 0 0 .65rem !important;
  color: var(--db-home-green-deep) !important;
  font-size: .76rem !important;
  font-weight: 850 !important;
  letter-spacing: .15em !important;
  text-transform: uppercase;
}

/* Navigation: simple, compact and premium instead of a row of pills */
.landing .landing-nav {
  position: sticky !important;
  top: .65rem !important;
  z-index: 70 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap !important;
  gap: .15rem .35rem !important;
  margin: .25rem 0 1.5rem !important;
  padding: .48rem .62rem !important;
  border: 1px solid rgba(11, 43, 80, .12) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .90) !important;
  box-shadow: 0 12px 32px rgba(11, 43, 80, .09) !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
}

.landing .landing-nav a {
  min-height: 40px !important;
  padding: .55rem .78rem !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--db-home-navy) !important;
  font-size: .88rem !important;
  font-weight: 750 !important;
  white-space: nowrap;
}

.landing .landing-nav a:hover,
.landing .landing-nav a:focus-visible {
  transform: none !important;
  color: var(--db-home-blue) !important;
  background: rgba(73, 185, 232, .09) !important;
  box-shadow: none !important;
  outline: none;
}

/* Hero */
.landing .db-hero {
  position: relative;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  margin: 0 0 1.5rem !important;
  padding: clamp(2.6rem, 6vw, 5.8rem) clamp(1.4rem, 4.5vw, 4.5rem) !important;
  border: 1px solid rgba(11, 43, 80, .12) !important;
  border-radius: 30px !important;
  background:
    radial-gradient(circle at 8% 8%, rgba(73, 185, 232, .15), transparent 33%),
    radial-gradient(circle at 92% 90%, rgba(108, 174, 62, .12), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f7fbfd 54%, #f4f9f1 100%) !important;
  box-shadow: var(--db-home-shadow) !important;
  color: var(--db-home-ink) !important;
}

.landing .db-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--db-home-cyan), var(--db-home-green));
}

.landing .db-hero::after {
  opacity: .18;
  mix-blend-mode: normal;
}

.landing .db-hero-grid {
  position: relative;
  z-index: 2;
  display: grid !important;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr) !important;
  gap: clamp(2.25rem, 5vw, 5rem) !important;
  align-items: stretch !important;
  width: 100%;
}

.landing .db-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: .25rem 0;
}

.landing .db-hero-logo {
  display: block;
  width: min(360px, 82%) !important;
  height: auto !important;
  max-height: 105px !important;
  margin: 0 0 1.35rem !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  object-fit: contain !important;
  object-position: left center !important;
  box-shadow: none !important;
}

.landing .db-hero-copy h1 {
  max-width: 760px !important;
  margin: .1rem 0 1.15rem !important;
  color: var(--db-home-navy) !important;
  font-size: clamp(2.45rem, 5vw, 4.75rem) !important;
  line-height: 1.02 !important;
  letter-spacing: -.05em !important;
}

.landing .db-hero-lead {
  max-width: 720px;
  margin: 0 0 1rem !important;
  color: var(--db-home-ink) !important;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem) !important;
  font-weight: 750 !important;
  line-height: 1.5 !important;
}

.landing .db-hero-copy > p:not(.db-kicker):not(.db-hero-lead):not(.db-hero-meta) {
  max-width: 720px;
  margin: 0 !important;
  color: var(--db-home-muted) !important;
  font-size: 1.02rem;
  line-height: 1.72 !important;
}

.landing .db-hero-meta {
  margin: 1.5rem 0 0 !important;
  color: var(--db-home-muted) !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
  letter-spacing: .095em !important;
  line-height: 1.55;
  text-transform: uppercase;
}

/* Buttons */
.landing .button {
  min-height: 48px !important;
  padding: .72rem 1.15rem !important;
  border-radius: 12px !important;
  font-size: .92rem;
  font-weight: 800 !important;
  letter-spacing: .005em;
  box-shadow: none !important;
}

.landing .button.primary {
  border: 1px solid var(--db-home-navy) !important;
  background: linear-gradient(135deg, var(--db-home-navy), var(--db-home-blue)) !important;
  color: #fff !important;
}

.landing .button.primary:hover,
.landing .button.primary:focus-visible {
  transform: translateY(-1px) !important;
  border-color: var(--db-home-blue) !important;
  box-shadow: 0 12px 26px rgba(11, 43, 80, .18) !important;
}

.landing .button.ghost {
  border: 1px solid rgba(11, 43, 80, .20) !important;
  background: rgba(255, 255, 255, .76) !important;
  color: var(--db-home-navy) !important;
}

.landing .button.ghost:hover,
.landing .button.ghost:focus-visible {
  transform: translateY(-1px) !important;
  border-color: rgba(21, 95, 143, .44) !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(11, 43, 80, .10) !important;
}

.landing .db-hero .hero-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .75rem !important;
  margin: 1.65rem 0 0 !important;
}

/* Ecosystem card */
.landing .db-ecosystem-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(1.35rem, 3vw, 2rem) !important;
  border: 1px solid rgba(11, 43, 80, .12) !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, .86) !important;
  box-shadow: 0 18px 44px rgba(11, 43, 80, .09) !important;
}

.landing .db-ecosystem-card::before {
  content: "ECOSSISTEMA WBPEREIRA";
  display: block;
  margin: 0 0 1rem;
  color: var(--db-home-green-deep);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.landing .db-brand-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(120px, .9fr) auto minmax(0, 1fr) !important;
  gap: .7rem !important;
  align-items: center !important;
  margin: 0 0 1.25rem !important;
}

.landing .db-brand-row img {
  display: block;
  width: 100% !important;
  height: 72px !important;
  max-height: 72px !important;
  margin: 0 !important;
  padding: .55rem .65rem !important;
  border: 1px solid rgba(11, 43, 80, .10) !important;
  border-radius: 14px !important;
  background: #fff !important;
  object-fit: contain !important;
  box-shadow: none !important;
  box-sizing: border-box;
}

.landing .db-brand-row strong {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: .65rem;
  border: 1px solid rgba(73, 185, 232, .26);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(11, 43, 80, .04), rgba(73, 185, 232, .08));
  color: var(--db-home-navy) !important;
  font-size: .95rem !important;
  line-height: 1.2;
  text-align: center;
}

.landing .db-brand-row > span[aria-hidden="true"] {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(73, 185, 232, .10);
  color: var(--db-home-blue);
  font-size: .9rem;
  font-weight: 900;
}

.landing .db-ecosystem-levels {
  display: grid !important;
  gap: .65rem !important;
  margin: 0 0 1.1rem !important;
}

.landing .db-ecosystem-levels div {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: .8rem;
  padding: .82rem .9rem !important;
  border: 1px solid rgba(11, 43, 80, .08) !important;
  border-left: 3px solid var(--db-home-green) !important;
  border-radius: 12px !important;
  background: #fbfdfe !important;
}

.landing .db-ecosystem-levels div::before {
  grid-row: 1 / 3;
  align-self: center;
  color: rgba(11, 43, 80, .35);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.landing .db-ecosystem-levels div:nth-child(1)::before { content: "01"; }
.landing .db-ecosystem-levels div:nth-child(2)::before { content: "02"; }
.landing .db-ecosystem-levels div:nth-child(3)::before { content: "03"; }

.landing .db-ecosystem-levels strong {
  color: var(--db-home-navy) !important;
  font-size: .96rem;
  line-height: 1.25;
}

.landing .db-ecosystem-levels span {
  margin-top: .15rem !important;
  color: var(--db-home-muted) !important;
  font-size: .82rem !important;
  line-height: 1.4;
  opacity: 1 !important;
}

.landing .db-ecosystem-card > .button {
  align-self: flex-start;
  margin-top: .1rem;
}

/* Cards and grids */
.landing .card-grid,
.landing .db-area-grid,
.landing .db-project-grid,
.landing .db-social-grid {
  gap: 1rem !important;
}

.landing .info-card {
  padding: clamp(1.25rem, 2.4vw, 1.65rem) !important;
  border: 1px solid rgba(11, 43, 80, .10) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .86) !important;
  box-shadow: 0 9px 28px rgba(11, 43, 80, .05) !important;
}

.landing .info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(73, 185, 232, .34) !important;
  box-shadow: var(--db-home-shadow) !important;
}

.landing .info-card h3 {
  margin: .35rem 0 .65rem;
  color: var(--db-home-navy);
  line-height: 1.25;
}

.landing .db-area-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.landing .db-project-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.landing .db-icon,
.landing .db-project-symbol {
  width: 48px !important;
  height: 48px !important;
  margin-bottom: .8rem !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, var(--db-home-navy), var(--db-home-green-deep)) !important;
  box-shadow: none !important;
}

.landing .db-project-logo,
.landing .db-mini-logo,
.landing .db-parent-company > img,
.landing .db-footer > img {
  box-shadow: none !important;
}

.landing .db-project-logo {
  width: auto !important;
  max-width: 180px !important;
  height: 58px !important;
  border-radius: 0 !important;
  object-fit: contain !important;
}

.landing .db-tag {
  color: var(--db-home-blue) !important;
  background: rgba(73, 185, 232, .08) !important;
  border-color: rgba(73, 185, 232, .22) !important;
}

/* Publications */
.landing .db-publication-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.05rem !important;
}

.landing .db-publication-card {
  overflow: hidden;
  border: 1px solid rgba(11, 43, 80, .11) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 10px 30px rgba(11, 43, 80, .06);
  color: var(--db-home-ink) !important;
}

.landing .db-publication-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(73, 185, 232, .42) !important;
  box-shadow: var(--db-home-shadow) !important;
}

.landing .db-publication-card img {
  width: 100% !important;
  aspect-ratio: 16 / 10;
  border-radius: 0 !important;
  object-fit: cover !important;
  box-shadow: none !important;
}

.landing .db-publication-card div {
  padding: 1.05rem 1.1rem 1.2rem !important;
}

.landing .db-publication-card span {
  color: var(--db-home-green-deep) !important;
}

.landing .db-publication-card h3 {
  color: var(--db-home-navy) !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
}

/* WBPereira ecosystem block */
.landing .db-parent-company {
  display: grid !important;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr) !important;
  gap: clamp(1.8rem, 4vw, 3.2rem) !important;
  align-items: center !important;
}

.landing .db-parent-company > img {
  width: 100% !important;
  max-height: 220px !important;
  padding: 1rem !important;
  border: 1px solid rgba(11, 43, 80, .10) !important;
  border-radius: 18px !important;
  background: #fff !important;
  object-fit: contain !important;
}

/* Forms */
.landing .db-lead-section,
.landing .db-contact-grid {
  gap: clamp(1.5rem, 4vw, 3rem) !important;
}

.landing .db-newsletter-form,
.landing .db-contact-form {
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
  border: 1px solid rgba(11, 43, 80, .10);
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 30px rgba(11, 43, 80, .05);
}

.landing .db-newsletter-form input,
.landing .db-contact-form input,
.landing .db-contact-form select,
.landing .db-contact-form textarea {
  min-height: 46px;
  padding: .75rem .85rem !important;
  border: 1px solid rgba(11, 43, 80, .16) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--db-home-ink) !important;
  box-shadow: none !important;
}

.landing .db-contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.landing .db-newsletter-form input:focus,
.landing .db-contact-form input:focus,
.landing .db-contact-form select:focus,
.landing .db-contact-form textarea:focus {
  outline: 3px solid rgba(73, 185, 232, .14);
  border-color: rgba(21, 95, 143, .48) !important;
}

/* Footer */
.landing .db-footer {
  margin: 1.5rem 0 0 !important;
  padding: 1.7rem !important;
  border: 1px solid rgba(11, 43, 80, .10) !important;
  border-radius: 20px;
  background: #f8fbfc;
}

.landing .db-footer img {
  max-height: 72px !important;
  border-radius: 0 !important;
}

.landing .db-footer strong,
.landing .db-footer a {
  color: var(--db-home-navy) !important;
}

.landing .db-footer p,
.landing .db-footer small {
  color: var(--db-home-muted);
}

/* Dark appearance keeps the same brand hierarchy without becoming visually heavy. */
html[data-theme="dark"] .landing .landing-nav {
  border-color: rgba(73, 185, 232, .18) !important;
  background: rgba(7, 28, 48, .91) !important;
}

html[data-theme="dark"] .landing .landing-nav a {
  color: #eef7fb !important;
}

html[data-theme="dark"] .landing .db-hero {
  border-color: rgba(73, 185, 232, .20) !important;
  background:
    radial-gradient(circle at 8% 8%, rgba(73, 185, 232, .12), transparent 33%),
    radial-gradient(circle at 92% 90%, rgba(108, 174, 62, .09), transparent 32%),
    linear-gradient(135deg, #071c30 0%, #0a263f 62%, #0c2c32 100%) !important;
}

html[data-theme="dark"] .landing .db-hero-copy h1,
html[data-theme="dark"] .landing .db-hero-lead {
  color: #f5fbfe !important;
}

html[data-theme="dark"] .landing .db-hero-copy > p:not(.db-kicker):not(.db-hero-lead):not(.db-hero-meta),
html[data-theme="dark"] .landing .db-hero-meta {
  color: #c1d0da !important;
}

html[data-theme="dark"] .landing .db-ecosystem-card,
html[data-theme="dark"] .landing .info-card,
html[data-theme="dark"] .landing .db-newsletter-form,
html[data-theme="dark"] .landing .db-contact-form,
html[data-theme="dark"] .landing .db-publication-card {
  border-color: rgba(73, 185, 232, .17) !important;
  background: rgba(8, 31, 52, .82) !important;
}

html[data-theme="dark"] .landing .db-ecosystem-levels div {
  border-color: rgba(73, 185, 232, .12) !important;
  background: rgba(255, 255, 255, .035) !important;
}

html[data-theme="dark"] .landing .db-ecosystem-levels strong,
html[data-theme="dark"] .landing .info-card h3,
html[data-theme="dark"] .landing .db-publication-card h3,
html[data-theme="dark"] .landing .section-heading h2 {
  color: #f2f8fb !important;
}

html[data-theme="dark"] .landing .db-ecosystem-levels span,
html[data-theme="dark"] .landing .info-card p,
html[data-theme="dark"] .landing .section-heading p,
html[data-theme="dark"] .landing .db-parent-company p,
html[data-theme="dark"] .landing .db-lead-copy p {
  color: #bdccd6 !important;
}

html[data-theme="dark"] .landing .db-brand-row strong {
  border-color: rgba(73, 185, 232, .20);
  background: rgba(73, 185, 232, .06);
  color: #f2f8fb !important;
}

html[data-theme="dark"] .landing .button.ghost {
  border-color: rgba(149, 190, 215, .25) !important;
  background: rgba(255, 255, 255, .035) !important;
  color: #eef7fb !important;
}

html[data-theme="dark"] .landing .db-newsletter-form input,
html[data-theme="dark"] .landing .db-contact-form input,
html[data-theme="dark"] .landing .db-contact-form select,
html[data-theme="dark"] .landing .db-contact-form textarea {
  border-color: rgba(73, 185, 232, .18) !important;
  background: #071c30 !important;
  color: #f3f8fb !important;
}

html[data-theme="dark"] .landing .landing-wrapper > .section {
  border-color: rgba(73, 185, 232, .13);
  background: rgba(7, 28, 48, .55);
}

html[data-theme="dark"] .landing .landing-wrapper > .section.alt {
  background: linear-gradient(145deg, rgba(9, 35, 58, .76), rgba(13, 48, 52, .65));
}

html[data-theme="dark"] .landing .db-footer {
  border-color: rgba(73, 185, 232, .14) !important;
  background: rgba(7, 28, 48, .68);
}

html[data-theme="dark"] .landing .db-footer strong,
html[data-theme="dark"] .landing .db-footer a {
  color: #f1f8fb !important;
}

html[data-theme="dark"] .landing .db-footer p,
html[data-theme="dark"] .landing .db-footer small {
  color: #bdccd6;
}

/* Responsive behavior */
@media (max-width: 1080px) {
  .landing .db-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .landing .db-ecosystem-card {
    max-width: none;
  }

  .landing .db-area-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .landing .db-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  .landing .landing-wrapper {
    width: min(100% - .8rem, 1280px) !important;
    padding-inline: .4rem !important;
  }

  .landing .landing-nav {
    position: static !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .landing .landing-wrapper > .section,
  .landing .db-hero {
    border-radius: 22px !important;
    padding: 2.4rem 1.25rem !important;
  }

  .landing .db-publication-grid,
  .landing .db-social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .landing .db-parent-company,
  .landing .db-lead-section,
  .landing .db-contact-grid,
  .landing .db-footer {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 620px) {
  .landing .db-hero-copy h1 {
    font-size: clamp(2.15rem, 11vw, 3.25rem) !important;
    line-height: 1.04 !important;
  }

  .landing .db-hero-logo {
    width: min(310px, 92%) !important;
  }

  .landing .db-brand-row {
    grid-template-columns: 1fr !important;
    gap: .55rem !important;
  }

  .landing .db-brand-row > span[aria-hidden="true"] {
    width: 26px;
    height: 26px;
    margin: 0 auto;
    transform: rotate(90deg);
  }

  .landing .db-brand-row img,
  .landing .db-brand-row strong {
    width: 100% !important;
    min-height: 68px;
  }

  .landing .db-area-grid,
  .landing .db-project-grid,
  .landing .db-publication-grid,
  .landing .db-social-grid {
    grid-template-columns: 1fr !important;
  }

  .landing .db-hero .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .landing .db-hero .hero-actions .button,
  .landing .db-center-action .button,
  .landing .db-newsletter-form .button,
  .landing .db-contact-form .button {
    width: 100%;
  }

  .landing .db-hero-meta {
    font-size: .72rem !important;
    letter-spacing: .07em !important;
  }
}
