:root {
  --bg-main: #0b1020;
  --bg-card: #11162a;
  --bg-alt: #0f1533;
  --text-primary: #ffffff;
  --text-secondary: #b6c2e2;
  --accent: #6fd2ff;
  --border-soft: rgba(255,255,255,0.08);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(ellipse at top, #12183a 0%, var(--bg-main) 60%);
  color: var(--text-primary);
}

/* Smooth Scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* Layout */
.product-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

/* HERO */
.product-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 120px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(111,210,255,0.12);
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 16px;
}

.product-hero h1 {
  font-size: clamp(36px, 4vw, 52px);
  margin-bottom: 16px;
}

.product-hero p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Buttons */
.hero-actions {
  display: flex;
  gap: 16px;
}

.btn-primary {
  padding: 14px 22px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: rgba(111, 210, 255, 0.05);
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5fb9ff, #7ad9ff);
  color: #12183a;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(95, 185, 255, 0.3);
}

.btn-secondary {
  padding: 14px 22px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  text-decoration: none;
  background: rgba(111, 210, 255, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #5fb9ff, #7ad9ff);
  color: #12183a;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(95, 185, 255, 0.3);
}

.large {
  font-size: 18px;
}

/* Mockup */
.hero-mockup img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

/* Sections */
.product-section {
  margin-bottom: 120px;
}

.product-section.alt {
  background: linear-gradient(180deg, var(--bg-alt), transparent);
  padding: 80px 40px;
  border-radius: 24px;
}

.product-section h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
}

/* Preview */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.preview-grid img {
  width: 100%;
  border-radius: 16px;
}

/* Tech */
.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.tech-list {
  list-style: none;
  display: grid;
  gap: 14px;
  color: var(--text-secondary);
}

/* Audience */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}

.audience-grid div {
  background: var(--bg-card);
  padding: 18px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
}

/* CTA */
.product-cta {
  text-align: center;
  padding: 100px 40px;
  background: radial-gradient(circle at top, #1b2a55, var(--bg-main));
  border-radius: 30px;
}

.product-cta p {
  color: var(--text-secondary);
  margin: 16px 0 32px;
}

/* ===== TOOLTIP ===== */
.has-tooltip {
  position: relative;
}

.has-tooltip .tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #f1f5f9;
  padding: 10px 14px;
  font-size: 0.75rem;
  line-height: 1.4;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  border: 1px solid rgba(111, 210, 255, 0.2);
  z-index: 1000;
}

/* ===== TOOLTIP ARROW ===== */
.has-tooltip .tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #1e293b transparent transparent transparent;
}

/* ===== HOVER ===== */
.has-tooltip:hover .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

/* ===== LIGHTBOX ===== */
.clickable-image {
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.clickable-image:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
  animation: fadeIn 0.3s ease;
}

/* FOOTER */
.footer {
  padding: 40px max(8%, calc((100% - 1400px) / 2));
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 3rem;
}

.footer p {
  margin: 0.3rem 0;
  opacity: 0.8;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-content {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10000;
  user-select: none;
}

.lightbox-close:hover {
  color: #6fd2ff;
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 1024px) {
  .product-page {
    padding: 60px 20px;
  }

  .product-hero {
    gap: 40px;
    margin-bottom: 80px;
  }

  .product-section {
    margin-bottom: 80px;
  }

  .product-section.alt {
    padding: 60px 30px;
  }

  .two-column-layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 768px) {
  .product-page {
    padding: 40px 16px;
  }

  .product-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 60px;
    text-align: center;
  }

  .product-hero h1 {
    font-size: clamp(28px, 6vw, 36px);
  }

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

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-mockup img {
    border-radius: 12px;
  }

  .product-section h2 {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .product-section.alt {
    padding: 40px 20px;
    border-radius: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card {
    padding: 20px;
  }

  .preview-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .two-column-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .audience-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
  }

  .audience-grid div {
    padding: 14px;
    font-size: 0.9rem;
  }

  .product-cta {
    padding: 60px 24px;
    border-radius: 20px;
  }

  .lightbox-close {
    top: 15px;
    right: 15px;
    font-size: 32px;
  }

  .lightbox {
    padding: 10px;
  }

  .footer {
    padding: 30px 5%;
    font-size: 0.85rem;
  }
}

/* ===== RESPONSIVE - SMALL MOBILE ===== */
@media (max-width: 480px) {
  .product-page {
    padding: 24px 12px;
  }

  .badge {
    font-size: 11px;
    padding: 5px 12px;
  }

  .product-hero h1 {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .product-hero p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 18px;
    font-size: 14px;
  }

  .product-section h2 {
    font-size: 22px;
  }

  .feature-card {
    padding: 16px;
    border-radius: 12px;
  }

  .product-cta {
    padding: 40px 16px;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .has-tooltip .tooltip {
    white-space: normal;
    max-width: calc(100vw - 40px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .has-tooltip:hover .tooltip {
    transform: translateX(-50%) translateY(-6px);
  }

  .has-tooltip .tooltip::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer {
    padding: 25px 4%;
    font-size: 0.8rem;
  }
}
