*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f0f4f8;
  --surface: #ffffff;
  --navy: #0d1f3c;
  --navy-mid: #1a3558;
  --blue: #1d6fa4;
  --blue-light: #3b9eda;
  --accent: #e8a020;
  --muted: #6b7f96;
  --ink: #0d1f3c;
  --warm-line: #c8d8e8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  overflow-x: hidden;
}

.hero {
  background: #fff !important;
  position: relative;
  overflow: hidden;
  padding: 5.5rem 3rem 5rem;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(61, 158, 218, 0.15);
  animation: pulse-ring 4s ease-out infinite;
}
.hero::before {
  width: 600px;
  height: 600px;
  right: -180px;
  top: -200px;
  animation-delay: 0s;
}
.hero::after {
  width: 900px;
  height: 900px;
  right: -330px;
  top: -350px;
  animation-delay: 1.2s;
}
.ring3 {
  position: absolute;
  width: 1200px;
  height: 1200px;
  right: -480px;
  top: -500px;
  border-radius: 50%;
  border: 1px solid rgba(61, 158, 218, 0.08);
  animation: pulse-ring 4s ease-out infinite;
  animation-delay: 2.4s;
}
@keyframes pulse-ring {
  0% {
    opacity: 0.8;
    transform: scale(0.95);
  }
  100% {
    opacity: 0;
    transform: scale(1.05);
  }
}
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-light);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
  animation: fadeUp 0.6s ease both;
}
.hero-eyebrow::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--blue-light);
}
.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.08;
  /* color: #e8f0fb; max-width: 100%; */
  color: #0a0f1e;
  max-width: 100%;
  margin-bottom: 1.6rem;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  max-width: 100%;
  font-size: 1.08rem;
  font-weight: 300;
  color: #7fa8cc;
  line-height: 1.7;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-meta {
  margin-top: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.82rem;
  color: #4a6f96;
  animation: fadeUp 0.6s 0.3s ease both;
}
.hero-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #4a6f96;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.broadcast-vis {
  background: var(--navy-mid);
  border-top: 1px solid #1e3a60;
  border-bottom: 3px solid var(--blue);
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  overflow-x: auto;
}
.vis-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-light);
  white-space: normal;
}
.vis-diagram {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}
.source-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.db-cyl {
  position: relative;
  width: 44px;
  height: 48px;
}
.db-cyl .cyl-top {
  width: 44px;
  height: 12px;
  background: linear-gradient(180deg, #3b9eda, #1d6fa4);
  border-radius: 50%;
  position: absolute;
  top: 0;
}
.db-cyl .cyl-body {
  width: 44px;
  height: 30px;
  background: linear-gradient(180deg, #1d6fa4, #0d4f7e);
  position: absolute;
  top: 6px;
}
.db-cyl .cyl-btm {
  width: 44px;
  height: 12px;
  background: linear-gradient(180deg, #0d4f7e, #0a3a60);
  border-radius: 0 0 6px 6px;
  position: absolute;
  bottom: 0;
}
.db-cyl.small .cyl-top {
  width: 34px;
  height: 10px;
  background: linear-gradient(180deg, #7fc0e0, #5090b0);
}
.db-cyl.small .cyl-body {
  width: 34px;
  height: 24px;
  background: linear-gradient(180deg, #5090b0, #3070a0);
}
.db-cyl.small .cyl-btm {
  width: 34px;
  height: 10px;
  background: linear-gradient(180deg, #3070a0, #204060);
}
.node-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.fan-arrows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}
.fan-arrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue-light);
  font-size: 0.85rem;
  animation: slide-right 2s ease-in-out infinite;
}
.fan-arrow:nth-child(2) {
  animation-delay: 0.3s;
}
.fan-arrow:nth-child(3) {
  animation-delay: 0.6s;
}
.fan-arrow:nth-child(4) {
  animation-delay: 0.9s;
}
@keyframes slide-right {
  0%,
  100% {
    opacity: 0.4;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(4px);
  }
}
.fan-arrow .line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
}
.targets {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.target-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 4rem;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}
article {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

article h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2.8rem 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
article h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 28px;
  background: var(--blue);
  border-radius: 3px;
  flex-shrink: 0;
}
article h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2rem 0 0.5rem;
}
article p {
  margin-bottom: 1.2rem;
  color: #2c3e55;
  font-size: 1rem;
}

.lead {
  font-size: 1.18rem !important;
  font-weight: 300;
  color: #1d3a5a !important;
  line-height: 1.85;
  border-left: 4px solid var(--blue);
  padding-left: 1.3rem;
  margin-bottom: 2rem !important;
  background: linear-gradient(90deg, rgba(29, 111, 164, 0.05), transparent);
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  border-radius: 0 4px 4px 0;
}

.callout {
  margin: 2rem 0;
  border-radius: 6px;
  padding: 1.3rem 1.5rem;
}
.callout-info {
  background: #eef5fc;
  border: 1px solid #b8d4ed;
  border-left: 4px solid var(--blue);
}
.callout-warning {
  background: #fff8ec;
  border: 1px solid #f0d898;
  border-left: 4px solid var(--accent);
}
.callout-success {
  background: #edfaf3;
  border: 1px solid #a8dfc0;
  border-left: 4px solid #27ae60;
}
.callout-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.callout-info .callout-title {
  color: var(--blue);
}
.callout-warning .callout-title {
  color: #c07800;
}
.callout-success .callout-title {
  color: #27ae60;
}
.callout p {
  margin: 0 !important;
  font-size: 0.93rem !important;
  color: #2c3e55 !important;
}

.pull-quote {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.45;
  background: var(--surface);
  border-left: 5px solid var(--accent);
  padding: 1.5rem 1.8rem;
  margin: 2.5rem 0;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 4px 20px rgba(13, 31, 60, 0.07);
}

.steps {
  margin: 1.5rem 0 2rem;
}
.step {
  display: flex;
  gap: 1.3rem;
  margin-bottom: 1.8rem;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--navy);
  color: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid var(--blue);
}
.step-body h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.step-body p {
  font-size: 0.93rem !important;
  margin: 0 !important;
  color: var(--muted) !important;
}

