:root {
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Dosis", "Trebuchet MS", sans-serif;
  --ink: #13211d;
  --muted: #5f6f69;
  --subtle: #eef5f2;
  --line: #d7e3df;
  --white: #ffffff;
  --green: #006b3f;
  --green-2: #0b8a5f;
  --blue: #155e9f;
  --gold: #d89a15;
  --red: #b43f3f;
  --shadow: 0 18px 44px rgba(19, 33, 29, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1240px, calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0;
}

.brand span span,
.footer strong span {
  color: var(--green);
}

.nav-toggle {
  display: none;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

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

.nav-links a,
.footer a {
  text-decoration: none;
}

.button,
.icon-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.button-primary {
  color: var(--white);
  background: var(--green);
}

.button-secondary,
.button-light,
.icon-button {
  color: var(--green);
  border-color: var(--line);
  background: var(--white);
}

.hero {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 720px;
  padding: 44px 0 52px;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(620px, 1.22fr);
  gap: 40px;
  align-items: center;
}

.hero h1,
.band-intro h2,
.section-heading h2 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(62px, 7vw, 112px);
}

.hero-copy > p {
  max-width: 580px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
}

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

.trust-stack {
  max-width: 620px;
  margin-top: 36px;
  display: grid;
  gap: 12px;
}

.trust-stack div {
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

.trust-stack strong {
  display: block;
  font-size: 14px;
}

.trust-stack span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.command-center,
.workspace-card,
.assistant-shell,
.institute-dashboard {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.panel-head {
  min-height: 74px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--subtle);
}

.panel-head h2 {
  margin: 0;
  font-size: 18px;
}

.panel-head span,
.mini-head span,
.metric-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.command-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 18px;
}

input,
select {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  font-size: 14px;
  font-weight: 650;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 18px;
}

.quick-filters button,
.category-chip {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.quick-filters button:hover,
.quick-filters button.is-active {
  color: var(--white);
  border-color: var(--blue);
  background: var(--blue);
}

.mini-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  border-top: 1px solid var(--line);
}

.mini-grid > section {
  min-height: 228px;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.mini-grid > section:nth-child(2) {
  border-right: 0;
}

.source-status {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
}

.notice-line,
.source-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.notice-line:last-child,
.source-line:last-child {
  border-bottom: 0;
}

.notice-line strong,
.source-line strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.notice-line span,
.source-line span,
.record-sub,
.guardrails,
.doc-list,
.check-card ul {
  color: var(--muted);
  font-size: 13px;
}

.record-sub {
  display: block;
  margin-top: 4px;
}

.deadline-pill,
.state-pill {
  align-self: start;
  border-radius: 8px;
  padding: 4px 8px;
  color: var(--green);
  background: #e7f4ee;
  font-size: 12px;
  font-weight: 800;
}

.state-pill.review,
.deadline-pill.closed {
  color: var(--red);
  background: #fff0ee;
}

.check-card ul,
.doc-list,
.guardrails,
.band-intro ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-card li,
.doc-list li,
.guardrails li,
.band-intro li {
  position: relative;
  padding-left: 22px;
}

.check-card li::before,
.doc-list li::before,
.guardrails li::before,
.band-intro li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.product-band,
.calendar-section,
.help-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.product-band {
  display: grid;
  grid-template-columns: minmax(290px, 0.34fr) minmax(0, 0.66fr);
  gap: 32px;
  align-items: start;
}

.notice-desk {
  border-top: 1px solid var(--line);
}

.band-intro {
  position: sticky;
  top: 100px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
  font-size: 15px;
  font-weight: 900;
}

.feature-icon.blue {
  background: var(--blue);
}

.feature-icon.gold {
  background: var(--gold);
}

.band-intro h2,
.section-heading h2 {
  font-size: clamp(38px, 4.4vw, 64px);
}

.band-intro p,
.section-heading p,
.help-grid p,
.module-grid p,
.next-card p {
  color: var(--muted);
}

.workspace-card,
.institute-dashboard {
  overflow: hidden;
}

.toolbar {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}

.toolbar input {
  min-width: 220px;
}

.check-filter {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.check-filter input {
  min-height: auto;
  width: auto;
}

.table-wrap {
  overflow-x: auto;
}

.records-table {
  width: 100%;
  border-collapse: collapse;
}

.records-table th,
.records-table td {
  min-width: 120px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.records-table th {
  color: var(--muted);
  background: #f7fbf9;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.records-table td:first-child {
  min-width: 260px;
}

.records-table a {
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.empty-state {
  margin: 0;
  padding: 24px;
}

.calendar-section,
.source-band {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading p {
  max-width: 540px;
  margin: 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.calendar-item {
  min-height: 158px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.calendar-item strong {
  display: block;
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
}

.calendar-item h3 {
  margin: 12px 0 8px;
  font-size: 17px;
  line-height: 1.22;
}

.calendar-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.assistant-shell {
  padding: 18px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.stepper span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfdfc;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.stepper .done {
  color: var(--green);
  background: #e7f4ee;
}

.stepper .active {
  color: var(--white);
  background: var(--blue);
}

.assistant-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr 0.85fr;
  gap: 14px;
}

.goal-card,
.document-card,
.next-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.goal-card {
  display: grid;
  gap: 12px;
}

.goal-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.doc-list li.done::before {
  background: var(--green);
}

.doc-list button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.next-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.metric-row {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}

.metric-row div {
  min-width: 0;
}

.metric-row strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 1;
}

.source-columns {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
}

.source-columns section {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.source-columns section:last-child {
  border-right: 0;
}

.source-columns h3 {
  margin: 0 0 12px;
}

.module-grid,
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
}

.module-grid article,
.help-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.module-grid h3,
.help-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.module-grid p,
.help-grid p {
  margin: 0;
  font-size: 14px;
}

.institute-dashboard > .button {
  margin: 0 18px 18px;
}

.help-section {
  border-top: 1px solid var(--line);
}

.footer {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 28px;
}

.footer p {
  max-width: 420px;
  margin: 6px 0 0;
}

.footer nav,
.footer address {
  display: grid;
  gap: 8px;
  font-style: normal;
}

.footer a {
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 1080px) {
  .hero,
  .product-band,
  .assistant-grid,
  .source-columns {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .band-intro {
    position: static;
  }

  .calendar-grid,
  .module-grid,
  .help-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0 4px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero h1 {
    font-size: 58px;
  }

  .command-search,
  .mini-grid,
  .toolbar,
  .stepper,
  .metric-row,
  .calendar-grid,
  .module-grid,
  .help-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .toolbar,
  .panel-head,
  .section-heading,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .mini-grid > section,
  .source-columns section {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mini-grid > section:last-child,
  .source-columns section:last-child {
    border-bottom: 0;
  }
}
