:root {
  --ivory: #fbf6e8;
  --cream: #fffaf0;
  --gold: #d49a39;
  --gold-deep: #a96f22;
  --sand: #d8bf92;
  --sand-soft: #f3e6cc;
  --bronze: #9b6a32;
  --navy: #132235;
  --navy-2: #1f3148;
  --charcoal: #11151d;
  --stone: #6e6a61;
  --line: rgba(41, 45, 51, 0.14);
  --shadow: 0 28px 90px rgba(17, 21, 29, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", "PingFang SC", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 16% 8%, rgba(212, 154, 57, 0.18), transparent 28%),
    radial-gradient(circle at 86% 2%, rgba(19, 34, 53, 0.12), transparent 24%),
    linear-gradient(115deg, transparent 0 66%, rgba(212, 154, 57, 0.12) 66% 67%, transparent 67%),
    var(--ivory);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 21, 29, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 21, 29, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 68%);
  content: "";
}

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

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 48px;
  border-bottom: 1px solid rgba(169, 111, 34, 0.2);
  background: rgba(251, 246, 232, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 850;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(212, 154, 57, 0.48);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(169, 111, 34, 0.2);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #4d4b45;
  font-size: 14px;
  font-weight: 720;
}

.top-nav a {
  transition: color 160ms ease;
}

.top-nav a:hover {
  color: var(--gold-deep);
}

.github-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 17px;
  border: 1px solid rgba(169, 111, 34, 0.35);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 250, 240, 0.74);
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(500px, 1.1fr);
  gap: 48px;
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: 76px 0 58px;
  align-items: center;
}

.hero-section::after {
  position: absolute;
  right: 0;
  bottom: 32px;
  left: 44%;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(100deg, transparent, rgba(169, 111, 34, 0.7), rgba(19, 34, 53, 0.34));
  transform: rotate(-9deg);
  transform-origin: right center;
  content: "";
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 540px;
  place-items: center;
}

.hero-art img {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  border-radius: 28px;
  filter: drop-shadow(0 34px 52px rgba(17, 21, 29, 0.22));
}

.sun-aura {
  position: absolute;
  z-index: 1;
  width: min(86%, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from -14deg, rgba(212, 154, 57, 0.24) 0 3deg, transparent 3deg 9deg),
    radial-gradient(circle, rgba(212, 154, 57, 0.2), transparent 62%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 680px;
  padding: 36px 0;
}

.eyebrow,
.panel-kicker {
  margin: 0;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3,
p,
pre {
  letter-spacing: 0;
}

h1 {
  margin: 14px 0 0;
  color: var(--navy);
  font-size: 48px;
  line-height: 1.1;
  font-weight: 900;
  text-wrap: balance;
}

h1 span {
  display: block;
}

h2 {
  margin: 0;
  color: var(--navy);
  font-size: 38px;
  line-height: 1.18;
  font-weight: 860;
}

h3 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.28;
}

.hero-text {
  margin: 24px 0 0;
  color: #4e514d;
  font-size: 19px;
  line-height: 1.75;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 23px;
  border-radius: 999px;
  font-weight: 850;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.primary-action {
  color: var(--cream);
  background: linear-gradient(135deg, var(--navy), var(--charcoal));
  box-shadow: 0 18px 34px rgba(19, 34, 53, 0.28);
}

.secondary-action {
  color: var(--navy);
  border: 1px solid rgba(169, 111, 34, 0.35);
  background: rgba(255, 250, 240, 0.82);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.secondary-action:hover {
  border-color: rgba(169, 111, 34, 0.62);
  box-shadow: 0 14px 30px rgba(169, 111, 34, 0.13);
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-signals span {
  padding: 7px 13px;
  border: 1px solid rgba(169, 111, 34, 0.28);
  border-radius: 999px;
  color: #4c432e;
  background: rgba(255, 250, 240, 0.62);
  font-size: 13px;
  font-weight: 820;
}

.myth-line {
  margin: 26px 0 0;
  color: var(--gold-deep);
  font-size: 15px;
  font-weight: 760;
}

.console-section,
.capability-section,
.runtime-section,
.cta-section {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.console-section,
.capability-section {
  padding: 72px 0;
}

.section-heading {
  max-width: 740px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-left {
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  color: #5e605c;
  font-size: 16px;
}

.control-board {
  display: grid;
  grid-template-columns: 230px minmax(320px, 1fr) 260px;
  overflow: hidden;
  min-height: 480px;
  border: 1px solid rgba(169, 111, 34, 0.25);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(243, 230, 204, 0.86)),
    var(--cream);
  box-shadow: var(--shadow);
}

.fleet-panel,
.summit-panel,
.timeline-panel {
  min-width: 0;
  padding: 22px;
}

.fleet-panel {
  border-right: 1px solid rgba(169, 111, 34, 0.22);
  background: rgba(255, 250, 240, 0.72);
}

.summit-panel {
  border-right: 1px solid rgba(169, 111, 34, 0.22);
  background:
    linear-gradient(112deg, transparent 0 54%, rgba(212, 154, 57, 0.1) 54% 55%, transparent 55%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.92), rgba(243, 230, 204, 0.5));
}

.timeline-panel {
  background: rgba(19, 34, 53, 0.04);
}

.panel-title,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.panel-title span {
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.panel-title strong {
  color: var(--gold-deep);
  font-size: 12px;
}

.agent-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  width: 100%;
  min-height: 78px;
  margin-top: 13px;
  padding: 13px;
  border: 1px solid transparent;
  border-radius: 14px;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.agent-row.active {
  border-color: rgba(212, 154, 57, 0.55);
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 16px 36px rgba(169, 111, 34, 0.14);
}

.agent-row strong,
.agent-row small {
  display: block;
}

.agent-row strong {
  color: var(--navy);
  font-size: 14px;
}

.agent-row small {
  margin-top: 2px;
  color: #68645b;
  font-size: 12px;
}

.agent-seal {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(212, 154, 57, 0.44);
  border-radius: 50%;
  color: var(--cream);
  background: linear-gradient(135deg, var(--navy), var(--charcoal));
  font-size: 13px;
  font-weight: 900;
}

.health-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #14532d;
  background: #e9f6df;
  font-size: 12px;
  font-weight: 900;
}

.task-ridge {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(169, 111, 34, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(128deg, transparent 0 66%, rgba(19, 34, 53, 0.12) 66% 68%, transparent 68%),
    rgba(255, 250, 240, 0.72);
}

.task-ridge p {
  margin: 18px 0 0;
  color: #40413e;
  font-size: 15px;
}

.ridge-track {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(19, 34, 53, 0.13);
}

.ridge-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--navy));
  transition: width 220ms ease;
}

.ridge-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
  color: #817865;
  font-size: 11px;
  font-weight: 760;
}

.terminal-card {
  overflow: hidden;
  margin-top: 18px;
  border-radius: 18px;
  background: var(--charcoal);
  box-shadow: 0 18px 38px rgba(17, 21, 29, 0.22);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 15px;
  border-bottom: 1px solid rgba(255, 250, 240, 0.1);
}

.terminal-bar span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #d76645;
}

