/* Modern, respectable design for Schoolly landing page */

@font-face {
  font-family: 'Bounded';
  src: url('bounded/Bounded-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Global styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fafbfc;
  color: #1f2937;
  line-height: 1.6;
  min-height: 100vh;
  font-size: 16px;
}

/* Hero section */
.hero {
  position: relative;
  text-align: center;
  padding: 80px 20px 60px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
}

.main-title {
  font-family: 'Bounded', 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(3rem, 8vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -2px;
  margin: 0 0 18px 0;
  line-height: 1.1;
  color: #0f172a;
  position: relative;
  z-index: 1;
}

.blue-dot {
  color: #3b82f6;
  animation: blue-dot-glow 2s ease-in-out infinite alternate;
}

@keyframes blue-dot-glow {
  from { opacity: 1; }
  to { opacity: 0.7; }
}

.subtitle {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  color: #64748b;
  margin: 0 0 32px 0;
  font-weight: 500;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Language switcher */
.lang-switcher {
  position: absolute;
  top: 32px;
  right: 48px;
  z-index: 100;
  font-family: inherit;
}

.lang-current {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #374151;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.2s ease;
}

.lang-current:hover, .lang-current:focus {
  background: rgba(255, 255, 255, 1) !important;
  border-color: #d1d5db !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.lang-arrow {
  color: #9ca3af;
  font-size: 0.75rem;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  min-width: 160px;
  padding: 4px 0;
  z-index: 101;
}

.lang-dropdown.active {
  display: block;
  animation: fadeInLang 0.2s ease-out;
}

@keyframes fadeInLang {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.lang-option {
  padding: 8px 16px;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease;
}

.lang-option:hover, .lang-option:focus {
  background: #f3f4f6;
  color: #3b82f6;
}

.lang-flag svg {
  width: 18px;
  height: 18px;
  border-radius: 2px;
}

/* Main sections */
section, .premium-block {
  max-width: 1200px;
  margin: 60px auto;
  padding: 48px 32px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f1f5f9;
  position: relative;
}

section h2, .premium-block h2 {
  font-size: clamp(1.875rem, 5vw, 2.5rem);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 24px 0;
  text-align: center;
}

section p, .premium-block p {
  font-size: 1.125rem;
  color: #64748b;
  text-align: center;
  margin: 0 0 32px 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* About section */
.about {
  text-align: center;
}

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

.feature-card {
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.feature-card:hover {
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

/* Legacy features list support */
.features ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.features ul li {
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.features ul li:hover {
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.features ul li .feature-accent {
  display: block;
  width: 4px;
  height: 60px;
  border-radius: 2px;
  background: #3b82f6;
  flex-shrink: 0;
}

.features ul li .feature-icon {
  font-size: 1.5rem;
  color: #3b82f6;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Premium section */
.premium-block {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  text-align: center;
}

.premium-block h2 {
  color: white;
}

.premium-block p {
  color: rgba(255, 255, 255, 0.9);
}

.premium-highlight {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 24px;
  display: inline-block;
  margin-left: 8px;
}

.blue-text {
  color: #60a5fa;
}

/* Buttons */
.wrapper, .premium-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.schoolly-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.schoolly-btn-white {
  background: white;
  color: #374151;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.schoolly-btn-white:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.schoolly-btn-blue {
  background: #3b82f6;
  color: white;
  border: 1px solid #3b82f6;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

.schoolly-btn-blue:hover {
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.schoolly-btn .schoolly-btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.schoolly-btn:hover .schoolly-btn-glow {
  left: 100%;
}

/* Contacts section */
.contacts {
  text-align: center;
}

.contacts-list {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.contact-card {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 16px 24px;
  min-width: 240px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.contact-card:hover {
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.contact-card-icon {
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card-icon svg {
  width: 24px;
  height: 24px;
}

.contact-card-content {
  text-align: left;
}

.contact-card-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 2px;
}

.contact-link {
  color: #374151;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.875rem;
}

.contact-link:hover {
  color: #3b82f6;
}

/* Footer */
footer {
  text-align: center;
  padding: 48px 20px;
  color: #9ca3af;
  font-size: 0.875rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

/* Responsive design */
@media (max-width: 1024px) {
  section, .premium-block {
    margin: 40px 20px;
    padding: 40px 24px;
  }
  
  .features-grid,
  .features ul {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 60px 20px 40px 20px;
  }
  
  .lang-switcher {
    top: 20px;
    right: 20px;
  }
  
  .lang-current {
    font-size: 0.75rem;
    padding: 8px;
    min-width: 36px;
    border-radius: 8px;
  }
  
  .lang-current .lang-label {
    display: none;
  }
  
  .lang-current .lang-arrow {
    display: none;
  }
  
  section, .premium-block {
    margin: 30px 16px;
    padding: 32px 20px;
  }
  
  .features-grid,
  .features ul {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .feature-card,
  .features ul li {
    padding: 20px;
  }
  
  .contacts-list {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .contact-card {
    min-width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 16px 32px 16px;
  }
  
  section, .premium-block {
    margin: 20px 12px;
    padding: 24px 16px;
  }
  
  .schoolly-btn {
    padding: 10px 20px;
    font-size: 0.875rem;
  }
  
  .feature-card,
  .features ul li {
    padding: 16px;
  }
  
  .features ul li {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .features ul li .feature-accent {
    width: 40px;
    height: 4px;
    align-self: center;
  }
}

/* Animation delays for feature cards */
.features ul li:nth-child(1) { animation-delay: 0.1s; }
.features ul li:nth-child(2) { animation-delay: 0.2s; }
.features ul li:nth-child(3) { animation-delay: 0.3s; }
.features ul li:nth-child(4) { animation-delay: 0.4s; }
.features ul li:nth-child(5) { animation-delay: 0.5s; }
.features ul li:nth-child(6) { animation-delay: 0.6s; }
.features ul li:nth-child(7) { animation-delay: 0.7s; }
.features ul li:nth-child(8) { animation-delay: 0.8s; }
.features ul li:nth-child(9) { animation-delay: 0.9s; }

/* Legacy button support */
.button, .premium-block .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.button:hover, .premium-block .button:hover {
  background: #2563eb;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* Hide legacy elements */
.section-img,
.hero-bg,
.btn-bot {
  display: none !important;
}

/* Utility classes */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.ml-1 {
  margin-left: 0.25rem;
}

/* Additional animation keyframes */
@keyframes section-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes contact-card-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes accent-fade-in {
  from { opacity: 0; width: 0; }
  to { opacity: 1; width: 4px; }
} 