@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:wght@400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --background: oklch(0.985 0.002 90);
  --foreground: oklch(0.12 0.01 60);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.12 0.01 60);
  --primary: oklch(0.12 0.01 60);
  --primary-foreground: oklch(0.985 0.002 90);
  --secondary: oklch(0.96 0.005 90);
  --secondary-foreground: oklch(0.12 0.01 60);
  --muted: oklch(0.94 0.005 90);
  --muted-foreground: oklch(0.45 0.02 60);
  --border: oklch(0.88 0.01 90);
  --input: oklch(0.92 0.01 90);
  --ring: oklch(0.12 0.01 60);
  --accent: oklch(0.92 0.01 90);
  --accent-foreground: oklch(0.12 0.01 60);
  
  --font-sans: 'Instrument Sans', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
  outline-color: rgba(var(--ring), 0.5);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  antialiased: true;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Noise Overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: -1;
}

/* Navigation */
.navigation {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  background-color: rgba(var(--background), 0.9);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.brand-icon {
  font-size: 1.75rem;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 0.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
    justify-content: flex-start;
  }
  
  .nav-cta {
    width: 100%;
  }
}

/* Hero Section */
.hero-section {
  padding: 6rem 2rem;
  background-color: var(--background);
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--primary);
}

.hero-word {
  display: block;
  animation: char-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  filter: blur(40px);
}

.hero-word:nth-child(1) { animation-delay: 0s; }
.hero-word:nth-child(2) { animation-delay: 0.1s; }
.hero-word:nth-child(3) { animation-delay: 0.2s; }
.hero-word:nth-child(4) { animation-delay: 0.3s; }
.hero-word:nth-child(5) { animation-delay: 0.4s; }

@keyframes char-in {
  0% {
    opacity: 0;
    filter: blur(40px);
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  line-height: 1.8;
  max-width: 500px;
}

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

.btn {
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 0.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(var(--primary), 0.2);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.1rem;
}

.hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.animated-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(40px);
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  animation: float 6s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, var(--secondary), var(--muted));
  animation: float 8s ease-in-out infinite;
  animation-delay: 1s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: linear-gradient(225deg, var(--accent), var(--primary));
  animation: float 10s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(30px); }
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-visual {
    height: 300px;
  }
}

/* Section Container */
.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--muted-foreground);
}

/* Features Section */
.features-section {
  padding: 6rem 2rem;
  background-color: var(--background);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--card);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(var(--primary), 0.1);
}

.feature-icon {
  font-size: 2.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
  padding: 6rem 2rem;
  background-color: var(--secondary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step-card {
  padding: 2rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(var(--primary), 0.1);
}

.step-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-serif);
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.step-card p {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Prizes Section */
.prizes-section {
  padding: 6rem 2rem;
  background-color: var(--background);
}

.prize-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.prize-tier {
  padding: 2rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid var(--border);
}

.prize-tier:hover {
  transform: translateY(-8px);
}

.prize-tier.gold {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
  border-color: rgba(255, 215, 0, 0.3);
}

.prize-tier.silver {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(192, 192, 192, 0.05));
  border-color: rgba(192, 192, 192, 0.3);
}

.prize-tier.bronze {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(205, 127, 50, 0.05));
  border-color: rgba(205, 127, 50, 0.3);
}

.prize-tier.top10 {
  background-color: var(--card);
  border-color: var(--border);
}

.prize-tier.top50 {
  background-color: var(--secondary);
  border-color: var(--border);
}

.prize-rank {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.prize-amount {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.prize-tier p {
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

/* Rules Section */
.rules-section {
  padding: 6rem 2rem;
  background-color: var(--secondary);
}

.rules-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.rule-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.rule-item ul {
  list-style: none;
  padding: 0;
}

.rule-item li {
  padding: 0.5rem 0;
  color: var(--foreground);
  padding-left: 1.5rem;
  position: relative;
}

.rule-item li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 600;
}

/* Community Section */
.community-section {
  padding: 6rem 2rem;
  background-color: var(--background);
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.community-card {
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--card);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.community-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(var(--primary), 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.community-card p {
  font-size: 1rem;
  color: var(--muted-foreground);
}

/* Testimonials Section */
.testimonials-section {
  padding: 6rem 2rem;
  background-color: var(--secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  padding: 2rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(var(--primary), 0.1);
}

.testimonial-text {
  font-size: 1rem;
  color: var(--foreground);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
}

/* FAQ Section */
.faq-section {
  padding: 6rem 2rem;
  background-color: var(--background);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.faq-item {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--card);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(var(--primary), 0.1);
}

.faq-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* CTA Section */
.cta-section {
  padding: 6rem 2rem;
  background-color: var(--secondary);
  border-top: 1px solid var(--border);
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.cta-content h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--primary);
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--muted-foreground);
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column h3,
.footer-column h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.footer-column p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: var(--primary-foreground);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-column a:hover {
  opacity: 1;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(var(--primary-foreground), 0.2);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.75;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 4rem 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .features-grid,
  .steps-grid,
  .community-grid,
  .testimonials-grid,
  .prize-tiers {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    display: none;
  }

  .nav-container {
    padding: 1rem;
  }
}

/* Animations */
@keyframes line-reveal {
  to {
    clip-path: inset(0 0 0 0);
  }
}

.line-reveal {
  clip-path: inset(0 100% 0 0);
  animation: line-reveal 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.hover-lift {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}
