:root {
  --green: #007D46;
  --green-dark: #005b33;
  --green-darker: #003d22;
  --green-light: #e8f5ee;
  --bg: #f5f7f6;
  --surface: #ffffff;
  --text: #17201b;
  --muted: #66716b;
  --border: #dfe6e2;
  --shadow: 0 12px 30px rgba(0, 61, 34, 0.09);
  --sidebar-w: 270px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #006d3d 0%, var(--green) 35%, #00683a 100%);
  color: #fff;
  border-right: 1px solid rgba(255,255,255,.14);
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 22px 18px 18px;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 5px 16px rgba(0,0,0,.18);
}
.brand-text { display: grid; gap: 1px; }
.brand-text strong { font-size: 1.2rem; line-height: 1.1; }
.brand-text span { font-size: .88rem; opacity: .78; }

.nav { padding: 16px 12px; overflow-y: auto; flex: 1; }
.nav-heading {
  padding: 18px 12px 8px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: rgba(255,255,255,.66);
}
.nav-link {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 11px;
  border-radius: 12px;
  color: rgba(255,255,255,.92);
  font-weight: 650;
  transition: background .18s ease, transform .18s ease;
}
.nav-link:hover { background: rgba(255,255,255,.12); transform: translateX(2px); }
.nav-link.active { background: rgba(255,255,255,.16); }
.nav-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255,255,255,.14);
  font-size: 1.2rem;
}
.nav-app-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  background: #fff;
}
.sidebar-bottom { padding: 16px 18px 20px; border-top: 1px solid rgba(255,255,255,.13); }
.back-link { font-size: .9rem; opacity: .84; }
.back-link:hover { opacity: 1; }

.main-wrap {
  margin-left: var(--sidebar-w);
  width: calc(100% - var(--sidebar-w));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.mobile-header { display: none; }
.main-content { width: min(1180px, calc(100% - 48px)); margin: 0 auto; flex: 1; padding: 38px 0 34px; }
.hero {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 42px 48px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 85% 25%, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(135deg, var(--green-darker), var(--green) 58%, #12995e);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .72;
}
.hero h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.04em; }
.hero p { max-width: 560px; margin: 18px 0 0; font-size: 1.14rem; line-height: 1.6; color: rgba(255,255,255,.86); }
.hero-logo {
  width: clamp(150px, 19vw, 230px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 18px 46px rgba(0,0,0,.24);
  flex: 0 0 auto;
}

.tools-section { margin-top: 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.section-heading .eyebrow { color: var(--green); opacity: 1; }
.section-heading h2 { margin: 0; font-size: 1.8rem; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.tool-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 7px 22px rgba(0, 61, 34, 0.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tool-card:hover { transform: translateY(-3px); border-color: #bcd9ca; box-shadow: var(--shadow); }
.tool-logo { width: 88px; height: 88px; border-radius: 18px; object-fit: cover; flex: 0 0 auto; }
.tool-info h3 { margin: 0 0 7px; font-size: 1.22rem; }
.tool-info p { margin: 0; color: var(--muted); line-height: 1.5; }
.open-text { display: inline-block; margin-top: 12px; color: var(--green); font-weight: 780; font-size: .92rem; }
.footer { padding: 18px 24px 22px; text-align: center; color: #7a857f; font-size: .82rem; }
.overlay { display: none; }

@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 16px 0 40px rgba(0,0,0,.18); }
  .sidebar.open { transform: translateX(0); }
  .main-wrap { margin-left: 0; width: 100%; }
  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 10px 16px;
    background: rgba(255,255,255,.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
  }
  .menu-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 11px;
    cursor: pointer;
    color: var(--green-darker);
    font-size: 1.25rem;
  }
  .mobile-title { display: flex; align-items: center; gap: 9px; font-weight: 800; }
  .mobile-title img { width: 36px; height: 36px; border-radius: 50%; }
  .main-content { width: min(100% - 28px, 900px); padding: 22px 0 28px; }
  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 25;
  }
  .overlay.show { display: block; }
  .tool-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 28px 24px; min-height: 0; border-radius: 20px; }
  .hero-logo { width: 112px; }
  .hero p { font-size: 1rem; margin-top: 12px; }
  .tool-card { align-items: flex-start; padding: 18px; gap: 15px; border-radius: 17px; }
  .tool-logo { width: 68px; height: 68px; border-radius: 14px; }
}

@media (max-width: 500px) {
  .hero { display: grid; grid-template-columns: 1fr auto; gap: 14px; }
  .hero-logo { width: 84px; }
  .hero h1 { font-size: 2.35rem; }
  .hero p { grid-column: 1 / -1; }
  .tool-card { display: grid; grid-template-columns: 58px 1fr; }
  .tool-logo { width: 58px; height: 58px; }
}
