@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 {
  --primary: #E3C46D;
  --primary-dark: #584400;
  --primary-light: #FFE08B;
  --on-primary: #3D2F00;
  --secondary: #D5C5A1;
  --secondary-container: #50462A;
  --on-secondary: #F2E1BB;
  --tertiary: #ADCFAE;
  --tertiary-container: #304D34;
  --on-tertiary: #C8ECC9;
  --error: #FFB4AB;
  --bg: #16130B;
  --surface: #1E1A10;
  --surface-2: #252118;
  --surface-variant: #4C4639;
  --on-bg: #EAE1D4;
  --on-surface: #EAE1D4;
  --on-surface-variant: #CFC5B4;
  --income: #ADCFAE;
  --expense: #FFB4AB;
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--on-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(22, 19, 11, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(227, 196, 109, 0.1);
  transition: all 0.3s ease;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-logo span {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--on-surface-variant);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: rgba(227, 196, 109, 0.08);
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--on-primary) !important;
  font-weight: 600 !important;
  padding: 9px 20px !important;
  border-radius: 10px !important;
}

.nav-cta:hover {
  background: var(--primary-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(227, 196, 109, 0.3);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(227, 196, 109, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid rgba(227, 196, 109, 0.4);
}

.btn-outline:hover {
  background: rgba(227, 196, 109, 0.08);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid rgba(227, 196, 109, 0.1);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(227, 196, 109, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

/* ── SECTION ── */
.section {
  position: relative;
  z-index: 1;
  padding: 96px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--on-bg);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--on-surface-variant);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ── CHIP ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(227, 196, 109, 0.12);
  color: var(--primary);
  border: 1px solid rgba(227, 196, 109, 0.2);
}

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-top: 1px solid rgba(227, 196, 109, 0.1);
  padding: 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo img { width: 30px; height: 30px; border-radius: 8px; }

.footer-logo span {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--on-surface-variant);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

.footer-copy {
  font-size: 13px;
  color: var(--surface-variant);
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227,196,109,0.15), transparent);
  margin: 0 48px;
}

/* ── GLOW ── */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .section { padding: 64px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .nav-links { display: none; }
}