/* LangUp.ai Styles */

/* ======= Reset and Base Styles ======= */
:root {
  --primary-color: #4F46E5;
  --primary-dark: #4338CA;
  --primary-light: #818CF8;
  --secondary-color: #FB7185;
  --dark-color: #1E293B;
  --text-color: #334155;
  --light-color: #F8FAFC;
  --gray-color: #94A3B8;
  --gray-light: #E2E8F0;
  --gray-dark: #64748B;
  --success-color: #10B981;
  --warning-color: #F59E0B;
  --danger-color: #EF4444;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s ease;
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 62.5%; /* 10px = 1rem */
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* ======= Typography ======= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

h1 {
  font-size: 4.2rem;
}

h2 {
  font-size: 3.6rem;
}

h3 {
  font-size: 2.4rem;
}

h4 {
  font-size: 2rem;
}

p {
  margin-bottom: 1.5rem;
}

.highlight {
  color: var(--primary-color);
}

/* ======= Layout ======= */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem;
}

.section-header p {
  font-size: 1.8rem;
  color: var(--gray-dark);
}

/* Grid Layouts */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

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

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

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

/* ======= Components ======= */

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.6rem;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

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

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

.btn-large {
  padding: 1.2rem 3rem;
  font-size: 1.8rem;
}

/* Cards */
.feature-card, .language-card, .pricing-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.feature-card:hover, .language-card:hover {
  transform: translateY(-5px);
}

.feature-icon, .language-flag {
  width: 70px;
  height: 70px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img, .language-flag img {
  width: 100%;
  height: auto;
}

.flag-emoji {
  font-size: 3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.more-icon {
  width: 70px;
  height: 70px;
  background-color: var(--gray-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

/* Pricing Cards */
.pricing-card {
  text-align: center;
  position: relative;
  border: 1px solid var(--gray-light);
}

.pricing-card.featured {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background-color: var(--secondary-color);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
}

.pricing-header {
  margin-bottom: 3rem;
}

.price {
  font-size: 4rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.price span {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--gray-color);
}

.pricing-features {
  margin-bottom: 3rem;
}

.pricing-features ul li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.pricing-features ul li:last-child {
  border-bottom: none;
}

.pricing-cta {
  margin-top: 3rem;
}

/* FAQ Items */
.faq-item {
  border-bottom: 1px solid var(--gray-light);
  margin-bottom: 2rem;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 2rem;
}

.faq-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.faq-answer {
  padding: 0 0 2rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ======= Sections ======= */

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem 0;
}

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

.logo {
  width: 150px;
}

.nav-list {
  display: flex;
}

.nav-list li {
  margin-left: 2.5rem;
}

.nav-list a {
  font-weight: 500;
  color: var(--text-color);
}

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

.cta-buttons {
  display: flex;
  gap: 1.5rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  margin: 5px 0;
  border-radius: 3px;
}

/* Hero Section */
.hero {
  padding-top: 15rem;
  padding-bottom: 8rem;
  background-color: #F5F5FF;
  overflow: hidden;
}

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

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

.hero-content p {
  font-size: 1.8rem;
  margin-bottom: 3rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

/* Features Section */
.features {
  background-color: white;
}

/* Languages Section */
.languages {
  background-color: #F5F5FF;
}

/* Pricing Section */
.pricing {
  background-color: white;
}

/* FAQ Section */
.faq {
  background-color: #F5F5FF;
}

/* CTA Section */
.cta {
  background-color: var(--primary-color);
  padding: 6rem 0;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: white;
  margin-bottom: 1.5rem;
}

.cta-content p {
  color: white;
  opacity: 0.9;
  margin-bottom: 3rem;
  font-size: 1.8rem;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 6rem 0 2rem;
}

.footer-logo {
  width: 150px;
  margin-bottom: 2rem;
}

.footer-info p {
  opacity: 0.8;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.footer-links-column h4 {
  color: white;
  margin-bottom: 2rem;
}

.footer-links-column ul li {
  margin-bottom: 1rem;
}

.footer-links-column ul li a {
  opacity: 0.8;
}

.footer-links-column ul li a:hover {
  opacity: 1;
  color: var(--primary-light);
}

.footer-bottom {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  opacity: 0.6;
  font-size: 1.4rem;
}

/* ======= Media Queries ======= */

/* Tablet */
@media (max-width: 992px) {
  html {
    font-size: 60%;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    max-width: 500px;
    margin: 0 auto;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .footer-info {
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto 2rem;
  }

  .social-links {
    justify-content: center;
  }
}

/* Mobile */
@media (max-width: 768px) {
  html {
    font-size: 55%;
  }

  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 3rem;
  }

  .nav, .cta-buttons {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .pricing-grid {
    gap: 2rem;
  }

  .pricing-card.featured {
    transform: none;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
}

/* Small Mobile */
@media (max-width: 576px) {
  section {
    padding: 6rem 0;
  }

  .features-grid, .languages-grid {
    grid-template-columns: 1fr;
  }
}
