@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap");

:root {
  /* ── Brand Colours ── */
  --gold: #39b54a; /* primary green  */
  --gold-light: #57d16a; /* lighter green  */
  --gold-pale: #d4f5d8; /* pale green     */
  --accent: #df1d26; /* red accent     */
  --navy: #122a4e; /* navy           */

  /* ── Dark backgrounds (navy-tinted) ── */
  --dark: #080e18;
  --dark-2: #0c1422;
  --dark-3: #111e32;
  --dark-4: #172540;

  /* ── Text ── */
  --mid: #2e4a6e;
  --text: #d8e6f5;
  --text-muted: #7a9bbe;
  --text-dim: #4a6a8a;
  --white: #f0f6ff;

  /* ── Borders ── */
  --border: rgba(57, 181, 74, 0.22);
  --border-subtle: rgba(255, 255, 255, 0.07);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
}
ul {
  list-style: none;
}

/* NAVIGATION */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    background 0.4s,
    backdrop-filter 0.4s,
    border-bottom 0.4s;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: "Syne", sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
}
.nav-logo span {
  color: var(--gold);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 13px;
  font-size: 0.84rem;
  font-weight: 500;
  /* color: var(--text-muted); */
  border-radius: 8px;
  transition:
    color 0.2s,
    background 0.2s;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.nav-link svg {
  width: 11px;
  height: 11px;
  opacity: 0.5;
  transition: transform 0.2s;
}
.nav-item.active .nav-link svg,
.nav-item:hover .nav-link svg {
  transform: rotate(180deg);
}

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 190px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.2s,
    transform 0.2s;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  z-index: 100;
}
/* Invisible bridge to prevent hover loss between link and dropdown */
.dropdown::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}
.nav-item.active .dropdown,
.nav-item:hover .dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 7px 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-radius: 8px;
  transition:
    color 0.2s,
    background 0.2s;
}
.dropdown a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}
.dropdown .divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-ghost {
  padding: 8px 18px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--white);
  border-radius: 9px;
  transition:
    color 0.2s,
    background 0.2s;
  background: transparent;
  border: none;
  cursor: pointer;
}
.btn-ghost:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn-primary {
  padding: 9px 22px;
  font-size: 0.84rem;
  font-weight: 600;
  background: var(--gold);
  color: var(--dark);
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover {
  background: rgba(200, 147, 58, 0.1);
  transform: translateY(-1px);
}
.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .btn-lg {
    padding: 10px 28px;
    font-size: 0.9rem;
    max-width: 100%;
  }
}

/* SECTIONS */
.section {
  padding: 96px 0;
  position: relative;
}
.section-sm {
  padding: 64px 0;
  position: relative;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}
.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-label::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--gold);
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  color: var(--white);
  margin-bottom: 20px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}

/* CARDS */
.card {
  background: var(--dark-3);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  transition:
    border-color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
}
.card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(200, 147, 58, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 1.4rem;
}
.card h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 10px;
}
.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* FOOTER */
.footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border-subtle);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.75;
}
.footer-col h5 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--gold);
}
.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}

/* MOBILE TOGGLE */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(200, 147, 58, 0.3);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(200, 147, 58, 0);
  }
}
@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* BADGE */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(200, 147, 58, 0.12);
  color: var(--gold);
  border: 1px solid rgba(200, 147, 58, 0.25);
}
.badge-green {
  background: rgba(42, 138, 94, 0.12);
  color: #5ec49a;
  border-color: rgba(42, 138, 94, 0.25);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .nav {
    padding: 0 24px;
  }
  .nav-mobile-toggle {
    display: flex;
  }
  .container,
  .container-wide {
    padding: 0 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* LIGHT THEME SECTIONS */
.theme-light {
  background: #f8fafc !important;
}
.theme-light .section-title {
  color: var(--dark);
}
.theme-light .section-subtitle {
  color: var(--mid);
}
.theme-light .section-label {
  color: var(--gold);
}

/* ============================================
   MOBILE NAV — hide CTA beside hamburger,
   hamburger animation, full overlay menu
   ============================================ */

/* Hide sign-in / create-account on mobile — they live inside the mobile menu instead */
@media (max-width: 1024px) {
  .nav-cta {
    display: none;
  }
  .nav-mobile-toggle {
    display: flex;
  }
}

/* Hamburger → X animation */
.nav-mobile-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-mobile-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Full-screen mobile menu overlay ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  /* width: min(340px, 88vw); */
  width: min(700px, 94vw);
  height: 100%;
  background: var(--dark-2);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}

/* Panel header */
.mob-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 24px;
  /* border-bottom: 1px solid var(--border-subtle); */
  flex-shrink: 0;
}

.mob-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark-3);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition:
    color 0.2s,
    background 0.2s;
}
.mob-close:hover {
  color: var(--white);
  background: var(--dark-4);
}

/* Nav groups */
.mob-nav-body {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.mob-nav-group {
  border-bottom: 1px solid var(--border-subtle);
}

.mob-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
  text-align: left;
}
.mob-group-toggle:hover {
  color: var(--white);
}
.mob-group-toggle svg {
  width: 12px;
  height: 12px;
  opacity: 0.5;
  transition: transform 0.25s;
  flex-shrink: 0;
}
.mob-nav-group.open .mob-group-toggle svg {
  transform: rotate(180deg);
}
.mob-nav-group.open .mob-group-toggle {
  color: var(--gold);
}

.mob-dropdown {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.02);
}
.mob-nav-group.open .mob-dropdown {
  max-height: 400px;
}

.mob-dropdown a {
  display: block;
  padding: 10px 24px 10px 36px;
  font-size: 0.84rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.mob-dropdown a:hover {
  color: var(--gold);
}

/* Direct links (no sub-menu) */
.mob-direct-link {
  display: block;
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.2s;
}
.mob-direct-link:hover {
  color: var(--white);
}

/* Panel footer — CTA buttons */
.mob-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.mob-btn-ghost {
  width: 100%;
  padding: 12px;
  background: var(--dark-3);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-muted);
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.mob-btn-ghost:hover {
  color: var(--white);
  border-color: var(--border);
}

.mob-btn-primary {
  width: 100%;
  padding: 12px;
  background: var(--gold);
  border: none;
  border-radius: 10px;
  color: var(--dark);
  font-family: "Syne", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.mob-btn-primary:hover {
  background: var(--gold-light);
}
