:root {
  color-scheme: dark;
  --bg: #050707;
  --bg-raised: #0a0f10;
  --bg-panel: #0d1415;
  --bg-line: #121d1e;
  --text: #f5f8f8;
  --text-soft: #c7d1d1;
  --muted: #879395;
  --faint: #617073;
  --line: rgba(223, 241, 241, 0.16);
  --line-soft: rgba(223, 241, 241, 0.08);
  --cyan: #35e6dc;
  --green: #8ff0a4;
  --amber: #e5b15b;
  --red: #ef7d70;
  --ink: #021010;
  --shadow: rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 10%, rgba(53, 230, 220, 0.12), transparent 26rem),
    linear-gradient(180deg, #071011 0%, var(--bg) 34rem);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

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

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(223, 241, 241, 0.08);
  background: rgba(5, 7, 7, 0.78);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.language-toggle {
  display: flex;
  align-items: center;
}

.brand img {
  width: 118px;
  height: auto;
}

.nav-links {
  gap: 28px;
  color: rgba(245, 248, 248, 0.68);
  font-size: 13px;
  font-weight: 720;
}

.nav-links a {
  padding: 24px 0;
}

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

.language-toggle {
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.language-toggle button {
  min-width: 50px;
  border: 0;
  border-radius: 5px;
  padding: 7px 9px;
  background: transparent;
  color: rgba(245, 248, 248, 0.62);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.language-toggle button[aria-pressed="true"] {
  background: var(--cyan);
  color: var(--ink);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  min-height: 680px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 64px;
  align-items: end;
  padding: 116px max(24px, calc((100vw - 1180px) / 2)) 62px;
  border-bottom: 1px solid var(--line-soft);
}

.hero-copy {
  max-width: 710px;
  padding-bottom: 24px;
}

.dateline,
.section-kicker {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(48px, 6.1vw, 88px);
  line-height: 0.96;
  font-weight: 860;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(245, 248, 248, 0.82);
  font-size: 20px;
  line-height: 1.74;
}

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

.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 17px;
  font-size: 14px;
  font-weight: 820;
}

.primary-link {
  background: var(--text);
  color: #030606;
}

.secondary-link {
  border: 1px solid var(--line);
  background: rgba(13, 20, 21, 0.6);
  color: var(--text);
}

.hero-panel {
  min-width: 0;
}

.product-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080c0d;
  box-shadow: 0 28px 72px var(--shadow);
}

.product-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 1px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--line-soft);
}

.metric-item {
  min-height: 110px;
  padding: 18px 16px;
  background: rgba(13, 20, 21, 0.9);
}

.metric-value {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 27px;
  line-height: 1;
  font-weight: 860;
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

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

.section-log {
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100% - 1180px) / 2));
  padding-left: max(24px, calc((100% - 1180px) / 2));
  background: rgba(10, 15, 16, 0.78);
  border-bottom: 1px solid var(--line-soft);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

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

.section-heading.narrow {
  max-width: 720px;
}

.calendar-section-heading {
  max-width: 980px;
}

.section-heading h2,
.evidence-panel h2 {
  margin-bottom: 13px;
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.12;
  font-weight: 840;
  letter-spacing: 0;
}

.section-heading p:not(.section-kicker),
.evidence-panel p:not(.section-kicker) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.activity-calendar {
  width: min(100%, 980px);
  margin-top: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 16px;
  background: rgba(5, 7, 7, 0.34);
}

.calendar-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.calendar-heading h3 {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.25;
}

.calendar-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.calendar-heading strong {
  flex: 0 0 auto;
  max-width: 260px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.45;
  text-align: right;
}

.calendar-scroll {
  --calendar-cell: 13px;
  --calendar-gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(53, 230, 220, 0.42) transparent;
}

.calendar-scroll::-webkit-scrollbar {
  height: 6px;
}

.calendar-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(53, 230, 220, 0.42);
}

.calendar-months {
  display: grid;
  width: max-content;
  gap: var(--calendar-gap);
  margin-left: 30px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
}

.calendar-body {
  display: grid;
  grid-template-columns: 22px max-content;
  gap: 8px;
  align-items: start;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-rows: repeat(7, var(--calendar-cell));
  grid-auto-flow: column;
  gap: var(--calendar-gap);
}

.calendar-weekdays {
  color: var(--faint);
  font-size: 10px;
  line-height: var(--calendar-cell);
  text-align: right;
}

.calendar-grid {
  width: max-content;
}

.calendar-cell {
  width: var(--calendar-cell);
  height: var(--calendar-cell);
  border: 1px solid rgba(223, 241, 241, 0.06);
  border-radius: 3px;
  padding: 0;
  background: #0d1516;
}

button.calendar-cell {
  cursor: pointer;
}

button.calendar-cell:hover,
button.calendar-cell:focus-visible,
.calendar-cell.is-selected {
  outline: 2px solid rgba(245, 248, 248, 0.88);
  outline-offset: 2px;
}

.calendar-cell[data-level="0"] {
  background: rgba(223, 241, 241, 0.045);
}

.calendar-cell[data-level="1"] {
  background: rgba(53, 230, 220, 0.22);
  border-color: rgba(53, 230, 220, 0.18);
}

