:root {
    --background: 0 0% 98%;
    --foreground: 220 20% 10%;
    --card: 0 0% 100%;
    --card-foreground: 220 20% 10%;
    --popover: 0 0% 100%;
    --popover-foreground: 220 20% 10%;
    --primary: 159 100% 45%;
    --primary-foreground: 0 0% 100%;
    --secondary: 159 100% 95%;
    --secondary-foreground: 220 20% 10%;
    --muted: 220 15% 90%;
    --muted-foreground: 220 15% 35%;
    --accent: 159 100% 45%;
    --accent-foreground: 0 0% 100%;
    --destructive: 0 63% 31%;
    --destructive-foreground: 210 40% 98%;
    --border: 220 15% 85%;
    --input: 220 15% 90%;
    --ring: 159 100% 45%;
    --radius: 0.75rem;
  }

  body {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    color: hsl(var(--foreground));
    min-height: 100vh;
  }

  .btn-primary {
    background: linear-gradient(135deg, #00E5A8 0%, #00C896 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(0, 229, 168, 0.39);
    transition: all 0.3s ease;
  }
  .btn-primary:hover {
    background: linear-gradient(135deg, #00F5B8 0%, #00D8A6 100%);
    box-shadow: 0 6px 20px 0 rgba(0, 229, 168, 0.5);
    transform: translateY(-2px);
  }

  .btn-secondary {
    background-color: transparent;
    border: 2px solid hsl(var(--primary));
    color: hsl(var(--primary));
    font-weight: 600;
  }
  .btn-secondary:hover {
    background-color: hsl(var(--primary) / 0.1);
  }

  /* Navigation styling */
  nav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid hsl(var(--border)) !important;
  }

  nav button, nav a {
    color: hsl(var(--foreground)) !important;
  }

  nav button:hover, nav a:hover {
    color: hsl(var(--primary)) !important;
  }

  nav button.text-teal-400 {
    color: hsl(var(--primary)) !important;
  }

  /* Card enhancements */
  .card-bright {
    background: white;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
  }

  .card-bright:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 229, 168, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
  }

  /* Metallic/Chrome accents for tier cards */
  .metallic-shine {
    position: relative;
    overflow: hidden;
  }

  .metallic-shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.8) 50%,
      transparent 70%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
  }

  @keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
  }

  /* Gradient backgrounds */
  .gradient-bg {
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 50%, #dbeafe 100%);
  }

  .gradient-primary {
    background: linear-gradient(135deg, rgba(0, 229, 168, 0.1) 0%, rgba(0, 229, 168, 0.05) 100%);
  }

  /* Section backgrounds */
  section {
    background: transparent;
  }

  section:nth-child(even) {
    background: linear-gradient(180deg, rgba(0, 229, 168, 0.02) 0%, transparent 100%);
  }
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
  }
  @keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
  }
  .text-primary {
    color: hsl(var(--primary)) !important;
  }
  .text-foreground{
    color: hsl(var(--primary)) !important;
  }
  .animate-fadeInUp { animation: fadeInUp 0.6s ease-out forwards; }
  .animate-fadeInRight { animation: fadeInRight 0.6s ease-out forwards; }
  .animate-slideInLeft { animation: slideInLeft 0.6s ease-out forwards; }
  .delay-100 { animation-delay: 0.1s; }
  .delay-200 { animation-delay: 0.2s; }
  .delay-300 { animation-delay: 0.3s; }
  .delay-400 { animation-delay: 0.4s; }

  /* Tape flow animation for the hero subtitle */
  @keyframes tapeFlow {
    0% {
      opacity: 0;
      transform: translateY(-10px) scale(0.95);
      filter: blur(2px);
    }
    50% {
      opacity: 0.7;
      transform: translateY(0px) scale(1);
      filter: blur(1px);
    }
    100% {
      opacity: 1;
      transform: translateY(0px) scale(1);
      filter: blur(0px);
    }
  }

  .animate-tape-flow {
    animation: tapeFlow 1.2s ease-out forwards;
    position: relative;
    overflow: hidden;
  }

  .animate-tape-flow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 168, 0.1), transparent);
    animation: tapeScan 2s ease-out 0.3s forwards;
  }

  @keyframes tapeScan {
    0% { left: -100%; }
    100% { left: 100%; }
  }

  /* Polished Design Improvements */
  
  /* Softened card styles */
  .card-soft {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 229, 168, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
  }

  .card-soft:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 229, 168, 0.15);
    border-color: rgba(0, 229, 168, 0.2);
  }

  /* Consistent spacing system */
  .spacing-section {
    padding: 2rem 0;
  }

  .spacing-card {
    padding: 1.5rem;
  }

  .spacing-grid {
    gap: 1.5rem;
  }

  /* Softened navigation */
  .nav-soft {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  /* Improved button styles */
  .btn-primary-polished {
    background: linear-gradient(135deg, #00E5A8 0%, #00C896 100%);
    color: white;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 4px 14px 0 rgba(0, 229, 168, 0.25);
    transition: all 0.2s ease;
  }

  .btn-primary-polished:hover {
    background: linear-gradient(135deg, #00F5B8 0%, #00D8A6 100%);
    box-shadow: 0 6px 20px 0 rgba(0, 229, 168, 0.35);
    transform: translateY(-1px);
  }

  /* Natural backgrounds */
  .bg-natural {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
  }

  .bg-card-natural {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
  }

  /* Improved typography */
  .text-hierarchy {
    line-height: 1.6;
    letter-spacing: -0.01em;
  }

  .text-soft {
    color: rgba(15, 23, 42, 0.8);
  }

  /* Consistent rounded corners */
  .rounded-soft {
    border-radius: 12px;
  }

  .rounded-soft-lg {
    border-radius: 16px;
  }

  /* Subtle shadows */
  .shadow-soft {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  }

  .shadow-soft-hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }

  /* Remove excessive animations and keep only purposeful ones */
  .animate-subtle {
    animation: fadeInUp 0.4s ease-out forwards;
  }

  /* Dark card variant for sections that need it */
  .card-dark-soft {
    background: rgba(31, 41, 55, 0.95);
    border: 1px solid rgba(0, 229, 168, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
  }

  .card-dark-soft:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 229, 168, 0.2);
    border-color: rgba(0, 229, 168, 0.25);
  }

  /* Glossary Link Styling */
  .glossary-link {
    @apply text-primary hover:text-primary/80 underline cursor-help transition-colors;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
  }

  .glossary-link:hover::after {
    content: " (click for definition)";
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: normal;
  }