:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5d6675;
  --line: rgba(28, 36, 48, 0.12);
  --paper: #f7f8f6;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --blue: #2563eb;
  --cyan: #0891b2;
  --green: #178365;
  --orange: #c56a18;
  --red: #b33b45;
  --shadow: 0 24px 70px rgba(21, 31, 48, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.88), rgba(238, 243, 245, 0.78)),
    #f7f8f6;
}

.mesh {
  position: absolute;
  width: 58vw;
  height: 58vw;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.34;
}

.mesh-a {
  left: -15vw;
  top: -20vw;
  background: #8ecae6;
}

.mesh-b {
  right: -18vw;
  bottom: -24vw;
  background: #f2cc8f;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 78%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

.nav {
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:focus-visible,
.button:focus-visible,
.service-card:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.34);
  outline-offset: 3px;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 42px;
  min-height: calc(100vh - 84px);
  padding: 52px 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 11vw, 146px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}

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

.button,
.jump-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-weight: 720;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(20, 30, 46, 0.08);
}

.button.primary {
  border-color: rgba(37, 99, 235, 0.1);
  background: var(--blue);
  color: white;
}

.glass {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(1.2);
}

.command-panel {
  border-radius: 8px;
  padding: 24px;
}

.panel-head,
.route-line,
.map-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-head {
  margin-bottom: 34px;
  font-weight: 760;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 13px;
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}

.jump-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.jump-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 28px;
}

.jump-box input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.76);
  font: inherit;
}

.route-line {
  align-items: stretch;
  flex-direction: column;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.route-line span {
  border-left: 2px solid rgba(37, 99, 235, 0.28);
  padding: 6px 0 6px 14px;
}

.section {
  padding: 78px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.text-link {
  color: var(--blue);
  font-weight: 760;
}

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

.service-card {
  position: relative;
  min-height: 220px;
  border-radius: 8px;
  padding: 22px;
  transition: transform 160ms ease, background 160ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  background: var(--glass-strong);
}

.service-card p,
.project-list p {
  color: var(--muted);
  line-height: 1.65;
}

.service-link {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  overflow: hidden;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-state,
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin-bottom: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 760;
}

.public {
  background: rgba(23, 131, 101, 0.12);
  color: var(--green);
}

.guarded,
.warn {
  background: rgba(197, 106, 24, 0.14);
  color: var(--orange);
}

.private {
  background: rgba(93, 102, 117, 0.14);
  color: var(--muted);
}

.muted {
  box-shadow: 0 12px 36px rgba(21, 31, 48, 0.08);
}

.split {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 40px;
}

.project-list {
  display: grid;
  gap: 14px;
}

.project-list article {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

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

.article-card {
  min-height: 190px;
  border-radius: 8px;
  padding: 22px;
}

.article-card h3 {
  display: -webkit-box;
  min-height: 56px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.article-card p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.article-date {
  display: block;
  margin-bottom: 22px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.map {
  border-radius: 8px;
  padding: 10px;
}

.map-row {
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
}

.map-row:last-child {
  border-bottom: 0;
}

.domain {
  min-width: 180px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 720;
}

.pipe {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.46), rgba(8, 145, 178, 0.08));
}

.badge {
  margin: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

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

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav {
    display: none;
  }

  .service-grid,
  .jump-box {
    grid-template-columns: 1fr;
  }

  .section-head-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-card {
    min-height: 190px;
  }

  .map-row {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .pipe {
    width: 100%;
    flex: none;
  }

  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  html {
    scroll-behavior: auto;
    transition: none !important;
  }
}
