/* Main Styles & Animation System for Institucija */

:root {
  --animation-duration: 0.7s;
  --reveal-duration: 0.7s;
}

/* ========== GLOBAL STYLES ========== */

html {
  /* iOS smooth scrolling optimization */
  -webkit-overflow-scrolling: touch;
  /* Prevent scroll bounce on iOS */
  overscroll-behavior-y: none;
}

body {
  background: var(--color-bg);
  overflow-x: hidden;
  /* Prevent iOS scroll bounce */
  overscroll-behavior-y: none;
  /* Improve touch scrolling performance on iOS */
  -webkit-overflow-scrolling: touch;
}

* {
  box-sizing: border-box;
}

/* ========== HERO SECTION ========== */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 25%, #4a1d6f 50%, #6b2d8f 75%, #8b3fa8 100%);
  overflow: hidden;
  padding-top: 72px;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(139, 63, 168, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(74, 29, 111, 0.4) 0%, transparent 50%),
              radial-gradient(circle at 50% 20%, rgba(45, 27, 78, 0.3) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

/* Ambient Blobs - Purpurni gradijenti */
.hero-ambient-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  mix-blend-mode: screen;
}

.blob-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(139, 63, 168, 0.4) 0%, rgba(107, 45, 143, 0.2) 50%, transparent 100%);
  top: -15%;
  right: -10%;
  animation: float1 14s ease-in-out infinite;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 29, 111, 0.5) 0%, rgba(45, 27, 78, 0.3) 50%, transparent 100%);
  bottom: -15%;
  left: -10%;
  animation: float2 18s ease-in-out infinite alternate;
}

.blob-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(107, 45, 143, 0.4) 0%, rgba(139, 63, 168, 0.2) 50%, transparent 100%);
  top: 30%;
  right: 15%;
  animation: float3 20s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% {
    transform: translate(-30px, -20px);
  }
  50% {
    transform: translate(30px, 20px);
  }
}

@keyframes float2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(40px, -30px);
  }
}

@keyframes float3 {
  0%, 100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(-25px, 25px);
  }
  66% {
    transform: translate(25px, -15px);
  }
}

/* Hero Container */
.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 58% 42%;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-3xl) var(--space-lg);
}

/* Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  position: relative;
  z-index: 2;
}

/* Animated Arrow Graphics */
#hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  right: 10%;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  border: 3px solid rgba(139, 63, 168, 0.15);
  border-left: none;
  border-bottom: none;
  pointer-events: none;
  z-index: 1;
  animation: arrowPulse 4s ease-in-out infinite;
}

.hero-arrow-right {
  position: absolute;
  width: 300px;
  height: 300px;
  right: 3%;
  bottom: 15%;
  transform: rotate(-135deg);
  border: 2px solid rgba(244, 118, 42, 0.12);
  border-left: none;
  border-bottom: none;
  pointer-events: none;
  z-index: 1;
  animation: arrowPulse2 5s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% {
    opacity: 0.3;
    transform: translateY(-50%) rotate(45deg) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translateY(-50%) rotate(45deg) scale(1.1);
  }
}

@keyframes arrowPulse2 {
  0%, 100% {
    opacity: 0.4;
    transform: rotate(-135deg) scale(1);
  }
  50% {
    opacity: 0.7;
    transform: rotate(-135deg) scale(1.08);
  }
}

/* Background Text Effect */
.hero-container::before {
  content: 'Pričajmo o uspjehu';
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 700;
  background: linear-gradient(
    90deg,
    rgba(139, 63, 168, 0.06) 0%,
    rgba(139, 63, 168, 0.06) 30%,
    rgba(244, 118, 42, 0.09) 50%,
    rgba(139, 63, 168, 0.06) 70%,
    rgba(139, 63, 168, 0.06) 100%
  );
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  animation: textShine 8s linear infinite;
}

@keyframes textShine {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #F4762A, #FF8C42);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(244, 118, 42, 0.6), 
              0 0 16px rgba(244, 118, 42, 0.4),
              0 0 24px rgba(244, 118, 42, 0.2);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 8px rgba(244, 118, 42, 0.6), 
                0 0 16px rgba(244, 118, 42, 0.4),
                0 0 24px rgba(244, 118, 42, 0.2);
  }
  50% {
    transform: scale(1.2);
    opacity: 0.9;
    box-shadow: 0 0 12px rgba(244, 118, 42, 0.8), 
                0 0 24px rgba(244, 118, 42, 0.6),
                0 0 36px rgba(244, 118, 42, 0.3);
  }
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 0 0 20px rgba(139, 63, 168, 0.5);
}

