:root {
  --bg-color: #ffffff;
  --bg-secondary: #f8fafc;
  --text-color: #1e293b;
  --text-muted: #64748b;
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --accent-color: #4f46e5;
  --gradient-1: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --gradient-text: linear-gradient(90deg, #2563eb, #4f46e5);
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --font-family: 'Inter', sans-serif;
  --container-width: 1200px;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: #0f172a;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-lg);
  color: #0f172a;
  display: inline-block;
  position: relative;
}

.center {
  text-align: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: #1C2B35;
  color: white;
  border: none;
  box-shadow: 0 4px 6px rgba(28, 43, 53, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #10181e;
  box-shadow: 0 8px 15px rgba(28, 43, 53, 0.25);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--card-border);
}

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

.logo {
  font-family: 'Montserrat Alternates', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1C2B35;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-links a:not(.btn) {
  color: var(--text-muted);
  font-weight: 500;
}

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

/* Hamburger Button (mobile only) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #1C2B35;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* Hero */
.hero {
  padding: 150px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #f0f9ff 0%, #ffffff 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  color: #0f172a;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto var(--spacing-lg);
}

/* Hero Dashboard Animation */
.hero-dashboard-wrapper {
  margin-top: 3rem;
  perspective: 1000px;
  display: flex;
  justify-content: center;
}

.hero-dashboard {
  width: 100%;
  max-width: 800px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transform: rotateX(5deg);
  transition: transform 0.5s ease;
}

.hero-dashboard:hover {
  transform: rotateX(0deg) translateY(-5px);
}

.dashboard-top-bar {
  background: #f1f5f9;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
}

.window-dots {
  display: flex;
  gap: 6px;
  margin-right: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red {
  background: #ef4444;
}

.dot.yellow {
  background: #f59e0b;
}

.dot.green {
  background: #10b981;
}

.address-bar {
  flex: 1;
  background: #ffffff;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.lock-icon svg {
  width: 12px;
  height: 12px;
}

.dashboard-main {
  padding: 24px;
}

.dashboard-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.stat-box {
  flex: 1;
  background: #f8fafc;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.stat-label {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 4px;
  font-weight: 500;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.stat-value.highlight {
  color: var(--primary-color);
}

.stat-trend {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.stat-trend.positive {
  background: #dcfce7;
  color: #166534;
}

.dashboard-chart-area {
  height: 200px;
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.hero-chart-svg {
  width: 100%;
  height: 100%;
}

.dashboard-list {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.list-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}

.list-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
  font-size: 0.9rem;
  color: #334155;
}

.list-row:last-child {
  border-bottom: none;
}

.campaign-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.campaign-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #e2e8f0;
}

.c1 {
  background: #bfdbfe;
}

.c2 {
  background: #bbf7d0;
}

.c3 {
  background: #fef3c7;
}

/* Click Animation Effects */
.click-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.2);
  border: 2px solid rgba(37, 99, 235, 0.5);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-effect 0.8s ease-out forwards;
  pointer-events: none;
}

.floating-text {
  position: absolute;
  color: #16a34a;
  font-weight: 700;
  font-size: 0.9rem;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: float-up 1s ease-out forwards;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  z-index: 10;
}

@keyframes ripple-effect {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(4);
    opacity: 0;
  }
}

@keyframes float-up {
  0% {
    transform: translate(-50%, -50%) translateY(0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) translateY(-30px);
    opacity: 0;
  }
}

/* Hero Article Animation */
.hero-article-wrapper {
  margin-top: 3rem;
  perspective: 1000px;
  display: flex;
  justify-content: center;
}

.hero-article {
  width: 100%;
  max-width: 800px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transform: rotateX(5deg);
  transition: transform 0.5s ease;
}

.hero-article:hover {
  transform: rotateX(0deg) translateY(-5px);
}

.article-top-bar {
  background: #f1f5f9;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
}

.article-main {
  padding: 40px 60px;
  background: #ffffff;
}

.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.article-title-line {
  height: 32px;
  background: linear-gradient(90deg, #cbd5e1 0%, #e2e8f0 100%);
  border-radius: 6px;
  width: 70%;
  margin-bottom: 12px;
  animation: pulse-subtle 3s ease-in-out infinite;
}

.article-subtitle-line {
  height: 18px;
  background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 100%);
  border-radius: 4px;
  width: 45%;
  animation: pulse-subtle 3s ease-in-out infinite 0.5s;
}

.article-mock-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}

