:root {
  color-scheme: light;
  --bg: #f7f5f1;
  --ink: #18201d;
  --muted: #5d6861;
  --line: #d8ded8;
  --panel: #ffffff;
  --green: #146c43;
  --green-dark: #0f4f34;
  --amber: #d98f1f;
  --red: #b42318;
  --steel: #35546b;
  --shadow: 0 18px 48px rgba(24, 32, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(24, 32, 29, 0.08);
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

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

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: var(--green-dark);
}

.button-secondary {
  border-color: rgba(24, 32, 29, 0.18);
  background: #ffffff;
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--green);
  background: #ffffff;
}

.button-glass {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  backdrop-filter: blur(18px);
}

.button-glass:hover,
.button-glass:focus-visible {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.22);
}

.button-danger {
  background: var(--red);
}

.button-danger:hover,
.button-danger:focus-visible {
  background: #8f1c13;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(760px, 84svh);
  background: #172d46;
}

.hero-coming-soon {
  display: grid;
  align-items: end;
}

.hero-visual,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-visual {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(11, 22, 20, 0.78), rgba(11, 22, 20, 0.44) 42%, rgba(11, 22, 20, 0.08) 72%),
    linear-gradient(0deg, rgba(11, 22, 20, 0.48), transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0 76px;
}

.hero-content-coming-soon {
  color: #ffffff;
}

.hero-content-coming-soon .eyebrow {
  color: #ffd66e;
}

.hero-content-coming-soon .hero-copy {
  color: rgba(255, 255, 255, 0.86);
}

.eyebrow {
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  max-width: 650px;
  margin-top: 18px;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: #39443e;
  font-size: clamp(1.08rem, 2.4vw, 1.35rem);
}

.coming-note {
  display: grid;
  gap: 4px;
  max-width: 460px;
  margin-top: 26px;
  padding-left: 16px;
  border-left: 4px solid var(--amber);
}

.coming-note strong {
  font-size: 1.18rem;
}

.coming-note span {
  color: rgba(255, 255, 255, 0.78);
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 740px;
  margin-top: 54px;
}

.meta-item {
  min-width: 180px;
  padding: 14px 16px;
  border-left: 4px solid var(--amber);
  background: rgba(255, 255, 255, 0.76);
}

.meta-item strong {
  display: block;
  font-size: 1.05rem;
}

.meta-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 78px 0;
}

.section-alt {
  background: #ffffff;
}

.section-public-links {
  background: #ffffff;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.compact-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.compact-header h2 {
  max-width: 580px;
}

.section-header p,
.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

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

.card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.link-card {
  min-height: 180px;
}

.link-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.link-card a:hover,
.link-card a:focus-visible {
  text-decoration: underline;
}

.band {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 30px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(20, 108, 67, 0.22);
  border-radius: 8px;
  background: #edf4ee;
}

.band-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.band-list li {
  padding: 14px 16px;
  border: 1px solid rgba(24, 32, 29, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.page-hero {
  padding: 76px 0 58px;
  background: #e9eee8;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 34px;
  align-items: start;
}

.prose {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.prose h2 {
  margin-top: 34px;
  font-size: 1.6rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose a {
  color: var(--green-dark);
  font-weight: 750;
}

.side-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  position: sticky;
  top: 96px;
}

.side-panel h2,
.side-panel h3 {
  font-size: 1.1rem;
}

.side-panel p {
  color: var(--muted);
}

.form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 750;
}

.field small {
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #bfc8c0;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

textarea {
  min-height: 128px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(20, 108, 67, 0.18);
  border-color: var(--green);
}

.checkbox {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
}

.checkbox input {
  min-height: 22px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status {
  min-height: 26px;
  color: var(--muted);
  font-weight: 700;
}

.status[data-kind="success"] {
  color: var(--green-dark);
}

.status[data-kind="error"] {
  color: var(--red);
}

.notice {
  padding: 16px;
  border-left: 4px solid var(--amber);
  background: #fff7e8;
  color: #483517;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #18201d;
  color: #f7f5f1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 34px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: #f7f5f1;
  text-decoration: none;
}

.preview-body {
  min-height: 100vh;
  background: #f4f5f7;
  color: #1f2328;
}

.app-preview-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.app-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  padding: 24px 16px;
  border-right: 1px solid #dfe3e8;
  background: rgba(250, 251, 252, 0.86);
  backdrop-filter: blur(24px);
}

.app-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  color: #111827;
  font-weight: 850;
  text-decoration: none;
}

.app-logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.app-nav {
  display: grid;
  gap: 4px;
}

.app-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: #4b5563;
  font-weight: 720;
  text-decoration: none;
}

.app-nav a:hover,
.app-nav a:focus-visible {
  background: #eef1f4;
  color: #111827;
}

.app-nav a.active {
  background: #e8f1ec;
  color: #0f4f34;
}

.sidebar-note {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  background: #ffffff;
}

.sidebar-note strong {
  font-size: 0.95rem;
}

.sidebar-note span {
  color: #667085;
  font-size: 0.86rem;
}

.app-main {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 28px;
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  padding: 26px;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 245, 0.82)),
    #ffffff;
  box-shadow: 0 18px 44px rgba(31, 35, 40, 0.06);
}

