@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #f7fbff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --text: #112647;
  --muted: #5c6c84;
  --green: #15944b;
  --green-dark: #0f7c3f;
  --green-light: #e6f6ed;
  --blue: #1a56db;
  --blue-light: #eef4ff;
  --orange: #ff9100;
  --orange-light: #fff5e6;
  --purple: #8f39cf;
  --purple-light: #f7eefa;
  --line: rgba(17, 38, 71, 0.08);
  --shadow-sm: 0 4px 12px rgba(39, 77, 129, 0.05);
  --shadow: 0 18px 50px rgba(39, 77, 129, 0.12);
  --shadow-lg: 0 24px 60px rgba(39, 77, 129, 0.18);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 176, 91, 0.12), transparent 35%),
    radial-gradient(circle at top right, rgba(47, 119, 255, 0.1), transparent 35%),
    radial-gradient(circle at 10% 80%, rgba(252, 174, 37, 0.08), transparent 30%),
    linear-gradient(180deg, #fcfeff 0%, #f4f8fe 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

.shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* TOPBAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0e9a4a 0 45%, #ffffff 45% 55%, #5e3ef6 55% 100%);
  position: relative;
  box-shadow: inset 0 0 0 2px rgba(17, 38, 71, 0.08);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 8px 17px;
  background: #fff;
  border-radius: 999px;
  transform: rotate(38deg);
}

.brand span:last-child {
  color: var(--green);
}

.links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
}

.links a {
  color: var(--muted);
  text-decoration: none;
  transition: var(--transition);
  padding: 6px 0;
  position: relative;
}

.links a:hover,
.links a.active {
  color: var(--text);
}

.links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.actions {
  display: flex;
  gap: 14px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(180deg, #19a755 0%, #118742 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(21, 148, 75, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(21, 148, 75, 0.3);
}

.btn-secondary {
  background: #fff;
  border-color: rgba(21, 148, 75, 0.25);
  color: var(--green-dark);
}

.btn-secondary:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}

/* SUBPAGE LAYOUT */
main {
  flex: 1;
  padding: 48px 0 80px;
}

.page-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.page-header .pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-header h1 {
  font-size: clamp(36px, 4.5vw, 54px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.page-header h1 span {
  color: var(--green);
}

.page-header .lead {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
}

/* CARDS & GLASSMORPHISM */
.glass-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.9);
}

/* FOOTER */
footer {
  background: linear-gradient(180deg, #0d6f50, #04453a);
  color: rgba(255, 255, 255, 0.92);
  padding-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand .brand span:last-child {
  color: #5fe28f;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 40px;
  flex: 1;
  max-width: 700px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col strong {
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  margin-bottom: 6px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  width: fit-content;
}

.footer-col a:hover {
  color: #5fe28f;
  transform: translateX(4px);
}

.footer-col .socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer-col .social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
}

.footer-col .social:hover {
  background: #5fe28f;
  color: #04453a;
  transform: translateY(-2px);
}

.copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* RESPONSIVE DESIGN */
.menu-toggle {
  display: none;
}

@media (max-width: 900px) {
  .topbar {
    position: relative;
    top: auto;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }

  .nav {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 16px 0;
    flex-wrap: wrap;
    gap: 16px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    order: 1;
  }

  .brand {
    order: 2;
  }

  .menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text);
    transition: all 0.3s ease;
    border-radius: 2px;
  }

  /* Animate menu icon to 'X' when active */
  .nav.open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav.open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav.open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    margin-top: 14px;
    align-items: stretch;
    gap: 8px;
    order: 3;
  }

  .links a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    width: 100%;
  }

  .links a:hover, .links a.active {
    background: var(--green-light);
    color: var(--green-dark) !important;
  }

  .links a.active::after {
    display: none;
  }

  .actions {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 14px;
    gap: 10px;
    order: 4;
  }

  .actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Show links and actions when nav is open */
  .nav.open .links,
  .nav.open .actions {
    display: flex;
  }

  .footer {
    flex-direction: column;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  .copyright {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .page-header h1 {
    font-size: 32px;
  }
}
