:root {
  --bg: #f3f0ea;
  --surface: #ffffff;
  --surface-alt: #f8f5ef;
  --line: #ddd6ca;
  --line-strong: #c8beaf;
  --text: #1f2524;
  --muted: #66716d;
  --brand: rgb(156, 211, 206);
  --brand-strong: rgb(98, 165, 159);
  --brand-soft: rgb(231, 246, 244);
  --accent: rgb(126, 191, 185);
  --accent-soft: rgb(240, 250, 249);
  --danger: #9b4f3e;
  --shadow: 0 14px 40px rgba(31, 37, 36, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --content: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(156, 211, 206, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(126, 191, 185, 0.12), transparent 24%),
    linear-gradient(180deg, #f8f5ef 0%, var(--bg) 100%);
  font: 16px/1.6 "Segoe UI", Arial, sans-serif;
}

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

img {
  max-width: 100%;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  border-right: 1px solid rgba(200, 190, 175, 0.6);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f4f7ee);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(156, 211, 206, 0.28);
}

.brand-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand h1,
.brand h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.sidebar-nav,
.sidebar-links {
  display: grid;
  gap: 6px;
}

.sidebar-label {
  margin: 20px 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--muted);
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--brand-strong);
  border-color: rgba(156, 211, 206, 0.3);
  background: var(--brand-soft);
}

.nav-link small {
  color: var(--accent);
  font-weight: 700;
}

.sidebar-card {
  margin-top: 24px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(160deg, var(--brand-strong), rgb(126, 191, 185));
  color: #eef8f6;
}

.sidebar-card b {
  display: block;
  margin-bottom: 6px;
}

.sidebar-card p {
  margin: 0;
  color: rgba(238, 248, 246, 0.82);
  font-size: 13px;
}

.page {
  padding: 28px;
}

.page-inner {
  max-width: var(--content);
  margin: 0 auto;
}

.mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 20;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(200, 190, 175, 0.7);
  backdrop-filter: blur(16px);
}

.mobile-topbar button {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  font: inherit;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 40px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgb(52, 92, 88) 0%, rgb(98, 165, 159) 52%, rgb(156, 211, 206) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  right: -130px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #dbefe9;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero h2 {
  position: relative;
  margin: 16px 0 14px;
  max-width: 900px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 0.96;
}

.hero p {
  position: relative;
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn {
  background: #fff;
  color: var(--brand-strong);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.stats,
.grid,
.feature-grid {
  display: grid;
  gap: 16px;
}

.stats {
  margin-top: 26px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.stat,
.panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat {
  padding: 18px;
}

.stat strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  color: var(--brand);
}

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 34px 0 16px;
}

.section-head h3 {
  margin: 0;
  font-size: 32px;
  line-height: 1.05;
}

.section-head p {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
}

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

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

.card,
.panel {
  padding: 24px;
}

.card h4,
.panel h4 {
  margin: 0 0 10px;
  font-size: 22px;
}

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

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

.hero-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 700;
}

.hero-link small {
  opacity: 0.78;
  font-weight: 600;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #6a4a20;
  font-size: 12px;
  font-weight: 800;
}

.module-card {
  display: grid;
  gap: 14px;
}

.module-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

.module-search {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  font: inherit;
}

.iframe-shell {
  overflow: hidden;
  padding: 0;
}

.iframe-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
}

.iframe-toolbar p {
  margin: 0;
  max-width: 760px;
}

.source-frame {
  width: 100%;
  min-height: 78vh;
  border: 0;
  background: #fff;
}

.frame-note {
  padding: 14px 20px 20px;
  color: var(--muted);
  font-size: 13px;
}

.footer {
  margin: 40px 0 14px;
  padding: 22px 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--brand-strong), rgb(36, 78, 71));
  color: #f0f7f6;
}

.footer p {
  margin: 8px 0 0;
  color: rgba(240, 247, 246, 0.82);
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 65px auto 0 0;
    width: min(340px, 88vw);
    transform: translateX(-102%);
    transition: transform 0.2s ease;
    z-index: 25;
    box-shadow: var(--shadow);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .mobile-topbar {
    display: flex;
  }

  .page {
    padding: 18px;
  }
}

@media (max-width: 900px) {
  .hero,
  .card,
  .panel {
    padding: 22px;
  }

  .stats,
  .hero-grid,
  .grid.cols-2,
  .grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
