/* =========================================
   DATA CENTER DIRECT — Hermetic Labs product page
   ========================================= */

.dd-page {
  --dd-red: #ff0303;
  --dd-green: #33a33c;
  --dd-blue: #2740cc;
  --dd-mint: #2fb4a5;
  --dd-ink: #020403;
  --dd-panel: #070a09;
  --dd-line: rgba(47, 180, 165, 0.2);
  background:
    radial-gradient(circle at 8% 12%, rgba(51, 163, 60, 0.08), transparent 28rem),
    radial-gradient(circle at 94% 20%, rgba(39, 64, 204, 0.08), transparent 30rem),
    var(--dd-ink);
}

.dd-page section:nth-child(even) { background: transparent; }

.dd-page a:focus-visible,
.dd-page button:focus-visible {
  outline: 2px solid #79d6c6;
  outline-offset: 4px;
}

.dd-nav {
  background: rgba(2, 4, 3, 0.88);
  border-bottom-color: rgba(47, 180, 165, 0.16);
}

.dd-nav-brand img {
  width: auto;
  height: 28px;
  opacity: 0.92;
}

.dd-nav .nav-links { gap: clamp(18px, 2.4vw, 32px); }

.dd-nav .hamburger {
  background: transparent;
  border: 0;
}

.dd-kicker {
  color: #79b8ac;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.5;
  text-transform: uppercase;
}

.dd-hero {
  min-height: 100vh;
  padding: calc(var(--nav-height) + 74px) 5% 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.dd-ambient-grid {
  position: absolute;
  inset: var(--nav-height) 0 0;
  z-index: -2;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(47, 180, 165, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 180, 165, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
}

.dd-hero::after {
  content: '';
  position: absolute;
  inset: var(--nav-height) 0 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 4, 3, 0.98) 0%, rgba(2, 4, 3, 0.82) 43%, rgba(2, 4, 3, 0.22) 78%, rgba(2, 4, 3, 0.72) 100%),
    radial-gradient(circle at 66% 37%, rgba(47, 180, 165, 0.1), transparent 35rem);
  pointer-events: none;
}

.dd-hero-inner {
  width: min(1480px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(430px, 0.82fr) minmax(600px, 1.18fr);
  align-items: center;
  gap: clamp(44px, 6vw, 100px);
}

.dd-lockup {
  display: flex;
  align-items: center;
  gap: 17px;
  margin: 22px 0 20px;
}

.dd-mark {
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  object-fit: contain;
}

.dd-product-name {
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
}

.dd-byline {
  margin-top: 8px;
  color: #70817c;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.dd-status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  padding: 8px 12px;
  color: #9aa7a3;
  border: 1px solid rgba(47, 180, 165, 0.22);
  border-radius: 999px;
  background: rgba(7, 14, 11, 0.72);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dd-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dd-green);
  box-shadow: 0 0 12px rgba(51, 163, 60, 0.7);
}

