/* JACKERY HomePower 3600 Plus - Custom Premium CSS */

:root {
  /* Colors */
  --primary: #ff7a1a;
  --primary-dark: #e85d04;
  --primary-gradient: linear-gradient(135deg, #ff7a1a 0%, #e85d04 100%);
  --primary-glow: rgba(255, 122, 26, 0.45);
  --ink: #101418;
  --ink-card: #181d24;
  --bg-light: #f5f5f7;
  --bg-white: #ffffff;
  --text-dark: #1d1d1f;
  --text-light: #f5f5f7;
  --text-muted: #86868b;
  --text-muted-light: #a1a1a6;
  --border-light: #e5e5ea;
  --border-dark: #2a313a;

  /* Layout & Design */
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s ease;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-premium: 0 20px 40px rgba(16, 20, 24, 0.08);
  --shadow-glow: 0 0 25px var(--primary-glow);
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  line-height: 1.5;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 10px 20px;
  z-index: 10000;
  transition: top 0.2s;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 var(--border-radius-sm) 0;
}

.skip-link:focus {
  top: 0;
}

/* Typography & Headers */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.section-title.light,
.section-subtitle.light {
  color: var(--text-light);
}

/* Scroll Fade-In Animation Classes */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  outline: none;
}

.btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 122, 26, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 122, 26, 0.45);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

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

.btn-secondary-dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

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

/* 1. Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 1.25rem 0;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.85rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text-dark);
}

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

header:not(.scrolled) .logo {
  color: white;
}

header:not(.scrolled) .logo-accent {
  color: var(--primary);
}

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

.nav-menu a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
}

header:not(.scrolled) .nav-menu a {
  color: rgba(255, 255, 255, 0.9);
}

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

header:not(.scrolled) .nav-menu a:hover {
  color: white;
}

.nav-cta .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

/* Hamburger menu button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1010;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px 0;
  background-color: var(--text-dark);
  transition: var(--transition-fast);
}

header:not(.scrolled) .hamburger span {
  background-color: white;
}

/* Hamburger active transformation */
.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);
}

/* 2. Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--ink);
  background-image: linear-gradient(rgba(16, 20, 24, 0.5), rgba(16, 20, 24, 0.9)), url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  padding: 8rem 0 4rem 0;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content {
  max-width: 650px;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero-subline {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.hero-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
  max-width: 600px;
}

.counter-item {
  display: flex;
  flex-direction: column;
}

.counter-num {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.counter-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* 3. Pricing Card Section */
.pricing-section {
  padding: 6rem 0;
  background-color: var(--bg-light);
}

.pricing-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pricing-card {
  max-width: 580px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-premium);
  position: relative;
  border: 1px solid var(--border-light);
}

/* Pulsing badge */
.badge-save {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gradient);
  color: white;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 122, 26, 0.5);
    transform: translateX(-50%) scale(1);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 122, 26, 0);
    transform: translateX(-50%) scale(1.03);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 122, 26, 0);
    transform: translateX(-50%) scale(1);
  }
}

.price-strikethrough {
  font-size: 1.25rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 0.25rem;
}

.price-large {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.pricing-card-subtitle {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-size: 1rem;
}

/* Glowing buy button */
.btn-buy-glowing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.1rem 2rem;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  color: white;
  background: var(--primary-gradient);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  position: relative;
  transition: var(--transition-smooth);
}

.btn-buy-glowing:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 122, 26, 0.6);
}

