/* NPLFY Landing Page - Design System */

/* ========== IMPORTS ========== */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');

/* ========== CSS VARIABLES ========== */
:root {
  /* Dark mode (default) */
  --bg: #000;
  --bg-secondary: #0a0a0a;
  --text: #fff;
  --text-muted: #bdbdbd;
  --border: #161616;
  --accent: #fff;
  --accent-hover: #e0e0e0;

  /* Sizing */
  --max-width: 920px;
  --padding-x: 16px;
  --padding-y: 40px;
  --radius: 8px;

  /* Typography */
  --font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-size-base: 15px;
  --font-size-small: 13px;
  --font-size-h1: clamp(28px, 5vw, 42px);
  --font-size-h2: clamp(22px, 4vw, 32px);
  --font-size-h3: 18px;
  --line-height: 1.6;
  --letter-spacing: -0.01em;
}

[data-theme="light"] {
  --bg: #fff;
  --bg-secondary: #f5f5f5;
  --text: #000;
  --text-muted: #555;
  --border: #e5e5e5;
  --accent: #000;
  --accent-hover: #333;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  letter-spacing: var(--letter-spacing);
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========== LAYOUT ========== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

.section {
  padding: var(--padding-y) 0;
  border-top: 1px solid var(--border);
}

.section:first-of-type {
  border-top: none;
}

/* ========== HEADER ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  font-size: var(--font-size-small);
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: var(--font-size-small);
  font-weight: 500;
  font-family: var(--font-family);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--text-muted);
  opacity: 1;
}

.btn-large {
  padding: 14px 28px;
  font-size: var(--font-size-base);
}

/* ========== THEME TOGGLE ========== */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--text-muted);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun,
[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

/* ========== HERO ========== */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: var(--font-size-h1);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero .subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== FEATURES ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.feature-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-secondary);
}

.feature-card h3 {
  font-size: var(--font-size-h3);
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: var(--font-size-small);
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--text);
}

/* ========== HOW IT WORKS ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.step {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  margin: 0 auto 16px;
}

.step h3 {
  font-size: var(--font-size-h3);
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: var(--font-size-small);
}

/* ========== SECTION HEADERS ========== */
.section-header {
  text-align: center;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: var(--font-size-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== CTA SECTION ========== */
.cta-section {
  text-align: center;
  padding: 60px 0;
}

.cta-section h2 {
  font-size: var(--font-size-h2);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ========== DISCLAIMER ========== */
.disclaimer {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 40px;
}

.disclaimer h4 {
  font-size: var(--font-size-small);
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.disclaimer p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 700px;
  margin: 32px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--text);
}

.faq-question:hover {
  color: var(--text-muted);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.faq-item.active .faq-question svg {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: 20px;
  color: var(--text-muted);
  font-size: var(--font-size-small);
}

/* ========== LEGAL PAGES ========== */
.legal-content {
  max-width: 700px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: var(--font-size-h1);
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-content .last-updated {
  color: var(--text-muted);
  font-size: var(--font-size-small);
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: var(--font-size-h3);
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.legal-content ul {
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-left: 20px;
}

.legal-content li {
  list-style: disc;
  margin-bottom: 8px;
}

/* ========== CONTACT ========== */
.contact-content {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.contact-content h1 {
  font-size: var(--font-size-h1);
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-content > p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.contact-email {
  font-size: var(--font-size-h3);
  font-weight: 500;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: block;
  margin-bottom: 24px;
}

/* ========== ABOUT ========== */
.about-content {
  max-width: 700px;
  margin: 0 auto;
}

.about-content h1 {
  font-size: var(--font-size-h1);
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.about-content h2 {
  font-size: var(--font-size-h2);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
}

.about-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.about-content .lead {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text);
  text-align: center;
  margin-bottom: 40px;
}

/* ========== MOBILE NAV ========== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero {
    padding: 60px 0 40px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