.dd-hero h1 {
  max-width: 720px;
  margin-bottom: 28px;
  color: #f7f8f7;
  font-size: clamp(2.75rem, 5vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.dd-hero h1 span {
  background: linear-gradient(90deg, #d4ddd9 10%, #2fb4a5 55%, #6b85ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dd-lede {
  max-width: 670px;
  color: #aeb9b5;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  line-height: 1.8;
}

.dd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.dd-actions .btn {
  min-height: 48px;
  justify-content: center;
}

.dd-actions .btn-primary {
  background: linear-gradient(135deg, #176f3c, #2fb4a5);
}

.dd-actions .btn-outline {
  border-color: rgba(47, 180, 165, 0.48);
  color: #b4d9d2;
}

.dd-disclaimer {
  margin-top: 22px;
  color: #788782;
  font-size: 0.72rem;
}

.dd-hero-figure {
  position: relative;
  margin: 0;
}

.dd-hero-figure::before {
  content: '';
  position: absolute;
  inset: 8% 5%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(47, 180, 165, 0.12);
  filter: blur(60px);
}

.dd-hero-figure img {
  width: min(620px, 100%);
  margin: 0 auto;
  display: block;
  object-fit: contain;
  transform: translateX(-3%);
  filter: drop-shadow(0 32px 80px rgba(0, 0, 0, 0.52));
}

.dd-hero-figure figcaption {
  margin-top: 12px;
  color: #758782;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-align: right;
}

.dd-signal-strip {
  width: min(1480px, 100%);
  margin: clamp(52px, 8vh, 90px) auto 0;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vw, 88px);
  border-top: 1px solid rgba(47, 180, 165, 0.14);
  color: #85938f;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.dd-signal-strip span { display: inline-flex; align-items: center; gap: 10px; }
.dd-signal { width: 7px; height: 7px; border-radius: 50%; }
.dd-signal-red { background: var(--dd-red); }
.dd-signal-green { background: var(--dd-green); }
.dd-signal-blue { background: var(--dd-blue); }

.dd-section-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.dd-system,
.dd-method,
.dd-principles,
.dd-close {
  padding: clamp(92px, 11vw, 150px) 5%;
}

.dd-section-heading,
.dd-method-intro {
  max-width: 850px;
  margin-bottom: 58px;
}

.dd-section-heading h2,
.dd-method-intro h2,
.dd-principles-copy h2,
.dd-close h2 {
  margin: 14px 0 22px;
  color: #f2f5f4;
  font-size: clamp(2.15rem, 4vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.dd-section-heading > p:last-child,
.dd-method-intro > p:last-child,
.dd-principles-copy > p:last-child,
.dd-close-inner > p:not(.dd-kicker) {
  color: #9eaaa6;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.8;
}

.dd-system {
  background: linear-gradient(180deg, #030605, #080b0a) !important;
  border-top: 1px solid rgba(47, 180, 165, 0.12);
  border-bottom: 1px solid rgba(47, 180, 165, 0.12);
}

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

.dd-viewport-principles article {
  min-height: 300px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(47, 180, 165, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(7, 15, 12, 0.92) 70%),
    linear-gradient(135deg, rgba(47, 180, 165, 0.07), transparent 55%),
    #060807;
  position: relative;
  overflow: hidden;
}

.dd-viewport-principles article::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(47, 180, 165, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 180, 165, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.dd-card-index {
  position: absolute;
  top: 28px;
  left: 32px;
  color: #628078;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.dd-viewport-principles h3,
.dd-loop-step h3 {
  position: relative;
  color: #eef3f1;
  font-size: 1.3rem;
  font-weight: 600;
}

.dd-viewport-principles p,
.dd-loop-step p,
.dd-project-card > p {
  position: relative;
  margin-top: 12px;
  color: #8f9d98;
  font-size: 0.92rem;
  line-height: 1.7;
}

.dd-method { background: #020403 !important; }

.dd-loop {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
}

.dd-loop-step {
  min-height: 245px;
  padding: 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #080b09;
}

.dd-loop-step > span {
  display: block;
  margin-bottom: 64px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.dd-loop-red { border-top: 3px solid var(--dd-red); }
.dd-loop-green { border-top: 3px solid var(--dd-green); }
.dd-loop-blue { border-top: 3px solid var(--dd-blue); }
.dd-loop-white { border-top: 3px solid #d8e0dd; }
.dd-loop-red > span { color: #ff6868; }
.dd-loop-green > span { color: #70c777; }
.dd-loop-blue > span { color: #7288ff; }
.dd-loop-white > span { color: #c9d0ce; }

.dd-loop-arrow {
  display: grid;
  place-items: center;
  color: #56635f;
  font-size: 1.35rem;
}

.dd-trace {
  margin-top: 28px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  border: 1px solid rgba(47, 180, 165, 0.14);
  border-radius: 12px;
  color: #6f7e79;
  background: rgba(7, 10, 9, 0.72);
}

.dd-trace p {
  color: #a8b6b1;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.dd-trace span { color: #3f4c48; }

.dd-principles { background: #020403 !important; }

.dd-principles-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(480px, 1.2fr);
  gap: clamp(56px, 9vw, 130px);
  align-items: start;
}

.dd-principles-copy {
  position: sticky;
  top: calc(var(--nav-height) + 40px);
}

.dd-principle-list article {
  padding: 28px 0;
  display: grid;
  grid-template-columns: minmax(170px, 0.62fr) 1fr;
  gap: 30px;
  border-top: 1px solid rgba(47, 180, 165, 0.16);
}

.dd-principle-list article:last-child { border-bottom: 1px solid rgba(47, 180, 165, 0.16); }

.dd-principle-list strong {
  color: #dfe6e3;
  font-size: 0.95rem;
  font-weight: 600;
}

.dd-principle-list span {
  color: #84928d;
  font-size: 0.9rem;
  line-height: 1.7;
}

.dd-close {
  background:
    radial-gradient(circle at 50% 15%, rgba(47, 180, 165, 0.12), transparent 28rem),
    #050706 !important;
  border-top: 1px solid rgba(47, 180, 165, 0.14);
}

.dd-close-inner {
  width: min(860px, 100%);
  margin: 0 auto;
  text-align: center;
}

.dd-close-mark {
  width: 86px;
  height: 86px;
  margin: 0 auto 28px;
}

.dd-actions-center { justify-content: center; }

.dd-footer { border-top-color: rgba(47, 180, 165, 0.14); }

@media (max-width: 1240px) {
  .dd-hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .dd-hero-copy { max-width: 850px; }
  .dd-hero-figure { width: min(920px, 100%); margin: 0 auto; }
  .dd-hero::after { background: linear-gradient(180deg, rgba(2, 4, 3, 0.94), rgba(2, 4, 3, 0.55)); }
}

@media (max-width: 900px) {
  .dd-nav .nav-links { gap: 24px; }
  .dd-viewport-principles { grid-template-columns: 1fr; }
  .dd-viewport-principles article { min-height: 250px; }
  .dd-loop { grid-template-columns: 1fr 1fr; }
  .dd-loop-arrow { display: none; }
  .dd-principles-layout { grid-template-columns: 1fr; }
  .dd-principles-copy { position: static; }
}

@media (max-width: 600px) {
  .dd-hero { padding-top: calc(var(--nav-height) + 48px); }
  .dd-nav-brand img { height: 22px; }
  .dd-lockup { align-items: center; }
  .dd-mark { width: 64px; height: 64px; }
  .dd-product-name { font-size: 1.2rem; letter-spacing: 0.13em; }
  .dd-hero h1 { font-size: clamp(2.45rem, 13vw, 3.8rem); }
  .dd-actions { flex-direction: column; }
  .dd-actions .btn { width: 100%; }
  .dd-signal-strip { align-items: flex-start; flex-direction: column; gap: 14px; }
  .dd-system, .dd-method, .dd-principles, .dd-close { padding-left: 6%; padding-right: 6%; }
  .dd-loop { grid-template-columns: 1fr; }
  .dd-loop-step { min-height: 210px; }
  .dd-loop-step > span { margin-bottom: 42px; }
  .dd-principle-list article { grid-template-columns: 1fr; gap: 10px; }
  .dd-trace { justify-content: flex-start; }
  .dd-hero-figure figcaption { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .dd-page *, .dd-page *::before, .dd-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
