/* ============================================
   Ember Public Pages — Shared Stylesheet
   Dark theme with purple (#6B4EE6) accents
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-bg: #0A0A0F;
  --color-bg-lighter: #12121A;
  --color-bg-card: rgba(255, 255, 255, 0.04);
  --color-bg-card-hover: rgba(255, 255, 255, 0.08);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);
  --color-text: #E8E8ED;
  --color-text-muted: #8B8B9E;
  --color-text-dimmed: #5A5A6E;
  --color-purple: #6B4EE6;
  --color-purple-light: #9B6DFF;
  --color-purple-dark: #4A35A0;
  --color-purple-glow: rgba(107, 78, 230, 0.25);
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--color-purple-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #b794ff;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; }

p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--color-purple-light) 50%, var(--color-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-purple-gradient {
  background: linear-gradient(135deg, var(--color-purple-light), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header p {
  margin-top: 16px;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--transition-base), backdrop-filter var(--transition-base);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-purple), var(--color-purple-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

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

.navbar-links a {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.navbar-links a:hover {
  color: #fff;
}

.navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-purple);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.navbar-cta:hover {
  background: var(--color-purple-light);
  transform: translateY(-1px);
  color: #fff !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 15, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-purple), var(--color-purple-light));
  color: #fff;
  box-shadow: 0 4px 24px var(--color-purple-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(107, 78, 230, 0.4);
  color: #fff;
}

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

.btn-outline:hover {
  border-color: var(--color-purple);
  color: #fff;
  background: rgba(107, 78, 230, 0.1);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* --- Cards (Glassmorphism) --- */
.glass-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-base);
}

.glass-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
}

.glass-card .card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-purple-dark), var(--color-purple));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.glass-card h3 {
  margin-bottom: 12px;
}

/* --- Gradient Orbs (Background Decoration) --- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
}

.orb-purple {
  background: var(--color-purple);
}

.orb-blue {
  background: #2563EB;
}

.orb-pink {
  background: #E040A0;
}

/* --- Grid --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.25rem;
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(107, 78, 230, 0.15);
  border: 1px solid rgba(107, 78, 230, 0.3);
  color: var(--color-purple-light);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--color-purple-light);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

/* --- Stats Bar --- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  padding: 48px 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* --- Steps / How It Works --- */
.steps {
  display: flex;
  gap: 32px;
  counter-reset: step;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  counter-increment: step;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-purple-dark), var(--color-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 20px;
  color: #fff;
}

.step h3 {
  margin-bottom: 8px;
}

/* Connecting line between steps */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(50% + 36px);
  width: calc(100% - 72px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-purple), var(--color-border));
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(107, 78, 230, 0.08), transparent);
  position: relative;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  margin-bottom: 32px;
}

.store-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #0A0A0F;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
  color: #0A0A0F;
}

.store-btn svg {
  width: 24px;
  height: 24px;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.9375rem;
  max-width: 280px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-text-dimmed);
}

/* --- Legal / Content Pages --- */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.page-header .subtitle {
  margin-top: 16px;
  font-size: 1.0625rem;
}

.content-section {
  padding: 60px 0 100px;
}

.content-body {
  max-width: 760px;
  margin: 0 auto;
}

.content-body h2 {
  font-size: 1.5rem;
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.content-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.content-body p {
  margin-bottom: 16px;
}

.content-body ul, .content-body ol {
  margin: 12px 0 16px 24px;
  color: var(--color-text-muted);
}

.content-body li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.content-body strong {
  color: var(--color-text);
}

.content-body a {
  color: var(--color-purple-light);
  text-decoration: underline;
  text-decoration-color: rgba(155, 109, 255, 0.3);
  text-underline-offset: 3px;
}

.content-body a:hover {
  text-decoration-color: var(--color-purple-light);
}

.last-updated {
  font-size: 0.875rem;
  color: var(--color-text-dimmed);
  margin-top: 8px;
}

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--color-bg-card);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: var(--color-bg-card-hover);
}

.faq-question .chevron {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-base);
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.faq-item.active .faq-question .chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

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

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* --- Divider --- */
.divider {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-purple), var(--color-purple-light));
  border-radius: 2px;
  margin: 0 auto;
}

/* --- Contact Card --- */
.contact-card {
  text-align: center;
  padding: 48px;
}

.contact-card .contact-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-purple-dark), var(--color-purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}

/* --- Warning / Info Cards --- */
.info-card {
  border-left: 3px solid var(--color-purple);
  padding: 20px 24px;
  background: rgba(107, 78, 230, 0.06);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
}

.info-card p {
  color: var(--color-text);
  margin: 0;
}

.warning-card {
  border-left: 3px solid #E04040;
  background: rgba(224, 64, 64, 0.06);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .navbar-links { display: none; }
  
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .steps {
    flex-direction: column;
    gap: 24px;
  }
  
  .step:not(:last-child)::after {
    display: none;
  }
  
  .stats-bar {
    gap: 32px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .hero p {
    font-size: 1.0625rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .glass-card {
    padding: 24px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}
