:root {
  color-scheme: light;
  --ink: #0b1726;
  --muted: #5c6a7c;
  --line: #dbe5ee;
  --paper: #ffffff;
  --mist: #f4f8fb;
  --deep: #07111f;
  --teal: #13c2c2;
  --blue: #1e86ff;
  --amber: #ffb84d;
  --violet: #7367f0;
  --shadow: 0 18px 50px rgba(12, 31, 54, 0.13);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

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: 24px;
  height: 72px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(219, 229, 238, 0.82);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover,
.header-link:hover {
  color: var(--blue);
}

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  background: #fff;
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  padding: clamp(72px, 12vw, 130px) clamp(20px, 5vw, 76px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.9), rgba(7, 17, 31, 0.54) 46%, rgba(7, 17, 31, 0.1)),
    url("./assets/harboradmin-project-hero.png") center / cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 18% 30%, rgba(66, 240, 223, 0.22), transparent 24%),
    radial-gradient(circle at 70% 18%, rgba(255, 184, 77, 0.18), transparent 20%),
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.12) 46%, transparent 52%);
  transform: translateX(-18%) rotate(2deg);
  animation: heroAurora 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(244, 248, 251, 0), var(--mist));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(800px, 100%);
}

.hero-content > * {
  animation: heroRise 860ms ease both;
}

.hero-content > *:nth-child(2) {
  animation-delay: 80ms;
}

.hero-content > *:nth-child(3) {
  animation-delay: 160ms;
}

.hero-content > *:nth-child(4) {
  animation-delay: 240ms;
}

.hero-content > *:nth-child(5) {
  animation-delay: 320ms;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.cta-section h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(42px, 8vw, 88px);
}

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

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 760;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

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

.button.primary {
  color: #05101c;
  background: linear-gradient(135deg, #42f0df, #5fa8ff);
  box-shadow: 0 18px 40px rgba(19, 194, 194, 0.27);
}

.button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.cta-section .button.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 46px 0 0;
}

.hero-metrics div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  animation: metricFloat 5.6s ease-in-out infinite;
}

.hero-metrics div:nth-child(2) {
  animation-delay: 0.8s;
}

.hero-metrics div:nth-child(3) {
  animation-delay: 1.6s;
}

.hero-metrics dt {
  font-size: 20px;
  font-weight: 850;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.section {
  padding: clamp(74px, 10vw, 118px) clamp(20px, 5vw, 76px);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 760ms ease,
    transform 760ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.intro-section,
.capabilities-section,
.roadmap-section {
  background: var(--mist);
}

.section-heading {
  max-width: 880px;
  margin-bottom: 42px;
}

.section-heading h2,
.split h2,
.agent-copy h2,
.cta-section h2 {
  font-size: clamp(32px, 5vw, 56px);
}

.section-heading p,
.split p,
.agent-copy p,
.cta-section p {
  color: var(--muted);
  font-size: 18px;
}

.problem-grid,
.capability-grid,
.agent-roles,
.roadmap-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.problem-grid article,
.capability-card,
.agent-roles article,
.roadmap-list div {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.problem-grid article:hover,
.capability-card:hover,
.roadmap-list div:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 134, 255, 0.24);
  box-shadow: 0 26px 60px rgba(12, 31, 54, 0.18);
}

.problem-grid article span {
  color: var(--blue);
  font-weight: 860;
}

.problem-grid h3,
.capability-card h3,
.agent-roles h3 {
  margin: 12px 0 10px;
  font-size: 22px;
}

.problem-grid p,
.capability-card p,
.agent-roles p,
.roadmap-list p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(30px, 7vw, 80px);
  align-items: center;
}

.audience-list {
  display: grid;
  gap: 12px;
}

.audience-list p {
  margin: 0;
  padding: 18px 20px;
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  font-weight: 700;
  background: var(--mist);
}

.agent-section {
  color: #eef7ff;
  background:
    radial-gradient(circle at 16% 80%, rgba(19, 194, 194, 0.18), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(255, 184, 77, 0.18), transparent 32%),
    linear-gradient(135deg, #07111f 0%, #102742 58%, #0e3b55 100%);
  overflow: hidden;
  position: relative;
}

.agent-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 72%, transparent);
  animation: gridDrift 18s linear infinite;
  pointer-events: none;
}

.agent-section .eyebrow {
  color: #67f4e8;
}

.agent-copy {
  max-width: 880px;
  margin-bottom: 42px;
}

.agent-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  margin-bottom: 44px;
  z-index: 1;
}

.agent-visual {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(66, 240, 223, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: 0 30px 80px rgba(0, 10, 24, 0.34);
  overflow: hidden;
}

.agent-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.12) 46%, transparent 56%);
  transform: translateX(-120%);
  animation: scanLight 5.4s ease-in-out infinite;
  pointer-events: none;
}

#agentCanvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
}

.agent-hud {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: grid;
  gap: 2px;
  min-width: 190px;
  padding: 14px 16px;
  border: 1px solid rgba(103, 244, 232, 0.22);
  border-radius: 8px;
  color: #dffcff;
  background: rgba(4, 16, 31, 0.72);
  backdrop-filter: blur(12px);
}

.agent-hud span {
  color: rgba(223, 252, 255, 0.68);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-hud strong {
  font-size: 20px;
}

.agent-copy p,
.agent-roles p {
  color: rgba(238, 247, 255, 0.72);
}

.agent-roles {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  position: relative;
  z-index: 1;
}

.agent-roles article {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  animation: roleFloat 7s ease-in-out infinite;
}

.agent-roles article:nth-child(2) {
  animation-delay: 0.7s;
}

.agent-roles article:nth-child(3) {
  animation-delay: 1.4s;
}

.agent-roles article:nth-child(4) {
  animation-delay: 2.1s;
}

.architecture-section {
  background: #fff;
}

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

.node {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 18px;
  border-radius: var(--radius);
  font-weight: 780;
  text-align: center;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.node:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow);
}

.node.web {
  color: #06306f;
  background: #e7f2ff;
}

.node.host {
  color: #053935;
  background: #ddfbf7;
}

.node.module {
  color: #26314a;
  background: #f0f3f7;
}

.node.process {
  color: #5a3300;
  background: #fff0d1;
}

.node.infra {
  color: #392a63;
  background: #eeeafd;
}

.roadmap-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roadmap-list strong {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
}

.cta-section {
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #eef8fb 100%);
}

.cta-section .hero-actions {
  justify-content: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 76px);
  color: rgba(255, 255, 255, 0.74);
  background: var(--deep);
}

@keyframes heroAurora {
  0% {
    transform: translateX(-18%) rotate(2deg) scale(1);
  }
  100% {
    transform: translateX(10%) rotate(-1deg) scale(1.08);
  }
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes metricFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes gridDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 46px 46px;
  }
}

@keyframes scanLight {
  0%,
  42% {
    transform: translateX(-120%);
  }
  78%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes roleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

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

  .problem-grid,
  .capability-grid,
  .agent-roles,
  .roadmap-list,
  .split,
  .agent-showcase,
  .architecture-map {
    grid-template-columns: 1fr 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 64px;
  }

  .header-link {
    display: none;
  }

  .hero {
    min-height: calc(100vh - 64px);
    padding-top: 64px;
  }

  .hero-actions,
  .cta-section .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .problem-grid,
  .capability-grid,
  .agent-roles,
  .roadmap-list,
  .split,
  .agent-showcase,
  .architecture-map {
    grid-template-columns: 1fr;
  }

  .agent-visual,
  #agentCanvas {
    min-height: 340px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
