:root {
  --bg: #edf6ee;
  --bg-deep: #dcecdf;
  --surface: rgba(249, 253, 249, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-soft: rgba(236, 246, 238, 0.92);
  --ink: #103228;
  --ink-soft: #4b6e62;
  --line: rgba(16, 50, 40, 0.12);
  --brand: #0f7a45;
  --brand-strong: #085d34;
  --brand-soft: #a3d6af;
  --brand-warm: #c8a66a;
  --shadow: 0 24px 70px rgba(15, 46, 31, 0.15);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content: 1180px;
  --font-sans: "Trebuchet MS", "Avenir Next", "Segoe UI", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, rgba(15, 122, 69, 0.22), transparent 32%),
    radial-gradient(circle at top right, rgba(163, 214, 175, 0.34), transparent 26%),
    linear-gradient(180deg, #f8fcf8 0%, var(--bg) 50%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(125deg, rgba(8, 93, 52, 0.06), transparent 32%, rgba(15, 122, 69, 0.06) 72%, transparent 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 52px,
      rgba(15, 122, 69, 0.035) 52px,
      rgba(15, 122, 69, 0.035) 53px
    );
  opacity: 0.7;
}

a {
  color: inherit;
}

code {
  font-family: "Cascadia Code", "Consolas", monospace;
}

.page-shell {
  max-width: var(--content);
  margin: 0 auto;
  padding: 26px 20px 72px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(250, 254, 250, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(24, 48, 33, 0.08);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 18px;
  padding: 8px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.96), rgba(232, 246, 235, 0.94)),
    linear-gradient(145deg, rgba(15, 122, 69, 0.14), rgba(8, 93, 52, 0.2));
  border: 1px solid rgba(15, 122, 69, 0.12);
  box-shadow: 0 16px 30px rgba(15, 122, 69, 0.14);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy span {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav a,
.chip-link,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background 150ms ease;
}

.site-nav a {
  padding: 10px 14px;
  color: var(--ink-soft);
  border: 1px solid transparent;
}

.site-nav a:hover,
.chip-link:hover,
.button-link:hover {
  transform: translateY(-1px);
}

.site-nav a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
}

.hero-card,
.section-card,
.portal-card,
.info-card,
.doc-card,
.legal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.95fr);
  gap: 26px;
  padding: 38px;
  background:
    linear-gradient(180deg, rgba(248, 253, 249, 0.94), rgba(237, 247, 239, 0.9)),
    var(--surface);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 20%, rgba(163, 214, 175, 0.34), transparent 16%),
    linear-gradient(135deg, rgba(15, 122, 69, 0.08), transparent 42%);
}

.hero-card::after,
.section-card::after,
.legal-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 122, 69, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8, 93, 52, 0.08);
  color: var(--brand-strong);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title,
.section-title,
.legal-card h1,
.legal-card h2,
.doc-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  line-height: 1.04;
}

.hero-title {
  font-size: clamp(2.9rem, 6vw, 4.8rem);
  max-width: 10.5ch;
}

.hero-copy,
.section-copy,
.portal-card p,
.info-card p,
.legal-card p,
.legal-card li,
.doc-card p,
.doc-card li,
.code-note {
  color: var(--ink-soft);
  line-height: 1.72;
}

.hero-actions,
.button-row,
.portal-grid,
.info-grid,
.resource-grid,
.doc-grid {
  display: grid;
  gap: 16px;
}

.hero-actions {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 24px;
}

.button-link {
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.button-link.primary {
  color: #f7f1e8;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  border-color: transparent;
  box-shadow: 0 16px 32px rgba(15, 122, 69, 0.22);
}

.button-link.secondary {
  color: var(--ink);
}

.chip-link {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.94rem;
}

.hero-stage {
  position: relative;
  min-height: 430px;
  padding: 24px;
  border-radius: calc(var(--radius-xl) - 6px);
  background:
    linear-gradient(180deg, rgba(246, 252, 247, 0.82), rgba(221, 238, 226, 0.94)),
    linear-gradient(140deg, rgba(15, 122, 69, 0.12), rgba(8, 93, 52, 0.08));
  border: 1px solid rgba(15, 122, 69, 0.1);
}

.hero-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.72;
}

.hero-glow-left {
  left: 8%;
  top: 10%;
  background: radial-gradient(circle, rgba(163, 214, 175, 0.78), transparent 68%);
}

.hero-glow-right {
  right: 2%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(15, 122, 69, 0.3), transparent 68%);
}

.hero-silhouette {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 190px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 10px;
  opacity: 0.2;
}

.hero-silhouette span {
  display: block;
  background: linear-gradient(180deg, rgba(8, 93, 52, 0.9), rgba(8, 63, 36, 0.98));
}

.silhouette-minaret {
  position: relative;
  width: 28px;
  height: 138px;
  border-radius: 18px 18px 0 0;
}

