/* ==========================================================================
   BetPro Pakistan - Base (tokens, reset, layout, text, buttons, reveal, keyframes)
   ========================================================================== */

:root {
  --background: 222 24% 5%;
  --foreground: 210 16% 93%;
  --primary: 142 76% 45%;
  --primary-foreground: 222 24% 5%;
  --card: 222 20% 9%;
  --card-foreground: 210 16% 90%;
  --card-border: 222 16% 14%;
  --border: 222 16% 13%;
  --muted: 222 14% 13%;
  --muted-foreground: 220 8% 62%;
  --accent: 222 18% 12%;
  --secondary: 222 18% 12%;
  --popover: 222 24% 7%;
  --destructive: 4 80% 52%;
  --ring: 142 76% 45%;

  --glow: 57, 175, 87;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: 1rem;
  --radius-full: 9999px;

  --container: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid hsl(var(--border));
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

img,
svg {
  display: block;
}

::selection {
  background: hsl(var(--primary) / 0.3);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.site {
  min-height: 100vh;
}

.site-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 2rem;
}

.section {
  position: relative;
  padding-block: 7rem;
  overflow: hidden;
}

[id] {
  scroll-margin-top: 5rem;
}

.section-inner {
  position: relative;
  z-index: 10;
}

.eyebrow {
  color: hsl(var(--primary));
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.eyebrow.is-sm {
  font-size: 11px;
}

.sec-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.sec-title .accent {
  color: hsl(var(--primary));
}

@media (min-width: 768px) {
  .sec-title {
    font-size: 3rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn .icon {
  width: 1rem;
  height: 1rem;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  box-shadow: 0 0 20px rgba(var(--glow), 0.25);
}

.btn-primary:hover {
  background: hsl(var(--primary) / 0.9);
  box-shadow: 0 0 28px rgba(var(--glow), 0.4);
}

.btn-cta {
  background: hsl(var(--primary));
  color: hsl(222 24% 5%);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-xl);
  font-size: 15px;
  box-shadow: 0 0 48px rgba(var(--glow), 0.32);
}

.btn-cta:hover {
  background: hsl(var(--primary) / 0.9);
  box-shadow: 0 0 64px rgba(var(--glow), 0.48);
}

.btn-cta .icon {
  transition: transform 0.2s ease;
}

.btn-cta:hover .icon {
  transform: translateX(4px);
}

.btn-solid {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  box-shadow: 0 0 28px rgba(var(--glow), 0.25);
}

.btn-solid:hover {
  background: hsl(var(--primary) / 0.9);
  box-shadow: 0 0 40px rgba(var(--glow), 0.4);
}

.btn-solid .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.btn-solid:hover .icon {
  transform: translateX(4px);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: hsl(var(--foreground) / 0.8);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-xl);
  font-size: 15px;
  font-weight: 600;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
}

.reveal {
  opacity: 0;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-up {
  transform: translateY(20px);
}

.reveal-left {
  transform: translateX(-24px);
}

.reveal-right {
  transform: translateX(24px);
}

.reveal-scale {
  transform: scale(0.96);
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  * {
    animation: none !important;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes feed-in {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
