:root {
  --ink: #162028;
  --muted: #5b656b;
  --line: #d7dfdf;
  --paper: #f7f6f0;
  --wash: #e9efec;
  --panel: rgba(255, 255, 255, 0.84);
  --blue: #135d66;
  --green: #3e6b48;
  --blue-soft: #e8f2f3;
  --shadow: 0 18px 40px rgba(22, 32, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a:hover {
  text-decoration: underline;
}

header {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(19, 93, 102, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(62, 107, 72, 0.08), rgba(19, 93, 102, 0.08)),
    var(--wash);
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 92vh;
  display: grid;
  align-content: center;
  gap: 28px;
  padding: 56px 0 48px;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 940px;
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.14rem;
}

.lead {
  max-width: 850px;
  margin: 0;
  color: #27333a;
  font-size: 1.18rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(19, 93, 102, 0.24);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #fbfdff;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric,
.panel,
.table-wrap,
.arch-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric {
  min-height: 112px;
  padding: 18px;
}

.metric b {
  display: block;
  color: var(--blue);
  font-size: 1.8rem;
  line-height: 1.05;
}

.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.93rem;
}

main section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.section-intro {
  max-width: 840px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

.architecture {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.arch-card {
  padding: 18px;
}

.arch-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
}

.grid-2,
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.panel {
  padding: 18px;
}

.image-frame {
  padding: 0;
  overflow: hidden;
}

.video-frame {
  padding: 0;
  overflow: hidden;
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  background: #0e1318;
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  background: #0e1318;
}

figcaption {
  border-top: 1px solid var(--line);
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tbody tr.highlight {
  background: rgba(19, 93, 102, 0.06);
}

.caption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

@media (max-width: 980px) {
  .metrics,
  .architecture {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .wrap {
    width: min(100% - 22px, 1160px);
  }

  .metrics,
  .architecture,
  .gallery,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }
}
