:root {
  --bg: #f7fdf9;
  --surface: #ffffff;
  --surface-soft: #edf9f2;
  --text: #152833;
  --muted: #4f6873;
  --primary: #0f8d63;
  --primary-deep: #0a6e4d;
  --accent: #d4a638;
  --border: #d8e8de;
  --shadow: 0 18px 40px rgba(10, 110, 77, 0.16);
}

body.dark {
  --bg: #0f1d25;
  --surface: #1a2c38;
  --surface-soft: #243c4b;
  --text: #e5f3fb;
  --muted: #b3cddc;
  --primary: #34d8a8;
  --primary-deep: #1cae83;
  --accent: #f2c250;
  --border: #335266;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 12%, rgba(15, 141, 99, 0.08), transparent 26%),
    radial-gradient(circle at 100% 0%, rgba(212, 166, 56, 0.13), transparent 30%),
    var(--bg);
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.navbar {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
}

.brand span {
  font-size: 0.98rem;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
}

.search-wrap i {
  color: var(--muted);
}

.search-wrap input {
  width: 155px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-weight: 700;
}

.theme-toggle,
.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.hero {
  padding: 3.4rem 0 1.6rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
  align-items: center;
}

.hero-copy {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.label {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.34rem 0.72rem;
  background: color-mix(in srgb, var(--primary) 15%, #fff);
  color: var(--primary-deep);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
    animation: glowBlink 1.5s infinite; /* 👈 moved here */

}

@keyframes glowBlink {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 3px #2ecc71, 0 0 6px #2ecc71;
  }
  50% {
    opacity: 0.5;
    box-shadow: none;
  }
}


.hero h1 {
  margin-top: 0.8rem;
  margin-bottom: 0.7rem;
  font-family: "Merriweather", serif;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  line-height: 1.2;
}

.hero p {
  color: var(--muted);
}

.hero-photo {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.68rem 1.08rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(130deg, var(--primary), var(--primary-deep));
  color: #fff;
}

.btn.ghost {
  background: var(--surface-soft);
  border-color: var(--border);
  color: var(--text);
}

.section-grid {
  padding: 1rem 0 3.6rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.panel h2 {
  font-family: "Merriweather", serif;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  margin-bottom: 0.5rem;
}

.panel p {
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.panel p:last-child {
  margin-bottom: 0;
}

.panel.highlight {
  background:
    linear-gradient(120deg, rgba(212, 166, 56, 0.18), transparent 40%),
    var(--surface);
}

.panel ul {
  list-style: none;
  display: grid;
  gap: 0.52rem;
}

.panel li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--muted);
}

.panel li i {
  color: var(--primary);
  margin-top: 0.25rem;
}

.footer {
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
}

.footer-row {
  min-height: 76px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-row a {
  text-decoration: none;
  color: var(--primary-deep);
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 940px) {
  .navbar {
    min-height: auto;
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
  }

  .menu-toggle {
    display: grid;
    justify-self: end;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    width: min(1120px, 92vw);
    margin-inline: auto;
    background: var(--surface);
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .search-wrap input {
    width: 110px;
  }

  .hero,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.2rem;
  }
}

@media (max-width: 640px) {
  .navbar {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand toggle"
      "actions actions";
    row-gap: 0.65rem;
  }

  .brand {
    grid-area: brand;
  }

  .menu-toggle {
    grid-area: toggle;
  }

  .nav-actions {
    grid-area: actions;
    width: 100%;
    justify-content: space-between;
  }

  .search-wrap {
    flex: 1;
  }

  .search-wrap input {
    width: 100%;
  }

  .brand span {
    font-size: 0.84rem;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .hero-copy,
  .panel {
    padding: 1rem;
  }

  .footer-row {
    padding: 0.9rem 0;
    font-size: 0.88rem;
  }
}
