/* ============================================================
   RadarTrade - Premium Landing Page CSS
   Completely redesigned for a premium, vivid experience
   ============================================================ */

/* ----- Design Tokens ----- */
:root {
  --blue-900: #0f172a;
  --blue-800: #1e3a5f;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --cyan-500: #06b6d4;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --green-500: #22c55e;
  --green-400: #4ade80;
  --red-500: #ef4444;
  --yellow-500: #eab308;
  --purple-500: #8b5cf6;
  --orange-500: #f97316;

  --gradient: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #06b6d4 100%);
  --gradient-reverse: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #1d4ed8 100%);
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-blue: 0 10px 40px -10px rgba(59, 130, 246, 0.4);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--gray-900);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

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

/* ----- Utility Classes ----- */
.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* ============================================================
   KEYFRAMES - All animations
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.4), 0 0 10px rgba(59, 130, 246, 0.2);
  }
  50% {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.6), 0 0 30px rgba(59, 130, 246, 0.3);
  }
}

@keyframes grow-bar {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

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

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

@keyframes pop-in {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes counter-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes particle-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  25% { transform: translate(100px, -50px) scale(1.2); opacity: 0.5; }
  50% { transform: translate(50px, -100px) scale(0.8); opacity: 0.2; }
  75% { transform: translate(-30px, -60px) scale(1.1); opacity: 0.4; }
}

@keyframes particle-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.2; }
  33% { transform: translate(-80px, -40px) scale(0.9); opacity: 0.4; }
  66% { transform: translate(-40px, -80px) scale(1.3); opacity: 0.3; }
}

@keyframes particle-float-3 {
  0%, 100% { transform: translate(0, 0); opacity: 0.15; }
  50% { transform: translate(60px, -70px); opacity: 0.35; }
}

@keyframes grid-pulse {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.08; }
}

@keyframes badge-glow {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  }
  50% {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2), 0 0 40px rgba(59, 130, 246, 0.15);
  }
}

@keyframes hero-entrance {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mockup-float {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(0deg); }
}

@keyframes price-fade {
  0% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.5;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(29, 78, 216, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-white {
  background: var(--white);
  color: var(--blue-700);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue-700);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: transparent;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--blue-700);
  border: 2px solid var(--blue-700);
}

.btn-outline:hover {
  background: var(--blue-700);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.125rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  height: 72px;
  background: var(--white);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 24px;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 20px rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-brand-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-brand-icon svg {
  color: white;
  width: 18px;
  height: 18px;
}

.navbar-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.navbar-links a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
  position: relative;
}

.navbar-links a:hover {
  color: var(--blue-700);
}

.navbar-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--gradient);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
}

.navbar-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.4);
}

.navbar-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.navbar-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Drawer */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.mobile-drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-700);
  padding: 4px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-drawer-close:hover {
  background: var(--gray-100);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer-links a {
  padding: 14px 16px;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-drawer-links a:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}

.mobile-drawer-cta {
  margin-top: auto;
  padding: 14px 24px;
  background: var(--gradient);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 100px 0 80px;
  background: var(--gradient);
  color: var(--white);
  overflow: hidden;
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
}

/* Mesh grid pattern */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-pulse 6s ease-in-out infinite;
  pointer-events: none;
}

/* Decorative blob top-right */
.hero-blob-1 {
  position: absolute;
  top: -15%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-slow 8s ease-in-out infinite;
}