.pricing-perks {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.pricing-perks li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-perks svg {
  color: #34c759;
  flex-shrink: 0;
}

/* 4. Lifespan Showcase */
.showcase-section {
  position: relative;
  min-height: 600px;
  background-color: var(--ink);
  background-image: linear-gradient(rgba(16, 20, 24, 0.4), rgba(16, 20, 24, 0.75)), url("images/showcase.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 6rem 0;
}

.showcase-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.showcase-banner {
  background: rgba(16, 20, 24, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  max-width: 600px;
}

.showcase-banner h2 {
  color: white;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.showcase-banner p {
  color: rgba(255, 255, 255, 0.75);
}

/* 5. 3D Brand Ring */
.brand-ring-section {
  background: var(--ink);
  padding: 3rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  position: relative;
  z-index: 1;
}

.brand-ring-viewport {
  position: relative;
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px; /* Crucial for 3D depth */
  -webkit-perspective: 1200px;
  overflow: hidden;
  z-index: 1;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

.brand-ring-cylinder {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  animation: rotate-cylinder 15s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Set font properties on the parent container so they are readable via JS */
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.brand-ring-span {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: inherit;
  font-weight: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
  
  /* 3D rendering fixes for WebKit browsers */
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  
  /* Gradient text */
  background: linear-gradient(90deg, #ffffff 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  
  transform-origin: center center;
}

@keyframes rotate-cylinder {
  0% {
    transform: rotateY(360deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}

/* 6. Video Section */
.video-section {
  padding: 6rem 0;
  background-color: var(--bg-light);
}

.video-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.video-wrapper {
  max-width: 420px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 40px;
  padding: 1.5rem;
  box-shadow: var(--shadow-premium);
  position: relative;
  border: 4px solid var(--border-dark);
}

/* Phone-style notch */
.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 18px;
  background: var(--ink);
  border-radius: 10px;
  z-index: 10;
}

.video-player {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 28px;
  display: block;
  object-fit: cover;
}

/* 7. Features Grid */
.features-section {
  padding: 6rem 0;
  background-color: var(--bg-white);
}

.features-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.feature-card {
  background: var(--bg-light);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  background: var(--bg-white);
}

.feature-icon-wrapper {
  background: var(--bg-white);
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
  color: var(--primary);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--primary-gradient);
  color: white;
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 0.95rem;
}

/* 8. Orange CTA Band */
.cta-band {
  background: var(--primary-gradient);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.cta-band-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cta-band h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.cta-band .btn-secondary-dark {
  background: white;
  color: var(--primary-dark);
  font-weight: 700;
  padding: 0.9rem 2rem;
}

.cta-band .btn-secondary-dark:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 9. Interactive Specs */
.specs-section {
  padding: 6rem 0;
  background-color: var(--bg-light);
}

.specs-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.specs-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.specs-image-wrapper {
  position: relative;
  text-align: center;
}

.specs-img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0,0,0,0.1));
  transition: var(--transition-smooth);
}

.specs-img:hover {
  transform: scale(1.03);
}

.specs-tabs-container {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-light);
}

.specs-tabs-list {
  display: flex;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 2rem;
  list-style: none;
}

.specs-tab-btn {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.specs-tab-btn:hover {
  color: var(--text-dark);
}

.specs-tab-btn.active {
  color: var(--primary);
}

.specs-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.specs-tab-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.specs-tab-content {
  display: none;
}

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

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.spec-item {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}

.spec-item:nth-last-child(1),
.spec-item:nth-last-child(2) {
  border-bottom: none;
  padding-bottom: 0;
}

.spec-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.spec-value {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
}

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

/* 10. Runtime Section */
.runtime-section {
  padding: 6rem 0;
  background: var(--ink);
  color: white;
}

.runtime-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.runtime-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

/* Battery Animation */
.battery-wrapper {
  background: rgba(255,255,255,0.03);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  border: 1px solid var(--border-dark);
  text-align: center;
}

.battery-body {
  width: 140px;
  height: 240px;
  border: 8px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-md);
  margin: 0 auto 2rem auto;
  position: relative;
  padding: 6px;
  background: transparent;
}

/* Battery top terminal */
.battery-body::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px 4px 0 0;
}

.battery-fill {
  width: 100%;
  height: 0%;
  background: var(--primary);
  border-radius: 8px;
  position: absolute;
  bottom: 6px;
  left: 6px;
  width: calc(100% - 12px);
  transition: background-color 0.3s ease;
}

.battery-text {
  font-size: 2.2rem;
  font-weight: 800;
  margin-top: 1rem;
  letter-spacing: -0.02em;
}

/* Runtime Cards */
.runtime-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.runtime-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  transition: var(--transition-smooth);
}

.runtime-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  transform: translateY(-4px);
}

.runtime-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.runtime-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.runtime-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: white;
}

