@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --rui-color-dark: #191c1f;
    --rui-color-white: #ffffff;
    --rui-color-surface: #f4f4f4;
    --rui-color-blue: #494fdf;
    --rui-color-action-blue: #4f55f1;
    --rui-color-blue-text: #376cd5;
    --rui-color-danger: #e23b4a;
    --rui-color-deep-pink: #e61e49;
    --rui-color-warning: #ec7e00;
    --rui-color-yellow: #b09000;
    --rui-color-teal: #00a87e;
    --rui-color-light-green: #428619;
    --rui-color-green-text: #006400;
    --rui-color-light-blue: #007bc2;
    --rui-color-brown: #936d62;
    --rui-color-red-text: #8b0000;
    --rui-color-mid-slate: #505a63;
    --rui-color-cool-gray: #8d969e;
    --rui-color-gray-tone: #c9c9cd;
  }

  * {
    @apply border-revolut-grayTone;
  }

  body {
    @apply bg-revolut-white text-revolut-dark antialiased;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.24px;
  }
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f4f4f4;
}

::-webkit-scrollbar-thumb {
  background: #c9c9cd;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8d969e;
}

::selection {
  background: rgba(73, 79, 223, 0.2);
  color: #191c1f;
}

*:focus-visible {
  outline: 0 0 0 0.125rem #494fdf;
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out forwards;
}

.font-mono {
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
}

@layer components {
  .btn-pill {
    @apply rounded-pill px-8 py-3.5 font-display text-nav font-medium transition-all duration-200;
  }

  .btn-pill-primary {
    @apply btn-pill bg-revolut-dark text-revolut-white hover:opacity-85;
  }

  .btn-pill-secondary {
    @apply btn-pill bg-revolut-surface text-revolut-dark hover:opacity-85;
  }

  .btn-pill-outline {
    @apply btn-pill bg-transparent text-revolut-dark border-2 border-revolut-dark;
  }

  .btn-pill-ghost {
    @apply btn-pill bg-revolut-surface/10 text-revolut-surface border-2 border-revolut-surface;
  }

  .card-revolut {
    @apply rounded-card bg-revolut-white border border-revolut-grayTone;
  }

  .card-dark {
    @apply rounded-card bg-revolut-dark text-revolut-white;
  }

  .heading-display {
    font-family: 'Aeonik Pro', 'Inter', 'Arial', sans-serif;
    font-weight: 500;
    letter-spacing: -0.48px;
  }

  .heading-hero {
    font-family: 'Aeonik Pro', 'Inter', 'Arial', sans-serif;
    font-size: 5rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.8px;
  }

  .heading-section {
    font-family: 'Aeonik Pro', 'Inter', 'Arial', sans-serif;
    font-size: 3rem;
    font-weight: 500;
    line-height: 1.21;
    letter-spacing: -0.48px;
  }

  .heading-card {
    font-family: 'Aeonik Pro', 'Inter', 'Arial', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.19;
    letter-spacing: -0.32px;
  }

  .text-body {
    font-family: 'Inter', 'Arial', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.24px;
  }

  .text-body-semibold {
    font-family: 'Inter', 'Arial', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.16px;
  }
}