.article-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-text-line {
  height: 12px;
  background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 100%);
  border-radius: 3px;
  animation: pulse-subtle 3s ease-in-out infinite;
}

.article-text-line.full {
  width: 100%;
}

.article-text-line.long {
  width: 95%;
}

.article-text-line.medium {
  width: 80%;
}

.article-text-line:nth-child(2) {
  animation-delay: 0.2s;
}

.article-text-line:nth-child(3) {
  animation-delay: 0.4s;
}

.article-text-line:nth-child(4) {
  animation-delay: 0.6s;
}

.article-link-highlight {
  margin: 16px 0;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
  border-left: 4px solid #db2777;
  border-radius: 6px;
  position: relative;
  animation: link-pulse 2s ease-in-out infinite;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><text x="50%" y="55%" font-family="sans-serif" font-weight="700" font-size="24" fill="%23db2777" text-anchor="middle" dominant-baseline="middle">€</text></svg>') 16 16, pointer;
  transition: all 0.3s ease;
}

.article-link-highlight:hover {
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
  transform: translateX(4px);
}

.article-link-highlight span {
  color: #db2777;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

@keyframes pulse-subtle {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

@keyframes link-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(219, 39, 119, 0.4);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(219, 39, 119, 0);
  }
}

/* Euro cost symbol animation */
.euro-cost-symbol {
  position: absolute;
  color: #db2777;
  font-weight: 700;
  font-size: 1.5rem;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: euro-float-up 1.2s ease-out forwards;
  text-shadow: 0 2px 4px rgba(219, 39, 119, 0.3);
  z-index: 100;
}

@keyframes euro-float-up {
  0% {
    transform: translate(-50%, -50%) translateY(0) scale(1);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) translateY(-40px) scale(1.2);
    opacity: 0.8;
  }

  100% {
    transform: translate(-50%, -50%) translateY(-80px) scale(0.8);
    opacity: 0;
  }
}


/* Social Proof */
.social-proof {
  padding: var(--spacing-md) 0;
  text-align: center;
  border-bottom: 1px solid var(--card-border);
  background: #ffffff;
  overflow: hidden;
  /* Ensure bubbles are cut off at edges */
}

.social-proof-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Bubbles Animation */
.bubbles-container {
  position: relative;
  width: max-content;
  /* Allow container to grow beyond 100% */
  min-width: 100%;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  perspective: 1000px;
  left: 50%;
  transform: translateX(-50%);
  /* Center the row regardless of width */
  padding: 0 2rem;
  flex-wrap: nowrap;
  /* Allow wrapping if needed on small screens, but mainly for layout */
}

.bubble {
  width: 120px;
  height: 70px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  /* Prevent bubbles from shrinking */
}

.bubble svg {
  width: 32px;
  height: 32px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.bubble-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.bubble:hover {
  transform: scale(1.05) !important;
  /* Override animation transform on hover */
  color: var(--primary-color);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.bubble:hover svg {
  opacity: 1;
}

/* Floating Animation */
@keyframes float-1 {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes float-2 {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(-1deg);
  }
}

@keyframes float-3 {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-8px) rotate(0.5deg);
  }
}

.bubble-1 {
  animation: float-1 6s ease-in-out infinite;
}

.bubble-2 {
  animation: float-2 7s ease-in-out infinite 0.5s;
}

.bubble-3 {
  animation: float-3 5s ease-in-out infinite 1s;
}

.bubble-4 {
  animation: float-1 8s ease-in-out infinite 0.2s;
}

