/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.dg-body {
  margin: 0; padding: 0;
  background: #08080a;
  color: #f4f4f5;
  font-family: 'Archivo', system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
input::placeholder, textarea::placeholder { color: #5f5f67; }
a { transition: color .15s ease, border-color .15s ease; }
img { max-width: 100%; }

/* ── Animations ── */
@keyframes dgPulse {
  0%,100% { transform: scale(1); opacity: .85; box-shadow: 0 0 50px 6px rgba(230,17,27,.45); }
  50%      { transform: scale(1.05); opacity: 1; box-shadow: 0 0 80px 14px rgba(230,17,27,.7); }
}
@keyframes dgFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}
@keyframes dgBlink {
  0%,100% { opacity: 1; }
  50%      { opacity: .35; }
}
@keyframes dgSpin    { to { transform: rotate(360deg); } }
@keyframes dgSpinRev { to { transform: rotate(-360deg); } }
@keyframes dgBreath {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.045); }
}

/* ── Nav ── */
.dg-nav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(8,8,10,.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230,17,27,.35);
}
.dg-nav__inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 24px; gap: 18px;
}
.dg-nav__brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none; flex: none;
}
.dg-nav__logo {
  height: 42px; width: auto; display: block;
  filter: drop-shadow(0 0 10px rgba(230,17,27,.35));
}
.dg-nav__title {
  font-weight: 900; font-size: 17px; letter-spacing: .5px;
  color: #fff; line-height: 1.05;
}
.dg-nav__title span { color: #e6111b; }
.dg-nav__sub {
  font-family: 'JetBrains Mono', monospace; font-size: 9.5px;
  letter-spacing: 1.5px; text-transform: uppercase; color: #8a8a92; margin-top: 2px;
}
.dg-nav__links {
  display: flex; align-items: center; gap: 20px;
  flex-wrap: wrap; justify-content: flex-end;
}
.dg-nav-link {
  position: relative; text-decoration: none; color: #f4f4f5;
  font-weight: 600; font-size: 15px; padding: 6px 1px;
}
.dg-nav-link:hover { color: #ff2a32; }
.dg-nav-link--active { color: #fff; }
.dg-nav-link--active::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 2px; background: #e6111b;
  box-shadow: 0 0 9px rgba(230,17,27,.85); border-radius: 2px;
}
.dg-nav__cta {
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none; background: #e6111b; color: #fff !important;
  font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 9px;
  box-shadow: 0 0 18px rgba(230,17,27,.45);
}
.dg-nav__cta:hover { background: #ff2a32 !important; }
.dg-nav__cta i { width: 16px; height: 16px; }

/* ── Download Brochure button (outline style) ── */
.dg-nav__brochure {
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none; color: #fff !important;
  font-weight: 700; font-size: 14px; padding: 9px 16px; border-radius: 9px;
  border: 1px solid rgba(230,17,27,.5); background: rgba(230,17,27,.08);
  transition: background .15s, border-color .15s;
}
.dg-nav__brochure:hover { background: rgba(230,17,27,.18); border-color: #e6111b; }
.dg-nav__brochure i { width: 16px; height: 16px; }

/* ── Page header (sub-pages) ── */
.dg-page-header {
  position: relative; overflow: hidden;
  border-bottom: 1px solid rgba(230,17,27,.22);
}
.dg-page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(230,17,27,.18), transparent 45%);
}
.dg-page-header::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(230,17,27,.12) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
}
.dg-page-header__inner {
  position: relative; z-index: 1;
  max-width: 1240px; margin: 0 auto; padding: 64px 24px 56px;
}
.dg-eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  letter-spacing: 3px; text-transform: uppercase; color: #e6111b; margin-bottom: 14px;
}
.dg-h1 {
  font-weight: 900; font-size: 56px; line-height: 1;
  letter-spacing: -1px; margin: 0 0 16px; color: #fff;
}
.dg-h1 .red { color: #e6111b; }
.dg-page-sub {
  font-size: 18px; color: #9a9aa2; line-height: 1.55;
  max-width: 660px; margin: 0;
}

/* ── Container ── */
.dg-container { max-width: 1240px; margin: 0 auto; }

/* ── Section cards (shared card style) ── */
.dg-card {
  background: linear-gradient(180deg, #141416, #0e0e10);
  border: 1px solid rgba(230,17,27,.26); border-radius: 15px; padding: 22px;
}
.dg-card--border-white {
  border-color: rgba(255,255,255,.08);
}

/* ── Ribbon header ── */
.dg-ribbon {
  display: inline-flex; align-items: center; gap: 11px;
  background: linear-gradient(90deg, #b00b12, #e6111b);
  clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  padding: 11px 30px 11px 18px; margin-bottom: 26px;
}

/* ── Button (red CTA) ── */
.dg-btn-red {
  display: inline-flex; align-items: center; gap: 9px;
  background: #e6111b; color: #fff !important; font-weight: 700;
  font-size: 15.5px; padding: 14px 26px; border-radius: 11px;
  border: none; cursor: pointer; font-family: 'Archivo', sans-serif;
  box-shadow: 0 0 22px rgba(230,17,27,.4); text-decoration: none;
  transition: background .15s;
}
.dg-btn-red:hover { background: #ff2a32 !important; }

/* ── Footer ── */
.dg-footer {
  position: relative; background: #0a0a0c;
  border-top: 1px solid rgba(230,17,27,.4); overflow: hidden;
  color: #cfcfd4;
}
.dg-footer__dotbg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(230,17,27,.12) 1px, transparent 1px);
  background-size: 24px 24px; opacity: .4;
}
.dg-footer__grid {
  position: relative; max-width: 1240px; margin: 0 auto;
  padding: 56px 24px 26px;
  display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; gap: 40px;
  font-family: 'Archivo', system-ui, sans-serif;
}
.dg-footer__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.dg-footer__logo { height: 46px; width: auto; filter: drop-shadow(0 0 10px rgba(230,17,27,.35)); }
.dg-footer__wordmark { font-weight: 900; font-size: 18px; letter-spacing: .5px; color: #fff; }
.dg-footer__wordmark span { color: #e6111b; }
.dg-footer__worksub {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 1.5px; text-transform: uppercase; color: #8a8a92; margin-top: 2px;
}
.dg-footer__desc { font-size: 14px; line-height: 1.6; color: #9a9aa2; max-width: 320px; margin: 0 0 18px; }
.dg-footer__social { display: flex; align-items: center; gap: 12px; }
.dg-footer__social-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.14); border-radius: 9px;
  color: #cfcfd4; text-decoration: none; transition: border-color .15s, color .15s;
}
.dg-footer__social-btn:hover { border-color: #e6111b; color: #fff; }
.dg-footer__social-btn--f { font-weight: 900; font-size: 18px; }
.dg-footer__social-handle { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: #9a9aa2; }
.dg-footer__col-title {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase; color: #e6111b; margin-bottom: 16px;
}
.dg-footer__links { display: flex; flex-direction: column; gap: 11px; }
.dg-footer__link { text-decoration: none; color: #cfcfd4; font-size: 14.5px; transition: color .15s; }
.dg-footer__link:hover { color: #fff; }
.dg-footer__contact { display: flex; flex-direction: column; gap: 13px; font-size: 14px; }
.dg-footer__contact-item { display: flex; align-items: flex-start; gap: 10px; }
.dg-footer__contact-link { color: #cfcfd4; text-decoration: none; transition: color .15s; }
.dg-footer__contact-link:hover { color: #fff; }
.dg-footer__alert-card {
  background: linear-gradient(135deg, #1a0608, #11070a);
  border: 1px solid rgba(230,17,27,.45); border-radius: 13px; padding: 20px;
  box-shadow: 0 0 26px rgba(230,17,27,.18);
}
.dg-footer__alert-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.dg-footer__alert-title { font-weight: 900; font-size: 17px; color: #fff; letter-spacing: .5px; }
.dg-footer__alert-sub { font-weight: 900; font-size: 17px; color: #e6111b; letter-spacing: .5px; margin-bottom: 14px; }
.dg-footer__cta {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  background: #e6111b; color: #fff; font-weight: 700; font-size: 13.5px;
  padding: 9px 15px; border-radius: 8px; transition: background .15s;
}
.dg-footer__cta:hover { background: #ff2a32; }
.dg-footer__bottom { position: relative; border-top: 1px solid rgba(255,255,255,.08); }
.dg-footer__bottom-inner {
  max-width: 1240px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.dg-footer__copy { font-size: 12.5px; color: #7d7d85; }
.dg-footer__copy strong { color: #cfcfd4; font-weight: 400; }
.dg-footer__amal { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #7d7d85; }
.dg-footer__amal-mark {
  width: 18px; height: 20px; flex: none; display: grid; place-items: center;
  background: linear-gradient(180deg, #e6111b, #860a0f);
  clip-path: polygon(50% 0, 100% 30%, 100% 70%, 50% 100%, 0 70%, 0 30%);
}
.dg-footer__amal-mark span { color: #fff; font-size: 8px; font-weight: 900; }
.dg-footer__amal strong { color: #cfcfd4; font-weight: 400; }

/* ── Lucide icon sizing helpers (applied from JS) ── */
.dg-nav__cta [data-lucide] { width: 16px !important; height: 16px !important; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE — Grid helpers + breakpoints
══════════════════════════════════════════════════════ */

/* Layout grid classes (replace inline display:grid on each template) */
.dg-g2            { display:grid; gap:20px; grid-template-columns:repeat(2,1fr); }
.dg-g3            { display:grid; gap:20px; grid-template-columns:repeat(3,1fr); }
.dg-g4            { display:grid; gap:20px; grid-template-columns:repeat(4,1fr); }
.dg-g5            { display:grid; gap:16px; grid-template-columns:repeat(5,1fr); }
.dg-g-hero        { display:grid; gap:40px; grid-template-columns:1.15fr .85fr; align-items:center; }
.dg-g-channels    { display:grid; gap:20px; grid-template-columns:1.4fr 1fr; }
.dg-g-flags       { display:grid; gap:14px 30px; grid-template-columns:repeat(2,1fr); }
.dg-g-pw          { display:grid; gap:40px; grid-template-columns:1fr 1fr; align-items:start; }
.dg-g-report-form { display:grid; gap:40px; grid-template-columns:.85fr 1.15fr; }

/* Hero h1 — class so media query can scale it */
.dg-hero-h1 {
  font-weight:900; font-size:78px; line-height:.94;
  letter-spacing:-1.5px; margin:0 0 22px; color:#fff;
}
.dg-hero-h1 span { display:block; }

/* Hamburger toggle */
.dg-nav__toggle {
  display:none;
  flex-direction:column; justify-content:center; gap:5px;
  background:none; border:1px solid rgba(255,255,255,.2); border-radius:8px;
  cursor:pointer; padding:7px 9px; width:38px; height:38px; flex:none;
}
.dg-nav__toggle span {
  display:block; height:2px; background:#f4f4f5;
  border-radius:2px; transition:transform .22s, opacity .22s;
}
.dg-nav__toggle--open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.dg-nav__toggle--open span:nth-child(2) { opacity:0; }
.dg-nav__toggle--open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* ── Tablet ≤1024px ── */
@media (max-width:1024px) {
  .dg-g3      { grid-template-columns:repeat(2,1fr) !important; }
  .dg-g4      { grid-template-columns:repeat(2,1fr) !important; }
  .dg-g5      { grid-template-columns:repeat(3,1fr) !important; }
  .dg-hero-h1 { font-size:56px !important; }
  .dg-h1      { font-size:44px !important; }
  .dg-g-hero  { gap:28px !important; }

  /* Nav — hamburger (collapses here so the two buttons never overcrowd) */
  .dg-nav__toggle  { display:flex; }
  .dg-nav__inner   { flex-wrap:wrap; }
  .dg-nav__links {
    display:none; width:100%;
    flex-direction:column; align-items:stretch; gap:0;
    border-top:1px solid rgba(255,255,255,.07);
    padding:6px 0 14px; margin-top:8px;
  }
  .dg-nav__links--open { display:flex; }
  .dg-nav-link {
    padding:12px 6px; font-size:16px;
    border-bottom:1px solid rgba(255,255,255,.05);
  }
  .dg-nav-link--active::after { bottom:0; }
  .dg-nav__brochure { margin-top:12px; justify-content:center; padding:13px 16px; }
  .dg-nav__cta { margin-top:10px; justify-content:center; padding:13px 16px; }
}

/* ── Mobile ≤768px ── */
@media (max-width:768px) {

  /* All grids → collapse */
  .dg-g2            { grid-template-columns:1fr !important; }
  .dg-g3            { grid-template-columns:1fr !important; }
  .dg-g4            { grid-template-columns:repeat(2,1fr) !important; gap:12px !important; }
  .dg-g5            { grid-template-columns:repeat(2,1fr) !important; gap:12px !important; }
  .dg-g-hero        { grid-template-columns:1fr !important; }
  .dg-g-channels    { grid-template-columns:1fr !important; }
  .dg-g-flags       { grid-template-columns:1fr !important; }
  .dg-g-pw          { grid-template-columns:1fr !important; }
  .dg-g-report-form { grid-template-columns:1fr !important; }

  /* Hero */
  .dg-hero-h1   { font-size:44px !important; letter-spacing:-1px; }
  .dg-hero-radar { display:none !important; }

  /* Typography */
  .dg-h1           { font-size:34px !important; letter-spacing:-.5px; }
  .dg-page-sub     { font-size:15px; }
  .dg-page-header__inner { padding:40px 20px 32px; }

  /* Scale down all large section headings (beats inline font-size) */
  .dg-body h2 { font-size:26px !important; line-height:1.25 !important; }
  .dg-body h3 { font-size:20px !important; line-height:1.3 !important; }

  /* Overflow safety — nothing pushes the page wider than the screen */
  .dg-body img,
  .dg-body canvas,
  .dg-body svg,
  .dg-body iframe,
  .dg-body table { max-width:100% !important; }

  /* Shrink horizontal padding on all inline-padded containers */
  [style*="max-width:1240px"],
  [style*="max-width:900px"] {
    padding-left:16px !important;
    padding-right:16px !important;
  }

  /* Trim oversized hero / card vertical padding */
  .dg-g-hero { padding-top:48px !important; padding-bottom:52px !important; }
  [style*="padding:46px"]    { padding-top:30px !important; padding-bottom:30px !important; }
  [style*="padding:46px 44px"]{ padding-top:30px !important; padding-bottom:30px !important; }

  /* Card sections — reduce inner padding so form/checker fit */
  .dg-g-report-form { padding:22px !important; }
  .dg-g-pw          { padding:22px !important; }

  /* Footer */
  .dg-footer__grid {
    grid-template-columns:1fr 1fr !important; gap:28px; padding:36px 16px 26px;
  }
}

/* ── Small mobile ≤480px ── */
@media (max-width:480px) {
  .dg-g4        { grid-template-columns:1fr !important; }
  .dg-g5        { grid-template-columns:1fr !important; }
  .dg-hero-h1   { font-size:36px !important; }
  .dg-h1        { font-size:28px !important; }
  .dg-footer__grid { grid-template-columns:1fr !important; }
  .dg-nav__logo { height:34px; }
  .dg-nav__title { font-size:15px; }

  /* Tighter padding inside form card on small screens */
  .dg-g-report-form { padding:16px !important; }
  .dg-g-pw          { padding:16px !important; }

  /* Scale reCAPTCHA widget to fit narrow screens */
  .g-recaptcha {
    transform: scale(0.82);
    transform-origin: 0 0;
    margin-bottom: -10px;
  }
}
