/* --- VARIABLES --- */
:root {
  --primary: #6b46c1;
  --primary-hover: #553c9a;
  --bg-dark: #0f0f13;
  --bg-card: #1c1c24;
  --text-main: #ffffff;
  --text-muted: #a0a0b0;
  --border-color: #333340;
  --success: #38a169;
  --danger: #e53e3e;
  --warning: #d69e2e;
  --radius: 8px;
  --glow: 0 0 20px rgba(107, 70, 193, 0.3);
  --font-main: sans-serif;
}

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* --- UTILITIES --- */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.badge {
  background: rgba(107, 70, 193, 0.2);
  color: #d6bcfa;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid var(--primary);
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-report {
  color: #990000;
  background-color: #99000011;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  margin-right: 20px;
}

.btn-report:hover {
  background-color: #990000;
  transform: translateY(-2px);
  box-shadow: 0 0 20px#990000;
  color: white;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* --- NAVBAR --- */
.navbar {
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 19, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.logo img {
  width: 37px;
  height: 37px;
  margin-right: 5px;
}

.logo .flow {
  font-weight: 500;
}

.logo span {
  color: var(--primary);
  margin-left: 15px;
}

/* --- HERO SECTION --- */
.hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
}

/* Background gradient blob */
.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(107, 70, 193, 0.15) 0%,
    rgba(15, 15, 19, 0) 70%
  );
  z-index: -1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.1;
  background: linear-gradient(to right, #fff, #a0a0b0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-bottom: 60px;
}

/* MOCKUP CONTAINER */
.mockup-container {
  position: relative;
  margin-top: 40px;
  perspective: 1000px;
}

.browser-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  transform: rotateX(2deg);
  transition: transform 0.5s ease;
}

.browser-mockup:hover {
  transform: rotateX(0deg);
}

.browser-header {
  background: #15151b;
  padding: 10px 15px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27c93f;
}

/* Use a div to simulate the image placement based on your screenshot aspect ratio */
.img-placeholder {
  width: 100%;
  height: 500px; /* Adjust based on your screenshots */
  background: linear-gradient(135deg, var(--bg-card), var(--bg-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  position: relative;
}

/* Simulating the screenshot content with CSS for the demo */
.demo-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.demo-top {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  gap: 20px;
}

.demo-tab {
  color: var(--text-muted);
  font-weight: 500;
}
.demo-tab.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* --- FEATURES GRID --- */
.features {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}
.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.section-title p {
  color: var(--text-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.icon-box {
  width: 50px;
  height: 50px;
  background: rgba(107, 70, 193, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}
.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- STATS SECTION (Inspired by Screenshot 3) --- */
.stats-section {
  background: linear-gradient(to bottom, var(--bg-dark), var(--bg-card));
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-card {
  background: #15151b;
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border-color);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 10px 0;
}

.text-success {
  color: var(--success);
}
.text-danger {
  color: var(--danger);
}
.text-primary {
  color: var(--primary);
}

/* --- FOOTER --- */
footer {
  padding: 60px 0 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

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

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .mockup-container {
    padding: 0 10px;
  }
}

@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    padding: 12px 0;
  }

  .nav-content {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
  }

  /* Hide buttons on mobile */
  .nav-content > div:last-child {
    display: none;
  }

  /* Container adjustments */
  .container {
    padding: 0 15px;
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo img {
    width: 28px;
    height: 28px;
  }

  .logo .badge {
    font-size: 0.65rem;
    padding: 3px 6px;
  }

  .btn {
    padding: 8px 12px;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .btn-report {
    margin-right: 0;
  }

  /* Hero Section */
  .hero {
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 40px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .browser-mockup {
    transform: none;
  }

  .img-placeholder {
    height: 350px;
  }

  /* Features */
  .features {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 2rem;
  }

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

  .card {
    padding: 25px;
  }

  /* Stats */
  .stats-section {
    padding: 60px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Footer */
  footer {
    padding: 40px 0 20px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  /* Container */
  .container {
    padding: 0 12px;
  }

  /* Hero */
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .hero::before {
    width: 400px;
    height: 400px;
  }

  .img-placeholder {
    height: 250px;
  }

  /* Section Titles */
  .section-title h2 {
    font-size: 1.6rem;
  }

  .section-title p {
    font-size: 0.9rem;
  }

  /* Cards */
  .card {
    padding: 20px;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  /* Stats */
  .stat-number {
    font-size: 1.8rem;
  }

  .stat-card {
    padding: 15px;
  }

  /* Footer */
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* AdBlock Detection Modal */
#adblock-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 13, 17, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2147483647; /* Maximum z-index */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#adblock-modal-card {
  background: linear-gradient(135deg, #1c1c24 0%, #15151b 100%);
  border: 1px solid var(--primary);
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 50px rgba(107, 70, 193, 0.2);
  transform: translateY(20px);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.adblock-icon-wrapper {
  width: 80px;
  height: 80px;
  background: rgba(107, 70, 193, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  border: 2px solid var(--primary);
}

.adblock-icon-wrapper svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

#adblock-modal-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, #a0a0b0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#adblock-modal-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

#adblock-modal-card p:last-of-type {
  margin-bottom: 25px;
  color: var(--text-muted);
  font-weight: normal;
}

.adblock-dismiss-btn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.adblock-dismiss-btn:hover {
  background: rgba(107, 70, 193, 0.1);
  transform: translateY(-2px);
}
