@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---------------------------------------------------------------------------
   CSS variables (from src/index.css)
   --------------------------------------------------------------------------- */
:root {
  --background: 240 20% 3.5%;
  --foreground: 210 40% 98%;
  --card: 240 15% 6%;
  --card-foreground: 210 40% 98%;
  --popover: 240 15% 6%;
  --popover-foreground: 210 40% 98%;
  --primary: 210 100% 60%;
  --primary-foreground: 240 20% 3.5%;
  --secondary: 240 10% 12%;
  --secondary-foreground: 210 40% 98%;
  --muted: 240 10% 14%;
  --muted-foreground: 215 15% 55%;
  --accent: 12 90% 62%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 240 10% 15%;
  --input: 240 10% 15%;
  --ring: 210 100% 60%;
  --radius: 0.75rem;
  --sidebar-background: 240 15% 5%;
  --sidebar-foreground: 210 40% 98%;
  --sidebar-primary: 210 100% 60%;
  --sidebar-primary-foreground: 240 20% 3.5%;
  --sidebar-accent: 240 10% 12%;
  --sidebar-accent-foreground: 210 40% 98%;
  --sidebar-border: 240 10% 15%;
  --sidebar-ring: 210 100% 60%;
}

/* ---------------------------------------------------------------------------
   Base
   --------------------------------------------------------------------------- */
* {
  border-color: hsl(var(--border));
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
}

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

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

/* ---------------------------------------------------------------------------
   Utility classes
   --------------------------------------------------------------------------- */
.gradient-primary {
  background: linear-gradient(135deg, hsl(12 90% 62%), hsl(210 100% 60%));
}

.gradient-text {
  background: linear-gradient(135deg, hsl(12 90% 62%), hsl(210 100% 60%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: hsl(240 15% 6% / 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsl(240 10% 15% / 0.5);
}

/* ---------------------------------------------------------------------------
   Layout
   --------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ---------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid transparent;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s, opacity 0.15s;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

.btn-ghost {
  background: transparent;
  color: hsl(var(--muted-foreground));
}

.btn-ghost:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.btn-primary {
  background: linear-gradient(135deg, hsl(12 90% 62%), hsl(210 100% 60%));
  color: white;
  border: 0;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-lg {
  height: 2.75rem;
  padding-left: 2rem;
  padding-right: 2rem;
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
}

.btn-py-lg {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

/* ---------------------------------------------------------------------------
   Form: input, label
   --------------------------------------------------------------------------- */
.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: hsl(var(--muted-foreground));
}

.input {
  display: flex;
  width: 100%;
  height: 2.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: hsl(var(--foreground));
  background-color: hsl(var(--secondary) / 0.5);
  border: 1px solid hsl(var(--input));
  border-radius: calc(var(--radius) - 2px);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input::placeholder {
  color: hsl(var(--muted-foreground) / 0.5);
}

.input:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

@media (min-width: 768px) {
  .input {
    font-size: 0.875rem;
  }
}

/* ---------------------------------------------------------------------------
   Navbar
   --------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 4rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.navbar .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-logo img {
  height: 2rem;
  width: auto;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Hamburger: hidden on desktop */
.navbar-toggler {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  color: hsl(var(--foreground));
  cursor: pointer;
  border-radius: var(--radius);
  -webkit-tap-highlight-color: transparent;
}

.navbar-toggler-icon {
  position: relative;
  width: 1.25rem;
  height: 1rem;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, top 0.2s ease;
}

.navbar-toggler-icon::before {
  top: 0;
}

.navbar-toggler-icon::after {
  top: calc(50% - 1px);
}

.navbar-toggler-icon {
  display: block;
}

.navbar-toggler-icon {
  background: linear-gradient(to bottom, transparent 0, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px), transparent 100%);
  background-repeat: no-repeat;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  top: calc(50% - 1px);
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  top: calc(50% - 1px);
  transform: rotate(-45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: none;
}

/* Mobile menu: hidden on desktop */
.navbar-menu {
  display: none;
}

/* Mobile navbar */
@media (max-width: 767px) {
  .navbar-toggler {
    display: flex;
  }

  .navbar-actions {
    display: none;
  }

  .navbar-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.5rem;
    background: hsl(var(--background) / 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid hsl(var(--border) / 0.5);
    box-shadow: 0 10px 40px -10px hsl(0 0% 0% / 0.3);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .navbar.is-open .navbar-menu {
    max-height: 12rem;
    opacity: 1;
  }

  .navbar-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: hsl(var(--foreground));
    background: transparent;
    border: none;
    border-radius: var(--radius);
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
  }

  .navbar-menu-link:hover {
    background: hsl(var(--secondary) / 0.8);
  }

  .navbar-menu-icon {
    flex-shrink: 0;
    color: hsl(var(--muted-foreground));
  }

  .navbar-menu-link span {
    flex: 1;
  }

  .navbar-menu-arrow {
    flex-shrink: 0;
    color: hsl(var(--muted-foreground));
  }
}

/* ---------------------------------------------------------------------------
   Hero section
   --------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 85vh;
  overflow: hidden;
  padding-top: 6rem;
}

.hero-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.hero-bg-blur {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(120px);
}

.hero-bg-blur--accent {
  left: 25%;
  top: 25%;
  background: hsl(var(--accent) / 0.1);
}

.hero-bg-blur--primary {
  bottom: 25%;
  right: 25%;
  background: hsl(var(--primary) / 0.1);
}

.hero .container {
  position: relative;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-content {
  max-width: 42rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--secondary) / 0.5);
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
}

.hero-badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: hsl(var(--accent));
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4.5rem;
  }
}

.hero p {
  max-width: 32rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
}

.hero-cta {
  margin-top: 2rem;
}

.hero-cta .btn {
  padding: 1.75rem 3rem;
}

.hero-cta .icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.hero-video-wrap {
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero-video-wrap {
    display: block;
  }
}
.cta-mobile{
  display: none;
}

@media(max-width:768px){
  .hero-grid{
    gap: 1rem;
  }
  .cta-mobile{
    display: block;
    text-align: center;
  }
  .cta-desktop{
    display: none;
  }
  .video-banner{
    width: 100% !important;
  }
}

.hero-video-card {
  position: relative;
  border-radius: 1rem;
  padding: 0.75rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.hero-video-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.75rem;
  background: hsl(var(--secondary) / 0.5);
  border-radius: 0.75rem;
}

.hero-video-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: hsl(var(--accent) / 0.2);
  border: 1px solid hsl(var(--accent) / 0.4);
  cursor: pointer;
  transition: background 0.2s;
}

.hero-video-play:hover {
  background: hsl(var(--accent) / 0.3);
}

.hero-video-play .icon {
  width: 1.75rem;
  height: 1.75rem;
  color: hsl(var(--accent));
  fill: hsl(var(--accent));
}

.hero-video-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* Hero / Stats animations */
.hero-content,
.hero-video-wrap,
.stat-item {
  animation: fadeSlideUp 0.7s ease-out forwards;
}

.hero-video-wrap {
  animation-delay: 0.2s;
  opacity: 0;
}

.stat-item {
  opacity: 0;
}

.stat-item:nth-child(1) { animation-delay: 0s; }
.stat-item:nth-child(2) { animation-delay: 0.15s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.45s; }

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

.hero-video-wrap {
  animation-name: fadeScaleIn;
}

@keyframes fadeScaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------------------------------------------------------------------------
   Stats bar
   --------------------------------------------------------------------------- */
.stats {
  border-top: 1px solid hsl(var(--border) / 0.5);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--secondary) / 0.1);
}

.stats .container {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .stat-value {
    font-size: 3rem;
  }
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.675rem;
  color: hsl(var(--muted-foreground));
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--secondary) / 0.1);
}

