/* ==========================================================
   iTagPro™ Automotive Telemetry Obsidian & Amber Theme
   ========================================================== */

:root {
  --primary: #3b82f6;
  --primary-glow: #60a5fa;
  --accent-amber: #f59e0b;
  --accent-amber-glow: #fbbf24;
  --bg-dark: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-alt: #1a253d;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --success: #10b981;
  --danger: #ef4444;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-card: 0 20px 45px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.35);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
}

/* Announcement Top Bar */
.top-bar {
  background: linear-gradient(90deg, #1e3a8a, #2563eb, #1d4ed8);
  color: #eff6ff;
  padding: 10px 0;
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.countdown-box {
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 1px;
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-badge {
  font-size: 10px;
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(96, 165, 250, 0.4);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-nav {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  padding: 10px 22px;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

/* Hero Section */
.hero {
  padding: 80px 0 100px;
  background: radial-gradient(circle at 75% 25%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
  position: relative;
}

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

.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 6px 14px;
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #60a5fa;
  margin-bottom: 24px;
}

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

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

.hero-title {
  font-size: 44px;
  color: #ffffff;
  margin-bottom: 22px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #60a5fa, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-subtitle strong {
  color: #ffffff;
}

.hero-checklist {
  list-style: none;
  margin-bottom: 34px;
}

.hero-checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
  color: #cbd5e1;
}

.hero-checklist li::before {
  content: '📍';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  padding: 18px 36px;
  font-size: 18px;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 45px rgba(59, 130, 246, 0.6);
}

.btn-pulse {
  animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.guarantee-badge {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 14px;
}

/* Product Gallery in Hero */
.product-gallery-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(59, 130, 246, 0.3);
  position: relative;
  text-align: center;
}

.badge-discount-top {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f59e0b;
  color: #0b0f19;
  font-weight: 900;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 0.5px;
  z-index: 10;
}

.main-image-wrapper {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #0b0f19;
}

.gallery-main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gallery-thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.thumb-img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  background: #0b1120;
  transition: all 0.2s ease;
}

.thumb-img:hover, .thumb-img.active {
  border-color: #60a5fa;
  transform: scale(1.05);
}

.product-highlights-bar {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: #60a5fa;
}

/* Sections Shared */
section {
  padding: 85px 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 55px;
}

.sub-heading {
  display: inline-block;
  color: #60a5fa;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 36px;
  color: #ffffff;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.65;
}

/* Features Grid */
.section-features {
  background: #0e1424;
}

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

.feature-item {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
  transform: translateY(-5px);
}

.f-icon {
  font-size: 36px;
  margin-bottom: 18px;
}

.feature-item h3 {
  font-size: 19px;
  color: #ffffff;
  margin-bottom: 12px;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Telemetry Showcase Grid */
.section-telemetry {
  background: var(--bg-dark);
}

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

.telemetry-card {
  background: var(--bg-card);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease;
}

.telemetry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.telemetry-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.telemetry-body {
  padding: 24px;
}

.telemetry-body h3 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 10px;
}

.telemetry-body p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Works Section */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.work-step {
  background: var(--bg-card);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.3s ease;
  text-align: center;
}

.work-step:hover {
  border-color: #60a5fa;
  transform: translateY(-5px);
}

.step-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.15);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.step-photo {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 18px;
}

.work-step h3 {
  font-size: 19px;
  color: #ffffff;
  margin-bottom: 10px;
}

.work-step p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Comparison Section */
.section-comparison {
  background: #0e1424;
}

.table-responsive {
  overflow-x: auto;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.comp-table th, .comp-table td {
  padding: 20px 24px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 15px;
}

.comp-table th {
  background: #1a253d;
  font-weight: 800;
  color: #ffffff;
}

.comp-table th.highlight-col, .comp-table td.highlight-col {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  font-weight: 700;
  border-left: 1px solid rgba(59, 130, 246, 0.3);
  border-right: 1px solid rgba(59, 130, 246, 0.3);
}

.comp-table td.check {
  color: #10b981;
}

.comp-table td.cross {
  color: #ef4444;
}

.comp-table td.neutral {
  color: #94a3b8;
}

/* Reviews */
.section-reviews {
  background: var(--bg-dark);
}

.overall-rating {
  margin-top: 12px;
  font-size: 16px;
  color: var(--text-muted);
}

.stars {
  color: #f59e0b;
  letter-spacing: 2px;
}

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

.review-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.reviewer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #3b82f6;
}

.reviewer-name {
  font-weight: 800;
  color: #ffffff;
}

.verified-pill {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.review-quote {
  font-size: 14px;
  color: #cbd5e1;
  font-style: italic;
  margin: 16px 0;
  line-height: 1.65;
}

.reviewer-meta {
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

/* Pricing Deals Section */
.section-pricing {
  background: radial-gradient(circle at 50% 15%, rgba(59, 130, 246, 0.18) 0%, #0b0f19 80%);
}

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

.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.popular {
  border: 2px solid #3b82f6;
  box-shadow: var(--shadow-glow);
  transform: scale(1.04);
}

.ribbon {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 16px;
  border-radius: 20px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.card-tier {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.card-price {
  margin-bottom: 12px;
}

.price-old {
  font-size: 16px;
  color: var(--text-dim);
  text-decoration: line-through;
  margin-right: 6px;
}

.price-curr {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 900;
  color: #60a5fa;
}

.price-unit {
  font-size: 14px;
  color: var(--text-muted);
}

.card-discount-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.card-discount-badge.best {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.4);
}

.pricing-bullets {
  list-style: none;
  text-align: left;
  margin-bottom: 30px;
}

.pricing-bullets li {
  padding: 8px 0;
  font-size: 14px;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-outline {
  background: transparent;
  color: #60a5fa;
  border: 2px solid #3b82f6;
  padding: 14px 28px;
  font-size: 15px;
  width: 100%;
}

.btn-outline:hover {
  background: #3b82f6;
  color: #ffffff;
}

.pricing-card .btn-primary {
  width: 100%;
}

.guarantee-box {
  background: var(--bg-card);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.g-icon {
  font-size: 48px;
}

.g-text h3 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 6px;
}

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

/* FAQ Accordion */
.section-faq {
  background: #0e1424;
}

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

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question:hover {
  color: #60a5fa;
}

.faq-icon {
  font-size: 20px;
  font-weight: 400;
  color: #60a5fa;
  transition: transform 0.3s ease;
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

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

/* Footer */
.footer {
  background: #060911;
  color: var(--text-dim);
  padding: 60px 0 40px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-links a:hover {
  color: #60a5fa;
}

.footer-legal .disclaimer {
  font-size: 12px;
  color: #64748b;
  margin-top: 14px;
  line-height: 1.5;
}

/* Social Toast */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #131b2e;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-avatar {
  font-size: 24px;
}

.toast-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.toast-desc {
  font-size: 12px;
  color: #94a3b8;
}

.toast-time {
  font-size: 10px;
  color: #60a5fa;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .features-grid, .telemetry-grid, .works-grid, .reviews-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card.popular {
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 32px;
  }
}
