:root {
  --bg: #f7fbf4;
  --surface: #ffffff;
  --surface-soft: #f3f8f0;
  --primary: #2f7d32;
  --primary-dark: #1f5e25;
  --secondary: #1f4e5f;
  --accent: #f2b84b;
  --soft-green: #e8f5e9;
  --soft-blue: #e0f2f1;
  --soft-yellow: #fff7d6;
  --border: #d6e5d0;
  --text: #1f2937;
  --muted: #64748b;
  --blue: #2563eb;
  --orange: #f97316;
  --indigo: #4f46e5;
  --shadow: 0 22px 58px rgba(31, 78, 95, 0.09);
  --radius: 10px;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(47, 125, 50, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 78, 95, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 18% 6%, rgba(232, 245, 233, 0.9), transparent 30rem),
    radial-gradient(circle at 90% 18%, rgba(224, 242, 241, 0.72), transparent 34rem),
    var(--bg);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.62;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.stats,
.hero-actions,
.board-visual,
.lesson-top,
.lesson-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 13px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(145deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 28px rgba(47, 125, 50, 0.22);
}

.brand-title {
  font-size: 1rem;
}

.nav-links {
  gap: 24px;
  color: var(--muted);
  font-weight: 800;
}

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

.section-shell {
  width: calc(100% - 48px);
  max-width: 1440px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.68fr);
  gap: 28px;
  padding: 44px 0 34px;
}

.teaching-board,
.module-board,
.profile-card,
.lesson-card,
.reflection,
.modal-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow);
}

.teaching-board {
  min-height: 700px;
  padding: 52px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 930px;
  margin-bottom: 18px;
  font-size: clamp(3.4rem, 6.2vw, 7rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

h1 span {
  display: block;
}

.tagline {
  max-width: 820px;
  margin-bottom: 18px;
  color: var(--secondary);
  font-size: 1.62rem;
  font-weight: 850;
  line-height: 1.28;
}

.hero-text {
  max-width: 850px;
  color: #405069;
  font-size: 1.08rem;
}

.stats {
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 30px;
}

.stats span,
.tag-list span,
.lesson-category {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-weight: 850;
}

.stats span {
  padding: 9px 14px;
}

.hero-actions {
  gap: 12px;
}

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.primary-button {
  border: 1px solid transparent;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 14px 26px rgba(47, 125, 50, 0.22);
}

.secondary-button,
.text-button {
  border: 1px solid var(--border);
  color: var(--primary-dark);
  background: #ffffff;
}

.primary-button:hover,
.secondary-button:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.small-button {
  min-height: 40px;
  padding: 0 16px;
}

.module-board {
  display: flex;
  min-height: 700px;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
}

.profile-photo {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-soft);
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: 52% 36%;
}

.board-visual {
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff, var(--soft-green));
}

.board-visual img {
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
}

.board-visual h2 {
  margin-bottom: 0;
  font-size: 2rem;
  line-height: 1.08;
}

.module-index {
  display: grid;
  gap: 9px;
}

.index-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  cursor: pointer;
  text-align: left;
}