.uc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 1.5rem 0 2rem;
}
.uc-card {
  background: var(--surface);
  border: 1px solid var(--warm-line);
  border-radius: 8px;
  padding: 1.3rem 1.4rem;
  border-top: 3px solid var(--blue);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.uc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(13, 31, 60, 0.1);
}
.uc-card .icon {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}
.uc-card h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.uc-card p {
  font-size: 0.88rem !important;
  color: var(--muted) !important;
  margin: 0 !important;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.91rem;
  margin: 1.2rem 0 2rem;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(13, 31, 60, 0.06);
}
.data-table th {
  background: var(--navy);
  color: #b8d4ed;
  padding: 0.7rem 1rem;
  text-align: left;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 0.95rem;
}
.data-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #e0eaf4;
  vertical-align: top;
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr:nth-child(even) td {
  background: #f5f9fd;
}
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
}
.badge-green {
  background: #d4f5e3;
  color: #1a7a40;
}
.badge-blue {
  background: #d4e8f8;
  color: #1a5a8a;
}
.badge-orange {
  background: #fdecd2;
  color: #a05010;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0 2rem;
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(13, 31, 60, 0.06);
}
.compare-table th {
  padding: 0.65rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #eef4fa;
  color: var(--muted);
  border-bottom: 2px solid var(--warm-line);
}
.compare-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #e0eaf4;
}
.compare-table tr.highlight td {
  background: #e8f2fb;
  font-weight: 500;
}
.compare-table tr:last-child td {
  border-bottom: none;
}
.check {
  color: #27ae60;
  font-weight: bold;
}
.cross {
  color: #c0392b;
  font-weight: bold;
}
.partial {
  color: #e67e22;
  font-weight: bold;
}