.silhouette-minaret::before,
.silhouette-dome::before {
  content: "";
  position: absolute;
  background: inherit;
}

.silhouette-minaret::before {
  top: -18px;
  left: 6px;
  width: 16px;
  height: 24px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.silhouette-dome {
  position: relative;
  height: 110px;
  border-radius: 999px 999px 0 0;
}

.silhouette-dome.left,
.silhouette-dome.right {
  width: 88px;
}

.silhouette-dome.center {
  width: 148px;
  height: 140px;
}

.silhouette-dome::before {
  top: -18px;
  left: 50%;
  width: 18px;
  height: 24px;
  transform: translateX(-50%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.hero-logo-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 270px);
  margin: 14px auto 0;
  padding: 26px 22px 18px;
  border-radius: 28px;
  background: rgba(254, 255, 254, 0.84);
  border: 1px solid rgba(15, 122, 69, 0.12);
  box-shadow: 0 24px 40px rgba(14, 68, 42, 0.14);
  text-align: center;
}

.hero-logo {
  width: min(100%, 150px);
  display: block;
  margin: 0 auto 12px;
  object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(15, 122, 69, 0.16));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(15, 122, 69, 0.1);
  color: var(--brand-strong);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-info-stack {
  position: absolute;
  inset: auto 18px 16px 18px;
  display: grid;
  gap: 14px;
  z-index: 1;
}

.stat-card {
  padding: 18px 20px;
  border: 1px solid rgba(15, 122, 69, 0.1);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(239, 247, 241, 0.92));
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-strong);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card span {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--ink);
}

.muted-note {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid rgba(15, 122, 69, 0.3);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(15, 122, 69, 0.07);
}

.section-card,
.legal-card {
  margin-top: 28px;
  padding: 28px;
}

.section-title {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 10px;
}

.section-copy {
  margin-top: 0;
}

.portal-grid,
.resource-grid,
.info-grid,
.doc-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 22px;
}

.portal-card,
.info-card,
.doc-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(254, 255, 254, 0.92), rgba(244, 249, 245, 0.92)),
    rgba(255, 253, 249, 0.9);
}

.portal-card h3,
.info-card h3,
.doc-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: 1.42rem;
}

.code-block {
  margin: 0;
  padding: 16px 18px;
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: #0f2f25;
  color: #f7fbf7;
}

.code-block code {
  white-space: pre;
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.inline-list li {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(8, 93, 52, 0.12);
  background: rgba(8, 93, 52, 0.06);
  color: var(--brand-strong);
  font-size: 0.92rem;
}

.legal-card h1 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  margin-bottom: 12px;
}

.legal-card h2 {
  margin-top: 28px;
  font-size: 1.5rem;
}

.legal-card ul {
  padding-left: 20px;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.page-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (min-width: 1024px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand-mark {
    gap: 12px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    padding: 6px;
  }

  .brand-copy strong {
    font-size: 0.95rem;
  }

  .brand-copy span {
    font-size: 0.82rem;
  }

  .site-nav a {
    padding: 9px 12px;
    font-size: 0.94rem;
  }

  .hero-card {
    grid-template-columns: minmax(0, 1.42fr) minmax(280px, 0.82fr);
    gap: 22px;
    padding: 34px;
  }

  .hero-stage {
    min-height: 388px;
    padding: 18px;
  }

  .hero-logo-shell {
    width: min(100%, 220px);
    padding: 18px 18px 14px;
    margin-top: 6px;
    border-radius: 24px;
  }

  .hero-logo {
    width: min(100%, 112px);
    margin-bottom: 10px;
  }

  .hero-badge {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .hero-info-stack {
    inset: auto 14px 14px 14px;
    gap: 10px;
  }

  .stat-card {
    padding: 14px 16px;
  }

  .stat-card span {
    font-size: 1.5rem;
  }

  .muted-note {
    padding: 11px 13px;
    font-size: 0.92rem;
  }
}

@media (max-width: 900px) {
  .site-header {
    border-radius: 28px;
  }

  .hero-card {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .hero-stage {
    min-height: 510px;
  }

  .hero-info-stack {
    position: static;
    margin-top: 18px;
  }

  .section-card,
  .legal-card {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px 14px 54px;
  }

  .site-header {
    align-items: flex-start;
    border-radius: 24px;
    padding: 16px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .hero-title {
    max-width: none;
  }

  .hero-stage {
    min-height: 470px;
    padding: 18px;
  }

  .hero-logo-shell {
    width: 100%;
  }

  .hero-silhouette {
    height: 156px;
  }

  .silhouette-dome.center {
    width: 122px;
    height: 120px;
  }

  .hero-actions,
  .portal-grid,
  .resource-grid,
  .info-grid,
  .doc-grid {
    grid-template-columns: 1fr;
  }

  .page-footer {
    flex-direction: column;
  }
}
