:root {
  --ink: #101820;
  --muted: #5e6a71;
  --paper: #fbfcfa;
  --surface: #ffffff;
  --line: #dce3e1;
  --teal: #176b65;
  --teal-dark: #0c4845;
  --amber: #d58a12;
  --shadow: 0 18px 45px rgba(14, 25, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Inter",
    "Segoe UI",
    "Microsoft YaHei",
    "PingFang SC",
    Arial,
    sans-serif;
  line-height: 1.6;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 14px clamp(18px, 5vw, 64px);
  color: #f7fbf9;
  background: rgba(11, 22, 26, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

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

.brand {
  gap: 10px;
  min-width: 0;
  font-weight: 850;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #0c3431;
  background: #d7f4e8;
}

.nav {
  justify-content: flex-end;
  gap: clamp(12px, 3vw, 28px);
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  color: #ffffff;
}

.hero {
  position: relative;
  min-height: min(760px, 86vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
  background: #0d1a1f;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 15, 18, 0.84) 0%, rgba(6, 15, 18, 0.54) 48%, rgba(6, 15, 18, 0.1) 100%),
    linear-gradient(0deg, rgba(6, 15, 18, 0.58) 0%, rgba(6, 15, 18, 0.03) 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 36px));
  margin: 0 auto;
  padding: 140px 0 86px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(50px, 10vw, 102px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2.2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  font-weight: 780;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button svg,
.card-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #09211e;
  background: #d7f4e8;
}

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.42);
}

.sites-section,
.projects-section {
  padding: clamp(56px, 9vw, 96px) 0;
}

.sites-section {
  background: linear-gradient(180deg, #f7faf8 0%, #f2f6f4 100%);
}

.projects-section {
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.section-heading h2,
.split h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

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

.site-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 260px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(28, 43, 48, 0.08);
}

.site-card.is-live:hover,
.site-card.is-live:focus-visible {
  border-color: #b8d8ce;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.card-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #ffffff;
  background: var(--teal);
}

.card-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.card-status {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 4px 8px;
  color: var(--teal-dark);
  background: #e3f2ed;
  border: 1px solid #c8e2d8;
  font-size: 12px;
  font-weight: 800;
}

.card-status.muted {
  color: #704b09;
  background: #fff1d4;
  border-color: #f0d39c;
}

.site-card h3 {
  margin: 18px 0 0;
  font-size: 22px;
  line-height: 1.2;
}

.site-card p {
  margin: 0;
  color: var(--muted);
}

.card-url {
  align-self: end;
  color: var(--teal-dark);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(28px, 7vw, 86px);
}

.copy {
  display: grid;
  gap: 12px;
  color: #33424a;
  font-size: 17px;
}

.copy p {
  margin: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.76);
  background: #0e181d;
  font-size: 14px;
}

.site-footer a {
  color: #d7f4e8;
}

.error-page {
  display: grid;
  min-height: 100vh;
  place-content: center;
  gap: 14px;
  padding: 32px;
  text-align: center;
  background: #f8faf7;
}

.error-page h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 64px);
  line-height: 1;
}

.error-page p {
  margin: 0 0 8px;
  color: var(--muted);
}

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

  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 62px;
    padding: 12px 16px;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-content {
    width: min(100% - 32px, 780px);
    padding: 118px 0 58px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(6, 15, 18, 0.88) 0%, rgba(6, 15, 18, 0.7) 66%, rgba(6, 15, 18, 0.26) 100%),
      linear-gradient(0deg, rgba(6, 15, 18, 0.64) 0%, rgba(6, 15, 18, 0.08) 46%);
  }

  .button {
    width: 100%;
  }

  .site-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }
}