.arch-diagram {
  background: var(--navy);
  border-radius: 10px;
  padding: 2rem;
  margin: 1.5rem 0 2rem;
  position: relative;
  overflow: visible;
  width: 100%;
  box-sizing: border-box;
}
.arch-diagram::before {
  content: "Architecture";
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #2a4a70;
}
.arch-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1.5rem;
}
.arch-nodes {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
.arch-source {
  background: linear-gradient(135deg, #1d6fa4, #0d4f7e);
  border: 2px solid var(--blue-light);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: #e8f0fb;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}
.arch-arrow-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--blue-light);
  font-size: 0.8rem;
}
.arch-arrow-down .a-line {
  width: 2px;
  height: 20px;
  background: linear-gradient(180deg, var(--blue-light), transparent);
}
.arch-targets-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
.arch-target {
  background: #0d2a4a;
  border: 1px solid #1e4a78;
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  color: #7fa8cc;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  flex: 1 1 70px;
  min-width: 65px;
}
.arch-target .t-icon {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.2rem;
}

.sidebar {
  position: sticky;
  top: 74px;
}
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--warm-line);
  border-radius: 8px;
  padding: 1.4rem;
  margin-bottom: 1.4rem;
}
.sidebar-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}
.toc-list {
  list-style: none;
}
.toc-list li {
  padding: 0.3rem 0;
  border-bottom: 1px dashed #cdd8e8;
  font-size: 0.87rem;
}
.toc-list li:last-child {
  border-bottom: none;
}
.toc-list a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.toc-list a:hover {
  color: var(--blue);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid #e8f0f8;
}
.stat-row:last-child {
  border-bottom: none;
}
.stat-row .s-lbl {
  font-size: 0.8rem;
  color: var(--muted);
}
.stat-row .s-val {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: #eef4fa;
  color: var(--muted);
  border: 1px solid var(--warm-line);
  padding: 3px 9px;
  border-radius: 20px;
}

.checklist {
  list-style: none;
}
.checklist li {
  font-size: 0.88rem;
  padding: 0.3rem 0;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  color: #2c3e55;
}
.checklist li::before {
  content: "▸";
  color: var(--blue);
  flex-shrink: 0;
  margin-top: 0.05rem;
}

