:root {
  --blue: #1A7FC1;
  --blue-bright: #29A8E0;
  --blue-dim: #0D4A72;
  --blue-glow: rgba(26, 127, 193, 0.18);
  --dark: #080C10;
  --dark2: #0E1418;
  --dark3: #131B22;
  --dark4: #1A2430;
  --mid: #243040;
  --line: rgba(26, 127, 193, 0.22);
  --white: #FFFFFF;
  --off-white: #cfddeb;
  --muted: #b0c2d1;
  --accent: #29A8E0;
  --warn: #E07820;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: #eee;
}

body {
  background: var(--dark);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ── PAGE LAYOUT ── */
.page {
  width: 252mm;
  min-height: 297mm;
  margin: 0 auto 4mm;
  position: relative;
  overflow: hidden;
  background: var(--dark2);
  page-break-after: always;
  /*border: 1px solid white;*/
}

/* ── GRID TEXTURE ── */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 127, 193, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 127, 193, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.circuit-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26, 127, 193, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ── COVER ── */
.cover {
  background: var(--dark);
  display: flex;
  flex-direction: column;
  min-height: 297mm;
}

.cover-top-bar {
  background: var(--blue);
  height: 5px;
  width: 100%;
}

.cover-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14mm 16mm;
  position: relative;
  z-index: 2;
}

.cover-logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1;
}

.cover-logo span {
  color: var(--blue);
}

.cover-tagline-small {
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 6px;
}

.cover-divider {
  width: 60px;
  height: 2px;
  background: var(--blue);
  margin: 24mm 0 8mm;
}

.cover-main-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 68px;
  font-weight: 700;
  line-height: 0.9;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -1px;
}

.cover-main-title .highlight {
  color: var(--blue-bright);
}

.cover-sub {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--off-white);
  margin-top: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cover-descriptor {
  margin-top: 14mm;
  max-width: 120mm;
  font-size: 16px;
  line-height: 1.75;
  color: var(--off-white);
  font-weight: 300;
}

.cover-descriptor strong {
  color: var(--white);
  font-weight: 500;
}

/* Cover visual element */
.cover-arch-visual {
  position: absolute;
  right: -10mm;
  top: 40mm;
  bottom: 30mm;
  width: 80mm;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  opacity: 0.9;
}

.arch-node {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.arch-box {
  width: 44mm;
  border: 1px solid var(--blue);
  background: rgba(26, 127, 193, 0.08);
  padding: 7px 10px;
  margin-top: 5px;
  text-align: center;
  position: relative;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.arch-box-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  color: var(--blue-bright);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
}

.arch-box-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  display: block;
  line-height: 1.1;
  margin-top: 2px;
}

.arch-connector {
  width: 2px;
  height: 14px;
  background: linear-gradient(var(--blue), var(--blue-bright));
  position: relative;
  margin: 0 auto;
  left: -1mm;
}

.arch-connector::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: -4px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--blue-bright);
}

.arch-lock {
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-icon {
  font-size: 11px;
  color: var(--blue-bright);
}

/* encryption badge */
.enc-badge {
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  color: var(--blue-bright);
  background: rgba(26, 127, 193, 0.15);
  border: 1px solid rgba(26, 127, 193, 0.3);
  padding: 2px 6px;
  margin: 3px auto 0;
  display: inline-block;
  letter-spacing: 1px;
}

.cover-bottom {
  padding: 0 16mm 12mm;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.cover-bottom-line {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 2px;
}

.cover-tag {
  background: var(--blue);
  padding: 6px 14px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

/* ── SECTION PAGES ── */
.section-page {
  min-height: 297mm;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.page-header {
  background: var(--dark3);
  border-bottom: 1px solid var(--line);
  padding: 10mm 16mm 8mm;
  position: relative;
  z-index: 2;
}

.page-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.page-logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
}

.page-logo span {
  color: var(--blue);
}

.page-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.section-title-bar {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.section-number {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  color: var(--blue-bright);
  letter-spacing: 2px;
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0px;
  line-height: 1;
}

.section-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--blue-bright);
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

.page-body {
  flex: 1;
  padding: 8mm 16mm 10mm;
  position: relative;
  z-index: 2;
}

/* ── INTRO PAGE ── */
.intro-opening {
  font-family: 'Rajdhani', sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 8mm;
  padding-bottom: 8mm;
  border-bottom: 1px solid var(--line);
}

.intro-opening .blue-word {
  color: var(--blue-bright);
}

.body-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--off-white);
  font-weight: 300;
  margin-bottom: 5mm;
}

.body-text strong {
  color: var(--white);
  font-weight: 500;
}

/* Security callout */
.security-callout {
  background: linear-gradient(135deg, rgba(26, 127, 193, 0.12), rgba(26, 127, 193, 0.04));
  border: 1px solid rgba(26, 127, 193, 0.3);
  border-left: 3px solid var(--blue);
  padding: 6mm 8mm;
  margin: 6mm 0;
  position: relative;
}

.security-callout::before {
  content: 'SECURITY POSITION';
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  color: var(--blue-bright);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 4px;
}

.security-callout p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--off-white);
  font-style: italic;
  font-weight: 300;
}