.calendar-cell[data-level="2"] {
  background: rgba(53, 230, 220, 0.42);
  border-color: rgba(53, 230, 220, 0.26);
}

.calendar-cell[data-level="3"] {
  background: rgba(53, 230, 220, 0.68);
  border-color: rgba(53, 230, 220, 0.38);
}

.calendar-cell[data-level="4"] {
  background: var(--cyan);
  border-color: rgba(53, 230, 220, 0.74);
  box-shadow: 0 0 12px rgba(53, 230, 220, 0.26);
}

.calendar-cell.is-outside {
  opacity: 0.28;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.filter-button {
  min-height: 36px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  padding: 0 12px;
  background: rgba(5, 7, 7, 0.42);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
}

.filter-button[aria-pressed="true"] {
  border-color: rgba(53, 230, 220, 0.56);
  background: rgba(53, 230, 220, 0.12);
  color: var(--cyan);
}

.log-list {
  border-top: 1px solid var(--line);
}

.log-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 34px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: 96px;
  transition:
    background 160ms ease,
    box-shadow 160ms ease;
}

.log-card.is-focused {
  background: rgba(53, 230, 220, 0.06);
  box-shadow: -18px 0 0 rgba(53, 230, 220, 0.06), 18px 0 0 rgba(53, 230, 220, 0.06);
}

.log-meta {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
  min-width: 0;
}

.log-date {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 860;
}

.log-card h3 {
  margin-bottom: 13px;
  font-size: 26px;
  line-height: 1.22;
}

.log-entry-sections {
  display: grid;
  gap: 24px;
}

.log-entry-section {
  min-width: 0;
}

.log-entry-section h3 {
  display: inline-flex;
  margin-bottom: 11px;
  border-bottom: 1px solid rgba(53, 230, 220, 0.42);
  padding-bottom: 5px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.2;
}

.log-card ul,
.evidence-panel ul {
  margin: 0;
  padding-left: 18px;
  color: #c8d3d3;
  line-height: 1.68;
}

.log-card li + li,
.evidence-panel li + li {
  margin-top: 7px;
}

.log-tags {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-self: start;
  max-width: 100%;
  gap: 7px;
}

.tag {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

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

.module-card {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.module-card h3 {
  margin-bottom: 14px;
  font-size: 28px;
  line-height: 1.14;
}

.module-summary {
  min-height: 132px;
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.62;
}

.feature-list {
  border-top: 1px solid var(--line-soft);
}

.feature-item {
  padding: 17px 0;
  border-bottom: 1px solid var(--line-soft);
}

.feature-top,
.risk-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.feature-name {
  font-weight: 840;
}

.status {
  flex: 0 0 auto;
  align-self: flex-start;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.25;
}

.status.done,
.status.implemented {
  color: var(--green);
}

.status.integration {
  color: var(--cyan);
}

.status.acceptance {
  color: var(--amber);
}

.status.blocked {
  color: var(--red);
}

.feature-item p,
.risk-card p {
  margin: 0;
  color: #c7d2d1;
  line-height: 1.6;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 56px;
  align-items: start;
}

.risk-list {
  border-top: 1px solid var(--line);
}

.risk-card {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.risk-title h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}

.evidence-panel {
  position: sticky;
  top: 96px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 32px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 13px;
}

code {
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.94em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

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

  .brand img {
    width: 104px;
  }

  .nav-links {
    display: none;
  }

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

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-panel {
    max-width: 640px;
  }

  .log-card,
  .module-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .log-card {
    gap: 14px;
  }

  .module-summary {
    min-height: auto;
  }

  .evidence-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 62px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .brand img {
    width: 92px;
  }

  .language-toggle button {
    min-width: 40px;
    padding: 6px 7px;
  }

  .hero {
    gap: 28px;
    padding: 92px 18px 42px;
  }

  h1 {
    margin-bottom: 20px;
    font-size: 38px;
  }

  .hero-summary,
  .section-heading p:not(.section-kicker),
  .evidence-panel p:not(.section-kicker) {
    font-size: 14px;
  }

  .hero-summary {
    line-height: 1.62;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
  }

  .primary-link,
  .secondary-link {
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
  }

  .product-frame img {
    height: 154px;
    aspect-ratio: auto;
    object-position: 50% 45%;
  }

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

  .metric-item {
    min-height: 88px;
    padding: 10px 9px;
  }

  .metric-value {
    font-size: 23px;
  }

  .metric-label {
    font-size: 10.5px;
  }

  .section,
  .section-log {
    width: 100%;
    padding: 70px 18px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .activity-calendar {
    padding: 13px;
  }

  .calendar-heading {
    display: grid;
    gap: 10px;
  }

  .calendar-heading strong {
    max-width: none;
    text-align: left;
  }

  .calendar-scroll {
    --calendar-cell: 12px;
  }

  .section-heading h2,
  .evidence-panel h2 {
    font-size: 30px;
  }

  .log-card h3,
  .module-card h3 {
    font-size: 24px;
  }

  .feature-top,
  .risk-title {
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
    padding: 26px 18px;
  }
}
