/* ==========================================================================
   Blaze Website - CSS Stylesheet
   Designed for App Store Landing Page and Legal Documents
   Theme: High-fidelity premium dark mode with glassmorphism & gradients
   ========================================================================== */

/* Import Inter Font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Custom Properties / Design Tokens */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Color Palette */
  --bg-color: #08090d;
  --panel-bg: rgba(18, 20, 29, 0.7);
  --panel-border: rgba(255, 255, 255, 0.08);
  
  --text-primary: #f5f5f7;
  --text-secondary: #9ea4b0;
  --text-muted: #626773;
  
  --accent-color: #5e5ce6; /* Apple Indigo */
  --accent-glow: rgba(99, 102, 241, 0.15);
  
  --success-color: #34c759;
  --error-color: #ff3b30;
  --warning-color: #ff9500;
  
  /* Spacing */
  --container-width: 1100px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --border-radius: 16px;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography Utility */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  filter: brightness(1.2);
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(8, 9, 13, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--panel-border);
  padding: 16px 0;
}

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

.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: var(--accent-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

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

.nav-menu a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
}

.nav-menu a:hover {
  color: var(--text-primary);
}

.nav-btn {
  background: var(--accent-color);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

/* Hero Section */
.hero {
  padding: 100px 0 60px 0;
  text-align: center;
  position: relative;
}

.hero-tag {
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 24px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: 54px;
  font-weight: 800;
  max-width: 800px;
  margin: 0 auto 24px auto;
  color: #ffffff;
}

.hero-sub {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 40px auto;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--panel-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Interactive Device Mockup (iPad UI mockup in HTML/CSS) */
.device-mockup-container {
  max-width: 850px;
  margin: 0 auto;
  perspective: 1000px;
}

.device-mockup {
  background: #0d0e12;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
}

.device-screen {
  background: #0d0e12;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 240px 1fr;
  color: var(--text-primary);
  text-align: left;
}

.screen-sidebar {
  background: #13151c;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-title {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.sidebar-item.active {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  font-weight: 500;
}

.screen-main {
  display: grid;
  grid-template-rows: 60px 1fr;
}

.screen-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.screen-header-title {
  font-size: 14px;
  font-weight: 600;
}

.screen-header-actions {
  display: flex;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.screen-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.pane-pdf {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px;
  font-size: 10px;
  color: var(--text-muted);
  overflow-y: auto;
  position: relative;
}

.pane-pdf-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.pane-pdf p {
  margin-bottom: 8px;
}

.pane-pdf .highlighted-line {
  background: rgba(99, 102, 241, 0.25);
  color: var(--text-primary);
  border-radius: 2px;
  padding: 2px 0;
  font-weight: 500;
}

.pane-reader {
  background: #090a0d;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  position: relative;
}

.rsvp-display {
  font-size: 40px;
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  height: 80px;
  position: relative;
}

.rsvp-display::before,
.rsvp-display::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 8px;
  background: #ff3b30;
}

.rsvp-display::before {
  top: -12px;
}

.rsvp-display::after {
  bottom: -12px;
}

.rsvp-word-left {
  text-align: right;
  flex: 1;
}

.rsvp-word-pivot {
  color: #ff3b30; /* Target Recognition point */
  padding: 0 1px;
}

.rsvp-word-right {
  text-align: left;
  flex: 1;
}

.reader-wpm {
  margin-top: 30px;
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Features Grid */
.features {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 38px;
  margin-bottom: 16px;
  color: #ffffff;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  padding: 40px 32px;
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
              0 0 30px rgba(99, 102, 241, 0.05);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #818cf8;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* Pricing Section */
.pricing {
  padding: 100px 0;
  position: relative;
}

.pricing::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--accent-glow);
  filter: blur(100px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}

.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.pricing-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  padding: 48px 40px;
  flex: 1;
  min-width: 300px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pricing-card.premium {
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.pricing-card.premium:hover {
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.popular-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-color);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.pricing-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

.pricing-price {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
}

.pricing-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 4px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.pricing-features li svg {
  color: var(--success-color);
  flex-shrink: 0;
}

.pricing-features li.disabled {
  color: var(--text-muted);
}

.pricing-features li.disabled svg {
  color: var(--text-muted);
}

/* Legal & Standard Page Layout (Privacy, Terms, Support) */
.page-header {
  padding: 80px 0 40px 0;
  text-align: center;
  border-bottom: 1px solid var(--panel-border);
}

.page-header h1 {
  font-size: 40px;
  color: #ffffff;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

.page-content {
  padding: 60px 0 100px 0;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 22px;
  margin: 40px 0 16px 0;
  color: var(--text-primary);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 16px;
}

.legal-content ul, .legal-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 16px;
}

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

/* Contact Support Form */
.support-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .support-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.support-info h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.support-info p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
}

.contact-card h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.contact-card a {
  font-size: 14px;
  font-weight: 500;
}

.support-form-container {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--border-radius);
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  background: rgba(8, 9, 13, 0.8);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-btn {
  width: 100%;
  border: none;
  outline: none;
  font-family: var(--font-sans);
}

/* FAQ Accordion */
.faq-section {
  margin-top: 60px;
}

.faq-section h3 {
  font-size: 24px;
  margin-bottom: 24px;
  text-align: center;
}

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

.faq-question {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  margin-top: 12px;
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
  color: var(--text-primary);
}

/* Footer Section */
.site-footer {
  border-top: 1px solid var(--panel-border);
  padding: 48px 0;
  background: rgba(8, 9, 13, 0.9);
  font-size: 14px;
  color: var(--text-muted);
}

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

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

.footer-links a {
  color: var(--text-secondary);
}

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 40px;
  }
  .pricing-grid {
    flex-direction: column;
    align-items: center;
  }
  .pricing-card {
    width: 100%;
    max-width: 450px;
  }
}

@media (max-width: 600px) {
  .nav-menu {
    gap: 16px;
  }
  .nav-menu a {
    font-size: 13px;
  }
  .nav-btn {
    padding: 6px 12px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero-sub {
    font-size: 16px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
}