.index-row.featured {
  border-color: rgba(47, 125, 50, 0.38);
  background: linear-gradient(90deg, rgba(232, 245, 233, 0.92), #ffffff);
}

.index-code {
  color: var(--primary);
  font-weight: 950;
}

.index-title {
  overflow: hidden;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile,
.modules {
  padding: 52px 0 26px;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 24px;
}

.section-heading h2,
.reflection h2,
.modal-header h2 {
  margin-bottom: 10px;
  font-size: 2.6rem;
  line-height: 1.06;
}

.section-heading p,
.reflection-copy p {
  color: #536173;
  font-size: 1.08rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.profile-card {
  min-height: 330px;
  padding: 22px;
}

.profile-card h3 {
  margin-bottom: 10px;
  font-size: 1.24rem;
}

.profile-card p {
  color: #4c5d70;
}

.card-label {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--soft-green);
  font-size: 0.72rem;
  font-weight: 950;
}

.line-icon {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  color: var(--secondary);
  background: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.leaf-icon {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M27 5C13 5 6 12 6 25c13 0 20-7 21-20ZM6 25 18 13' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.microscope-icon {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 6h7v5h-7zM16 11v6a6 6 0 0 1-6 6H6M8 27h18M22 15l4 4-4 4M18 21h8' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.board-icon {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6h24v16H4zM9 26h14M12 11h8M12 16h5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.dna-icon {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 4c12 6 12 18 0 24M23 4C11 10 11 22 23 28M10 9h12M10 16h12M10 23h12' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.cell-icon {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M26 10c5 7-1 17-10 17S1 17 6 10 18 1 26 10ZM16 12a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z' fill='none' stroke='black' stroke-width='3'/%3E%3C/svg%3E");
}

.fact-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.fact-list div {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 2px 0 0;
  font-weight: 900;
}

.teaching-focus {
  background: linear-gradient(145deg, #ffffff, rgba(255, 247, 214, 0.78));
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lesson-card {
  position: relative;
  display: flex;
  min-height: 372px;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
}

.lesson-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--primary);
}

.lesson-card.digital::before {
  background: var(--secondary);
}

.lesson-card.prompt::before {
  background: var(--blue);
}

.lesson-card.collaboration::before {
  background: var(--accent);
}

.lesson-card.infographic::before {
  background: var(--orange);
}

.lesson-card.responsible::before {
  background: var(--indigo);
}

.lesson-card.featured {
  border-color: rgba(47, 125, 50, 0.38);
  background:
    linear-gradient(145deg, rgba(232, 245, 233, 0.75), rgba(255, 255, 255, 0.94)),
    #ffffff;
}

.lesson-top {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.lesson-code {
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 950;
  text-transform: uppercase;
}

.lesson-category {
  padding: 6px 10px;
  color: var(--secondary);
  font-size: 0.78rem;
}

.lesson-card h3 {
  min-height: 86px;
  margin-bottom: 8px;
  font-size: 1.42rem;
  line-height: 1.18;
}

.lesson-focus {
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 850;
}

.lesson-card p:not(.lesson-focus) {
  color: #4d5e73;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 20px;
  padding-top: 12px;
}

.tag-list span {
  padding: 6px 10px;
  color: #2d3b4d;
  background: var(--surface-soft);
  font-size: 0.78rem;
}

.lesson-actions {
  gap: 10px;
}

.text-button {
  min-height: 40px;
  padding: 0 14px;
  cursor: pointer;
}

.reflection {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
  margin-top: 44px;
  margin-bottom: 36px;
  padding: 34px;
}

.reflection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.reflection-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.reflection-card h3 {
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.reflection-card p {
  margin-bottom: 0;
  color: #536173;
}

.site-footer {
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 30px 24px 42px;
  color: var(--muted);
  font-weight: 800;
}

.site-footer span {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
}

.modal-panel {
  position: relative;
  width: min(1360px, calc(100vw - 48px));
  max-height: calc(100vh - 56px);
  overflow: auto;
}

.modal-close {
  position: sticky;
  top: 16px;
  left: calc(100% - 54px);
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--text);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.modal-header {
  padding: 32px 36px 22px;
}

.modal-header p:not(.eyebrow) {
  max-width: 860px;
  color: #4a5b70;
}

.modal-body {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(520px, 1.05fr);
  gap: 22px;
  padding: 0 36px 36px;
}

.lesson-notes {
  display: grid;
  gap: 12px;
  align-content: start;
}

.lesson-note {
  padding: 18px;
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.lesson-note h3 {
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.lesson-note p {
  margin-bottom: 0;
  color: #4c5d71;
}

.pdf-frame {
  min-height: 720px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
}

.pdf-frame iframe {
  width: 100%;
  height: 720px;
  border: 0;
}

@media (max-width: 1100px) {
  .hero,
  .reflection {
    grid-template-columns: 1fr;
  }

  .teaching-board,
  .module-board {
    min-height: auto;
  }

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

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

  .modal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  .section-shell {
    width: 100%;
    max-width: none;
    padding-right: 14px;
    padding-left: 14px;
  }

  .teaching-board,
  .module-board,
  .reflection {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    padding: 22px;
  }

  h1 {
    font-size: 1.68rem;
    line-height: 1.02;
  }

  .tagline {
    font-size: 1rem;
  }

  .hero-text,
  .tagline,
  .eyebrow,
  .index-title {
    overflow-wrap: anywhere;
  }

  .stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .board-visual {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-grid,
  .lesson-grid,
  .reflection-grid {
    grid-template-columns: 1fr;
  }

  .lesson-card h3 {
    min-height: auto;
  }

  .modal-panel {
    width: calc(100vw - 24px);
  }

  .modal-header,
  .modal-body {
    padding-left: 20px;
    padding-right: 20px;
  }
}