.runtime-duration {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.runtime-desc {
  font-size: 0.85rem;
  color: var(--text-muted-light);
}

/* 11. Comparison Table */
.compare-section {
  padding: 6rem 0;
  background-color: var(--bg-light);
}

.compare-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.compare-table-wrapper {
  overflow-x: auto;
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border-light);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 750px;
}

.compare-table th, 
.compare-table td {
  padding: 1.25rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.compare-table th {
  background: var(--bg-light);
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1rem;
}

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

.compare-feature-name {
  text-align: left !important;
  font-weight: 600;
  color: var(--text-dark);
  min-width: 180px;
}

/* Highlighted Column */
.compare-highlight {
  background: rgba(255, 122, 26, 0.04);
  position: relative;
}

th.compare-highlight {
  background: rgba(255, 122, 26, 0.08);
  color: var(--primary-dark);
  font-weight: 800;
}

.compare-highlight-badge {
  font-size: 0.75rem;
  background: var(--primary);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-weight: 700;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
}

.compare-check {
  color: #34c759;
  font-weight: bold;
}

.compare-cross {
  color: #ff3b30;
  font-weight: bold;
}

/* 12. Reviews Section */
.reviews-section {
  padding: 6rem 0;
  background-color: var(--bg-white);
}

.reviews-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.reviews-summary {
  text-align: center;
  margin-bottom: 4rem;
}

.reviews-score {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.star-rating {
  color: #ffcc00;
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

.reviews-count {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.review-card {
  background: var(--bg-light);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.review-card .star-rating {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.review-text {
  font-style: italic;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
}

.review-author {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.review-badge {
  font-size: 0.8rem;
  color: #34c759;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* 13. Gallery Section */
.gallery-section {
  padding: 6rem 0;
  background-color: var(--bg-light);
}

.gallery-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-soft);
  position: relative;
  background-color: var(--border-light);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  display: block;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

/* 14. FAQ Accordion */
.faq-section {
  padding: 6rem 0;
  background-color: var(--bg-white);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  background: var(--bg-light);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-question-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-answer-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.faq-icon-arrow {
  color: var(--text-muted);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-item.active {
  background: var(--bg-white);
  border-color: var(--primary);
  box-shadow: var(--shadow-soft);
}

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

/* 15. Final Dark CTA */
.final-cta {
  background: var(--ink);
  color: white;
  padding: 8rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border-dark);
}

.final-cta-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.final-cta h2 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  margin-bottom: 1.5rem;
}

.final-cta-price-row {
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.final-price-struck {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
}

.final-price-active {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary);
}

.final-cta .btn-buy-glowing {
  max-width: 320px;
  margin: 0 auto;
}

.final-cta-tag {
  display: block;
  margin-top: 2rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  font-family: monospace;
}

/* 16. Footer */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 5rem 0 2.5rem 0;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h4 {
  font-size: 1.4rem;
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-links h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.footer-newsletter h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex-grow: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-dark);
  border-radius: var(--border-radius-sm);
  padding: 0.6rem 1rem;
  color: white;
  outline: none;
  font-size: 0.85rem;
}

.newsletter-input:focus {
  border-color: var(--primary);
}

.newsletter-btn {
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-fast);
}

.newsletter-btn:hover {
  opacity: 0.9;
}

.newsletter-msg {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  color: #34c759;
  display: none;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* 17. Sticky Purchase Bar */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.05);
  z-index: 900;
  padding: 0.9rem 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.sticky-bar.visible {
  transform: translateY(0);
}

.sticky-bar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sticky-bar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.sticky-product-name {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.sticky-price-block {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sticky-price-struck {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.sticky-price-active {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary-dark);
}

.sticky-bar .btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.85rem;
}

/* CHATBOT WIDGET STYLING */

/* Launcher Pill */
.chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 40px;
  padding: 0.9rem 1.6rem;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(255, 122, 26, 0.4);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, opacity 0.3s ease;
  font-size: 0.95rem;
}

.chat-launcher:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 35px rgba(255, 122, 26, 0.55);
}

.chat-launcher.hidden {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
}

/* Chat Window */
.chat-window {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  height: 600px;
  max-height: calc(100vh - 48px);
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  z-index: 1001;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  overflow: hidden;
}

.chat-window.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Chat Header */
.chat-header {
  background: var(--primary-gradient);
  color: white;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header-info {
  display: flex;
  flex-direction: column;
}

.chat-title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

.chat-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.chat-minimize-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.chat-minimize-btn:hover {
  opacity: 0.8;
}

/* Chat Message Area */
.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f8f9fa;
  scroll-behavior: smooth;
}

.chat-bubble {
  max-width: 80%;
  padding: 0.8rem 1.1rem;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.45;
  word-wrap: break-word;
  position: relative;
  animation: messageSlideIn 0.3s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

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

.chat-bubble-bot {
  background: var(--bg-white);
  color: var(--text-dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chat-bubble-user {
  background: var(--primary-gradient);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 3px 10px rgba(255, 122, 26, 0.2);
}

.chat-buy-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary-gradient);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1rem;
  border-radius: 20px;
  margin-top: 0.75rem;
  box-shadow: 0 4px 10px rgba(255, 122, 26, 0.25);
  transition: var(--transition-fast);
}

.chat-buy-link-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(255, 122, 26, 0.35);
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  align-self: flex-start;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

/* Quick Replies */
.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #f8f9fa;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.quick-reply-btn {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
}

.quick-reply-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 122, 26, 0.03);
}

/* Chat Input Bar */
.chat-input-area {
  display: flex;
  padding: 0.9rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-white);
  gap: 0.5rem;
}

.chat-input {
  flex-grow: 1;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-fast);
}