.security-callout strong {
  color: var(--white);
  font-weight: 500;
  font-style: normal;
}

/* Security stack grid */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4mm;
  margin: 6mm 0;
}

.sec-item {
  background: var(--dark3);
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  padding: 5mm 4mm;
}

.sec-item-icon {
  font-size: 18px;
  margin-bottom: 3px;
  display: block;
}

.sec-item-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  color: var(--blue-bright);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.sec-item-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  display: block;
  margin-bottom: 3px;
  line-height: 1.1;
}

.sec-item-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 300;
}

/* ── ARCHITECTURE PAGE ── */
.arch-diagram {
  margin: 0;
  background: var(--dark3);
  border: 1px solid var(--line);
  padding: 8mm;
  position: relative;
}

.arch-diagram-title {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6mm;
  text-align: center;
}

.arch-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.arch-row {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  justify-content: center;
}

.arch-block {
  background: var(--dark4);
  border: 1px solid var(--blue-dim);
  padding: 6px 12px;
  text-align: center;
  min-width: 38mm;
  max-width: 42mm;
  position: relative;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

.arch-block.asset {
  border-color: rgba(100, 150, 180, 0.4);
  background: rgba(15, 25, 35, 0.8);
}

.arch-block.highlight {
  border-color: var(--blue);
  background: rgba(26, 127, 193, 0.1);
}

.arch-block.cloud {
  border-color: rgba(41, 168, 224, 0.5);
  background: rgba(26, 127, 193, 0.08);
}

.arch-block-type {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  color: var(--blue-bright);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
}

.arch-block-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  display: block;
  line-height: 1.1;
}

.arch-block-detail {
  font-size: 14px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.arch-arrow-v {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 14mm;
  position: relative;
  left: -2mm;
}

.arch-arrow-line {
  width: 1.5px;
  flex: 1;
  background: linear-gradient(var(--blue-dim), var(--blue));
}

.arch-arrow-head {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--blue);
}

.arch-enc-label {
  position: absolute;
  left: 8mm;
  font-family: 'Roboto Mono', monospace;
  font-size: 7.5px;
  color: var(--blue-bright);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--dark3);
  padding: 2px 6px;
  border: 1px solid rgba(26, 127, 193, 0.2);
}

.arch-enc-label::before {
  content: '🔒';
  font-size: 8px;
}

/* side by side assets */
.arch-multi-assets {
  display: flex;
  gap: 4mm;
  justify-content: center;
  width: 100%;
}

.arch-multi-assets .arch-block {
  min-width: 28mm;
}

.arch-merge-arrow {
  display: flex;
  align-items: center;
  gap: 0;
  height: 10mm;
  justify-content: center;
  width: 100%;
  position: relative;
}

/* spec tables */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 4mm 0;
  font-size: 13px;
}

.spec-table th {
  background: var(--blue);
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 10px;
  text-align: left;
}

.spec-table td {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(26, 127, 193, 0.1);
  vertical-align: top;
  color: var(--off-white);
}

