:root {
  --bg-page: #f2f6ef;
  --bg-surface: #ffffff;
  --bg-muted: #e8efe3;
  --text-main: #1f2c21;
  --text-soft: #536156;
  --brand-700: #1d5b33;
  --brand-600: #287241;
  --brand-500: #349252;
  --accent-earth: #8a6c3f;
  --line: #cfdcca;
  --radius-m: 14px;
  --radius-l: 20px;
  --shadow-soft: 0 10px 26px rgba(23, 56, 34, 0.12);
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "PT Sans", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(1200px 420px at 20% -80px, rgba(65, 138, 80, 0.18), transparent 60%),
    radial-gradient(1200px 360px at 100% 0, rgba(140, 115, 73, 0.14), transparent 55%),
    var(--bg-page);
}

h1,
h2,
h3 {
  font-family: "Exo 2", sans-serif;
  margin: 0 0 0.6rem;
  line-height: 1.1;
}

p {
  margin: 0;
  line-height: 1.45;
}

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

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
  background: linear-gradient(90deg, rgba(24, 70, 41, 0.95), rgba(38, 95, 56, 0.9));
  border-bottom: 1px solid rgba(228, 242, 224, 0.25);
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px 2px 8px 2px;
  background: linear-gradient(135deg, #f3dd62, #7bb43d);
  box-shadow: inset 0 0 0 2px rgba(16, 55, 27, 0.28);
  transform: rotate(-12deg);
}

.brand-name {
  font-family: "Exo 2", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #f4ffe9;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #edf8ee;
}

.topnav a {
  font-weight: 700;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.topnav a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(76vh, 760px);
  isolation: isolate;
  border-bottom: 1px solid rgba(64, 99, 53, 0.22);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(18, 47, 29, 0.68) 0%, rgba(26, 58, 37, 0.33) 44%, rgba(78, 57, 22, 0.28) 100%),
    url("./background.png")
      center/cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(to top, rgba(5, 24, 10, 0.4), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: grid;
  place-items: center start;
  padding-block: clamp(4rem, 12vw, 10rem);
}

.hero-copy {
  width: min(640px, 100%);
  color: #f7fff3;
}

.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  text-wrap: balance;
}

.hero-copy p {
  margin-top: 1.15rem;
  font-size: clamp(1.08rem, 2vw, 1.6rem);
  color: rgba(241, 250, 237, 0.95);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1.1rem;
  border-radius: 11px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(145deg, #2f8e4f, #1f6e3b);
  color: #f4fff2;
  box-shadow: 0 8px 20px rgba(25, 78, 45, 0.32);
}

.btn-primary:hover {
  box-shadow: 0 12px 22px rgba(24, 73, 42, 0.36);
}

.btn-secondary {
  color: #edf5ea;
  border-color: rgba(230, 241, 225, 0.75);
  background: rgba(31, 60, 38, 0.35);
}

.section {
  padding-block: clamp(2.5rem, 8vw, 5rem);
}

.section h2 {
  font-size: clamp(1.55rem, 3vw, 2.55rem);
}

.section-intro .container {
  background: linear-gradient(170deg, #f7fbf4, #edf4e8);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(1.3rem, 4vw, 2rem);
  box-shadow: var(--shadow-soft);
}

.section-intro p {
  max-width: 72ch;
  color: var(--text-soft);
}

.section-intro ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.card-grid,
.role-grid {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand-500);
  border-radius: var(--radius-m);
  padding: 1.1rem 1rem;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  font-size: 1.35rem;
}

.card ul {
  margin: 0.85rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-soft);
  display: grid;
  gap: 0.4rem;
}

.role-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.role-card {
  background:
    linear-gradient(140deg, rgba(41, 118, 70, 0.08), rgba(122, 95, 55, 0.08)),
    #f7faf5;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.1rem 1rem;
}

.role-card p {
  color: var(--text-soft);
}

.dashboard {
  display: none;
  padding-block: clamp(2.5rem, 8vw, 5rem);
}

.dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-head p {
  color: var(--text-soft);
}

.dashboard .btn-secondary {
  color: var(--brand-700);
  border-color: var(--brand-600);
  background: #e6f2e7;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.metric {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.metric span {
  display: block;
  color: var(--text-soft);
  margin-bottom: 0.65rem;
}

.metric strong {
  font-family: "Exo 2", sans-serif;
  font-size: clamp(1.55rem, 2vw, 2rem);
  color: var(--brand-700);
}

.metric-alert {
  border-color: rgba(154, 97, 37, 0.42);
  background:
    linear-gradient(170deg, rgba(180, 133, 68, 0.08), rgba(255, 251, 242, 0.78)),
    var(--bg-surface);
}

.mini-footer {
  background: #edf3ea;
  border-top: 1px solid var(--line);
}

.mini-footer-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: #4b5d4f;
  font-size: 0.95rem;
}

.mini-footer a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.is-authorized #landing-root {
  display: none;
}

body.is-authorized #dashboard-root {
  display: block;
}

@media (max-width: 760px) {
  .brand-name {
    font-size: 1.7rem;
  }

  .topnav {
    gap: 1rem;
    font-size: 0.95rem;
  }

  .hero-copy h1 {
    max-width: 14ch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .dashboard-head {
    flex-direction: column;
  }
}
