:root {
  --bg: #080a0f;
  --bg-soft: #0d1017;
  --panel: #11151e;

  --text: #f4f5f7;
  --muted: #a5aab5;

  --line: rgba(255,255,255,.10);

  --accent: #8c5cff;
  --accent-light: #b394ff;

  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  width: min(calc(100% - 64px), var(--max-width));
  height: 100px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;

  color: white;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;

  font-size: 25px;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: .03em;
}

.brand-text small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .18em;
}

.main-nav {
  display: flex;
  gap: 35px;
}

.main-nav a {
  color: #d9dce3;
  text-decoration: none;

  font-size: 14px;
  font-weight: 500;

  transition: color .2s ease;
}

.main-nav a:hover {
  color: white;
}

.hero {
  position: relative;
  min-height: 760px;
  height: 100svh;

  display: flex;
  align-items: center;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 80% 40%,
      rgba(104,67,180,.16),
      transparent 32%
    ),
    linear-gradient(
      110deg,
      #080b11 0%,
      #070910 48%,
      #090a10 100%
    );
}

.hero-shade {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(5,7,11,.96) 0%,
      rgba(5,7,11,.74) 42%,
      rgba(5,7,11,.12) 76%
    ),
    linear-gradient(
      0deg,
      rgba(8,10,15,.8),
      transparent 30%
    );

  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;

  width: min(calc(100% - 64px), var(--max-width));
  margin: 55px auto 0;
}

.eyebrow {
  margin: 0 0 22px;

  color: var(--accent-light);

  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
}

.hero h1 {
  margin: 0;

  max-width: 760px;

  font-size: clamp(56px, 7vw, 100px);
  font-weight: 650;
  line-height: .98;
  letter-spacing: -.055em;
}

.hero h1 span {
  color: #aeb2bb;
}

.hero-copy {
  max-width: 570px;

  margin: 32px 0 0;

  color: #c0c4cc;

  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 14px;

  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 50px;
  padding: 0 24px;

  border-radius: 7px;

  text-decoration: none;

  font-size: 14px;
  font-weight: 650;

  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease;
}

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

.button-primary {
  background: var(--accent);
  color: white;
}

.button-primary:hover {
  background: #9c72ff;
}

.button-secondary {
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.04);
}

.button-secondary:hover {
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.08);
}

.scroll-cue {
  position: absolute;
  z-index: 2;

  bottom: 30px;
  left: 50%;

  width: 24px;
  height: 40px;

  border: 1px solid rgba(255,255,255,.25);
  border-radius: 15px;
}

.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;

  width: 3px;
  height: 7px;

  border-radius: 5px;
  background: white;

  transform: translateX(-50%);
}

.services {
  max-width: var(--max-width);
  margin: auto;

  padding: 120px 32px 130px;
}

.section-heading {
  max-width: 650px;
  margin-bottom: 55px;
}

