/* ============================================================
   THEME:       WaveMax US (Model A Standard)
   DESIGN:      Premium Tech / High Contrast
   FEATURES:    2-Col Features Grid / Comparison Table / Marquee
   ============================================================ */

/* ── COLOR TOKENS ─────────────────────────────────────────── */
:root {
  --primary:       #2563eb;
  --primary-dark:  #1d4ed8;
  --secondary:     #0f172a;
  --bg-primary:    #ffffff;
  --bg-secondary:  #f8fafc;
  --text-main:     #1e293b;
  --text-muted:    #334155; /* Even darker for perfect legibility (Gray 700) */
  --cta-bg:        #f97316;
  --cta-shadow:    #c2410c;
  --border:        #e2e8f0;
  --section-pad:   100px 0;
  --radius:        12px;
  --bg-navy:       #0f172a;
  --bg-blue-light: #eff6ff;
  --green-trust:   #22c55e;
}

@keyframes pulse-red {
  0% { background: #dc2626; }
  50% { background: #ef4444; }
  100% { background: #dc2626; }
}

.alert-pulse {
  animation: pulse-red 2s infinite ease-in-out;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

@media (max-width: 480px) {
  .alert-pulse {
    font-size: 0.7rem !important;
    padding: 8px !important;
  }
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { 
  font-family: 'Outfit', sans-serif; 
  line-height: 1.1;
  font-weight: 800;
  color: var(--secondary);
}

.bg-alt { background-color: var(--bg-secondary) !important; }
.bg-navy { background-color: var(--bg-navy) !important; color: #fff; }
.bg-blue-light { background-color: var(--bg-blue-light) !important; }

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

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--cta-bg);
  color: #fff;
  padding: 20px 40px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 0 var(--cta-shadow);
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--cta-shadow);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--cta-shadow);
}

@media (max-width: 480px) {
  .btn-primary {
    padding: 15px 20px !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: flex !important;
  }
}

/* ── LAYOUT SECTIONS ─────────────────────────────────────── */
.section-padding { padding: var(--section-pad); }
.bg-alt { background: var(--bg-secondary); }

/* ── HEADER ──────────────────────────────────────────────── */
header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

/* ── HERO ────────────────────────────────────────────────── */
#hero {
  padding: 100px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content { position: relative; }
.hero-img { position: relative; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 24px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

#hero h1 { 
  font-size: 3.8rem; 
  margin-bottom: 24px; 
  letter-spacing: -0.02em; 
  color: #ffffff;
}
#hero h1 span { color: var(--primary); }

.hero-sub { font-size: 1.2rem; color: rgba(255,255,255,0.8); margin-bottom: 32px; }

.hero-features {
  display: grid;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-feat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: #f1f5f9;
}

.hero-feat-item i { color: #16a34a; }

.hero-img {
  position: relative;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 992px) {
  .hero-grid { 
    grid-template-columns: 1fr; 
    text-align: center;
    gap: 20px;
  }
  .hero-content { display: contents; }
  .hero-badge-wrap { order: 1; margin-bottom: 15px; }
  .hero-img { order: 2; height: 350px; margin-bottom: 20px; }
  .hero-content-rest { order: 3; }
  .hero-feat-item { justify-content: center; }
  #hero h1 { font-size: 2.75rem; margin-bottom: 20px; }
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slider img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero-slider img.active {
  opacity: 1;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ── COMPARISON TABLE ────────────────────────────────────── */
.comp-table-wrap {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow-x: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

table { width: 100%; border-collapse: collapse; }
th { background: var(--secondary); color: #fff; padding: 20px; text-align: left; }
td { padding: 18px 20px; border-bottom: 1px solid var(--border); }
tr:last-child td { border: none; }

.val-yes { color: #16a34a; font-weight: 800; }
.val-no { color: #dc2626; font-weight: 800; }

/* ── FEATURES SPLIT LAYOUT (PABLO MODEL) ────────────────── */
.features-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.feat-col {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.feat-item-mini {
  display: flex;
  align-items: center;
  gap: 20px;
}

.feat-item-mini i {
  width: 50px;
  height: 50px;
  background: #f1f5f9;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feat-item-mini h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.feat-item-mini p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.feat-center-img img {
  max-width: 300px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

@media (max-width: 992px) {
  .features-split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0;
  }
  .feat-center-img { 
    order: -1; 
    margin: 0 auto 40px auto; 
    display: flex;
    justify-content: center;
  }
  .feat-item-mini { 
    flex-direction: column !important; 
    text-align: center !important; 
    margin-bottom: 30px;
    gap: 15px;
  }
  .feat-item-mini div { text-align: center !important; }
  .feat-item-mini i { margin: 0 !important; }
  .feat-col { gap: 0; }
}

/* ── GUARANTEE BOX ───────────────────────────────────────── */
.guarantee-box {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.guarantee-seal {
  width: 130px;
  height: 130px;
  background: url('images/guarantee.svg') no-repeat center;
  background-size: contain;
  flex-shrink: 0;
}

.guarantee-text h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.guarantee-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.5;
}

.guarantee-product img {
  max-width: 140px;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

@media (max-width: 992px) {
  .guarantee-box {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }
  .guarantee-product { display: none; }
  .guarantee-seal { width: 100px; height: 100px; }
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr !important; }
  .section-pad { padding: 60px 0; }
}

/* ── REVIEWS MARQUEE ────────────────────────────────────── */
.marquee-container {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
  position: relative;
}

.marquee-inner {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.review-card {
  width: 400px;
  background: #fff;
  padding: 35px;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08); /* Sophisticated shadow */
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq-item {
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.faq-q {
  padding: 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  transition: all 0.35s ease;
  color: var(--text-muted);
}

.faq-item.open .faq-a { max-height: 200px; padding-bottom: 24px; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-feat-item { justify-content: center; }
  #hero h1 { font-size: 2.75rem; }
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr !important; }
  .section-pad { padding: 60px 0; }
}

/* ── MOBILE STICKY CTA ──────────────────────────────────── */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  z-index: 1000;
  display: none;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
}

.sticky-info {
  display: flex;
  flex-direction: column;
}

.sticky-price-now {
  font-weight: 800;
  font-size: 1rem;
  color: var(--secondary);
}

.sticky-price-off {
  font-size: 0.75rem;
  font-weight: 700;
  color: #dc2626;
}

@media (max-width: 768px) { .mobile-cta { display: flex; } }

/* ── FLOATING CTA BUTTON ────────────────────────────────── */
/* Removed .floating-cta as per user request */

/* ── STEPS GRID ─────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .features-split {
    flex-direction: column !important;
    gap: 40px;
  }
}

.step-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.03);
  transition: transform 0.3s ease;
}

.step-img-wrap {
  position: relative;
  height: 250px;
}

.step-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step-num {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background: #fff;
  color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.step-content {
  padding: 25px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.step-header i {
  color: var(--secondary);
  font-size: 1.25rem;
}

.step-header h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── COMPARISON TABLE ───────────────────────────────────── */
.comp-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.comp-table th, .comp-table td {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.comp-table th { background: #f8fafc; font-weight: 800; }
.comp-table td:first-child { text-align: left; font-weight: 700; background: #f8fafc; width: 30%; }

.comp-highlight { background: rgba(37,99,235,0.05); color: var(--primary); font-weight: 800 !important; }
.comp-check { color: var(--green-trust); font-size: 1.25rem; }
.comp-cross { color: #ef4444; font-size: 1.25rem; }

@media (max-width: 768px) {
  .comp-table { font-size: 0.85rem; }
  .comp-table th, .comp-table td { padding: 12px 8px; }
}

/* ── STOCK COUNTER ──────────────────────────────────────── */
.stock-bar-wrap {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 10px;
  margin-top: 10px;
  overflow: hidden;
}

.stock-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f97316);
  width: 8%; /* Animated */
  transition: width 2s ease;
}

/* ── MODALS ─────────────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  padding-top: 50px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: translateY(0);
}
@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .price-card.popular {
    transform: scale(1) !important;
    margin: 20px 0;
  }
}

.close-modal {
  position: sticky;
  top: 0;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #64748b;
  transition: color 0.2s;
  z-index: 10;
}

.close-modal:hover {
  color: #1e293b;
}

.modal h2 { margin-bottom: 20px; font-size: 1.8rem; }
.modal p { margin-bottom: 15px; color: #475569; font-size: 0.95rem; line-height: 1.7; }
.modal ul { margin-bottom: 15px; padding-left: 20px; color: #475569; }
.modal li { margin-bottom: 8px; }

@media (max-width: 768px) {
  .modal-content {
    padding: 30px 20px;
    width: 95%;
  }
}
