/* ==========================================================================
   AuraPulse Landing Page Stylesheet
   Design: Dark Luxury, Glassmorphism, Neon Glow & Spatial Aesthetics
   ========================================================================== */

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

:root {
  --bg-dark: #07090e;
  --bg-card: rgba(18, 24, 38, 0.65);
  --bg-card-hover: rgba(28, 36, 56, 0.75);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(6, 182, 212, 0.4);
  
  --accent-cyan: #06b6d4;
  --accent-violet: #8b5cf6;
  --accent-magenta: #d946ef;
  --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #d946ef 100%);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
}

body {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 45%, rgba(139, 92, 246, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(217, 70, 239, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  border-radius: 30px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 650px;
  width: 100%;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text-main);
}

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

.nav-cta-mobile {
  display: none;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.main-nav {
  display: flex;
  align-items: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 100px 0 80px;
  position: relative;
}

.hero-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-content {
  flex: 1;
  min-width: 0;
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  font-size: 13px;
  color: #c084fc;
  font-weight: 600;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #c084fc;
  border-radius: 50%;
  box-shadow: 0 0 10px #c084fc;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(192, 132, 252, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(192, 132, 252, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(192, 132, 252, 0); }
}

.hero-title {
  font-size: 54px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

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

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.stat-item h4 {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.stat-item p {
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-visual {
  flex: 1;
  min-width: 0;
  max-width: 580px;
  aspect-ratio: 580 / 520;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.floating-card {
  position: absolute;
  padding: 14px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.card-1 {
  bottom: 30px;
  left: -20px;
  background: rgba(18, 24, 38, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.card-2 {
  top: 30px;
  right: -20px;
  background: rgba(18, 24, 38, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(217, 70, 239, 0.3);
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.card-text h5 {
  font-size: 14px;
  font-weight: 600;
}

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

/* ==========================================================================
   Interactive Spectrum Canvas Section
   ========================================================================== */
.spectrum-section {
  padding: 40px 0;
  margin-bottom: 80px;
}

.spectrum-box {
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.spectrum-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 10px;
}

.spectrum-title {
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.spectrum-controls {
  display: flex;
  gap: 12px;
}

.spectrum-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.spectrum-btn.active, .spectrum-btn:hover {
  background: var(--accent-gradient);
  color: #fff;
}

#audioCanvas {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  background: rgba(7, 9, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Features Section (3-Column Fixed Grid)
   ========================================================================== */
.features-section {
  padding: 60px 0;
  margin-bottom: 80px;
}

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

.feature-card {
  padding: 36px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: 0 12px 40px rgba(6, 182, 212, 0.15);
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(6, 182, 212, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Tech Specifications (Tabbed View)
   ========================================================================== */
.specs-section {
  padding: 60px 0;
  margin-bottom: 80px;
}

.specs-wrapper {
  padding: 40px;
}

.specs-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 16px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 18px 24px;
  font-size: 15px;
}

.specs-table td.label {
  width: 300px;
  color: var(--text-muted);
  font-weight: 500;
}

.specs-table td.value {
  color: var(--text-main);
  font-weight: 600;
}

/* ==========================================================================
   Pricing Section (3-Column Fixed Cards)
   ========================================================================== */
.pricing-section {
  padding: 60px 0;
  margin-bottom: 80px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  align-items: center;
}

.pricing-card {
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(18, 24, 38, 0.9), rgba(139, 92, 246, 0.15));
  border: 2px solid var(--accent-violet);
  transform: scale(1.04);
  box-shadow: 0 16px 50px rgba(139, 92, 246, 0.25);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 12px;
  letter-spacing: 1px;
}

.plan-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.plan-price {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.plan-price span {
  font-size: 16px;
  color: var(--text-dim);
  font-weight: 400;
}

.plan-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 36px;
}

.plan-features li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.plan-features li i {
  color: var(--accent-cyan);
  font-size: 14px;
}

/* ==========================================================================
   FAQ Section (Accordion)
   ========================================================================== */
.faq-section {
  padding: 60px 0;
  margin-bottom: 80px;
}

.faq-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s;
}

.faq-question {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  user-select: none;
}

.faq-icon {
  font-size: 20px;
  color: var(--accent-cyan);
  transition: transform 0.3s;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.4s;
  padding: 0 28px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 28px 24px 28px;
  transition: max-height 0.4s ease-in-out, padding 0.4s;
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-section {
  padding: 60px 0 100px;
}

.cta-box {
  padding: 70px 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border: 1px solid var(--border-glow);
  position: relative;
  overflow: hidden;
}

.cta-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  width: 100%;
  margin: 0 auto 36px;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-glass);
  padding: 60px 0 40px;
  background: rgba(5, 7, 12, 0.9);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
}

.footer-brand {
  flex: 1;
  min-width: 0;
  max-width: 320px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 16px;
}

.footer-column h5 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: var(--text-dim);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero-layout {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }

  .hero-visual {
    max-width: 100%;
    width: 100%;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.featured {
    transform: none;
  }

  .footer-grid {
    flex-wrap: wrap;
    gap: 40px;
  }

  .footer-brand {
    max-width: 100%;
    flex-basis: 100%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-cta-desktop {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    display: block;
    background: rgba(7, 9, 14, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease;
  }

  .main-nav.open {
    max-height: 520px;
    opacity: 1;
    padding: 20px;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    display: block;
    padding: 12px 16px;
    border-radius: 10px;
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-cta-mobile {
    display: flex;
    margin-top: 16px;
  }

  .nav-cta-mobile .btn {
    width: 100%;
  }

  .hero-section {
    padding: 90px 0 60px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

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

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

  .floating-card {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    margin-top: 12px;
  }

  .hero-visual {
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    height: auto;
  }

  .hero-img-wrapper {
    aspect-ratio: 580 / 520;
    height: auto;
  }

  .section-title {
    font-size: 30px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .spectrum-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .spectrum-controls {
    flex-wrap: wrap;
    justify-content: center;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .specs-wrapper {
    padding: 24px 16px;
  }

  .specs-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .tab-btn {
    width: 100%;
    text-align: center;
  }

  .specs-table td {
    display: block;
    padding: 12px 16px;
  }

  .specs-table td.label {
    width: 100%;
    padding-bottom: 4px;
    color: var(--accent-cyan);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .specs-table td.value {
    padding-top: 0;
    padding-bottom: 16px;
  }

  .specs-table tr {
    display: block;
    padding: 8px 0;
  }

  .cta-box {
    padding: 48px 24px;
  }

  .cta-title {
    font-size: 30px;
  }

  .footer-grid {
    flex-direction: column;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .header-container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .section-title {
    font-size: 26px;
  }

  .plan-price {
    font-size: 38px;
  }

  .faq-question {
    font-size: 16px;
    padding: 20px;
    gap: 16px;
  }

  .faq-answer,
  .faq-item.active .faq-answer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .btn {
    padding: 12px 22px;
    font-size: 15px;
  }
}