/* Decorative blob bottom-left */
.hero-blob-2 {
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float-slow 10s ease-in-out infinite 2s;
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.hero-particle:nth-child(1) {
  width: 6px; height: 6px;
  top: 15%; left: 10%;
  animation: particle-float-1 12s ease-in-out infinite;
}

.hero-particle:nth-child(2) {
  width: 4px; height: 4px;
  top: 25%; left: 80%;
  animation: particle-float-2 10s ease-in-out infinite 1s;
}

.hero-particle:nth-child(3) {
  width: 8px; height: 8px;
  top: 60%; left: 15%;
  animation: particle-float-3 14s ease-in-out infinite 2s;
}

.hero-particle:nth-child(4) {
  width: 5px; height: 5px;
  top: 70%; left: 70%;
  animation: particle-float-1 11s ease-in-out infinite 3s;
}

.hero-particle:nth-child(5) {
  width: 3px; height: 3px;
  top: 40%; left: 50%;
  animation: particle-float-2 13s ease-in-out infinite 0.5s;
}

.hero-particle:nth-child(6) {
  width: 7px; height: 7px;
  top: 80%; left: 30%;
  animation: particle-float-3 9s ease-in-out infinite 4s;
}

.hero-particle:nth-child(7) {
  width: 4px; height: 4px;
  top: 10%; left: 60%;
  animation: particle-float-1 15s ease-in-out infinite 1.5s;
}

.hero-particle:nth-child(8) {
  width: 6px; height: 6px;
  top: 50%; left: 90%;
  animation: particle-float-2 12s ease-in-out infinite 2.5s;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* Staggered entrance animations */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: hero-entrance 0.8s ease-out forwards, badge-glow 3s ease-in-out infinite 1s;
  opacity: 0;
  animation-delay: 0.1s;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  animation: hero-entrance 0.8s ease-out forwards;
  opacity: 0;
  animation-delay: 0.25s;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0;
  margin-bottom: 40px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  animation: hero-entrance 0.8s ease-out forwards;
  animation-delay: 0.4s;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: hero-entrance 0.8s ease-out forwards;
  animation-delay: 0.55s;
}

/* ----- Hero Mockup ----- */
.hero-mockup {
  position: relative;
  animation: hero-entrance 1s ease-out forwards;
  opacity: 0;
  animation-delay: 0.3s;
}

.mockup-window {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  overflow: hidden;
  animation: mockup-float 6s ease-in-out infinite 1.5s;
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.mockup-dot--red { background: #ef4444; }
.mockup-dot--yellow { background: #eab308; }
.mockup-dot--green { background: #22c55e; }

.mockup-titlebar-text {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-left: 8px;
  font-weight: 500;
}

.mockup-body {
  padding: 24px;
}

/* Chart area */
.mockup-chart {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.mockup-chart-label {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-bottom: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mockup-bars {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  height: 100px;
}

.mockup-bar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  transform-origin: bottom;
  animation: grow-bar 1s ease-out forwards;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.mockup-bar:hover {
  opacity: 1;
}

.mockup-bar:nth-child(1) { height: 55%; background: rgba(59, 130, 246, 0.5); animation-delay: 0.8s; }
.mockup-bar:nth-child(2) { height: 75%; background: rgba(59, 130, 246, 0.6); animation-delay: 0.9s; }
.mockup-bar:nth-child(3) { height: 45%; background: rgba(59, 130, 246, 0.45); animation-delay: 1.0s; }
.mockup-bar:nth-child(4) { height: 90%; background: rgba(34, 197, 94, 0.65); animation-delay: 1.1s; }
.mockup-bar:nth-child(5) { height: 60%; background: rgba(59, 130, 246, 0.55); animation-delay: 1.2s; }
.mockup-bar:nth-child(6) { height: 70%; background: rgba(59, 130, 246, 0.6); animation-delay: 1.3s; }
.mockup-bar:nth-child(7) { height: 82%; background: rgba(6, 182, 212, 0.6); animation-delay: 1.4s; }

/* Mini cards */
.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mockup-stat {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mockup-stat-label {
  font-size: 0.625rem;
  opacity: 0.55;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mockup-stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.mockup-stat-value--green {
  color: var(--green-400);
}

/* Floating badges around mockup */
.mockup-floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  color: var(--gray-900);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-floating-badge:nth-child(2) {
  top: 15%;
  right: -30px;
  animation: float 4s ease-in-out infinite, slide-in-right 0.8s ease-out forwards;
  opacity: 0;
  animation-delay: 1.2s, 1.2s;
}

.mockup-floating-badge:nth-child(3) {
  bottom: 30%;
  left: -40px;
  animation: float 5s ease-in-out infinite 1s, slide-in-right 0.8s ease-out forwards;
  opacity: 0;
  animation-delay: 1.5s, 1.5s;
}

.mockup-floating-badge:nth-child(4) {
  bottom: 8%;
  right: -20px;
  animation: float 4.5s ease-in-out infinite 0.5s, slide-in-right 0.8s ease-out forwards;
  opacity: 0;
  animation-delay: 1.8s, 1.8s;
}

.mockup-badge-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.mockup-badge-icon--green {
  background: var(--green-500);
  color: white;
}

.mockup-badge-icon--red {
  background: var(--red-500);
  color: white;
}

.mockup-badge-icon--blue {
  background: var(--blue-500);
  color: white;
}

/* ============================================================
   LOGOS SECTION
   ============================================================ */
.logos-section {
  padding: 60px 0;
  text-align: center;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.logos-section .logos-label {
  font-size: 0.8125rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin-bottom: 32px;
}

.logos-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo-item {
  padding: 12px 28px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--gray-400);
  border: 1px solid transparent;
  transition: var(--transition);
  cursor: default;
  user-select: none;
}

.logo-item:hover {
  color: var(--blue-700);
  background: var(--blue-50);
  border-color: var(--blue-100);
  transform: translateY(-2px);
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-section {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--blue-50) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.15);
}

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

.feature-icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  transition: var(--transition);
  position: relative;
}

.feature-icon-wrapper svg {
  width: 28px;
  height: 28px;
  stroke-width: 2;
}

.feature-icon-wrapper--blue {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: var(--blue-700);
}

.feature-icon-wrapper--green {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #16a34a;
}

.feature-icon-wrapper--purple {
  background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
  color: #7c3aed;
}

.feature-icon-wrapper--orange {
  background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
  color: #ea580c;
}

.feature-icon-wrapper--cyan {
  background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%);
  color: #0891b2;
}

.feature-icon-wrapper--red {
  background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
  color: #dc2626;
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.feature-card p {
  color: var(--gray-500);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* ============================================================
   HOW IT WORKS SECTION
   ============================================================ */
.how-section {
  padding: 120px 0;
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* Dashed line connecting steps */
.steps-grid::before {
  content: "";
  position: absolute;
  top: 40px;
  left: calc(16.67% + 40px);
  right: calc(16.67% + 40px);
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--blue-200) 0px,
    var(--blue-200) 8px,
    transparent 8px,
    transparent 16px
  );
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--white);
  font-size: 2.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border: 3px solid var(--blue-100);
  transition: var(--transition);
}

.step.visible .step-number {
  animation: pop-in 0.6s ease-out forwards;
}

.step-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--blue-500);
}

.step-icon svg {
  width: 24px;
  height: 24px;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.step p {
  color: var(--gray-500);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing-section {
  padding: 120px 0;
  background: var(--blue-50);
}

.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 56px;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
}

.pricing-toggle-switch {
  width: 52px;
  height: 28px;
  background: var(--gray-400);
  border-radius: var(--radius-full);
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
  border: none;
  padding: 0;
}

.pricing-toggle-switch.active {
  background: var(--blue-600);
}

.pricing-toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.pricing-toggle-switch.active::after {
  transform: translateX(24px);
}

.pricing-toggle .discount-badge {
  background: var(--green-500);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  border: 2px solid transparent;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
  border-color: var(--blue-500);
  transform: scale(1.05);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.2);
  z-index: 2;
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-6px);
  box-shadow: 0 30px 60px rgba(59, 130, 246, 0.25);
}

.pricing-card .plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: var(--radius-full);
  background: var(--gradient);
  color: var(--white);
  padding: 6px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.pricing-card .plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.pricing-card .plan-description {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 28px;
  line-height: 1.6;
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray-500);
}

.pricing-card .price-value {
  transition: none;
}

.pricing-card .price-value.animating {
  animation: price-fade 0.3s ease forwards;
}

.pricing-card .price-period {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 32px;
}

.pricing-card .btn {
  width: 100%;
  margin-bottom: 32px;
}

.pricing-divider {
  height: 1px;
  background: var(--gray-100);
  margin-bottom: 24px;
}

.pricing-features-title {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  padding: 8px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.5;
}

.pricing-features li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.pricing-features li.disabled {
  color: var(--gray-400);
}

.pricing-features li.disabled::before {
  background: var(--gray-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  color: var(--gray-400);
  font-size: 0.875rem;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  padding: 120px 0;
  background: var(--white);
}

.faq-list {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 24px;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--blue-200);
}

.faq-item.open {
  border-color: var(--blue-400);
  border-left: 3px solid var(--blue-500);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gray-900);
  gap: 16px;
  user-select: none;
  transition: color 0.2s ease;
  padding: 20px 24px;
}

.faq-question:hover {
  color: var(--blue-700);
}

.faq-question-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--gray-400);
  transition: transform 0.3s ease, color 0.3s ease;
  background: var(--gray-50);
  border-radius: 50%;
  font-weight: 300;
}

