:root {
  --bg-primary: #f3f3f7;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-elevated: #f3f3f7;
  --bg-ink: #161d26;
  --border-subtle: #e0e0e6;
  --border-accent: #0972d3;
  --text-primary: #161d26;
  --text-secondary: #424750;
  --text-muted: #5f6b7a;
  --accent-cyan: #0972d3;
  --accent-blue: #006ce0;
  --accent-emerald: #0f7a56;
  --accent-amber: #9a6412;
  --accent-purple: #5b3f8c;
  --radius: 6px;
  --radius-lg: 6px;
  --shell: 1180px;
  --side: 1.75rem;
  --font-sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Code", Consolas, "Courier New", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: #eef2f6;
  background-image: linear-gradient(180deg, #f7f9fc 0%, #e7eef6 38%, #f4f7fb 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
}

a:hover {
  color: #0058b8;
}

.container,
.header-inner,
.footer-inner {
  width: min(var(--shell), calc(100% - (var(--side) * 2)));
  margin-left: auto;
  margin-right: auto;
}

.container {
  padding-bottom: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fb 100%);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 0 rgba(16, 32, 51, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 4.25rem;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-primary);
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--text-primary);
}

.brand-pin {
  display: block;
  height: 2.7rem;
  width: auto;
}

.brand-full {
  display: block;
  height: 3.15rem;
  width: auto;
  max-width: min(100%, 280px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name,
.brand-subtitle {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.brand-sub,
.brand-subtitle {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-name {
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 0.95rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  flex: 1 1 auto;
  flex-wrap: wrap;
  list-style: none;
  margin-left: auto;
}

.nav-links a,
.nav-link {
  padding: 0.38rem 0.62rem;
  border-radius: var(--radius);
  color: #314255;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.active,
.nav-link:hover,
.nav-link.active {
  color: var(--accent-cyan);
  background: #eef4fc;
  border-color: #c9dff5;
}

.header-cta {
  flex: 0 0 auto;
  margin-left: 0.6rem;
}

/* Hero */
.hero,
.section {
  position: relative;
  isolation: isolate;
}

.hero::before,
.section::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  pointer-events: none;
}

.hero::before {
  background: linear-gradient(165deg, #ffffff 0%, #d5e4f5 46%, #f7f9fc 100%);
}

.section:nth-of-type(even)::before {
  background: linear-gradient(180deg, #f2f6fb 0%, #ffffff 72%);
}

.section:nth-of-type(odd)::before {
  background: linear-gradient(180deg, #ffffff 0%, #e3edf7 100%);
}

.hero {
  padding: 3.1rem 0 2.4rem;
  border-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.55rem;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #eef4fc;
  color: #0972d3;
  border: 1px solid #c9dff5;
  margin-bottom: 0.95rem;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  flex: 0 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin-bottom: 0.9rem;
  max-width: 18em;
  font-weight: 720;
}

.gradient-text,
.text-gradient {
  color: var(--accent-cyan);
}

.lead,
.hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 46rem;
  margin-bottom: 1.35rem;
}

.hero-actions,
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.62rem 0.9rem;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1.2;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.btn-glyph {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.btn-primary {
  background: linear-gradient(180deg, #243140 0%, #161d26 100%);
  color: #ffffff;
  border-color: #161d26;
  box-shadow: 0 1px 2px rgba(22, 29, 38, 0.16);
}

.btn-primary:hover {
  background: #232f3e;
  color: #ffffff;
  border-color: #232f3e;
  box-shadow: 0 8px 24px rgba(22, 29, 38, 0.28);
}

.btn-secondary {
  background: #ffffff;
  color: #161d26;
  border-color: #c6c6cd;
}

.btn-secondary:hover {
  border-color: #161d26;
  color: #161d26;
  background: #fafafa;
  box-shadow: 0 6px 18px rgba(22, 29, 38, 0.1);
}

.metrics-strip,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.metric-card {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--accent-cyan);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.metric-card:hover {
  border-color: rgba(0, 108, 224, 0.45);
  box-shadow: 0 14px 34px rgba(0, 108, 224, 0.16);
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--accent-cyan);
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Sections */
.section {
  padding: 2.6rem 0;
  border-bottom: 0;
}

.section-header {
  margin-bottom: 1.35rem;
}

.section-header h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  line-height: 1.25;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 46rem;
}

.card-grid,
.grid-2,
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.card {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: 0 1px 2px rgba(22, 29, 38, 0.04);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  border-color: rgba(0, 108, 224, 0.45);
  box-shadow: 0 14px 34px rgba(0, 108, 224, 0.16), 0 0 0 1px rgba(0, 108, 224, 0.08);
}

.card-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5d5dc;
  background: linear-gradient(160deg, #f7fbff 0%, #e7f1fa 100%);
  color: var(--accent-cyan);
  border-radius: var(--radius);
}

.card-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card h3 {
  font-size: 1.08rem;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.card p,
.feature-list li {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.18rem 0.45rem;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.badge-cyan,
.badge-blue {
  background: #eef4fc;
  color: #0972d3;
  border: 1px solid #c9dff5;
}

.badge-emerald {
  background: #e7f6ef;
  color: #0d6849;
  border: 1px solid #b7e0cc;
}

.badge-amber {
  background: #fbf3e4;
  color: #8a5608;
  border: 1px solid #ead3a4;
}

.badge-purple {
  background: #f3eef8;
  color: #5b3f8c;
  border: 1px solid #d9ccea;
}

.tag-list,
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  list-style: none;
  margin-top: 0.2rem;
}

.tag-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.feature-list li {
  position: relative;
  padding-left: 0.95rem;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--accent-cyan);
}

.tag-list li {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.16rem 0.4rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.interactive-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1.1rem;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.interactive-panel:hover {
  border-color: rgba(0, 108, 224, 0.35);
  box-shadow: 0 16px 36px rgba(0, 108, 224, 0.14);
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.85rem;
}

.tab-btn {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.tab-btn:hover,
.tab-btn.active {
  background: #eef4fc;
  color: var(--accent-cyan);
  border-color: #9ec4e8;
  box-shadow: 0 6px 16px rgba(0, 108, 224, 0.12);
}

.workload-detail,
.split-view {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.1rem;
  align-items: start;
}

.code-block {
  background: #161d26;
  border: 1px solid #1c3348;
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #e6eef6;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.55;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: #ffffff;
}

.svc-table {
  border: 1px solid #e6e8ec;
  background: #ffffff;
  overflow: auto;
}

.svc-table table {
  table-layout: fixed;
  min-width: 920px;
  border-collapse: collapse;
}

.svc-table th,
.svc-table td {
  vertical-align: top;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.svc-table th {
  background: #161d26;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0.01em;
  padding: 0.72rem 0.85rem;
  border-bottom: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.svc-table th:last-child {
  border-right: 0;
}

.svc-table td {
  color: #232b37;
  padding: 0.78rem 0.85rem;
  border-bottom: 1px solid #eceef1;
  background: #ffffff;
  font-size: 0.84rem;
}

.svc-table tbody tr:nth-child(even) td {
  background: #f7f8fa;
}

.svc-table tbody tr:last-child td {
  border-bottom: 0;
}

.svc-table th:nth-child(1),
.svc-table td:nth-child(1) { width: 16%; }

.svc-table th:nth-child(2),
.svc-table td:nth-child(2) { width: 18%; }

.svc-table th:nth-child(3),
.svc-table td:nth-child(3) { width: 15%; }

.svc-table th:nth-child(4),
.svc-table td:nth-child(4) { width: 16%; }

.svc-table th:nth-child(5),
.svc-table td:nth-child(5) { width: 19%; }

.svc-table th:nth-child(6),
.svc-table td:nth-child(6) { width: 16%; }

.svc-table td strong {
  color: #161d26;
  font-weight: 600;
}

.svc-table td code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: inherit;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

th,
td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

th {
  background: #f4f8fb;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

td {
  color: var(--text-secondary);
}

tr:last-child td {
  border-bottom: 0;
}

td code,
p code,
li code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #0972d3;
  background: #eef4fc;
  padding: 0.08rem 0.28rem;
  border-radius: var(--radius);
}

.arch-diagram {
  margin-top: 0.25rem;
}

.arch-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.arch-col,
.arch-stage {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 0.8rem;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.arch-col:hover,
.arch-stage:hover {
  border-color: rgba(0, 108, 224, 0.4);
  box-shadow: 0 14px 32px rgba(0, 108, 224, 0.14);
}

.arch-col-title,
.arch-stage h4 {
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border-subtle);
}

.arch-node {
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--accent-cyan);
  border-radius: var(--radius);
  padding: 0.55rem 0.6rem;
  margin-bottom: 0.4rem;
  background: linear-gradient(180deg, #f8fbfe 0%, #e8f0f8 100%);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.arch-node:hover {
  background: #ffffff;
  border-color: rgba(0, 108, 224, 0.4);
  box-shadow: 0 8px 20px rgba(0, 108, 224, 0.14);
}

.arch-node:last-child {
  margin-bottom: 0;
}

.arch-node strong {
  display: block;
  font-size: 0.84rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.arch-node span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.arch-stage ul {
  list-style: none;
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cta-banner {
  margin: 2.2rem 0 2.6rem;
  padding: 1.45rem 1.35rem;
  background: linear-gradient(135deg, #243246 0%, #161d26 58%, #1a3d5c 100%);
  color: #ffffff;
  border-radius: var(--radius);
  border: 1px solid #1c3348;
}

.cta-banner h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.cta-banner p {
  color: #c5d2e0;
  max-width: 46rem;
  margin: 0.45rem 0 1rem;
}

.cta-banner .btn-secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.cta-banner .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: #ffffff;
}

.cta-banner .btn-primary:hover {
  background: #ffffff;
  color: #161d26;
  border-color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #1c2733 0%, #10161d 100%);
  color: #c5d2e0;
  border-top: 3px solid var(--accent-cyan);
  font-size: 0.88rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.7fr);
  gap: 2rem;
  align-items: start;
  padding-top: 2.1rem;
  padding-bottom: 2.1rem;
}

.site-footer .brand-name {
  color: #ffffff;
}

.site-footer .brand-sub {
  color: #9eb0c2;
}

.site-footer p {
  margin-top: 0.75rem;
  max-width: 36rem;
  color: #b7c6d4;
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding-top: 0.15rem;
}

.footer-links a {
  color: #d5e2ee;
  font-weight: 600;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #ffffff;
}

@media (max-width: 1080px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 0;
    width: auto;
    justify-content: flex-end;
  }

  .metrics-strip,
  .metric-grid,
  .arch-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --side: 1.1rem;
  }

  .card-grid,
  .grid-2,
  .grid-3,
  .card-grid-2,
  .workload-detail,
  .split-view,
  .metrics-strip,
  .metric-grid,
  .arch-columns,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