.bubble-5 {
  animation: float-2 6.5s ease-in-out infinite 0.8s;
}

.bubble-6 {
  animation: float-3 5.5s ease-in-out infinite 1.5s;
}

.bubble-7 {
  animation: float-1 7.5s ease-in-out infinite 0.3s;
}

.bubble-8 {
  animation: float-2 6s ease-in-out infinite 1.2s;
}

.bubble-9 {
  animation: float-3 5.8s ease-in-out infinite 0.7s;
}

.bubble-10 {
  animation: float-1 6.2s ease-in-out infinite 1.1s;
}

.bubble-11 {
  animation: float-2 7.2s ease-in-out infinite 0.4s;
}

.bubble-12 {
  animation: float-3 5.3s ease-in-out infinite 1.3s;
}

.bubble-13 {
  animation: float-1 6.8s ease-in-out infinite 0.9s;
}

.bubble-14 {
  animation: float-2 7.8s ease-in-out infinite 1.6s;
}

.bubble-15 {
  animation: float-3 5.1s ease-in-out infinite 0.1s;
}

/* Responsive Bubbles for Mobile */
@media (max-width: 768px) {
  .social-proof {
    overflow: visible;
    padding: var(--spacing-md) 0 var(--spacing-lg) 0;
  }

  .bubbles-container {
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    width: 100%;
    max-width: 100%;
    gap: 0.8rem;
    padding: 0 1rem;
    min-height: auto;
    left: 0;
    transform: none;
    position: relative;
  }

  .bubble {
    width: 70px;
    height: 45px;
    border-radius: 12px;
  }

  .bubble svg {
    width: 24px;
    height: 24px;
  }

  .bubble-img {
    border-radius: 12px;
  }
}

/* Comparison */
.comparison {
  padding: var(--spacing-xl) 0;
  background: var(--bg-secondary);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.comparison-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
}

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

.comparison-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.comparison-card ul li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.comparison-card .icon {
  margin-right: 1rem;
  font-weight: bold;
}

.comparison-card.negative .icon {
  color: #ef4444;
}

.comparison-card.positive .icon {
  color: #10b981;
}

.comparison-card.positive {
  border: 2px solid rgba(37, 99, 235, 0.1);
  background: #ffffff;
}

/* Features */
.features {
  padding: var(--spacing-xl) 0;
  background: #ffffff;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-content {
  flex: 1;
}

.feature-content h3 {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.feature-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.feature-visual {
  flex: 1;
  height: 350px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--card-shadow);
}

.visual-placeholder {
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.gradient-1 {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
}

.gradient-2 {
  background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
}

.gradient-3 {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
}

.gradient-4 {
  background: linear-gradient(135deg, #fce7f3 0%, #fdf2f8 100%);
}

/* Testimonials */
.testimonials {
  padding: var(--spacing-xl) 0;
  background: var(--bg-secondary);
}

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

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease;
}

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

.testimonial-header {
  margin-bottom: var(--spacing-sm);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.testimonial-header strong {
  color: var(--text-color);
  font-size: 1.1rem;
}

.testimonial-header span {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 500;
}

.testimonial-card p {
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.7;
}

/* Case Studies */
.case-studies {
  padding: var(--spacing-xl) 0;
  background: #ffffff;
}

.case-studies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

.case-study-card {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.case-study-card:hover {
  border-color: var(--primary-color);
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.case-study-card h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.case-study-card p {
  color: var(--text-muted);
}

/* Infinite Features Section */
.infinite-features-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
  overflow: hidden;
  position: relative;
}

.infinite-features-section .section-subtitle {
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
  font-size: 1.2rem;
}

/* Key Benefits Grid */
.key-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.benefit-card {
  background: white;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  /* Animation properties */
  opacity: 0;
  transform: translateY(30px);
  animation: benefit-card-fade-in 0.6s ease-out forwards;
  animation-delay: var(--delay);
}

@keyframes benefit-card-fade-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.benefit-card:hover::before {
  transform: scaleX(1);
}

.benefit-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: rgba(59, 130, 246, 0.3);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-sm);
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.1) rotate(-5deg);
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

.benefit-icon svg {
  width: 32px;
  height: 32px;
  color: #3b82f6;
  transition: all 0.3s ease;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-card:hover .benefit-icon svg {
  color: white;
  transform: scale(1.1);
}

.benefit-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Infinite Scroll Wrappers (used by index.html) */
.infinite-scroll-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  padding: 20px 0;
  /* Mask for fade effect on sides */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.scroll-row {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.scroll-content {
  display: flex;
  gap: 20px;
  padding-right: 20px;
  /* Gap for the loop */
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.scroll-left .scroll-content {
  animation-name: scroll-left;
  animation-duration: 40s;
}

.scroll-right .scroll-content {
  animation-name: scroll-right;
  animation-duration: 45s;
  /* Slightly different speed */
  transform: translateX(-50%);
}

/* Feature Tag Styling */
.feature-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: white;
  border-radius: 100px;
  /* Pill shape */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--card-border);
  white-space: nowrap;
  transition: all 0.3s ease;
  cursor: default;
  user-select: none;
}

.feature-tag:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: var(--primary-color);
  z-index: 10;
}

.tag-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  /* Pure black for "black and white" look */
}

