:root {
  --primary: #6E56CF;
  --primary-hover: #5A44C0;
  --primary-soft: #F0EBFA;
  --accent: #FFCD4D;
  --bg: #FFFFFF;
  --surface: #F7F8FA;
  --text: #1B1B1F;
  --muted: #5B5B66;
  --border: #E6E6EA;
  --radius: 8px;
  --radius-card: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 600; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-logo { font-size: 16px; font-weight: 700; color: var(--primary); }
.footer-tagline { font-size: 13px; color: var(--muted); }
.footer-subscribe { display: flex; gap: 8px; }
.footer-subscribe input {
  font-size: 13px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  font-family: var(--font);
  background: var(--bg);
  width: 200px;
  transition: border-color 0.15s;
}
.footer-subscribe input:focus { border-color: var(--primary); }
.footer-subscribe button {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: var(--radius);
  padding: 9px 18px;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--font);
  white-space: nowrap;
}
.footer-subscribe button:hover { background: var(--primary-hover); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  padding-top: 20px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }

/* ── Hamburger Menu ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.2s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Scroll Animations ── */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease, transform 0.4s ease; }
.fade-in.visible { opacity: 1; transform: none; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .navbar { position: relative; }
  .navbar .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    gap: 14px;
    z-index: 100;
  }
  .navbar .nav-links.open { display: flex; }
  .footer-top { flex-direction: column; align-items: stretch; gap: 16px; }
  .footer-subscribe input { width: 100%; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-links { gap: 16px; flex-wrap: wrap; justify-content: center; }
}
