:root {
  color-scheme: light;
  --ink: #11181f;
  --muted: #53616f;
  --soft: #edf3f1;
  --paper: #f8fbfa;
  --line: #cfdbd8;
  --teal: #117c6f;
  --green: #6a8f2a;
  --gold: #b17822;
  --coral: #bf5745;
  --violet: #6744c7;
  --panel: #ffffff;
  --shadow: 0 18px 55px rgba(20, 32, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 44px;
  border-bottom: 1px solid rgba(207, 219, 216, 0.76);
  background: rgba(248, 251, 250, 0.9);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #1d302f;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

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

.nav-links a:hover {
  color: var(--ink);
}

.header-actions {
  gap: 10px;
}

.ghost-button,
.icon-button,
.primary-button,
.secondary-button,
.diagram-tab,
#copyCommand {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.ghost-button,
.icon-button {
  display: grid;
  place-items: center;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

.icon-button {
  width: 40px;
  font-size: 12px;
  font-weight: 760;
}

.hero {
  position: relative;
  min-height: clamp(620px, calc(88vh - 72px), 760px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 72px 44px 54px;
  background:
    linear-gradient(120deg, rgba(10, 21, 27, 0.93), rgba(15, 31, 34, 0.78)),
    radial-gradient(circle at 78% 18%, rgba(17, 124, 111, 0.32), transparent 26%),
    #10181d;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26%;
  background: linear-gradient(180deg, transparent, var(--paper));
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  right: max(44px, 9vw);
  top: 78px;
  width: min(440px, 36vw);
  max-width: none;
  opacity: 0.72;
  filter: drop-shadow(0 28px 80px rgba(106, 68, 199, 0.42));
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #8fe0d0;
}

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

h1 {
  width: min(870px, 100%);
  margin-bottom: 24px;
  font-size: clamp(44px, 6.8vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  width: min(760px, 100%);
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.48;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 720;
}

.primary-button {
  border-color: #9debdc;
  background: #9debdc;
  color: #09211d;
}

.secondary-button {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(780px, 100%);
  margin: 30px 0 0;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.hero-stats dt {
  font-size: 20px;
  font-weight: 760;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.quick-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 40px));
  margin: -64px auto 96px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.quick-link {
  display: flex;
  min-height: 154px;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: #fff;
}

.quick-link:hover strong {
  color: var(--teal);
}

.quick-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.quick-link strong {
  font-size: 20px;
}

.quick-link span:last-child {
  color: var(--muted);
  line-height: 1.5;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 24px;
}

.section-heading h2,
.why-text h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.why-text p,
.definition-grid p,
.component-grid p,
.build-card p,
.join-grid p,
.principles span {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.definition-grid,
.component-grid,
.build-grid,
.join-grid {
  display: grid;
  gap: 14px;
}

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

.definition-grid article,
.component-grid article,
.build-card,
.join-grid a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(17, 24, 31, 0.05);
}

.definition-grid article {
  padding: 24px;
}

.card-index {
  display: block;
  margin-bottom: 52px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
}

.definition-grid h3,
.component-grid h3,
.build-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.stack-section {
  width: 100%;
  padding-right: max(20px, calc((100% - 1180px) / 2));
  padding-left: max(20px, calc((100% - 1180px) / 2));
  background: #eef6f2;
}

.diagram-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.diagram-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.diagram-tab {
  padding: 0 14px;
  background: #fff;
  color: var(--muted);
}

.diagram-tab.active {
  border-color: #0d766a;
  background: #e5f6f2;
  color: #0d5f56;
  font-weight: 720;
}

.diagram-frame {
  margin: 0;
  padding: 18px;
}

.diagram-frame img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border: 1px solid #d9e3e0;
  border-radius: 8px;
  background: #fff;
}

.diagram-frame figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.component-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.component-grid article {
  padding: 22px;
}

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

.build-card {
  min-height: 250px;
  padding: 24px;
}

.build-card:nth-child(1) {
  border-top: 5px solid var(--teal);
}

.build-card:nth-child(2) {
  border-top: 5px solid var(--gold);
}

.build-card:nth-child(3) {
  border-top: 5px solid var(--violet);
}

.build-card:nth-child(4) {
  border-top: 5px solid var(--green);
}

.start-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: 34px;
  align-items: start;
}

.terminal-panel {
  overflow: hidden;
  border: 1px solid #18252a;
  border-radius: 8px;
  background: #11181f;
  color: #e6fbf7;
  box-shadow: var(--shadow);
}

.terminal-topbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #bf5745;
}

.terminal-topbar span:nth-child(2) {
  background: #b17822;
}

.terminal-topbar span:nth-child(3) {
  background: #6a8f2a;
}

#copyCommand {
  margin-left: auto;
  padding: 0 12px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.75;
}

.start-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.start-links a {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--teal);
  font-weight: 720;
}

.why-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
  gap: 60px;
  align-items: start;
}

.principles {
  display: grid;
  gap: 12px;
}

.principles div {
  padding: 20px;
  border-left: 5px solid var(--coral);
  border-radius: 8px;
  background: #fff;
}

.principles div:nth-child(2) {
  border-left-color: var(--teal);
}

.principles div:nth-child(3) {
  border-left-color: var(--gold);
}

.principles strong,
.principles span {
  display: block;
}

.principles strong {
  margin-bottom: 6px;
  font-size: 18px;
}

.join-section {
  padding-bottom: 110px;
}

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

.join-grid a {
  display: block;
  padding: 24px;
}

.join-grid a:hover strong {
  color: var(--teal);
}

.join-grid span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.join-grid strong {
  display: block;
  margin: 14px 0 10px;
  font-size: 24px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 44px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.site-footer a {
  color: var(--teal);
  font-weight: 720;
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-right: 20px;
    padding-left: 20px;
  }

  .quick-panel,
  .definition-grid,
  .component-grid,
  .build-grid,
  .join-grid,
  .start-section,
  .why-section {
    grid-template-columns: 1fr;
  }

  .quick-panel {
    margin-top: -48px;
  }

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

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

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 760px;
    padding-top: 78px;
  }

  .hero-bg {
    width: 1050px;
    right: -510px;
    top: 44px;
    opacity: 0.42;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 44px;
  }

  .hero-actions,
  .start-links {
    flex-direction: column;
  }

  h1 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 42px;
  }

  .hero-actions {
    width: 100%;
    min-width: 0;
  }

  .hero-stats {
    display: none;
  }

  .primary-button,
  .secondary-button,
  .start-links a {
    width: 100%;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 64px 0;
  }

  .stack-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .diagram-toolbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .diagram-tab {
    padding: 0 8px;
  }

  .site-footer {
    padding-right: 20px;
    padding-left: 20px;
  }
}
