@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #4CAF50;
  --primary-hover: #388E3C;
  --bg-dark: #0F172A;
  --bg-card: #1E293B;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border-color: #334155;
  --gradient: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
  --accent-purple: #6366F1;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--gradient);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  padding: 40px 20px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.main-header {
  position: relative;
  background-image: linear-gradient(to right, rgba(76, 175, 80, 1) 25%, rgba(76, 175, 80, 0.7) 65%, rgba(76, 175, 80, 0) 100%), url('../assets/images/header.png');
  background-size: cover;
  background-position: center right;
  margin-top: -40px;
  margin-left: -40px;
  margin-right: -40px;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 50px 40px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  text-align: left;
  min-height: 220px;
}

.logo-container {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.logo-img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  border: 3px solid var(--primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  background: white;
  object-fit: cover;
}

.logo-badge {
  position: absolute;
  bottom: -5px;
  right: -10px;
  background: var(--accent-purple);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  border: 2px solid var(--bg-card);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.header-text-content {
  flex-grow: 1;
  max-width: 65%;
}

.header-subtitle {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #FFF 0%, #FFA726 50%, #E1251B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--primary);
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  color: #FFF;
}

p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

ul, ol {
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--text-muted);
}

li {
  margin-bottom: 8px;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

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

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #0F172A;
  padding: 12px 28px;
  font-weight: 700;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Feature grid for landing page */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.feature-card {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.app-meta {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.meta-row:last-child {
  border-bottom: none;
}

.meta-label {
  font-weight: 700;
  color: var(--primary);
}

.meta-value {
  color: var(--text-main);
  font-family: monospace;
}

.description-box {
  background: rgba(15, 23, 42, 0.4);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border-color);
  margin-top: 16px;
}

.lang-tag {
  display: inline-block;
  background: var(--accent-purple);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

@media(max-width: 768px) {
  .container {
    padding: 20px;
  }
  .main-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 30px 20px;
    background-image: linear-gradient(to bottom, rgba(76, 175, 80, 0.92) 0%, rgba(76, 175, 80, 0.75) 100%), url('../assets/images/header.png');
    background-position: center;
    gap: 16px;
  }
  .header-text-content {
    max-width: 100%;
  }
  h1 {
    font-size: 26px;
  }
}
