/* =============================================================================
   checkme.cv Landing Page — Modern Styles
   ============================================================================= */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #ec4899;
  --dark: #0f172a;
  --dark-light: #1e293b;
  --gray: #64748b;
  --light: #f1f5f9;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -80px) scale(1.1); }
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
}

.logo {
  margin-bottom: 32px;
}

.logo-text {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.hero-title {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--white) 0%, var(--light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--gray);
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-large {
  padding: 20px 48px;
  font-size: 18px;
}

/* Hero Visual */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.floating-window {
  width: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: floatWindow 6s infinite ease-in-out;
}

@keyframes floatWindow {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

.window-header {
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-header span {
  font-size: 14px;
  font-weight: 600;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient);
  opacity: 0.6;
}

.window-content {
  padding: 32px;
  height: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pulse-line {
  height: 12px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
  border-radius: 6px;
  animation: pulse 2s infinite ease-in-out;
}

.pulse-line.delay-1 {
  animation-delay: 0.3s;
}

.pulse-line.delay-2 {
  animation-delay: 0.6s;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scaleX(0.8); }
  50% { opacity: 1; transform: scaleX(1); }
}

/* =============================================================================
   THEMES SECTION
   ============================================================================= */

.themes {
  padding: 120px 24px;
  background: var(--dark-light);
}

.section-title {
  font-size: 48px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 16px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 20px;
  margin-bottom: 64px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.theme-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
}

.theme-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.theme-preview {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--dark);
  position: relative;
}

.theme-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.theme-card:hover .theme-preview img {
  transform: scale(1.05);
}

.monochrome-placeholder {
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.crt-effect {
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
  position: relative;
}

.scanline {
  position: absolute;
  width: 100%;
  height: 2px;
  background: rgba(0, 255, 0, 0.1);
  animation: scan 3s linear infinite;
}

@keyframes scan {
  0% { top: 0; }
  100% { top: 100%; }
}

.crt-text p {
  margin: 4px 0;
}

.blink {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.theme-info {
  padding: 24px;
}

.theme-info h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.theme-info p {
  color: var(--gray);
  line-height: 1.6;
}

/* =============================================================================
   FEATURES SECTION
   ============================================================================= */

.features {
  padding: 120px 24px;
  background: var(--dark);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--gray);
  line-height: 1.6;
}

/* =============================================================================
   HOW IT WORKS SECTION
   ============================================================================= */

.how-it-works {
  padding: 120px 24px;
  background: var(--dark-light);
}

.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  max-width: 1000px;
  margin: 64px auto 0;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-number {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.step h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step p {
  color: var(--gray);
  line-height: 1.6;
}

.step-arrow {
  font-size: 32px;
  color: var(--primary);
  font-weight: 300;
}

/* =============================================================================
   CTA SECTION
   ============================================================================= */

.cta {
  padding: 120px 24px;
  background: var(--dark);
  text-align: center;
}

.cta h2 {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 16px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta > p {
  font-size: 20px;
  color: var(--gray);
  margin-bottom: 40px;
}

.cta-note {
  margin-top: 24px;
  color: var(--gray);
  font-size: 14px;
}

/* =============================================================================
   FOOTER
   ============================================================================= */

.footer {
  padding: 48px 24px;
  background: var(--dark-light);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer p {
  color: var(--gray);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 24px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

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

  .hero-visual {
    margin-top: 60px;
  }

  .floating-window {
    width: 90%;
    max-width: 350px;
  }

  .section-title {
    font-size: 36px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .theme-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .cta h2 {
    font-size: 36px;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}