.terminal-bar span:nth-child(2) {
  background: var(--gold);
}

.terminal-bar span:nth-child(3) {
  background: #78a66d;
}

.terminal-bar strong {
  margin-left: 8px;
  color: #ebdcc4;
  font-size: 12px;
}

.terminal-card pre {
  margin: 0;
  color: #f7ead7;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.terminal-card pre {
  min-height: 162px;
  padding: 17px;
}

.event-list {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.event-list div {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(169, 111, 34, 0.2);
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.7);
}

.event-list strong {
  color: var(--gold-deep);
  font-size: 12px;
}

.event-list span {
  color: #4d4b45;
  font-size: 13px;
}

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

.capability-grid article {
  min-height: 242px;
  padding: 24px;
  border: 1px solid rgba(169, 111, 34, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.92), rgba(243, 230, 204, 0.5)),
    var(--cream);
  box-shadow: 0 18px 44px rgba(17, 21, 29, 0.08);
}

.capability-grid article span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  color: var(--cream);
  background: linear-gradient(135deg, var(--gold), var(--bronze));
  font-size: 12px;
  font-weight: 900;
}

.capability-grid article p {
  margin: 12px 0 0;
  color: #5a5750;
  font-size: 14px;
}

.runtime-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 18px;
  align-items: stretch;
  padding: 72px 0 0;
}

.runtime-copy,
.runtime-code {
  border: 1px solid rgba(169, 111, 34, 0.24);
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(17, 21, 29, 0.08);
}

.runtime-copy {
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.96), rgba(243, 230, 204, 0.64)),
    var(--cream);
}

.runtime-copy p:not(.eyebrow):not(.myth-line) {
  margin: 16px 0 0;
  color: #5a5750;
  font-size: 16px;
}

.runtime-code {
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 270px;
  padding: 28px;
  background:
    radial-gradient(circle at 86% 10%, rgba(212, 154, 57, 0.2), transparent 30%),
    linear-gradient(135deg, var(--navy), var(--charcoal));
}

.runtime-code pre {
  margin: 0;
  color: #f7ead7;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.cta-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 56px;
  margin-bottom: 72px;
  padding: 34px;
  border: 1px solid rgba(169, 111, 34, 0.28);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(212, 154, 57, 0.16), rgba(19, 34, 53, 0.08)),
    rgba(255, 250, 240, 0.82);
}

.cta-section h2 {
  max-width: 760px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 48px;
  border-top: 1px solid rgba(169, 111, 34, 0.24);
  color: #68645b;
  font-size: 14px;
  background: rgba(255, 250, 240, 0.72);
}

.site-footer a {
  color: var(--gold-deep);
  font-weight: 780;
}

@media (max-width: 1120px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-art {
    min-height: 480px;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero-section::after {
    left: 8%;
  }

  .control-board {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .timeline-panel {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(169, 111, 34, 0.22);
  }

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

  .runtime-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px;
  }

  .top-nav {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-section,
  .console-section,
  .capability-section,
  .runtime-section,
  .cta-section {
    width: min(100% - 32px, 1180px);
  }

  .hero-section {
    padding-top: 42px;
  }

  .hero-art {
    min-height: 330px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 29px;
  }

  .hero-text {
    font-size: 17px;
    line-height: 1.72;
  }

  .control-board,
  .capability-grid,
  .runtime-section {
    grid-template-columns: 1fr;
  }

  .fleet-panel,
  .summit-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(169, 111, 34, 0.22);
  }

  .panel-head,
  .cta-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    padding: 24px 22px;
  }
}