.spec-table tr:nth-child(odd) td {
  background: rgba(26, 127, 193, 0.04);
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table .spec-key {
  font-family: 'Roboto Mono', monospace;
  font-size: 13px;
  color: var(--blue-bright);
  width: 36mm;
  letter-spacing: 0.5px;
}

/* module header */
.module-header {
  display: flex;
  gap: 6mm;
  margin-bottom: 5mm;
  padding-bottom: 5mm;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.module-badge {
  min-width: 24mm;
  background: linear-gradient(135deg, var(--blue-dim), var(--dark4));
  border: 1px solid var(--blue);
  padding: 5mm 5mm;
  text-align: center;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.module-badge-code {
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  color: var(--blue-bright);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.module-badge-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  display: block;
  margin: 2px 0;
}

.module-badge-type {
  font-size: 12px;
  color: var(--muted);
  display: block;
  font-weight: 300;
  line-height: 1.3;
}

.module-intro-text {
  flex: 1;
}

.module-intro-text h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.module-intro-text p {
  font-size: 16px;
  color: var(--off-white);
  line-height: 1.7;
  font-weight: 300;
}

/* two col layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5mm;
}

.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4mm;
}

/* feature box */
.feature-box {
  background: var(--dark3);
  border: 1px solid var(--line);
  padding: 4mm;
}

.feature-box-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-bright);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-box-title::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--blue-bright);
  display: inline-block;
  flex-shrink: 0;
}

.feature-box p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}

/* protocol tags */
.protocol-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 3mm 0;
}

.protocol-tag {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  color: var(--blue-bright);
  background: rgba(26, 127, 193, 0.1);
  border: 1px solid rgba(26, 127, 193, 0.25);
  padding: 2px 7px;
  letter-spacing: 0.5px;
}

/* security tier */
.security-tier {
  background: var(--dark3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  padding: 4mm 5mm;
  margin-bottom: 3mm;
  display: flex;
  gap: 4mm;
  align-items: flex-start;
}

.sec-tier-num {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
  min-width: 10mm;
  opacity: 0.5;
}

.sec-tier-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  color: var(--blue-bright);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.sec-tier-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 3px;
}

.sec-tier-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}

/* footer */
.page-footer {
  background: var(--dark);
  border-top: 1px solid var(--line);
  padding: 5mm 16mm;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.footer-left {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1.5px;
}

.footer-right {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  text-align: right;
}

.footer-right a {
  color: var(--muted);
  text-decoration: none;
}

/* blue highlight text */
.text-blue {
  color: var(--blue-bright);
}

.text-muted {
  color: var(--muted);
}

/* horizontal rule */
.h-rule {
  height: 1px;
  background: var(--line);
  margin: 5mm 0;
}

/* contact page */
.contact-page {
  background: var(--dark);
  min-height: 297mm;
  display: flex;
  flex-direction: column;
}

.contact-content {
  flex: 1;
  padding: 20mm 16mm;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.contact-heading {
  font-family: 'Rajdhani', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 8mm;
}

.contact-heading span {
  color: var(--blue-bright);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5mm;
  margin-bottom: 10mm;
}

.contact-item {
  background: var(--dark3);
  border: 1px solid var(--line);
  border-top: 2px solid var(--blue);
  padding: 5mm;
}

.contact-item-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  color: var(--blue-bright);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-item-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

.final-strapline {
  font-family: 'Rajdhani', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--blue-bright);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-top: 1px solid var(--line);
  padding-top: 8mm;
  margin-top: 8mm;
}

.final-sub {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  margin-top: 4px;
}

/* summary list */
.summary-list {
  list-style: none;
  margin: 4mm 0;
}

.summary-list li {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--off-white);
  margin-bottom: 4px;
  font-weight: 300;
  line-height: 1.5;
}

.summary-list li::before {
  content: '→';
  color: var(--blue-bright);
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 2px;
}

@media print {
  body {
    background: var(--dark);
  }

  .page {
    margin: 0;
    page-break-after: always;
  }
}

.dbr-logo {
  width: 90px;
  height: 50px;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("/bitmap/logo.png");
}

.dbr-logo.small {
  width: 55px;
}