@media (max-width: 860px) {
  .hero {
    padding: 4rem 1.5rem 3.5rem;
  }
  .broadcast-vis {
    padding: 1.5rem;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
  .page-wrap {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem;
    gap: 2rem;
  }
  .sidebar {
    position: static;
  }
  .uc-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  html,
  body {
    overflow-x: hidden;
  }

  .hero {
    padding: 2.5rem 1rem 2rem;
  }
  .hero::before,
  .hero::after {
    display: none;
  }
  .ring3 {
    display: none;
  }
  .hero-eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.9rem;
  }
  .hero h1 {
    font-size: clamp(1.7rem, 7.5vw, 2.4rem);
    line-height: 1.1;
    margin-bottom: 0.8rem;
  }
  .hero-sub {
    font-size: 0.9rem;
    line-height: 1.65;
  }
  .hero-meta {
    font-size: 0.7rem;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
  }

  .broadcast-vis {
    padding: 1rem;
    gap: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
  }
  .vis-label {
    font-size: 0.62rem;
  }
  .vis-diagram {
    gap: 0.8rem;
    align-self: center;
  }
  .fan-arrow .line {
    width: 18px;
  }
  .fan-arrow {
    font-size: 0.7rem;
  }
  .targets {
    gap: 0.5rem;
  }
  .target-row span {
    font-size: 0.56rem;
  }
  .node-label {
    font-size: 0.56rem;
  }
  .db-cyl {
    width: 30px;
    height: 34px;
  }
  .db-cyl .cyl-top {
    width: 30px;
    height: 8px;
  }
  .db-cyl .cyl-body {
    width: 30px;
    height: 20px;
    top: 5px;
  }
  .db-cyl .cyl-btm {
    width: 30px;
    height: 8px;
  }
  .db-cyl.small {
    width: 24px;
    height: 28px;
  }
  .db-cyl.small .cyl-top {
    width: 24px;
    height: 7px;
  }
  .db-cyl.small .cyl-body {
    width: 24px;
    height: 16px;
    top: 4px;
  }
  .db-cyl.small .cyl-btm {
    width: 24px;
    height: 7px;
  }

  .page-wrap {
    padding: 1.25rem 1rem;
    gap: 1.25rem;
  }

  article h2 {
    font-size: 1.35rem;
    margin: 1.6rem 0 0.5rem;
  }
  article h2::before {
    width: 4px;
    height: 20px;
  }
  article h3 {
    font-size: 1.05rem;
    margin: 1.3rem 0 0.4rem;
  }
  article p {
    font-size: 0.92rem;
    margin-bottom: 0.9rem;
  }
  .lead {
    font-size: 0.98rem !important;
    padding-left: 0.85rem;
    line-height: 1.7;
  }

  .steps {
    margin: 1rem 0 1.4rem;
  }
  .step {
    gap: 0.85rem;
    margin-bottom: 1.2rem;
  }
  .step-num {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
    flex-shrink: 0;
  }
  .step-body h4 {
    font-size: 0.95rem;
  }
  .step-body p {
    font-size: 0.84rem !important;
  }

  .callout {
    padding: 0.85rem 1rem;
    margin: 1.2rem 0;
  }
  .callout-title {
    font-size: 0.6rem;
  }
  .callout p {
    font-size: 0.86rem !important;
  }

  .pull-quote {
    font-size: 1.1rem;
    padding: 0.9rem 1.1rem;
    margin: 1.4rem 0;
  }

  .uc-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .uc-card {
    padding: 0.95rem 1rem;
  }
  .uc-card .icon {
    font-size: 1.4rem;
  }
  .uc-card h4 {
    font-size: 0.95rem;
  }
  .uc-card p {
    font-size: 0.83rem !important;
  }

  .arch-diagram {
    padding: 1.1rem 0.9rem;
  }
  .arch-title {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
  }
  .arch-source {
    font-size: 0.82rem;
    padding: 0.5rem 0.7rem;
  }
  .arch-targets-row {
    gap: 0.4rem;
  }
  .arch-target {
    font-size: 0.72rem;
    padding: 0.4rem 0.5rem;
    flex: 1 1 60px;
    min-width: 55px;
  }
  .arch-target .t-icon {
    font-size: 1rem;
  }

  .data-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.78rem;
  }
  .data-table th {
    padding: 0.5rem 0.7rem;
    white-space: nowrap;
  }
  .data-table td {
    padding: 0.45rem 0.7rem;
    white-space: nowrap;
  }
  .compare-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.78rem;
  }
  .compare-table th,
  .compare-table td {
    padding: 0.45rem 0.65rem;
    white-space: nowrap;
  }

  /* Sidebar */
  .sidebar {
    position: static;
  }
  .sidebar-card {
    padding: 0.95rem;
    margin-bottom: 0.85rem;
  }
  .sidebar-card h3 {
    font-size: 0.95rem;
  }
  .toc-list li {
    font-size: 0.78rem;
    padding: 0.22rem 0;
  }
  .stat-row .s-lbl {
    font-size: 0.7rem;
  }
  .stat-row .s-val {
    font-size: 1.1rem;
  }
  .checklist li {
    font-size: 0.78rem;
  }
  .tag-cloud {
    gap: 0.35rem;
  }
  .tag {
    font-size: 0.6rem;
    padding: 2px 6px;
  }
}