.footer .container {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-top {
    flex-direction: row;
  }
}

.footer-logo img {
  height: 2rem;
  width: auto;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.footer-links a:hover {
  color: hsl(var(--foreground));
  transition: color 0.2s;
}

.footer-links .icon {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  vertical-align: middle;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border) / 0.3);
  text-align: center;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* ---------------------------------------------------------------------------
   Auth pages (login / register): centered card + background
   --------------------------------------------------------------------------- */
.auth-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: hsl(var(--background));
}

.auth-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.auth-bg-blur {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  filter: blur(100px);
}

.auth-bg-blur--accent {
  left: 33.333%;
  top: 33.333%;
  background: hsl(var(--accent) / 0.08);
}

.auth-bg-blur--primary {
  bottom: 33.333%;
  right: 33.333%;
  background: hsl(var(--primary) / 0.08);
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 28rem;
  padding: 2rem;
  border-radius: 1rem;
  animation: fadeSlideUp 0.5s ease-out;
}

.auth-card-header {
  margin-bottom: 2rem;
  text-align: center;
}

.auth-card-header img {
  height: 2rem;
  width: auto;
  margin: 0 auto;
  display: block;
}

.auth-card-header p {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-form .btn {
  margin-top: 0.25rem;
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.auth-footer a {
  color: hsl(var(--accent));
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   Page layout (min height for background)
   --------------------------------------------------------------------------- */
.page {
  min-height: 100vh;
  background: hsl(var(--background));
}

/* ---------------------------------------------------------------------------
   404 page
   --------------------------------------------------------------------------- */
.page-404 {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: hsl(var(--muted));
}

.page-404-inner {
  text-align: center;
}

.page-404 h1 {
  margin: 0 0 1rem;
  font-size: 2.25rem;
  font-weight: 700;
}

.page-404 p {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
}

.page-404 a {
  color: hsl(var(--primary));
  text-decoration: underline;
}

.page-404 a:hover {
  color: hsl(var(--primary) / 0.9);
}


@media(max-width:640px){
    .hero {
      min-height: 65vh;
    }
}

.grecaptcha-badge{
  display: none !important;
}

.spinner {
  text-align: center;
  font-size: 10px;
  border: none !important;
}
.spinner-sm {
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spinner > div {
  height: 100%;
  animation:sk-stretchdelay 1.2s ease-in-out 0s infinite;
  border-radius: 4px;
}
.spinner .rect2 {
  animation-delay: -1.1s;
}
.spinner .rect3 {
  animation-delay: -1s;
}
.spinner .rect4 {
  animation-delay: -.9s;
}
.spinner .rect5 {
  animation-delay: -.8s;
}
.spinner-sm > div {
  display: block;
  margin-left: 2px;
  width: 2px;
}
.btn-primary .spinner > div {
  background: rgb(255, 255, 255);
}
@keyframes sk-stretchdelay {
  0%, 40%, 100% {
      transform: scaleY(0.4);
  }

  20% {
      transform: scaleY(1);
  }
}
.hidden{
  display: none;
}