/* Orange Shimmer Badge */
.glass-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  background: linear-gradient(135deg, #F4762A, #FF8C42);
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(244, 118, 42, 0.3),
              0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
  opacity: 1;
  visibility: visible;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-badge:hover {
  box-shadow: 0 6px 24px rgba(244, 118, 42, 0.4),
              0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.badge-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmerSweep 3s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes shimmerSweep {
  0% {
    left: -100%;
  }
  20%, 100% {
    left: 100%;
  }
}

/* Hero Title */
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 5vw, 3.8rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  margin: 0;
  text-shadow: 0 4px 30px rgba(139, 63, 168, 0.6);
}

.hero-line {
  overflow: hidden;
  display: block;
}

.hero-line span {
  display: inline-block;
}

/* Subtext */
.subtext {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 540px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 13px 31px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #FFFFFF;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(139, 63, 168, 0.3);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(244, 118, 42, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.btn-primary:hover {
  color: #FFFFFF;
  box-shadow: 0 16px 48px rgba(244, 118, 42, 0.5);
  transform: translateY(-2px) scale(1.03);
}

/* Trust Badges */
.trust-badges {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
  justify-content: center;
  max-width: 700px;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  text-align: center;
}

.trust-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #F4762A, #4BC8C0);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.trust-badge:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(244, 118, 42, 0.3);
  box-shadow: 0 8px 32px rgba(244, 118, 42, 0.2);
}

.trust-badge:hover::before {
  opacity: 1;
}

.badge-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
  transition: all 0.3s ease;
  text-shadow: 0 2px 20px rgba(139, 63, 168, 0.5);
  background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.8) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trust-badge:hover .badge-number {
  background: linear-gradient(135deg, #F4762A 0%, #4BC8C0 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(244, 118, 42, 0.8);
  transform: scale(1.05);
}

.badge-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: lowercase;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
  line-height: 1.3;
}

.trust-badge:hover .badge-label {
  color: rgba(255, 255, 255, 0.9);
}

/* Hero Visual - Dashboard Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.dashboard-card-shadow {
  position: absolute;
  width: 380px;
  height: 420px;
  background: rgba(74, 222, 128, 0.08);
  border-radius: 24px;
  filter: blur(40px);
  transform: translateY(20px);
  opacity: 0.5;
  z-index: 0;
}

.dashboard-card {
  position: relative;
  width: 380px;
  height: auto;
  min-height: 420px;
  background: rgba(30, 25, 50, 0.4);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(139, 63, 168, 0.3);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4), 
              0 0 0 1px rgba(139, 63, 168, 0.2) inset,
              0 0 60px rgba(139, 63, 168, 0.3);
  transform: rotateY(-6deg) rotateX(3deg);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: cardFloat 5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  z-index: 1;
}

.dashboard-card:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

@keyframes cardFloat {
  0%, 100% {
    transform: rotateY(-6deg) rotateX(3deg) translateY(0);
  }
  50% {
    transform: rotateY(-6deg) rotateX(3deg) translateY(-16px);
  }
}

/* Card Header */
.card-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  z-index: 1;
}

.card-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  z-index: 1;
}

.badge-new {
  background: linear-gradient(135deg, #4BC8C0, #3B7DD8);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Live Indicator */
.live-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
  }
}

/* Card Subtitle */
.card-subtitle {
  position: relative;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
  z-index: 1;
}

/* Metric Box */
.metric-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 8px;
}

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

.metric-icon {
  color: rgba(255, 255, 255, 0.6);
  width: 12px;
  height: 12px;
}

.metric-label {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.metric-stats {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 5px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: #4ade80;
  line-height: 1;
}

.metric-trend {
  font-size: 0.6875rem;
  color: #4ade80;
  font-weight: 600;
}

.metric-note {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.3;
}

/* Sync Status */
.sync-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sync-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: syncPulse 2s ease-in-out infinite;
}

@keyframes syncPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

.sync-text {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.stat-trend {
  font-size: 0.8125rem;
  color: #4BC8C0;
  font-weight: 500;
}

/* Chart Bars */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  margin-bottom: var(--space-lg);
}

.chart-bar {
  flex: 1;
  background: linear-gradient(180deg, #F4762A, #F06420);
  border-radius: 4px 4px 0 0;
  height: var(--height);
  min-height: 20%;
  transition: all 0.3s ease;
  position: relative;
}

.chart-bar:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* Platform Pills */
.platform-pills {
  position: relative;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  z-index: 1;
}

/* Price Divider */
.price-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 10px 0;
}

.price-divider-green {
  background: rgba(74, 222, 128, 0.3);
}

/* Price Comparison */
.price-comparison {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  z-index: 1;
}

