/* SonaBuds Official Landing Page Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-dark: #090d16;
  --bg-card: #131b2e;
  --bg-card-hover: #1c2742;
  --bg-glass: rgba(19, 27, 46, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(14, 165, 233, 0.3);
  
  --primary: #0ea5e9;
  --primary-hover: #0284c7;
  --primary-glow: rgba(14, 165, 233, 0.25);
  --accent: #38bdf8;
  --accent-gold: #f59e0b;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.3);
}

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

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

body {
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Announcement Bar */
.top-bar {
  background: linear-gradient(90deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  text-align: center;
  letter-spacing: 0.02em;
}

.top-bar span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Header & Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.5rem;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: rgba(14, 165, 233, 0.15);
  color: var(--primary);
  border: 1px solid var(--border-highlight);
  font-size: 0.7rem;
  line-height: 1;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Buttons & CTAs */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: var(--shadow-glow);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.45);
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
}

.btn-cta-lg {
  font-size: 1.2rem;
  padding: 1.1rem 2.4rem;
  width: 100%;
  max-width: 420px;
}

.btn-header {
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

/* Container & Layout */
.section {
  padding: 4.5rem 1.5rem;
  position: relative;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  color: var(--primary);
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid var(--border-highlight);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* HERO SECTION (Product-Led Responsive) */
.hero-section {
  padding: 2.5rem 1.5rem 4rem;
  background: radial-gradient(circle at 50% 20%, rgba(14, 165, 233, 0.15) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2.25rem, 5vw, 4.5rem);
  align-items: center;
}

/* Keep all left-column content in one compact vertical rhythm on desktop. */
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-text-top {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid var(--border-highlight);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  width: fit-content;
}

.hero-h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.hero-h1 span {
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subhead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card);
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-visual:hover img {
  transform: scale(1.02);
}

.hero-proof-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.proof-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.rating-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.stars {
  color: var(--accent-gold);
  letter-spacing: 1px;
}

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid var(--border-highlight);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
}

.feature-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* HOW IT WORKS (3 STEPS) */
.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  position: relative;
  text-align: center;
}

.step-number {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.925rem;
}

/* TECH SPECS TABLE & HIGHLIGHTS */
.specs-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.specs-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.spec-label {
  color: var(--text-muted);
  font-weight: 500;
}

.spec-val {
  color: var(--text-main);
  font-weight: 700;
}

/* AUTHENTIC REVIEWS GRID */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.8rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reviewer-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #10b981;
  font-size: 0.8rem;
  font-weight: 600;
}

.review-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.6;
}

/* FAQ ACCORDION */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--border-highlight);
}

.faq-question {
  width: 100%;
  padding: 1.3rem 1.6rem;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--primary);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding-bottom: 1.4rem;
}

/* CTA BANNER SECTION */
.cta-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(2, 132, 199, 0.25) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* FOOTER */
.footer {
  background: #05080f;
  border-top: 1px solid var(--border-color);
  padding: 4rem 1.5rem 2.5rem;
  color: var(--text-dim);
  font-size: 0.875rem;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav h4 {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-disclaimer {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

/* MOBILE STICKY BOTTOM BAR */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(9, 13, 22, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-highlight);
  padding: 0.75rem 1rem;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.5);
}

.mobile-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-price-tag {
  display: flex;
  flex-direction: column;
}

.mobile-price-title {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.9rem;
}

.mobile-price-sub {
  font-size: 0.75rem;
  color: #10b981;
  font-weight: 600;
}

/* MEDIA QUERIES & RESPONSIVENESS */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Flatten the desktop copy wrapper so mobile can preserve intro → visual → CTA. */
  .hero-copy {
    display: contents;
  }

  .hero-text-top { order: 1; }
  .hero-visual { order: 2; }
  .hero-actions { order: 3; }
  
  .specs-container {
    grid-template-columns: 1fr;
  }
  
  .steps-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .top-bar {
    font-size: 0.72rem;
    line-height: 1.25;
    padding: 0.38rem 0.75rem;
  }

  .header {
    padding: 0.65rem 1rem;
  }

  .header-container {
    gap: 0.7rem;
  }

  .logo {
    min-width: 0;
    gap: 0.4rem;
    font-size: clamp(1rem, 4.5vw, 1.2rem);
    white-space: nowrap;
  }

  .logo-badge {
    font-size: 0.56rem;
    padding: 0.3rem 0.42rem;
  }

  .nav-links {
    display: none;
  }

  .btn-header {
    flex: 0 0 auto;
    min-height: 2.45rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.78rem;
    line-height: 1;
    white-space: nowrap;
    box-shadow: none;
  }
  
  .hero-h1 {
    font-size: 2.1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }

  .mobile-sticky-bar {
    display: block;
  }

  body {
    padding-bottom: 70px;
  }
}
