/* Base Styles */
:root {
  --primary-color: #333446;
  --secondary-color: #7f8caa;
  --primary-hover: #454765;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --background: #ffffff;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --max-width: 1200px;
  --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);
  --select-arrow: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333446' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

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

/* Language Selector */
.language-selector {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
}

.language-dropdown {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 0.5rem 2rem 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--primary-color);
  cursor: pointer;
  background-image: var(--select-arrow);
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.language-dropdown:hover {
  border-color: var(--primary-color);
}

.language-dropdown:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(51, 52, 70, 0.1);
}

html {
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-light);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.2s ease;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
header {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: #000;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.video-background video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.5;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
}

header .container {
  position: relative;
  z-index: 2;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo .logo-img {
  width: 30px;
  height: 30px;
}

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

.nav-links a {
  color: var(--secondary-color);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.cta-button {
  background-color: var(--primary-color);
  color: white !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 500 !important;
  transition: background-color 0.2s ease;
}

.cta-button:hover {
  background-color: var(--primary-hover);
  color: white;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 4rem 0;
}

.hero-content {
  flex: 1;
  padding-right: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--secondary-color), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 600px;
}

.hero p {
  font-size: 1.25rem;
  max-width: 500px;
  margin-bottom: 2.5rem;
  color: #fff;
}

.app-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  align-items: center;
}

.app-store-button img,
.play-store-button img {
  height: 50px;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.play-store-button img {
  height: 74px;
}

.app-store-button:hover img,
.play-store-button:hover img {
  transform: translateY(-2px);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-height: 600px;
  border-radius: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Features Section */
.features {
  padding: 6rem 0;
  background: linear-gradient(135deg, #fff 0%, var(--secondary-color) 100%);
}

.features h2,
.how-it-works h2,
.cta h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-color);
}

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

.feature {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.feature h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

/* How It Works Section */
.how-it-works {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.step {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

/* CTA Section */
.cta {
  padding: 6rem 0;
  background: linear-gradient(135deg, #4a4c79 0%, #5158ba 100%);
  color: white;
  text-align: center;
}

.cta h2,
.cta p {
  color: white;
}

.cta .app-buttons {
  justify-content: center;
  margin-top: 2.5rem;
}

/* Footer */
footer {
  background-color: #111827;
  color: #9ca3af;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo svg {
  width: 25px;
  height: 25px;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #9ca3af;
  transition: color 0.2s ease;
}

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

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  font-size: 0.875rem;
}

.copyright a {
  color: #fff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 4rem 0 6rem;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 3rem;
  }

  .hero h1,
  .hero p {
    max-width: 100%;
  }

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

  .hero-image img {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

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

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .app-buttons {
    flex-direction: column;
    align-items: center;
  }

  .app-store-button img,
  .play-store-button img {
    height: 45px;
  }
}

.markdown-content h1:first-child {
  display: none;
}

.markdown-content h2 {
  margin-top: 2rem;
}

.markdown-content ul {
  list-style-position: inside;
  margin-bottom: 1rem;
}

.markdown-content hr {
  margin-top: 2rem;
}