.tag-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.tag-text {
  font-weight: 500;
  color: #000000;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

/* Animations */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

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

  100% {
    transform: translateX(0);
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .key-benefits-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }

  .benefit-card {
    padding: var(--spacing-md);
  }

  .feature-tag {
    padding: 12px 20px;
  }

  .tag-text {
    font-size: 0.9rem;
  }

  .tag-icon {
    font-size: 1.2rem;
  }
}

/* Final CTA */
.final-cta {
  padding: var(--spacing-xl) 0;
  text-align: center;
  background: linear-gradient(to bottom, #ffffff 0%, #f0f9ff 100%);
}

.final-cta .subtitle {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.final-cta p {
  max-width: 700px;
  margin: 0 auto var(--spacing-lg);
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--card-border);
  background: #ffffff;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.footer-links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.footer-address {
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .comparison-grid,
  .case-studies-grid {
    grid-template-columns: 1fr;
  }

  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
  }

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

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
    width: 100%;
    padding: 0.5rem 0;
  }

  .nav-links a.btn {
    text-align: center;
    margin-top: 1rem;
  }


  /* Hero Dashboard Mobile Responsive */
  .hero-dashboard-wrapper {
    margin-top: 2rem;
    padding: 0 1rem;
  }

  .hero-dashboard {
    transform: none;
  }

  .hero-dashboard:hover {
    transform: none;
  }

  .dashboard-main {
    padding: 16px;
  }

  .dashboard-stats {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }

  .stat-box {
    padding: 12px;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .stat-value {
    font-size: 1.25rem;
  }

  .stat-trend {
    font-size: 0.7rem;
  }

  .dashboard-chart-area {
    height: 150px;
    margin-bottom: 16px;
  }

  .list-header,
  .list-row {
    grid-template-columns: 2fr 1fr 1fr;
    padding: 10px 12px;
    font-size: 0.75rem;
  }

  .list-header {
    font-size: 0.65rem;
  }

  .campaign-info {
    gap: 6px;
    font-size: 0.75rem;
  }

  .campaign-icon {
    width: 20px;
    height: 20px;
  }

  /* Article Mobile Responsive */
  .hero-article-wrapper {
    margin-top: 2rem;
    padding: 0 1rem;
  }

  .hero-article {
    transform: none;
  }

  .hero-article:hover {
    transform: none;
  }

  .article-main {
    padding: 24px 20px;
  }

  .article-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .article-title-line {
    height: 24px;
    width: 85%;
    margin-bottom: 10px;
  }

  .article-subtitle-line {
    height: 16px;
    width: 60%;
  }

  .article-mock-title {
    font-size: 1.3rem;
  }

  .article-content {
    gap: 8px;
  }

  .article-text-line {
    height: 10px;
  }

  .article-link-highlight {
    margin: 12px 0;
    padding: 10px 12px;
  }

  .article-link-highlight span {
    font-size: 0.85rem;
  }

  /* Feature Animations Mobile - Preserve Colored Backgrounds */
  .feature-visual {
    min-height: 300px;
  }

  .animation-contract-wrapper,
  .animation-dashboard-wrapper,
  .animation-invoice-wrapper,
  .animation-payment-wrapper {
    min-height: 300px;
    border-radius: var(--radius-md);
  }
}

