:root {
  --bg: #0b1220;
  --bg2: #10192d;
  --panel: rgba(255,255,255,0.06);
  --text: #eef4ff;
  --muted: #a8b7d1;
  --line: rgba(255,255,255,0.12);
  --brand: #59c7ff;
  --brand-2: #65f0c4;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
  --max: 1180px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(89, 199, 255, 0.14), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(101, 240, 196, 0.12), transparent 22%),
    linear-gradient(180deg, #09111d 0%, #0b1220 100%);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* HEADER */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(8, 12, 22, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: block;
  width: 220px !important;
  max-width: 220px !important;
  flex: 0 0 220px !important;
  min-width: 220px !important;
  overflow: hidden;
}

.brand-logo {
  display: block;
  width: 220px !important;
  max-width: 220px !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav-links a:not(.btn):hover,
.text-link:hover {
  color: #ffffff;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #07131f;
  box-shadow: 0 16px 40px rgba(89, 199, 255, 0.22);
}

.btn-primary:hover { transform: translateY(-1px); }

.btn-secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255,255,255,0.03);
}

/* HERO */
.hero { padding: 72px 0 34px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 42px;
  align-items: center;
}

.hero-grid > * { min-width: 0; }

.hero-logo-wrap { margin-bottom: 12px; }

.hero-logo {
  max-width: 430px;
  width: 100%;
  height: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #cfe2ff;
  font-size: 0.88rem;
  margin-bottom: 18px;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-points {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: #d6e8ff;
  font-size: 0.95rem;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: inline-block;
  position: relative;
  flex: 0 0 18px;
}

.hero-points i::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 4px;
  height: 8px;
  border: solid #06111d;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* PRODUCT CARD */
.product-card {
  position: relative;
  border-radius: 28px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: var(--shadow);
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.product-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(89,199,255,0.24), transparent 70%);
  top: -60px;
  right: -70px;
}

.product-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.product-card-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 58px;
}

.product-card-label {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.product-card-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.dashboard {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.dash-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.dash-top > * { min-width: 0; }

.stat,
.panel {
  background: rgba(8, 14, 24, 0.72);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 16px;
  overflow: hidden;
}

.stat-label {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.dash-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 12px;
}
.dash-main > * { min-width: 0; }

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-weight: 700;
}

.badge {
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 999px;
  color: #b8f6df;
  background: rgba(101,240,196,0.1);
  border: 1px solid rgba(101,240,196,0.18);
}

.list {
  display: grid;
  gap: 10px;
}

.item {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  overflow: hidden;
}

.item p { margin: 0; }
.item small { color: var(--muted); }

.pill {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}

.critical { color: #ffd5d5; background: rgba(255, 102, 102, 0.14); }
.high { color: #ffe6b3; background: rgba(255, 181, 71, 0.12); }
.good { color: #bff5db; background: rgba(88, 223, 160, 0.12); }

.bars { display: grid; gap: 14px; }
.bar-row { display: grid; gap: 7px; }

.bar-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.9rem;
  color: #d9e7fb;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

/* PARENT SECTION */
.parent-strip { padding: 10px 0 24px; }

.parent-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 22px;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
  overflow: hidden;
}
.parent-card > * { min-width: 0; }

.parent-kicker {
  color: var(--brand-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.parent-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}

.parent-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1rem;
}

.text-link {
  font-weight: 700;
  color: #dff7ff;
}

.parent-logo-wrap {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.18);
  overflow: hidden;
}

.parent-logo {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  height: auto;
}

/* GENERAL SECTIONS */
section { padding: 42px 0; }

.section-head {
  max-width: 720px;
  margin-bottom: 26px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.feature-grid,
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature-grid > *,
.proof-grid > * { min-width: 0; }

.feature,
.proof {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
  overflow: hidden;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(89,199,255,0.22), rgba(101,240,196,0.22));
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.feature h3,
.proof strong {
  margin: 0 0 10px;
  font-size: 1.12rem;
  display: block;
}

.feature p,
.proof p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.band {
  padding: 26px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(89,199,255,0.1), rgba(101,240,196,0.08));
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  overflow: hidden;
}

.band h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.band p {
  margin: 0;
  color: var(--muted);
  max-width: 64ch;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: start;
}
.contact-grid > * { min-width: 0; }

.contact-card,
form {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
  overflow: hidden;
}

.card-title {
  margin-top: 0;
  font-size: 1.5rem;
}

.contact-card p,
.contact-card li,
.form-note {
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 18px 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  flex: 0 0 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-grid > * { min-width: 0; }

.field,
.field-full {
  display: grid;
  gap: 8px;
}

.field-full { grid-column: 1 / -1; }

label {
  font-size: 0.92rem;
  color: #dbe8fb;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(6, 10, 18, 0.75);
  color: var(--text);
  padding: 14px 14px;
  font: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

select {
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.7) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.7) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: rgba(89, 199, 255, 0.6); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
}

.success,
.error {
  display: none;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid;
}

.success {
  background: rgba(88, 223, 160, 0.12);
  border-color: rgba(88, 223, 160, 0.2);
  color: #d7ffea;
}

.error {
  background: rgba(255, 107, 107, 0.12);
  border-color: rgba(255, 107, 107, 0.2);
  color: #ffdede;
}

.visible { display: block; }

code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

/* FOOTER */
footer {
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
}

.footer-dgs-logo {
  width: 280px;
  max-width: 100%;
  height: auto;
}

.footer-copy {
  text-align: right;
}

/* Fallback when blur isn't supported */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .nav {
    background: rgba(8, 12, 22, 0.96);
  }
}

/* Safari-specific header lock */
@supports (-webkit-touch-callout: none) {
  .brand {
    width: 220px !important;
    max-width: 220px !important;
    flex: 0 0 220px !important;
    min-width: 220px !important;
  }

  .brand-logo {
    width: 220px !important;
    max-width: 220px !important;
    height: auto !important;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .nav-inner {
    min-height: auto;
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 0;
  }

  .brand {
    width: 220px !important;
    max-width: 220px !important;
    flex: 0 0 220px !important;
    min-width: 220px !important;
  }

  .nav-links {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }

  .hero-grid,
  .parent-card,
  .contact-grid,
  .dash-main,
  .feature-grid,
  .proof-grid,
  .band {
    grid-template-columns: 1fr;
  }

  .dash-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .parent-logo {
    margin: 0 auto;
  }

  .footer-copy {
    text-align: left;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .wrap { width: min(var(--max), calc(100% - 24px)); }

  .nav-links { display: none; }

  .brand {
    width: 170px !important;
    max-width: 170px !important;
    flex: 0 0 170px !important;
    min-width: 170px !important;
  }

  .brand-logo {
    width: 170px !important;
    max-width: 170px !important;
    height: auto !important;
  }

  .hero { padding-top: 38px; }
  .hero-logo { max-width: 320px; }
  .dash-top,
  .form-grid { grid-template-columns: 1fr; }

  h1 { font-size: 2.55rem; }

  .hero-actions,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .item {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-card,
  .parent-card,
  .contact-card,
  form {
    padding: 20px;
  }
}
