@import "../node_modules/tailwindcss/index.css";

:root {
  --background: #ffffff;
  --foreground: #596064;
  --surface: #ffffff;
  --surface-soft: #f6f7f8;
  --surface-muted: #f1f1f1;
  --line: #d8dee3;
  --primary: #1775ba;
  --primary-strong: #0f5f97;
  --accent-red: #9f1918;
  --accent-red-strong: #c1161b;
  --accent-gold: #d88e04;
  --ink: #23343d;
  --success: #2f8a63;
  --danger: #9f1918;
  --shadow-soft: 0 24px 80px rgba(25, 48, 61, 0.08);
  --shadow-card: 0 18px 40px rgba(23, 117, 186, 0.08);
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-overpass);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-overpass), sans-serif;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at top right, rgba(23, 117, 186, 0.09), transparent 22rem),
    radial-gradient(circle at top left, rgba(193, 22, 27, 0.06), transparent 20rem),
    linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
}

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

::selection {
  background: rgba(23, 117, 186, 0.18);
}

.app-shell {
  position: relative;
  overflow: clip;
}

.app-shell::before,
.app-shell::after {
  content: "";
  position: fixed;
  width: 26rem;
  height: 26rem;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.app-shell::before {
  top: -8rem;
  right: -10rem;
  background: rgba(23, 117, 186, 0.12);
}

.app-shell::after {
  bottom: -10rem;
  left: -10rem;
  background: rgba(216, 142, 4, 0.08);
}

.glass-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(216, 222, 227, 0.9);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.soft-grid {
  background-image:
    linear-gradient(rgba(89, 96, 100, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 96, 100, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.metric-bar {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-gold) 100%);
}

.fade-in-up {
  animation: fade-in-up 0.5s ease both;
}

.pulse-dot {
  animation: pulse-dot 1.1s ease-in-out infinite;
}

.tutorial-ring {
  border: 2px solid rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 1px rgba(23, 117, 186, 0.22),
    0 0 24px rgba(255, 255, 255, 0.16),
    0 20px 44px rgba(15, 23, 42, 0.18);
  animation: tutorial-ring 2.3s ease-in-out infinite;
  transform-origin: center;
}

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

@keyframes pulse-dot {
  0%,
  80%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes tutorial-ring {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.008);
    opacity: 0.92;
  }
}
