/* Color Palette Custom Variables */
:root {
  --void: #000000;
  --surface: #0F0F0F;
  --surface-muted: #151515;
  --surface-high: #1C1C1C;
  --primary: #B8FF3B;
  --primary-hover: #9ad72d;
  --text-primary: #F5F5F5;
  --text-light: #9A9A9A;
  --text-muted: #6A6A6A;
  --error: #FF5A5F;
  --warning: #FFD84D;
  --success: #B8FF3B;
}

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

html, body {
  background-color: var(--void);
  font-family: 'Geist', sans-serif;
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

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

.small-container {
  max-width: 800px;
}

/* Glassmorphic Navbar Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 24px;
  color: var(--primary);
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav {
  display: flex;
  gap: 32px;
}

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

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

.cta-outline {
  padding: 10px 20px;
  border: 1px solid var(--primary);
  border-radius: 999px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-outline:hover {
  background-color: var(--primary);
  color: var(--void);
}

/* Hero Landing Section */
.hero {
  padding-top: 180px;
  padding-bottom: 120px;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.hero-title {
  font-family: 'Geist', sans-serif;
  font-size: 58px;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.store-button {
  background-color: var(--surface-muted);
  border-radius: 999px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.store-button:hover {
  background-color: var(--surface-high);
  transform: translateY(-2px);
}

.store-button.promo {
  background-color: var(--primary);
}

.store-button.promo i,
.store-button.promo .store-text,
.store-button.promo .store-text strong {
  color: var(--void) !important;
}

.store-button.promo:hover {
  background-color: var(--primary-hover);
}

.store-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.qr-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.qr-code-img {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  border: 1px solid var(--surface-high);
  padding: 6px;
  background-color: var(--surface-muted);
}

.qr-text {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.4;
  font-weight: 500;
}

.store-icon-solid {
  font-size: 22px;
  color: var(--text-primary);
}

.store-text {
  font-size: 11px;
  color: var(--text-light);
  line-height: 1.3;
}

.store-text strong {
  font-size: 15px;
  color: var(--text-primary);
}

/* Voice Invoicing Widget Mockup */
.widget-card {
  background-color: var(--surface);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
}

.widget-title {
  color: var(--text-light);
}

.widget-status {
  color: var(--primary);
  background-color: rgba(184, 255, 59, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
}

.widget-instruction {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.voice-presets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.preset-btn {
  background-color: var(--surface-muted);
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--text-primary);
  text-align: left;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.preset-btn:hover {
  background-color: var(--surface-high);
}

/* Pulsing Recording Waveform */
.waveform-panel {
  background-color: var(--surface-muted);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  display: none;
}

.waveform-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  margin-bottom: 12px;
}

.wave-bar {
  width: 4px;
  height: 100%;
  background-color: var(--primary);
  border-radius: 999px;
  animation: pulse-wave 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(2) { animation-delay: 0.2s; height: 60%; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; height: 85%; }
.wave-bar:nth-child(4) { animation-delay: 0.1s; height: 70%; }
.wave-bar:nth-child(5) { animation-delay: 0.3s; height: 50%; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; height: 90%; }

@keyframes pulse-wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.transcription-text {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  font-style: italic;
}

/* Simulated Invoice Details Card */
.invoice-result {
  background-color: var(--surface-high);
  border-radius: 12px;
  padding: 20px;
  display: none;
}

.invoice-card-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--surface-muted);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.invoice-number {
  font-size: 14px;
  font-weight: 600;
}

.invoice-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--warning);
  background-color: rgba(255, 216, 77, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

.invoice-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.sim-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.sim-item-name {
  color: var(--text-light);
}

.sim-item-val {
  font-weight: 500;
}

.invoice-total {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--surface-muted);
  padding-top: 16px;
  font-size: 14px;
  font-weight: 600;
}

.invoice-total strong {
  font-family: 'Geist', sans-serif;
  color: var(--primary);
  font-size: 18px;
}

/* Feature Registry Layout */
.features {
  background-color: var(--surface);
}

.section-title {
  font-family: 'Geist', sans-serif;
  font-size: 42px;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.feature-card {
  background-color: var(--surface-muted);
  padding: 40px 32px;
  border-radius: 16px;
  transition: transform 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 24px;
}

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

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

/* Savings Slider Calculator Card */
.calculator-card {
  background-color: var(--surface);
  border-radius: 16px;
  padding: 48px;
  margin-top: 40px;
}

.control-group {
  margin-bottom: 32px;
}

.control-group label {
  display: block;
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 12px;
  font-weight: 500;
}

.control-group label span {
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-high);
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.savings-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  border-top: 1px solid var(--surface-muted);
  padding-top: 32px;
  margin-top: 16px;
}

.result-box {
  text-align: center;
}

.result-label {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.result-value {
  font-family: 'Geist', sans-serif;
  font-size: 36px;
  font-weight: 700;
}

.result-value.accent {
  color: var(--primary);
}

/* Subscription Pricing Panels */
.pricing {
  background-color: var(--surface);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
  margin-top: 60px;
}

.price-card {
  background-color: var(--surface-muted);
  border-radius: 16px;
  padding: 48px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card.popular {
  border: 1px solid var(--primary);
  background-color: rgba(184, 255, 59, 0.02);
}

.price-card.annual {
  border: 1px solid rgba(184, 255, 59, 0.3);
}

.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--void);
  background-color: var(--primary);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.badge.accent {
  background-color: #ffd84d;
}

.tier-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-light);
}

.tier-price {
  font-family: 'Geist', sans-serif;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.tier-price span {
  font-size: 16px;
  font-family: 'Geist', sans-serif;
  color: var(--text-light);
  font-weight: 400;
}

.tier-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.5;
}

.tier-features {
  list-style: none;
  margin-bottom: 40px;
  flex-grow: 1;
}

.tier-features li {
  font-size: 14px;
  margin-bottom: 16px;
}

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

.btn-tier {
  display: block;
  text-align: center;
  background-color: var(--surface-high);
  color: var(--text-primary);
  padding: 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.btn-tier:hover {
  background-color: var(--text-primary);
  color: var(--void);
}

.btn-tier.accent {
  background-color: var(--primary);
  color: var(--void);
}

.btn-tier.accent:hover {
  background-color: var(--primary-hover);
}

.btn-tier.accent-bright {
  background-color: #ffd84d;
  color: var(--void);
}

.btn-tier.accent-bright:hover {
  background-color: #e5c145;
}

/* Accordion FAQ Component */
.faq-accordion {
  margin-top: 40px;
}

.faq-item {
  border-bottom: 1px solid var(--surface-high);
  padding: 24px 0;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  color: var(--primary);
  transition: transform 0.25s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding-top 0.3s ease;
  padding-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-top: 16px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Footer Bottom Layout */
.footer-bottom {
  background-color: var(--void);
  border-top: 1px solid var(--surface);
  padding: 40px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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


/* Responsive Media Queries */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  .hero-title {
    font-size: 44px;
  }
  .hero-actions {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 60px auto 0;
  }
  .nav {
    display: none;
  }

}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .savings-results {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
