*, *::before, *::after { box-sizing: border-box; }
.db-home { margin: 0; background: var(--db-night); color: var(--db-white); font: 400 16px/1.55 Inter, system-ui, sans-serif; }
.db-home [hidden] { display: none !important; }
.db-home :is(h1, h2, h3, p) { margin: 0; }
.db-home :is(h1, h2, h3) { font-family: Manrope, Inter, sans-serif; }
.db-home main :is(section, [id]) { scroll-margin-top: 86px; }
.db-home .db-skip { position: fixed; top: 8px; left: 12px; z-index: 80; padding: 9px 14px; transform: translateY(-150%); background: var(--db-gold-light); color: var(--db-night); }
.db-home .db-skip:focus { transform: none; }
.db-hero {
  position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--db-line);
  background: radial-gradient(ellipse at 82% 44%, #233e64 0%, transparent 51%), var(--db-night);
}
.db-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(#b1d1ff14 1px, transparent 1px), linear-gradient(90deg, #b1d1ff14 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(105deg, transparent 15%, #000 79%);
}

.db-kicker { display: flex; align-items: center; gap: 11px; color: var(--db-gold-light); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.db-kicker span { width: 18px; height: 1px; background: currentColor; }

.db-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px 21px; margin-top: 27px; }
.db-button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; gap: 13px; padding: 10px 15px; border-radius: 8px; font-size: 13px; font-weight: 800; text-decoration: none; transition: background-color .2s, color .2s; }
.db-button span { font-size: 17px; line-height: 1; }
.db-button-gold { background: var(--db-gold-light); color: var(--db-night); }
.db-button-gold:hover { background: #ffe397; }
.db-button-link { color: var(--db-white); padding-inline: 4px; }
.db-button-link:hover { color: var(--db-gold-light); }
.db-solutions, .db-method, .db-web, .db-project { padding-block: clamp(57px, 7.2vw, 105px); }
.db-home main h2 { font-size: clamp(32px, 4.3vw, 57px); line-height: 1.09; letter-spacing: -.059em; font-weight: 800; }
.db-solutions h2, .db-method h2, .db-web h2 { margin-top: 15px; }
.db-solutions { background: var(--db-white); color: var(--db-night); }
.db-solutions .db-kicker, .db-method .db-kicker { color: #73591b; }
.db-software-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 22px;
  margin-top: 16px;
}
.db-solutions .db-software-intro { color: #4b5b72; font-size: clamp(16px, 1.6vw, 19px); }
.db-software-motion {
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: #384d69;
  cursor: pointer;
  font: 600 13px/1.4 Inter, sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.db-software-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(18px, 3vw, 36px);
}
.db-software {
  --software-light: #345d8e;
  --software-middle: #182d48;
  --software-dark: #0b1727;
  --software-accent: #c4dcff;
  position: relative;
  isolation: isolate;
  display: grid;
  min-width: 0;
  min-height: clamp(282px, 25vw, 355px);
  align-items: end;
  justify-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 36%, var(--software-light), var(--software-middle) 58%, var(--software-dark));
}
.db-software[data-tone="petrol"] {
  --software-light: #3d6867;
  --software-middle: #203b42;
  --software-dark: #101e25;
  --software-accent: #ccebe3;
}
.db-software[data-tone="bronze"] {
  --software-light: #806140;
  --software-middle: #4b382d;
  --software-dark: #241b18;
  --software-accent: #f4d7a1;
}
.db-software + .db-software { border-inline-start: 1px solid #f7eee42e; }
.db-software::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 27% 0 0;
  background: linear-gradient(transparent, var(--software-dark) 86%);
  pointer-events: none;
}
.db-software :is(canvas, .db-software-poster) {
  position: absolute;
  z-index: -2;
  inset: 0 0 auto;
  width: 100%;
  height: clamp(190px, 18vw, 250px);
  opacity: .95;
  filter: blur(.35px);
  pointer-events: none;
}
.db-software-poster { object-fit: contain; object-position: top center; }
.db-software canvas.is-rendered + .db-software-poster { visibility: hidden; }
.db-home main h3 { font-size: 21px; line-height: 1.22; letter-spacing: -.035em; }
.db-home .db-software h3 {
  margin-bottom: 9px;
  color: #fffaf2;
  font-size: clamp(27px, 2.9vw, 43px);
  line-height: .98;
  letter-spacing: -.071em;
  text-shadow: 0 3px 25px #070b13c4;
}
.db-software-copy {
  width: min(100%, 41ch);
  padding: clamp(126px, 12.5vw, 180px) clamp(16px, 2.25vw, 36px) clamp(18px, 2vw, 29px);
  color: #e4e8ee;
  text-align: center;
}
.db-software-copy strong { color: var(--software-accent); font-size: 15px; line-height: 1.45; }
.db-software-copy p + p { margin-top: 7px; font-size: 14px; line-height: 1.55; }
@media (max-width: 850px) {
  .db-software-list { grid-template-columns: minmax(0, 1fr); }
  .db-software { min-height: 0; grid-template-rows: clamp(108px, 32vw, 151px) auto; }
  .db-software + .db-software { border-inline-start: 0; border-top: 1px solid #f7eee42e; }
  .db-software::after { inset-block-start: 19%; }
  .db-software :is(canvas, .db-software-poster) { height: clamp(150px, 43vw, 204px); }
  .db-home .db-software h3 { font-size: clamp(31px, 6vw, 42px); }
  .db-software-copy { grid-row: 2; width: min(100%, 49ch); padding: 0 16px 22px; }
}
.db-solutions .db-software-custom { margin-top: 25px; }
.db-software-custom a { color: #233d6d; font-weight: 800; text-underline-offset: 4px; }
.db-method p:not(.db-kicker) { margin-top: 9px; color: #4b5b72; font-size: 14px; }
.db-method { background: #eaf0f6; color: var(--db-night); }
.db-method-grid, .db-web-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(22px, 8vw, 120px); }
.db-method ol { counter-reset: method; list-style: none; margin: 0; padding: 0; border-top: 1px solid #c9d4e0; }
.db-method li { position: relative; counter-increment: method; padding: 17px 0 17px 50px; border-bottom: 1px solid #c9d4e0; }
.db-method li::before { content: counter(method, decimal-leading-zero); position: absolute; left: 0; top: 20px; color: #73591b; font: 700 14px/1 ui-monospace, monospace; }
.db-web { background: var(--db-navy); }
.db-web h2 + p { margin-top: 15px; color: #cbd7e8; }
.db-web-prices { margin: 0; padding: 10px 19px; border: 1px solid var(--db-line); border-radius: 12px; }
.db-web-prices div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 12px; }
.db-web-prices div + div { border-top: 1px solid var(--db-line); }
.db-web-prices dd { margin: 0; color: var(--db-gold-light); font-weight: 800; }
.db-web-prices small { color: #cbd7e8; font-weight: 500; }
.db-project { background: radial-gradient(ellipse at 80% 100%, #263d5c, transparent 70%), var(--db-night); }
.db-project-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.db-project .db-button { flex-shrink: 0; }
@media (max-width: 800px) {
  .db-method-grid, .db-web-grid { gap: 26px; }
}
@media (max-width: 560px) {
  .db-method-grid, .db-web-grid { grid-template-columns: 1fr; }
  .db-project-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .db-home *, .db-home *::before, .db-home *::after { animation: none !important; transition: none !important; }
}

/* Home navigation and hero */
.db-home .db-header {
  background: #091321f2;
  border-bottom-color: #d4b47044;
  box-shadow: 0 10px 34px #050b174d;
}
.db-home .db-header-inner { min-height: 82px; }
.db-home .db-header .db-brand { gap: 0; font-size: clamp(25px, 2.5vw, 34px); }
.db-home .db-header .db-brand-mark {
  width: 39px;
  height: 39px;
  margin-right: 12px;
  background: #e8ca7718;
  border-color: #e8ca777f;
  box-shadow: 0 0 22px #e8ca771e, inset 0 0 14px #e8ca7712;
}
.db-home .db-header .db-nav { gap: clamp(20px, 3vw, 46px); }
.db-home .db-header .db-nav a { position: relative; color: #e0e8f3; font-size: 14px; }
.db-home .db-header .db-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--db-gold-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.db-home .db-header .db-nav a:hover::after,
.db-home .db-header .db-nav a:focus-visible::after { transform: scaleX(1); }
.db-home .db-header-cta {
  min-height: 44px;
  padding-inline: 15px;
  background: var(--db-gold-light);
  color: #101925;
  border: 1px solid #ffe2a1;
  box-shadow: 0 4px 19px #be8d3938;
}
.db-home .db-header-cta:hover { background: #ffdf96; }

.db-home .db-hero {
  background: radial-gradient(ellipse at 50% 39%, #172f50 0%, #0b1727 57%, #08111e 100%);
}
.db-home .db-hero::before {
  background-size: 66px 66px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 0%, transparent 65%);
  opacity: .48;
}
.db-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: clamp(510px, calc(100svh - 125px), 735px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 48px 60px;
  text-align: center;
}
.db-home .db-hero h1 {
  color: #fffaf0;
  font-size: clamp(58px, 13.5vw, 174px);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.094em;
  text-shadow: 0 5px 40px #080f1de0;
}
.db-home .db-hero h1 span { color: #f2cd80; }
.db-home .db-hero-tagline {
  margin-top: clamp(20px, 2.6vw, 34px);
  color: #f1e3c7;
  font-size: clamp(17px, 2.6vw, 29px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.3;
  text-shadow: 0 2px 20px #071220;
}
.db-hero-content .db-actions { justify-content: center; }
.db-hero-content .db-button-gold { box-shadow: 0 5px 26px #be8d393e; }

.db-hero-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  perspective: 1100px;
  filter: blur(1.4px);
  opacity: .78;
  pointer-events: none;
}
.db-hero-sculpture {
  position: relative;
  width: clamp(230px, 33vw, 412px);
  aspect-ratio: 310 / 390;
  transform: translateY(-8%) rotateX(11deg) rotateY(-20deg) rotateZ(-7deg);
  transform-style: preserve-3d;
  animation: db-logo-motion 11s ease-in-out infinite alternate paused;
}
.db-hero-logo-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, #35476a 9%, #1e5585 53%, #9c7541 100%);
  mask-image: url("../images/logo-devborea.webp");
  mask-size: 330% auto;
  mask-position: 50% 34%;
  mask-repeat: no-repeat;
  transform: translateZ(var(--depth));
}
.db-hero-logo-layer:last-child {
  background: linear-gradient(140deg, #e6bc73 6%, #8eacda 36%, #2c60a5 62%, #c59652 96%);
}
@keyframes db-logo-motion {
  from { transform: translateY(-9%) rotateX(14deg) rotateY(-31deg) rotateZ(-8deg); }
  52% { transform: translateY(-4%) rotateX(5deg) rotateY(5deg) rotateZ(-1deg); }
  to { transform: translateY(-7%) rotateX(-9deg) rotateY(30deg) rotateZ(7deg); }
}
.db-hero.is-motion-enabled:not(.is-motion-paused) .db-hero-sculpture { animation-play-state: running; }
.db-motion-toggle {
  position: absolute;
  right: max(18px, calc((100% - 1240px) / 2));
  bottom: 12px;
  z-index: 2;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #091523db;
  color: #c8d5e8;
  cursor: pointer;
  font: 600 11px/1.45 Inter, sans-serif;
}
.db-motion-toggle:hover { border-color: #a2b5d272; color: #fff; }

.db-hero-followup {
  padding-block: clamp(39px, 6.1vw, 83px);
  background: #0d1b2e;
  border-bottom: 1px solid var(--db-line);
}
.db-hero-followup-inner { text-align: center; }
.db-hero-followup h2 { max-width: 22ch; margin-inline: auto; }
.db-hero-followup h2 em { color: #f2cd80; font-style: normal; }
.db-hero-followup p {
  max-width: 63ch;
  margin: 16px auto 0;
  color: #c5d1e3;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
}
@media (max-width: 900px) {
  .db-home .db-header-inner { min-height: 67px; }
  .db-home .db-header .db-brand-mark { width: 33px; height: 33px; }
  .db-home .db-header .db-menu:not([open]) nav { display: none; }
}
@media (max-width: 560px) {
  .db-hero-content { min-height: clamp(465px, calc(100svh - 105px), 580px); }
  .db-home .db-hero h1 { font-size: clamp(44px, 14vw, 78px); }
  .db-hero-content .db-actions { gap: 9px; margin-top: 23px; }
  .db-hero-content .db-button { padding-inline: 10px; }
}