/* Contract Animation */
.animation-contract-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  position: relative;
  overflow: hidden;
}

.contract-paper {
  width: 200px;
  height: 280px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 24px;
  position: relative;
  transform-origin: center bottom;
  animation: contract-paper-loop 8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.contract-header {
  width: 40%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 6px;
  margin-bottom: 24px;
  animation: contract-header-loop 8s ease-out infinite;
}

.contract-line {
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  margin-bottom: 12px;
  transform-origin: left center;
}

.line-1 {
  width: 100%;
  animation: contract-line-1-loop 8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.line-2 {
  width: 85%;
  animation: contract-line-2-loop 8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.line-3 {
  width: 90%;
  animation: contract-line-3-loop 8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.contract-options {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: contract-options-loop 8s ease-out infinite;
}

.option-toggle {
  width: 36px;
  height: 20px;
  background: #cbd5e1;
  border-radius: 10px;
  position: relative;
  transition: background 0.3s;
  animation: contract-toggle-bg-loop 8s ease-in-out infinite;
}

.toggle-knob {
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  animation: contract-toggle-knob-loop 8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.option-bar {
  flex: 1;
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
}

.contract-signature-area {
  margin-top: auto;
  padding-top: 32px;
  position: relative;
}

.signature-line {
  width: 60%;
  height: 2px;
  background: #cbd5e1;
  margin-bottom: 8px;
}

.contract-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  transform: scale(0) rotate(-20deg);
  animation: contract-badge-loop 8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.contract-badge svg {
  width: 28px;
  height: 28px;
}

@keyframes paper-enter {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes grow-x {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@keyframes toggle-bg {
  to {
    background: #3b82f6;
  }
}

@keyframes toggle-slide {
  to {
    transform: translateX(16px);
  }
}

@keyframes badge-pop {
  to {
    transform: scale(1) rotate(0deg);
  }
}

/* Dashboard Animation */
.animation-dashboard-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  position: relative;
  overflow: hidden;
}

.dashboard-card {
  width: 240px;
  height: 180px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  position: relative;
  animation: dashboard-card-loop 8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dashboard-title-bar {
  width: 80px;
  height: 10px;
  background: #e2e8f0;
  border-radius: 5px;
}

.dashboard-stat {
  width: 40px;
  height: 10px;
  background: #10b981;
  border-radius: 5px;
  opacity: 0.2;
}

.chart-container {
  position: relative;
  height: 100px;
  width: 100%;
}

.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.grid-line {
  stroke: #f1f5f9;
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke: #10b981;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: chart-line-loop 8s ease-out infinite;
}

.chart-area {
  fill: rgba(16, 185, 129, 0.1);
  opacity: 0;
  animation: chart-area-loop 8s ease-out infinite;
}

.chart-point {
  fill: white;
  stroke: #10b981;
  stroke-width: 2;
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
}

.p1 {
  animation: point-pop-1-loop 8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.p2 {
  animation: point-pop-2-loop 8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.chart-tooltip {
  position: absolute;
  top: 0;
  right: -10px;
  background: #0f172a;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px) scale(0.8);
  animation: tooltip-pop-loop 8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.chart-tooltip::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px 4px 0;
  border-style: solid;
  border-color: #0f172a transparent transparent;
}

@keyframes draw-chart {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes point-pop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes tooltip-pop {
  to {
    opacity: 1;
    transform: translateY(-10px) scale(1);
  }
}

/* Invoice Animation */
.animation-invoice-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  position: relative;
  overflow: hidden;
}

.invoice-paper {
  width: 200px;
  height: 280px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 24px;
  position: relative;
  transform-origin: center bottom;
  animation: invoice-paper-loop 8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  animation: invoice-header-loop 8s ease-out infinite;
}

.invoice-logo {
  width: 32px;
  height: 32px;
  background: #f97316;
  border-radius: 8px;
}

.invoice-id {
  width: 60px;
  height: 12px;
  background: #fed7aa;
  border-radius: 4px;
  margin-top: 10px;
}

.invoice-row {
  height: 12px;
  background: #f1f5f9;
  border-radius: 4px;
  margin-bottom: 16px;
  transform-origin: left center;
}

.row-1 {
  width: 100%;
  animation: invoice-row-1-loop 8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.row-2 {
  width: 100%;
  animation: invoice-row-2-loop 8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.row-3 {
  width: 60%;
  animation: invoice-row-3-loop 8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.invoice-footer {
  margin-top: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 2px dashed #e2e8f0;
  animation: invoice-footer-loop 8s ease-out infinite;
}

.invoice-total-label {
  width: 40px;
  height: 12px;
  background: #cbd5e1;
  border-radius: 4px;
}

.invoice-total-amount {
  width: 60px;
  height: 20px;
  background: #0f172a;
  border-radius: 4px;
}

.invoice-status {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 24px;
  border-radius: 50px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f97316;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid #f97316;
  animation: invoice-status-loop 8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.invoice-status svg {
  width: 18px;
  height: 18px;
}

@keyframes status-pop {
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* Payment Animation */
.animation-payment-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  position: relative;
  overflow: hidden;
}

.payment-device {
  width: 220px;
  height: 300px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 16px;
  position: relative;
  border: 4px solid #fce7f3;
  animation: payment-device-loop 8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.device-screen {
  width: 100%;
  height: 100%;
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.device-header {
  width: 40px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  margin-bottom: 32px;
}

.device-balance-label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.device-balance-amount {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 32px;
  animation: balance-update-loop 8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.payment-notification {
  width: 100%;
  background: white;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  animation: payment-notif-loop 8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

.notif-icon {
  width: 28px;
  height: 28px;
  background: #ec4899;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.notif-icon svg {
  width: 14px;
  height: 14px;
}

.notif-content {
  flex: 1;
}

.notif-title {
  font-size: 11px;
  color: #64748b;
  line-height: 1.2;
}

.notif-value {
  font-size: 13px;
  font-weight: 700;
  color: #ec4899;
  line-height: 1.2;
}

.coin-element {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: #fbbf24;
  border-radius: 50%;
  border: 4px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #78350f;
  font-size: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  animation: coin-drop-loop 8s cubic-bezier(0.5, 0, 0.75, 0) infinite;
}

@keyframes coin-drop {
  0% {
    top: -40px;
    opacity: 1;
  }

  70% {
    top: 120px;
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }

  80% {
    top: 120px;
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }

  100% {
    top: 130px;
    opacity: 0;
    transform: translateX(-50%) scale(0.5);
  }
}

@keyframes notif-slide {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes balance-update {
  50% {
    transform: scale(1.1);
    color: #ec4899;
  }

  100% {
    transform: scale(1);
    color: #0f172a;
  }

  /* In a real app, we'd change the text content via JS, here we just animate the pop */
}

/* Looping Keyframes for Contract Animation */
@keyframes contract-paper-loop {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }

  10% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  90% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
}

@keyframes contract-header-loop {

  0%,
  5% {
    opacity: 0;
    transform: translateY(10px);
  }

  11% {
    opacity: 1;
    transform: translateY(0);
  }

  90% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

@keyframes contract-line-1-loop {

  0%,
  7.5% {
    transform: scaleX(0);
  }

  15% {
    transform: scaleX(1);
  }

  90% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(0);
  }
}

@keyframes contract-line-2-loop {

  0%,
  8.75% {
    transform: scaleX(0);
  }

  16.25% {
    transform: scaleX(1);
  }

  90% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(0);
  }
}

@keyframes contract-line-3-loop {

  0%,
  10% {
    transform: scaleX(0);
  }

  17.5% {
    transform: scaleX(1);
  }

  90% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(0);
  }
}

@keyframes contract-options-loop {

  0%,
  15% {
    opacity: 0;
  }

  21% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes contract-toggle-bg-loop {

  0%,
  22.5% {
    background: #cbd5e1;
  }

  27.5% {
    background: #3b82f6;
  }

  90% {
    background: #3b82f6;
  }

  100% {
    background: #cbd5e1;
  }
}

@keyframes contract-toggle-knob-loop {

  0%,
  22.5% {
    transform: translateX(0);
  }

  27.5% {
    transform: translateX(16px);
  }

  90% {
    transform: translateX(16px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes contract-badge-loop {

  0%,
  30% {
    transform: scale(0) rotate(-20deg);
  }

  36% {
    transform: scale(1) rotate(0deg);
  }

  90% {
    transform: scale(1) rotate(0deg);
  }

  100% {
    transform: scale(0) rotate(-20deg);
  }
}

/* Looping Keyframes for Dashboard Animation */
@keyframes dashboard-card-loop {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }

  10% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  90% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
}

@keyframes chart-line-loop {

  0%,
  6.25% {
    stroke-dashoffset: 300;
  }

  25% {
    stroke-dashoffset: 0;
  }

  90% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: 300;
  }
}

@keyframes chart-area-loop {

  0%,
  12.5% {
    opacity: 0;
  }

  25% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes point-pop-1-loop {

  0%,
  15% {
    opacity: 0;
    transform: scale(0);
  }

  20% {
    opacity: 1;
    transform: scale(1);
  }

  90% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0);
  }
}

@keyframes point-pop-2-loop {

  0%,
  22.5% {
    opacity: 0;
    transform: scale(0);
  }

  27.5% {
    opacity: 1;
    transform: scale(1);
  }

  90% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(0);
  }
}

@keyframes tooltip-pop-loop {

  0%,
  25% {
    opacity: 0;
    transform: translateY(10px) scale(0.8);
  }

  31.25% {
    opacity: 1;
    transform: translateY(-10px) scale(1);
  }

  90% {
    opacity: 1;
    transform: translateY(-10px) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(10px) scale(0.8);
  }
}

/* Looping Keyframes for Invoice Animation */
@keyframes invoice-paper-loop {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }

  10% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  90% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
}

@keyframes invoice-header-loop {

  0%,
  5% {
    opacity: 0;
    transform: translateY(10px);
  }

  11.25% {
    opacity: 1;
    transform: translateY(0);
  }

  90% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes invoice-row-1-loop {

  0%,
  10% {
    transform: scaleX(0);
  }

  16.25% {
    transform: scaleX(1);
  }

  90% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(0);
  }
}

@keyframes invoice-row-2-loop {

  0%,
  11.25% {
    transform: scaleX(0);
  }

  17.5% {
    transform: scaleX(1);
  }

  90% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(0);
  }
}

@keyframes invoice-row-3-loop {

  0%,
  12.5% {
    transform: scaleX(0);
  }

  18.75% {
    transform: scaleX(1);
  }

  90% {
    transform: scaleX(1);
  }

  100% {
    transform: scaleX(0);
  }
}

@keyframes invoice-footer-loop {

  0%,
  17.5% {
    opacity: 0;
    transform: translateY(10px);
  }

  23.75% {
    opacity: 1;
    transform: translateY(0);
  }

  90% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes invoice-status-loop {

  0%,
  25% {
    transform: translate(-50%, -50%) scale(0);
  }

  31.25% {
    transform: translate(-50%, -50%) scale(1);
  }

  90% {
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    transform: translate(-50%, -50%) scale(0);
  }
}

/* Looping Keyframes for Payment Animation */
@keyframes payment-device-loop {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }

  10% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  90% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
}

@keyframes coin-drop-loop {

  0%,
  10% {
    top: -40px;
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }

  18.75% {
    top: 120px;
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }

  20% {
    top: 120px;
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }

  22.5% {
    top: 130px;
    opacity: 0;
    transform: translateX(-50%) scale(0.5);
  }

  100% {
    top: 130px;
    opacity: 0;
    transform: translateX(-50%) scale(0.5);
  }
}

@keyframes balance-update-loop {

  0%,
  18.75% {
    transform: scale(1);
    color: #0f172a;
  }

  25% {
    transform: scale(1.1);
    color: #ec4899;
  }

  31.25% {
    transform: scale(1);
    color: #0f172a;
  }

  90% {
    transform: scale(1);
    color: #0f172a;
  }

  100% {
    transform: scale(1);
    color: #0f172a;
  }
}

@keyframes payment-notif-loop {

  0%,
  18.75% {
    transform: translateY(100px);
    opacity: 0;
  }

  26.25% {
    transform: translateY(0);
    opacity: 1;
  }

  90% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(100px);
    opacity: 0;
  }
}

/* Advertiser Page Specific Styles */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  transition: all 0.3s ease;
  box-shadow: var(--card-shadow);
}

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

.feature-card .feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* FAQ Section */
.faq-section {
  padding: var(--spacing-xl) 0;
  background: #ffffff;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.faq-item {
  background: var(--bg-secondary);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.faq-item p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Traffic Quality Section */
.traffic-quality {
  padding: var(--spacing-xl) 0;
  background: var(--bg-secondary);
}

/* Legal Content Page */
.legal-content {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(to bottom, #ffffff 0%, #f8fafc 100%);
  min-height: 80vh;
}

.legal-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--card-border);
}

.legal-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: var(--spacing-md);
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--card-border);
}

.legal-section {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md) 0;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--card-border);
  letter-spacing: -0.02em;
}

.legal-section p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-color);
  margin-bottom: var(--spacing-sm);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section strong {
  color: var(--text-color);
  font-weight: 600;
}

/* Mobile adjustments for legal page */
@media (max-width: 768px) {
  .legal-wrapper {
    padding: var(--spacing-lg);
  }

  .legal-title {
    font-size: 2rem;
  }

  .legal-intro {
    font-size: 1rem;
  }

  .legal-section h2 {
    font-size: 1.25rem;
  }

  .legal-section p {
    font-size: 0.95rem;
  }
}

/* Role Switch Toggle */
.role-switch-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 4rem;
}

.role-switch {
  position: relative;
  display: flex;
  background: #f1f5f9;
  border-radius: 24px;
  padding: 4px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  user-select: none;
}

.switch-bg {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  z-index: 1;
}

.switch-option {
  position: relative;
  z-index: 2;
  border: none;
  background: none;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: color 0.3s ease;
  width: 110px;
  text-align: center;
}

.switch-option.active {
  color: #1e293b;
}

/* State for Advertiser (Right) */
.role-switch.advertiser-active .switch-bg {
  transform: translateX(100%);
}

/* State for Editor (Left) - default is 0 */
.role-switch.editor-active .switch-bg {
  transform: translateX(0);
}

/* Mobile adjustments for switch */
@media (max-width: 768px) {
  .role-switch-wrapper {
    margin: 0 0 2rem 0;
    width: 100%;
    justify-content: center;
  }

  .role-switch {
    width: 100%;
    max-width: 300px;
  }

  .switch-option {
    width: 50%;
  }
}

/* Advertiser Promo Block */
/* Advertiser Promo Block */
.advertiser-promo {
  padding: var(--spacing-md) 0;
  background: transparent;
  border-top: none;
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.advertiser-promo-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.advertiser-promo h3 {
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--text-color);
  font-weight: 500;
}

.advertiser-promo p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
  display: inline;
}

.btn-secondary {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  font-size: 0.9rem;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .advertiser-promo-content {
    flex-direction: column;
    gap: 1rem;
  }
}