.section-heading h2,
.ecosystem h2 {
  margin: 0;

  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.section-heading > p:last-child {
  color: var(--muted);

  max-width: 540px;

  margin-top: 22px;

  font-size: 17px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-card {
  min-height: 320px;

  padding: 42px 38px 45px;

  border-right: 1px solid var(--line);
}

.service-card:last-child {
  border-right: 0;
}

.service-icon {
  color: var(--accent-light);

  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
}

.service-card h3 {
  margin: 65px 0 15px;

  font-size: 25px;
}

.service-card p {
  color: var(--muted);
  line-height: 1.7;
}

.service-card a {
  display: inline-block;

  margin-top: 16px;

  color: #d7caff;

  text-decoration: none;
  font-size: 14px;
}

.ecosystem {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 90px;

  max-width: var(--max-width);
  margin: auto;

  padding: 60px 32px 140px;
}

.ecosystem-links {
  border-top: 1px solid var(--line);
}

.ecosystem-links a {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 25px;

  min-height: 90px;

  border-bottom: 1px solid var(--line);

  text-decoration: none;
}

.ecosystem-links span {
  color: var(--muted);
  font-size: 13px;
}

.ecosystem-links strong {
  font-size: 17px;
}

.ecosystem-links b {
  color: var(--accent-light);
  font-size: 21px;
}

.site-footer {
  max-width: var(--max-width);
  margin: auto;

  padding: 40px 32px 55px;

  border-top: 1px solid var(--line);

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;

  color: var(--muted);
  font-size: 12px;
}

.footer-brand {
  display: flex;
  gap: 7px;
  align-items: baseline;
}

.footer-brand strong {
  color: white;
  font-size: 16px;
}

.footer-meta {
  display: flex;
  gap: 20px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
}

.footer-links a {
  text-decoration: none;
}

@media (max-width: 800px) {

  .site-header {
    width: calc(100% - 40px);
    height: auto;
    min-height: 100px;
    padding: 18px 0 14px;

    flex-wrap: wrap;
    align-content: center;
    row-gap: 13px;
  }

  .brand {
    width: 100%;
  }

  .main-nav {
    width: 100%;

    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .main-nav a {
    font-size: 12px;
    white-space: nowrap;
  }

  .hero {
    min-height: 700px;
  }

  .hero-content {
    width: calc(100% - 40px);
  }

  .hero h1 {
    font-size: clamp(48px,15vw,70px);
  }

  .hero-copy {
    font-size: 17px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;

    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card:last-child {
    border-bottom: 0;
  }

  .ecosystem {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .ecosystem-links a {
    grid-template-columns: 85px 1fr auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}


/* =========================================================
   D-BUG HERO ARTWORK
   ========================================================= */

.hero {
  background-color: #05070b;
  background-image: url("../img/hero.webp");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero-shade {
  background:
    linear-gradient(
      90deg,
      rgba(4,6,10,.88) 0%,
      rgba(4,6,10,.69) 35%,
      rgba(4,6,10,.22) 62%,
      rgba(4,6,10,.05) 100%
    ),
    linear-gradient(
      0deg,
      rgba(8,10,15,.78) 0%,
      rgba(8,10,15,.08) 35%,
      rgba(8,10,15,.12) 100%
    );
}

@media (max-width: 800px) {
  .hero {
    background-position: 66% center;
  }

  .hero-shade {
    background:
      linear-gradient(
        90deg,
        rgba(4,6,10,.90) 0%,
        rgba(4,6,10,.70) 58%,
        rgba(4,6,10,.28) 100%
      ),
      linear-gradient(
        0deg,
        rgba(8,10,15,.72),
        rgba(8,10,15,.10) 45%
      );
  }
}


/* =========================================================
   D-BUG BRAND MARK
   ========================================================= */

.brand-mark {
  width: 44px;
  height: 44px;

  display: block;

  border: 0;
  border-radius: 0;
}

.brand-mark img {
  display: block;

  width: 44px;
  height: 44px;

  object-fit: contain;
}


/* =========================================================
   DESKTOP CONTENT SCALE / WIDTH TUNING
   ========================================================= */

@media (min-width: 1100px) {

  .services,
  .ecosystem,
  .site-footer {
    max-width: 1360px;
  }

  .services {
    padding-top: 145px;
    padding-bottom: 155px;
  }

  .section-heading {
    max-width: 760px;
    margin-bottom: 68px;
  }

  .section-heading h2,
  .ecosystem h2 {
    font-size: 64px;
  }

  .section-heading > p:last-child {
    max-width: 620px;
    font-size: 18px;
  }

  .service-card {
    min-height: 350px;
    padding: 48px 44px 50px;
  }

  .service-card h3 {
    font-size: 27px;
  }

  .service-card p {
    font-size: 16px;
  }

  .ecosystem {
    padding-top: 80px;
    padding-bottom: 165px;
  }

  .ecosystem-links a {
    min-height: 102px;
  }

  .ecosystem-links span {
    font-size: 14px;
  }

  .ecosystem-links strong {
    font-size: 19px;
  }

  .site-footer {
    font-size: 13px;
  }
}


/* =========================================================
   INTERIOR PAGES
   ========================================================= */

.interior-page {
  min-height: 100vh;
  padding-top: 100px;
}

.page-hero {
  width: min(calc(100% - 64px), var(--max-width));
  margin: 0 auto;
  padding: 120px 0 80px;

  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 900px;
  margin: 16px 0 24px;

  color: white;
  font-size: clamp(54px, 8vw, 96px);
  line-height: .95;
  letter-spacing: -.045em;
}

.page-hero h1 span {
  color: var(--accent-light);
}

.page-intro {
  max-width: 700px;
  margin: 0;

  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.page-content {
  width: min(calc(100% - 64px), var(--max-width));
  margin: 0 auto;
  padding: 90px 0 130px;
}

.content-block {
  max-width: 780px;
  margin-bottom: 70px;
}

.content-block:last-child {
  margin-bottom: 0;
}

.content-block h2 {
  margin: 0 0 24px;

  color: white;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.content-block p {
  margin: 0 0 20px;

  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.content-block a {
  color: var(--accent-light);
}

.contact-address {
  display: inline-block;
  margin-top: 10px;

  color: white !important;
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -.02em;
}

.contact-address:hover {
  color: var(--accent-light) !important;
}

@media (max-width: 800px) {

  .interior-page {
    padding-top: 175px;
  }

  .page-hero {
    width: calc(100% - 40px);
    padding: 75px 0 55px;
  }

  .page-hero h1 {
    font-size: clamp(48px, 15vw, 70px);
  }

  .page-intro {
    font-size: 17px;
  }

  .page-content {
    width: calc(100% - 40px);
    padding: 65px 0 95px;
  }

  .content-block {
    margin-bottom: 55px;
  }
}