.faq-item.open .faq-question-icon {
  transform: rotate(45deg);
  color: var(--blue-600);
  background: var(--blue-50);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 250px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--gray-500);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 120px 0;
  background: var(--gradient);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-pulse 6s ease-in-out infinite;
  pointer-events: none;
}

.cta-section::after {
  content: "";
  position: absolute;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 44px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn-white {
  font-size: 1.125rem;
  padding: 18px 44px;
  border-radius: var(--radius-md);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 0 40px rgba(255, 255, 255, 0.15);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--blue-900);
  color: var(--gray-400);
  padding: 72px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-description {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: var(--gray-400);
}

.footer h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer a {
  color: var(--gray-400);
  transition: color 0.2s ease;
  font-size: 0.9375rem;
  position: relative;
}

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

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  position: relative;
  display: inline-block;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gray-400);
  font-size: 1.125rem;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social a::after {
  display: none;
}

.footer-social a:hover {
  background: var(--blue-600);
  color: var(--white);
  transform: translateY(-3px);
  border-color: var(--blue-600);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 56px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-400);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.footer-bottom a {
  color: var(--gray-400);
}

.footer-bottom a:hover {
  color: var(--white);
}

.footer-codex {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.footer-codex a {
  color: var(--blue-400);
  font-weight: 500;
}

.footer-codex a:hover {
  color: var(--white);
}

/* ============================================================
   ANIMATIONS - Scroll reveal
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for cards */
.feature-card.animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.feature-card.animate-on-scroll:nth-child(2) { transition-delay: 80ms; }
.feature-card.animate-on-scroll:nth-child(3) { transition-delay: 160ms; }
.feature-card.animate-on-scroll:nth-child(4) { transition-delay: 240ms; }
.feature-card.animate-on-scroll:nth-child(5) { transition-delay: 320ms; }
.feature-card.animate-on-scroll:nth-child(6) { transition-delay: 400ms; }

.step.animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.step.animate-on-scroll:nth-child(2) { transition-delay: 150ms; }
.step.animate-on-scroll:nth-child(3) { transition-delay: 300ms; }

.pricing-card.animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.pricing-card.animate-on-scroll:nth-child(2) { transition-delay: 120ms; }
.pricing-card.animate-on-scroll:nth-child(3) { transition-delay: 240ms; }

/* ============================================================
   RESPONSIVE - Tablet (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-mockup {
    max-width: 520px;
    margin: 0 auto;
  }

  .mockup-floating-badge:nth-child(2) {
    right: -10px;
  }

  .mockup-floating-badge:nth-child(3) {
    left: -10px;
  }

  .mockup-floating-badge:nth-child(4) {
    right: -5px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .steps-grid::before {
    left: calc(16.67% + 24px);
    right: calc(16.67% + 24px);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .pricing-card.featured {
    transform: scale(1.02);
  }

  .pricing-card.featured:hover {
    transform: scale(1.02) translateY(-6px);
  }

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

  .section-title {
    font-size: 2.25rem;
  }
}

/* ============================================================
   RESPONSIVE - Mobile (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .navbar-cta {
    display: none;
  }

  .navbar-hamburger {
    display: flex;
  }

  .hero {
    padding: 80px 0 60px;
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 32px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-mockup {
    display: none;
  }

  .logos-grid {
    gap: 12px;
  }

  .logo-item {
    padding: 10px 20px;
    font-size: 0.8125rem;
  }

  .features-section {
    padding: 80px 0;
  }

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

  .feature-card {
    padding: 32px 24px;
  }

  .how-section {
    padding: 80px 0;
  }

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

  .steps-grid::before {
    display: none;
  }

  .pricing-section {
    padding: 80px 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 420px;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-6px);
  }

  .faq-section {
    padding: 80px 0;
  }

  .faq-question {
    font-size: 1rem;
    padding: 16px 20px;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .faq-item.open .faq-answer {
    padding: 0 20px 16px;
  }

  .cta-section {
    padding: 80px 0;
  }

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

  .cta-section p {
    font-size: 1rem;
  }

  .footer {
    padding: 48px 0 24px;
  }

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

  .footer-bottom {
    margin-top: 32px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .container {
    padding: 0 16px;
  }
}

/* ============================================================
   RESPONSIVE - Small Mobile (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.875rem;
  }

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

  .hero-buttons .btn {
    text-align: center;
  }

  .pricing-card {
    padding: 32px 20px;
  }

  .pricing-card .price {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .step-number {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }
}
