:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5c687a;
  --line: #d8e0ea;
  --paper: #fbfcfe;
  --panel: #ffffff;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --mint: #10b981;
  --soft-blue: #eaf2ff;
  --soft-green: #e8f7ef;
  --shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 34rem),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 48%, #f7fafc 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.actions,
.status-row,
.site-footer {
  display: flex;
  align-items: center;
}

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

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--ink);
}

.nav {
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(216, 224, 234, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--ink);
  background: var(--soft-blue);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 94px);
  padding: 42px 0 72px;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(44px, 8vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: 0;
}

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

.lead {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button,
.copy-button {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.button.primary:hover,
.copy-button:hover {
  background: var(--accent-strong);
}

.button.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.server-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.panel-top {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.panel-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
}

.panel-top span:first-child {
  background: #ef4444;
}

.panel-top span:nth-child(2) {
  background: #f59e0b;
}

.panel-top span:nth-child(3) {
  background: #22c55e;
}

.server-visual {
  display: block;
  width: 100%;
  height: auto;
  background: linear-gradient(135deg, var(--soft-blue), var(--soft-green));
}

.status-row {
  gap: 10px;
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.16);
}

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line);
}

.section > p:not(.section-label),
.contact-section p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

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

.project-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

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

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.copy-button {
  flex: 0 0 auto;
  color: #ffffff;
  background: var(--accent);
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav a {
    flex: 1;
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 34px;
  }

  h1 {
    max-width: 100%;
  }

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

  .copy-button {
    width: 100%;
  }
}
