/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-dark: #1565C0;
  --blue-mid: #2196F3;
  --blue-light: #64B5F6;
  --blue-pale: #E3F2FD;
  --bg: #F0F4FF;
  --orange: #FF9800;
  --orange-deep: #FF6F00;
  --yellow: #FFCA28;
  --green: #4CAF50;
  --pink: #E91E63;
  --text: #333;
  --text-light: #555;
  --white: #fff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

a { color: var(--blue-dark); text-decoration: none; }
a:hover { color: var(--blue-mid); }

h1, h2, h3 { font-weight: 800; color: var(--blue-dark); }

.container { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* === Header === */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--blue-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo img { border-radius: 8px; }

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-light);
  transition: color 0.2s;
  white-space: nowrap;
}

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

/* Mobile-only short nav labels */
.nav-short { display: none; }

/* === Hero === */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 16px;
}

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

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 24px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.badge-offline { background: #E8F5E9; color: #2E7D32; }
.badge-safe { background: #E3F2FD; color: #1565C0; }
.badge-noads { background: #FCE4EC; color: #C2185B; }
.badge-audio { background: #FFF3E0; color: #E65100; }

/* === Apps Section === */
.apps-section {
  padding: 40px 20px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.apps-section h2, .features-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 32px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

.app-card {
  background: var(--white);
  border: 3px solid var(--card-border, #E3F2FD);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.app-icon { border-radius: 24px; box-shadow: var(--shadow); }

.app-card h3 {
  font-size: 1.5rem;
  color: var(--card-accent, var(--blue-dark));
}

.app-tagline { color: var(--text-light); font-size: 1rem; }

.app-stats {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
}

.app-stats span { white-space: nowrap; }

.store-buttons, .store-buttons-large { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.store-badge { height: 40px; }
.store-badge-lg { height: 50px; }

.coming-soon-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--yellow);
  color: #5D4037;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}

.coming-soon-badge.large { font-size: 1rem; padding: 10px 24px; }

/* === Features Section === */
.features-section {
  padding: 40px 20px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

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

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* === App Detail Page === */
.app-hero {
  padding: 48px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.app-hero-content {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.app-hero-icon {
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

.app-hero-info h1 {
  font-size: 2.2rem;
  margin-bottom: 4px;
}

.app-hero-tagline {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 12px;
}

.app-hero-desc {
  font-size: 1rem;
  margin-bottom: 16px;
}

/* === Screenshots === */
.app-screenshots {
  padding: 20px 20px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.app-screenshots h2 { text-align: center; margin-bottom: 20px; }

.screenshots-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 0 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.screenshots-scroll img {
  height: 480px;
  width: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* === Sections List === */
.app-sections-list {
  padding: 20px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.app-sections-list h2 { text-align: center; margin-bottom: 8px; }

.section-intro {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 24px;
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 12px;
}

.section-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid;
  font-weight: 600;
  font-size: 0.95rem;
}

.section-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* === App Features === */
.app-features {
  padding: 20px 20px 60px;
  max-width: 700px;
  margin: 0 auto;
}

.app-features h2 { text-align: center; margin-bottom: 20px; }

.features-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.features-list li {
  padding: 12px 16px 12px 40px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: relative;
  font-size: 0.95rem;
}

.features-list li::before {
  content: "\2713";
  position: absolute;
  left: 14px;
  color: var(--green);
  font-weight: 800;
}

/* === Page Content (Privacy, Terms) === */
.page-content {
  padding: 48px 20px 60px;
}

.page-content h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-content h2 {
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 8px;
}

.page-content p, .page-content li {
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--text);
}

.page-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-content em { color: var(--text-light); }

/* === Contact Form === */
.contact-page { max-width: 600px; margin: 0 auto; }

.contact-intro {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid var(--blue-pale);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-light);
}

.btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--blue-dark);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover { background: var(--blue-mid); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
}

.form-status.success { background: #E8F5E9; color: #2E7D32; }
.form-status.error { background: #FCE4EC; color: #C2185B; }

.contact-alt {
  text-align: center;
  margin-top: 24px;
  color: var(--text-light);
}

/* === Language Switcher === */
.lang-switcher {
  position: relative;
}

.lang-btn {
  background: var(--blue-pale);
  border: 2px solid var(--blue-light);
  border-radius: 8px;
  padding: 4px 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue-dark);
  cursor: pointer;
  transition: background 0.2s;
}

.lang-btn:hover { background: var(--white); }

.lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 140px;
  z-index: 200;
  overflow: hidden;
}

.lang-switcher.open .lang-dropdown { display: block; }

.lang-dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.15s;
}

.lang-dropdown a:hover { background: var(--blue-pale); }
.lang-dropdown a.active { color: var(--blue-dark); background: var(--blue-pale); }

/* === Footer === */
.site-footer {
  background: var(--white);
  border-top: 2px solid var(--blue-pale);
  padding: 24px 20px;
  margin-top: auto;
}

.footer-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-light);
}

.footer-copy {
  font-size: 0.85rem;
  color: #90A4AE;
}

/* === Responsive: Tablet === */
@media (max-width: 900px) {
  .app-hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .app-hero-icon { width: 140px; height: 140px; }

  .app-hero-info .hero-badges { justify-content: center; }
  .app-hero-info .store-buttons-large { justify-content: center; }
}

/* === Responsive: Mobile === */
@media (max-width: 640px) {
  .nav-logo span { font-size: 0.95rem; }
  .nav-logo img { width: 32px; height: 32px; }

  .nav-links { gap: 12px; }
  .nav-links a { font-size: 0.85rem; }

  /* Show short labels, hide long ones */
  .nav-full { display: none; }
  .nav-short { display: inline; }

  .hero { padding: 40px 16px 28px; }
  .hero-subtitle { font-size: 1rem; }

  .apps-section h2, .features-section h2 { font-size: 1.6rem; }

  .app-hero-icon { width: 110px; height: 110px; }
  .app-hero-info h1 { font-size: 1.8rem; }

  .screenshots-scroll img { height: 360px; }

  .sections-grid { grid-template-columns: 1fr; }

  .coming-soon-badge.large { font-size: 0.85rem; padding: 8px 16px; }

  .contact-form { padding: 20px; }

  .footer-links { gap: 16px; }
  .footer-links a { font-size: 0.8rem; }
}

/* === Responsive: Very small === */
@media (max-width: 380px) {
  .nav-logo span { display: none; }
  .nav-links { gap: 10px; }
  .badge { padding: 5px 10px; font-size: 0.78rem; }
  .screenshots-scroll img { height: 300px; }
}
