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

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

:root {
  /* Core Palette */
  --bg-primary: #070a0f;
  --bg-secondary: #0d1219;
  --bg-card: #111821;
  
  /* Text */
  --text-primary: #f4f7f8;
  --text-secondary: #9caab5;
  --text-dim: #64727d;
  
  /* Accents */
  --accent-primary: #72f2c2;
  --accent-primary-hover: #91f7d0;
  --accent-bg: rgba(114, 242, 194, 0.09);
  
  /* Borders */
  --border: rgba(114, 242, 194, 0.22);
  --border-light: rgba(255, 255, 255, 0.08);
  
  /* Typography */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  
  /* Radii */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

html, body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-image:
    radial-gradient(circle at 18% 8%, rgba(46, 115, 96, 0.16), transparent 30rem),
    radial-gradient(circle at 85% 92%, rgba(55, 93, 140, 0.10), transparent 28rem);
  background-attachment: fixed;
}

::selection {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

/* Typography */
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

/* The new elegant headings */
.heading-xl { 
  font-family: var(--font-serif);
  font-size: 4rem; 
  font-weight: 500; 
  line-height: 1.1; 
  letter-spacing: -0.02em;
}
.heading-lg { 
  font-family: var(--font-serif);
  font-size: 2.25rem; 
  font-weight: 500; 
  line-height: 1.2;
  letter-spacing: -0.01em; 
}
.heading-md { 
  font-family: var(--font-serif);
  font-size: 1.75rem; 
  font-weight: 600; 
  letter-spacing: -0.01em; 
}

.text-accent {
  color: var(--accent-primary);
  font-style: italic;
}

.subtitle { 
  font-size: 1.125rem; 
  color: var(--text-secondary); 
  font-weight: 400;
  max-width: 600px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
}
.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}
.nav-brand span { font-family: var(--font-sans); font-size: 1rem; font-weight: 500; color: var(--text-secondary); }
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.nav-links a:hover { color: var(--text-primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--accent-primary);
  color: var(--bg-primary);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(151, 252, 228, 0.2);
}
.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: var(--accent-bg);
  border-color: var(--accent-primary);
}
.btn-nav {
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* Badges & Micro-elements */
.badge-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--accent-bg);
  color: var(--accent-primary);
}

.platform-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
  opacity: 0.8;
}
.p-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.p-badge svg {
  color: var(--text-dim);
  transition: color 0.2s;
}
.p-badge:hover { color: var(--text-primary); }
.p-badge:hover svg { color: var(--accent-primary); }

/* Grid / Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.auth-card {
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 0 40px rgba(151, 252, 228, 0.03);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.feature-card {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-light);
}
.feature-icon {
  font-size: 1.1rem;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  display: inline-block;
}
.feature-card h3 { 
  font-family: var(--font-serif);
  font-size: 1.1rem; 
  font-weight: 600; 
  margin-bottom: 0.5rem; 
}
.feature-card p { 
  font-size: 0.85rem; 
  color: var(--text-secondary); 
  line-height: 1.5; 
}

/* Pricing Card (Editorial style) */
.pricing-card {
  max-width: 340px;
  margin: 2rem auto 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: left;
  position: relative;
}
.pricing-card .badge {
  display: inline-block;
  background: var(--accent-primary);
  color: var(--bg-primary);
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.pricing-card .price {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0.25rem;
  color: var(--accent-primary);
}
.pricing-card .period {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.pricing-features {
  list-style: none;
  margin-bottom: 1.5rem;
}
.pricing-features li {
  padding: 0.45rem 0;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pricing-features li::before {
  content: "✦";
  color: var(--accent-primary);
  font-size: 0.8rem;
}

/* FAQ */
.faq-list {
  max-width: 700px;
  margin: 4rem auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--text-primary);
  transition: color 0.2s;
}
.faq-question:hover { color: var(--accent-primary); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.4s ease;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  margin-top: 1rem;
}
.faq-icon {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--accent-primary);
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Forms (Dashboard & Auth) */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  padding: 0 1rem;
  height: 52px;
  background: rgba(4, 8, 12, 0.72);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
}
.form-input::placeholder { color: #53616c; }
.form-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

/* Dashboard Utils */
.nav-bar {
  border-bottom: 1px solid var(--border-light);
  background: rgba(7, 10, 15, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 1rem 0;
}
.badge {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-success { background: rgba(151, 252, 228, 0.15); color: var(--accent-primary); }
.badge-error { background: rgba(248, 113, 113, 0.15); color: #f87171; }

.alert {
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.alert-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.2);
  color: #fca5a5;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 3rem 0;
  margin-top: 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a:hover { color: var(--text-primary); }

/* Layout Utils */
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.pt-12 { padding-top: 3rem; }
.pb-12 { padding-bottom: 3rem; }
.pt-32 { padding-top: 5rem; }
.pb-32 { padding-bottom: 5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.relative { position: relative; z-index: 10; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-dim { color: var(--text-dim); }
.text-muted { color: var(--text-secondary); }
.font-medium { font-weight: 500; }

@media (max-width: 768px) {
  .heading-xl { font-size: 3rem; }
  .heading-lg { font-size: 2.25rem; }
  .features-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .footer { flex-direction: column; gap: 1.5rem; text-align: center; }
}