.app-topbar h1 {
  max-width: none;
  margin: 6px 0 0;
  color: #111827;
  font-size: clamp(2rem, 4vw, 3.75rem);
}

.app-topbar p {
  max-width: 620px;
  margin: 10px 0 0;
  color: #667085;
}

.app-kicker {
  color: #166c45;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  min-width: min(340px, 100%);
}

.preview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  font-weight: 760;
  text-decoration: none;
}

.preview-button.primary {
  border-color: #166c45;
  background: #166c45;
  color: #ffffff;
}

.preview-grid {
  display: grid;
  gap: 14px;
}

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

.metric-card,
.preview-panel {
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(31, 35, 40, 0.05);
}

.metric-card {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.metric-card span,
.metric-card small {
  color: #667085;
}

.metric-card strong {
  color: #111827;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1;
}

.workspace-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
}

.lower-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.preview-panel {
  padding: 20px;
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-heading h2,
.side-widgets h2 {
  margin-top: 5px;
  color: #111827;
  font-size: 1.15rem;
}

.panel-heading a {
  color: #166c45;
  font-weight: 800;
  text-decoration: none;
}

.soft-badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.soft-badge {
  background: #eef1f4;
  color: #4b5563;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(28px, 1fr));
  align-items: end;
  gap: 12px;
  height: 260px;
  padding-top: 18px;
  border-top: 1px solid #edf0f3;
}

.bar-chart span {
  position: relative;
  display: grid;
  align-items: end;
  height: 100%;
}

.bar-chart span::before {
  content: "";
  display: block;
  height: var(--bar);
  min-height: 18px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #4f9673, #166c45);
}

.bar-chart i {
  margin-top: 9px;
  color: #667085;
  font-size: 0.8rem;
  font-style: normal;
  text-align: center;
}

.mini-form {
  display: grid;
  gap: 13px;
}

.mini-form label {
  display: grid;
  gap: 7px;
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 760;
}

.mini-form input,
.mini-form select {
  min-height: 42px;
  border-color: #d5dbe3;
  background: #fbfcfd;
}

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

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf0f3;
  text-align: left;
}

.data-table th {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-table td {
  color: #1f2937;
  font-weight: 640;
}

.status-pill.done {
  background: #e8f3ed;
  color: #166c45;
}

.status-pill.pending {
  background: #fff4dd;
  color: #8a5a09;
}

.side-widgets {
  display: grid;
  gap: 14px;
}

.side-widgets section {
  padding-bottom: 14px;
  border-bottom: 1px solid #edf0f3;
}

.side-widgets section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.side-widgets p {
  margin: 8px 0 0;
  color: #667085;
}

.progress-line {
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f3;
}

.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #166c45;
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero {
    min-height: 74svh;
  }

  .grid,
  .compact-grid,
  .metrics-grid,
  .workspace-grid,
  .lower-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .band,
  .content-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .app-preview-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #dfe3e8;
  }

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

  .app-topbar {
    flex-direction: column;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 0;
  }

  .hero-content {
    padding: 92px 0 54px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(11, 22, 20, 0.28), rgba(11, 22, 20, 0.78)),
      linear-gradient(90deg, rgba(11, 22, 20, 0.82), rgba(11, 22, 20, 0.34));
  }

  .grid,
  .compact-grid,
  .metrics-grid,
  .workspace-grid,
  .lower-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .app-main {
    padding: 16px;
  }

  .app-nav {
    grid-template-columns: 1fr 1fr;
  }

  .app-topbar,
  .preview-panel {
    padding: 16px;
  }

  .section {
    padding: 56px 0;
  }

  .prose,
  .band {
    padding: 22px;
  }
}
