/* ── PettyPoints Site — Global Styles ── */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,700;0,800;1,700&display=swap');

:root {
  --bg:         #0A0A0F;
  --bg-raised:  #111118;
  --card:       #16161F;
  --card-hi:    #1E1E2A;
  --stroke:     rgba(255,255,255,0.06);
  --text:       #F0ECE5;
  --text-dim:   #8E8A80;
  --text-faint: #5A5750;
  --p1:         #E8C547;
  --p2:         #C77DFF;
  --positive:   #4ADE80;
  --negative:   #F87171;
  --glow-p1:    rgba(232,197,71,0.15);
  --glow-p2:    rgba(199,125,255,0.15);
  --max-w:      1080px;
  --font-body:  'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--stroke);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--p1);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--text); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #000 !important;
  background: var(--p1);
  padding: 8px 18px;
  border-radius: 8px;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(10,10,15,0.97);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--stroke);
  }
  .nav-toggle { display: block; }
}

/* ── Section wrappers ── */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 24px;
}
.section-sm { padding: 60px 24px; }

/* ── Typography ── */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}
.display-xl { font-size: clamp(40px, 7vw, 72px); }
.display-lg { font-size: clamp(32px, 5vw, 52px); }
.display-md { font-size: clamp(24px, 3.5vw, 36px); }
.subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 560px;
}
.label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--p1);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--p1);
  color: #000;
}
.btn-primary:hover { opacity: 0.85; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--stroke);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.15); }

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 32px;
}
.card-sm { padding: 24px; border-radius: 16px; }

/* ── Grid ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--stroke);
  padding: 48px 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--p1);
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-faint);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-dim); }
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 24px;
}

/* ── Glow accents ── */
.glow-p1 {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--glow-p1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.glow-p2 {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--glow-p2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Fade-in animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-dim { color: var(--text-dim); }
.text-faint { color: var(--text-faint); }
.text-p1 { color: var(--p1); }
.text-p2 { color: var(--p2); }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.hidden { display: none !important; }
