.page-hero {
  position: relative;
  background: linear-gradient(180deg, #F8F7FF 0%, #fff 100%);
  padding: 158px 0 64px;
  overflow: hidden;
  text-align: center;
}
.page-hero .page-hero-rules {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(to bottom, rgba(7, 16, 31, 0.055) 0, rgba(7, 16, 31, 0.055) 1px, transparent 1px, transparent 38px);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 15%, black 28%, transparent 78%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 15%, black 28%, transparent 78%);
}
.page-hero .page-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-hero h1 {
  margin: 16px 0 18px;
}
.page-hero .sub {
  margin: 0 auto;
}

.toc-ledger {
  background: #fff;
  border: 1px solid rgba(7, 16, 31, 0.09);
  border-radius: 12px;
  overflow: hidden;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: 0 1px 2px rgba(7, 16, 31, 0.03);
}

.toc-group {
  padding: 6px 28px 14px;
}
.toc-group:not(:first-child) {
  border-top: 1px solid rgba(7, 16, 31, 0.06);
}

.toc-group-title {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6D4FE0;
  padding: 16px 0 6px;
}

.toc-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  text-decoration: none;
  transition: opacity 0.12s;
}
.toc-row:hover .toc-name {
  color: #6D4FE0;
}

.toc-name {
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #07101F;
  white-space: nowrap;
  transition: color 0.12s;
}

.toc-leader {
  flex: 1;
  border-bottom: 1px dotted rgba(7, 16, 31, 0.09);
  transform: translateY(-4px);
}

.toc-plan {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  color: #97A1AC;
  white-space: nowrap;
}

.plan-chip {
  display: inline-flex;
  align-items: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
}
.plan-chip--all {
  color: #0F8A5F;
  background: rgba(15, 138, 95, 0.12);
}
.plan-chip--pro {
  color: #6D4FE0;
  background: rgba(124, 92, 252, 0.1);
}
.plan-chip--ent {
  color: #B45309;
  background: rgba(180, 83, 9, 0.1);
}

.fcat {
  scroll-margin-top: 96px;
}
.fcat:not(:first-child) {
  margin-top: 72px;
}

.fcat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(7, 16, 31, 0.09);
}
.fcat-head h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: #07101F;
  letter-spacing: -0.02em;
}
.fcat-head .fcat-count {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: #97A1AC;
}

.fcards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fcard {
  background: #fff;
  border: 1px solid rgba(7, 16, 31, 0.09);
  border-radius: 12px;
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-margin-top: 96px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.fcard:hover {
  border-color: rgba(124, 92, 252, 0.3);
  box-shadow: 0 6px 24px rgba(124, 92, 252, 0.07);
}

.fcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fcard-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #07101F;
  letter-spacing: -0.01em;
}

.fcard-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  color: #5B6472;
  line-height: 1.65;
}

.fcard-points {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.fcard-point {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  color: #07101F;
  line-height: 1.5;
  padding: 6px 0;
  border-top: 1px solid rgba(7, 16, 31, 0.06);
}
.fcard-point svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: #0F8A5F;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.story-grid .story-title {
  position: sticky;
  top: 110px;
}
.story-grid .story-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.story-grid .story-body p {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: #5B6472;
  line-height: 1.8;
}
.story-grid .story-body p strong {
  color: #07101F;
  font-weight: 600;
}

.principles {
  max-width: 880px;
  margin: 48px auto 0;
  border-top: 1px solid rgba(7, 16, 31, 0.09);
}

.principle {
  display: grid;
  grid-template-columns: 72px 1fr 1.4fr;
  gap: 28px;
  align-items: baseline;
  padding: 26px 8px;
  border-bottom: 1px solid rgba(7, 16, 31, 0.09);
  text-align: left;
}

.principle-no {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6D4FE0;
}

.principle-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #07101F;
  letter-spacing: -0.01em;
}

.principle-desc {
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
  color: #5B6472;
  line-height: 1.7;
}

.timeline {
  max-width: 720px;
  margin: 0 auto;
}

.tl-entry {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 0;
}
.tl-entry:not(:last-child) {
  border-bottom: 1px dotted rgba(7, 16, 31, 0.09);
}

.tl-date {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6D4FE0;
  flex-shrink: 0;
  width: 88px;
}

.tl-event {
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
  color: #07101F;
  font-weight: 500;
  white-space: nowrap;
}

.tl-leader {
  flex: 1;
  border-bottom: 1px dotted rgba(7, 16, 31, 0.09);
  transform: translateY(-4px);
  min-width: 24px;
}

.tl-note {
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  color: #97A1AC;
  white-space: nowrap;
}

.commit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 880px;
  margin: 48px auto 0;
}

.commit-card {
  background: #fff;
  border: 1px solid rgba(7, 16, 31, 0.09);
  border-radius: 12px;
  padding: 28px 26px 24px;
  text-align: left;
}

.commit-n {
  font-family: "IBM Plex Mono", monospace;
  font-size: 2rem;
  font-weight: 500;
  color: #07101F;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.commit-l {
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: #07101F;
  margin-bottom: 4px;
}

.commit-d {
  font-family: "Inter", sans-serif;
  font-size: 0.8125rem;
  color: #5B6472;
  line-height: 1.6;
}

.contact-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(7, 16, 31, 0.09);
  border-radius: 14px;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  scroll-margin-top: 96px;
}
.contact-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #07101F;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.contact-card p {
  font-family: "Inter", sans-serif;
  font-size: 0.9375rem;
  color: #5B6472;
  line-height: 1.7;
}

.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  min-width: 240px;
}

.contact-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  font-size: 0.8125rem;
}
.contact-row:not(:last-child) {
  border-bottom: 1px dotted rgba(7, 16, 31, 0.09);
}

.contact-row-label {
  font-family: "Inter", sans-serif;
  color: #5B6472;
  white-space: nowrap;
}

.contact-row-leader {
  flex: 1;
  border-bottom: 1px dotted rgba(7, 16, 31, 0.09);
  transform: translateY(-3px);
  min-width: 16px;
}

.contact-row-val {
  font-family: "IBM Plex Mono", monospace;
  color: #07101F;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.contact-row-val:hover {
  color: #6D4FE0;
}

@media (max-width: 960px) {
  .fcards {
    grid-template-columns: 1fr;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .story-grid .story-title {
    position: static;
  }
  .principle {
    grid-template-columns: 48px 1fr;
    gap: 12px 20px;
  }
  .principle .principle-desc {
    grid-column: 2;
  }
  .commit-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .contact-card {
    flex-direction: column;
    align-items: stretch;
    padding: 30px 26px;
  }
}
@media (max-width: 600px) {
  .page-hero {
    padding: 118px 0 44px;
  }
  .toc-group {
    padding: 4px 18px 12px;
  }
  .tl-entry {
    flex-wrap: wrap;
  }
  .tl-note {
    white-space: normal;
    width: 100%;
    padding-left: 98px;
  }
}