.chat-input:focus {
  border-color: var(--primary);
}

.chat-send-btn {
  background: var(--primary-gradient);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.chat-send-btn:hover {
  transform: scale(1.05);
}

.chat-send-btn svg {
  width: 16px;
  height: 16px;
}

/* Responsive Styles */

@media (max-width: 1024px) {
  .specs-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .specs-image-wrapper {
    order: -1;
  }
  
  .runtime-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  /* Navigation mobile behavior overrides */
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2.5rem;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    z-index: 1005;
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-menu a {
    font-size: 1.15rem;
    color: var(--text-dark) !important;
    display: block;
    padding: 0.75rem 0;
  }
  
  .nav-cta {
    width: 100%;
    margin-top: 1rem;
  }
  
  .nav-cta .btn {
    width: 100%;
  }
  
  .hero-counters {
    max-width: 100%;
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  /* Full screen chatbot behavior */
  .chat-window {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
    z-index: 2000;
  }
  
  .chat-messages {
    padding-bottom: 2rem;
  }
  
  .chat-input-area {
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom)) 1rem;
  }
  
  /* Layout spacing */
  .section-title {
    font-size: 2rem;
  }
  
  .compare-feature-name {
    min-width: 120px;
  }
  
  .runtime-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .sticky-bar {
    display: none; /* Hide sticky bar on very small devices to avoid visual clutter with chat launcher */
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Accessibility settings for reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  * {
    animation-delay: 0s !important;
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  
  .fade-in-section {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .brand-ring-cylinder {
    animation: none !important;
  }
}