.price-row {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr 75px;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.price-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.price-label-suggested {
  color: #4ade80;
  font-weight: 600;
}

.price-bar-container {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.price-bar {
  height: 100%;
  width: var(--width);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.price-bar-yours {
  background: #ff6b35;
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.5);
}

.price-bar-competitor {
  background: rgba(255, 255, 255, 0.3);
}

.price-bar-suggested {
  background: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
}

.price-value {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-align: right;
}

.price-value-suggested {
  color: #4ade80;
}

.price-row-yours .price-label {
  color: #ff6b35;
  font-weight: 600;
}

.price-row-suggested {
  margin-top: 4px;
}

.pill {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.6875rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
}

.pill-booking {
  background: linear-gradient(135deg, #003580, #0057B8);
}

.pill-airbnb {
  background: linear-gradient(135deg, #FF5A5F, #FF385C);
}

.pill-expedia {
  background: linear-gradient(135deg, #FFD200, #FFC700);
  color: #1A1A2E;
}

.pill-vrbo {
  background: linear-gradient(135deg, #0057B8, #004C9E);
  color: white;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8125rem;
  font-weight: 500;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-arrow {
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

/* Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px 32px;
  }
  
  .hero-content {
    max-width: 100%;
    gap: 32px;
    text-align: center;
  }
  
  .hero-eyebrow {
    justify-content: center;
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 5vw, 3.2rem);
  }
  
  .subtext {
    font-size: 1.0625rem;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .trust-badges {
    justify-content: center;
  }
  
  .hero-visual {
    order: 2;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .dashboard-card,
  .dashboard-card-shadow {
    width: 100%;
    max-width: 500px;
    min-height: 400px;
  }
  
  .dashboard-card-shadow {
    height: 400px;
  }
  
  .price-row {
    grid-template-columns: 80px 1fr 75px;
    gap: 8px;
  }
  
  .price-label,
  .price-value {
    font-size: 0.8125rem;
  }
  
  .metric-value {
    font-size: 1.375rem;
  }
}

@media (max-width: 768px) {
  #hero {
    min-height: auto;
    padding: 96px 0;
  }
  
  .blob-1,
  .blob-2,
  .blob-3 {
    width: 300px;
    height: 300px;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 20px;
  }
  
  .hero-content {
    gap: 24px;
    text-align: center;
    margin-top: 24px;
  }
  
  .hero-eyebrow {
    justify-content: center;
  }
  
  .hero-eyebrow .eyebrow {
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }
  
  .hero-title {
    font-size: clamp(2rem, 7vw, 2.5rem);
    line-height: 1.2;
  }
  
  .subtext {
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 100%;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 0.9375rem;
  }
  
  .trust-badges {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 8px;
  }
  
  .trust-badge {
    padding: 16px 8px;
  }
  
  .badge-number {
    font-size: 1.5rem;
    margin-bottom: 4px;
  }
  
  .badge-label {
    font-size: 0.6875rem;
    line-height: 1.3;
  }
  
  .scroll-indicator {
    display: none;
  }
  
  /* Mobile RateSync Card - Kompaktna verzija */
  .hero-visual {
    display: flex;
    width: 100%;
    max-width: 100%;
    perspective: none;
  }
  
  .dashboard-card-shadow {
    width: 100%;
    height: auto;
    min-height: 0;
  }
  
  .dashboard-card {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    height: auto;
    padding: 16px;
    transform: none;
    animation: none;
    border-radius: 16px;
  }
  
  .dashboard-card:hover {
    transform: none;
  }
  
  .card-header {
    margin-bottom: 12px;
  }
  
  .card-title {
    font-size: 1rem;
    gap: 6px;
  }
  
  .badge-new {
    font-size: 0.625rem;
    padding: 3px 8px;
  }
  
  .card-subtitle {
    font-size: 0.75rem;
    margin-bottom: 12px;
  }
  
  .platform-pills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 12px;
  }
  
  .pill {
    font-size: 0.6875rem;
    padding: 6px 10px;
    text-align: center;
  }
  
  .price-divider {
    margin: 12px 0;
  }
  
  .price-comparison {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .price-row {
    grid-template-columns: 65px 1fr 65px;
    gap: 6px;
  }
  
  .price-label {
    font-size: 0.6875rem;
  }
  
  .price-value {
    font-size: 0.6875rem;
  }
  
  .price-bar-container {
    height: 6px;
  }
  
  .price-row-suggested {
    margin-top: 8px;
  }
  
  .metric-box {
    padding: 10px;
    margin-top: 12px;
    margin-bottom: 8px;
  }
  
  .metric-header {
    gap: 4px;
    margin-bottom: 6px;
  }
  
  .metric-label {
    font-size: 0.625rem;
  }
  
  .metric-stats {
    gap: 12px;
  }
  
  .metric-value {
    font-size: 1.125rem;
  }
  
  .metric-trend {
    font-size: 0.6875rem;
  }
  
  .metric-note {
    font-size: 0.625rem;
    margin-top: 6px;
  }
  
  .sync-status {
    margin-top: 10px;
  }
  
  .sync-text {
    font-size: 0.6875rem;
  }
}

/* ========== SCROLL REVEAL SYSTEM ========== */

.reveal {
  opacity: 0;
  transition-property: opacity, transform, filter;
  transition-duration: var(--reveal-duration);
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: none !important;
  filter: none !important;
}

/* Reveal animation types */
.reveal[data-anim-type="fade-up"] {
  transform: translateY(48px);
}

.reveal[data-anim-type="fade-left"] {
  transform: translateX(-60px);
}

.reveal[data-anim-type="fade-right"] {
  transform: translateX(60px);
}

.reveal[data-anim-type="fade-in"] {
  transform: none;
}

.reveal[data-anim-type="scale-up"] {
  transform: scale(0.88);
}

.reveal[data-anim-type="blur-in"] {
  filter: blur(12px);
}

/* ========== COUNTER ANIMATION ========== */

@keyframes counterPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

/* ========== HERO CINEMATIC ENTRANCE ========== */

.hero-reveal {
  opacity: 0;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.eyebrow.hero-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 600ms ease, opacity 600ms ease;
}

.eyebrow.hero-reveal.visible {
  opacity: 1;
  clip-path: inset(0 0% 0 0);
}

.glass-badge.hero-reveal {
  transform: scale(0.94) translateY(10px);
  transition: transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 600ms ease;
}

.glass-badge.hero-reveal.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.line-1.hero-reveal,
.line-2.hero-reveal {
  display: inline-block;
  transform: translateY(40px);
  transition: transform 800ms, opacity 800ms;
}

.line-1.hero-reveal.visible,
.line-2.hero-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.subtext.hero-reveal {
  transform: translateY(24px);
  transition: transform 700ms, opacity 700ms;
}

.subtext.hero-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-buttons.hero-reveal,
.hero-buttons .btn.hero-reveal {
  transform: translateY(16px);
  transition: transform 600ms, opacity 600ms;
}

.hero-buttons.hero-reveal.visible,
.hero-buttons .btn.hero-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.trust-badge.hero-reveal {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms, opacity 400ms;
}

.trust-badge.hero-reveal.visible {
  opacity: 1;
  transform: scaleX(1);
}

.dashboard-card.hero-reveal {
  transform: translateX(80px);
  transition: transform 900ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 900ms;
}

.dashboard-card.hero-reveal.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ========== MAGNETIC BUTTONS ========== */

.btn-magnetic {
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* ========== CURSOR GLOW (Desktop) ========== */

.cursor-dot,
.cursor-circle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 12px;
  height: 12px;
  background: #F4762A;
  transition: opacity 0.3s ease;
}

.cursor-circle {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(244, 118, 42, 0.6);
  background: transparent;
  opacity: 0.4;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s ease,
              border-color 0.3s ease,
              mix-blend-mode 0.3s ease;
}

@media (max-width: 768px) {
  .cursor-dot,
  .cursor-circle {
    display: none;
  }
}

/* ========== TEXT SHIMMER EFFECT ========== */

.shimmer-text {
  background: linear-gradient(
    90deg,
    #1A1A2E 0%,
    #F4762A 50%,
    #4BC8C0 75%,
    #1A1A2E 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shimmer-text.shimmer-active {
  animation: shimmer 3s linear forwards;
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* ========== SECTION TRANSITIONS ========== */

section {
  position: relative;
  overflow: hidden;
}

/* Wave divider between sections */
.section-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.section-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.section-divider .shape-fill {
  fill: var(--color-bg-alt);
}

/* ========== PARALLAX ELEMENTS ========== */

[data-parallax] {
  will-change: transform;
  transition: transform 0.1s ease-out;
}

@media (max-width: 768px) {
  [data-parallax] {
    transform: none !important;
  }
}

/* ========== UTILITY CLASSES ========== */

.interactive {
  cursor: pointer;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Section spacing */
.section-padding {
  padding: var(--space-4xl) 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: var(--space-3xl) 0;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-bg);
  box-shadow: 0 4px 16px rgba(244, 118, 42, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #F4762A 0%, #F06420 100%);
  box-shadow: 0 6px 24px rgba(244, 118, 42, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

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

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid rgba(0, 0, 0, 0.1);
}

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

/* Cards */
.card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

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

/* Grid layouts */
.grid {
  display: grid;
  gap: var(--space-xl);
}

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

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Flex utilities */
.flex {
  display: flex;
}

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

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

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

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* Spacing utilities */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* ========== REDUCED MOTION ========== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    will-change: auto !important;
  }
  
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ========== MOBILE OPTIMIZATIONS ========== */

@media (max-width: 768px) {
  :root {
    --reveal-duration: 0.4s;
  }
  
  .btn-magnetic {
    transform: none !important;
  }
  
  body {
    cursor: auto !important;
  }
}

.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}