:root {
  --primary: #4F46E5;
  --primary-light: #818CF8;
  --secondary: #8B5CF6;
  --accent: #C084FC;
  --bg: #F8FAFC;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --white: #FFFFFF;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

/* Glassmorphism */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  border-radius: 1.5rem;
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  color: var(--white);
  border-color: var(--primary-light);
}

/* Header/Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  gap: 0.5rem;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

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

.hero-bg {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: -1;
  animation: float 10s ease-in-out infinite;
}

.hero-bg-2 {
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79,70,229,0.1) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: -1;
  animation: float 12s ease-in-out infinite reverse;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 2rem;
  /* overflow: hidden; eltávolítva, hogy a kártya kiloghasson */
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s ease;
}

.hero-image-wrapper:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2rem;
}

.floating-card {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  z-index: 10;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: float 4s ease-in-out infinite;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature-card {
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

/* Progress Tracker Section */
.tracker-section {
  background: linear-gradient(to bottom, var(--white), var(--bg));
}

.tracker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tracker-mockup {
  position: relative;
}

.tracker-mockup img {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: block;
  transform: rotate(-5deg);
  transition: transform 0.5s;
}

.tracker-mockup:hover img {
  transform: rotate(0deg);
}

.tracker-list {
  list-style: none;
}

.tracker-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}

.tracker-list li:hover {
  transform: translateX(10px);
}

.tracker-list li i {
  color: var(--primary);
  font-size: 1.5rem;
}

/* Leaderboard Section */
.competitions-section {
  text-align: center;
}

.leaderboard-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.leaderboard-card {
  flex: 1;
  min-width: 250px;
  padding: 2rem;
  border-radius: 1.5rem;
  background: white;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.leaderboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient);
}

/* Pricing & Invitation Section */
.pricing-section {
  background: var(--gradient);
  color: white;
  padding: 8rem 0;
  text-align: center;
  border-radius: 3rem;
  margin: 4rem 1.5rem;
}

.pricing-section h2, .pricing-section p {
  color: white;
}

.price-box {
  background: white;
  color: var(--text-main);
  padding: 3rem;
  border-radius: 2rem;
  max-width: 400px;
  margin: 3rem auto;
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

.price-box h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 1rem;
}

.price span {
  font-size: 1rem;
  color: var(--text-muted);
}

/* Social Proof Counter */
.social-proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 4rem 0;
  padding: 2rem;
}

.counter {
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

/* Footer Section */
.footer-wrap {
  position: relative;
  background: #111827;
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.footer-image-wrapper {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.5);
}

.footer-image-wrapper img {
  width: 100%;
  display: block;
}

.footer-content p {
  color: #9CA3AF;
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-soft {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid, .tracker-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }
}
