/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #222; background: #f9fafb; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER / NAV ===== */
header {
  background: #0f172a; color: #fff; padding: 14px 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
header .logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; color: #fff; }
header .logo img { height: 36px; width: 36px; border-radius: 6px; }
nav a { color: #cbd5e1; margin-left: 20px; font-size: .95rem; transition: color .2s; }
nav a:hover, nav a.active { color: #38bdf8; text-decoration: none; }

/* ===== HERO ===== */
.hero {
  text-align: center; padding: 80px 20px 60px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #fff;
}
.hero h1 { font-size: 2.6rem; margin-bottom: 16px; }
.hero p { font-size: 1.15rem; max-width: 640px; margin: 0 auto 30px; color: #cbd5e1; }

/* ===== SECTIONS ===== */
section { padding: 60px 0; }
section:nth-child(even) { background: #fff; }
.section-title { text-align: center; font-size: 1.8rem; margin-bottom: 12px; color: #0f172a; }
.section-subtitle { text-align: center; color: #64748b; max-width: 620px; margin: 0 auto 40px; }

/* ===== CARDS ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; }
.card {
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.08); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.13); }
.card img { width: 100%; aspect-ratio: 9/16; object-fit: cover; background: #e2e8f0; }
.card-body { padding: 20px; }
.card-body h3 { margin-bottom: 6px; }
.card-body p { color: #475569; font-size: .95rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 10px; font-weight: 600;
  font-size: 1rem; border: none; cursor: pointer; transition: background .2s, transform .15s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-green { background: #16a34a; color: #fff; }
.btn-green:hover { background: #15803d; }
.btn-outline { background: transparent; color: #2563eb; border: 2px solid #2563eb; }
.btn-outline:hover { background: #2563eb; color: #fff; }

/* ===== APP PAGE ===== */
.app-hero { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; padding: 60px 0; }
.app-hero .text { flex: 1 1 340px; }
.app-hero .text h1 { font-size: 2.2rem; margin-bottom: 14px; color: #0f172a; }
.app-hero .text p { color: #475569; margin-bottom: 20px; }
.app-hero .logo-box { flex: 0 0 180px; text-align: center; }
.app-hero .logo-box img { width: 160px; height: 160px; border-radius: 28px; box-shadow: 0 6px 20px rgba(0,0,0,.15); }

.screenshot-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; justify-items: center; }
.screenshot-gallery img {
  border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.10);
  max-height: 480px; object-fit: contain; background: #e2e8f0; cursor: pointer;
  transition: transform .25s;
}
.screenshot-gallery img:hover { transform: scale(1.03); }

.features-list { max-width: 720px; margin: 0 auto; }
.features-list .feature {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 28px; padding: 18px 22px; background: #f1f5f9;
  border-radius: 12px;
}
.features-list .feature .icon { font-size: 2rem; flex-shrink: 0; }
.features-list .feature h3 { margin-bottom: 4px; }
.features-list .feature p { color: #475569; font-size: .95rem; }

.store-badge img { height: 56px; }
.store-badge:hover img { opacity: .85; }

/* ===== TERMS PAGE ===== */
.lang-selector { text-align: center; margin-bottom: 30px; }
.lang-selector select {
  padding: 10px 18px; font-size: 1rem; border-radius: 8px;
  border: 2px solid #cbd5e1; background: #fff; cursor: pointer;
}
.terms-content {
  max-width: 820px; margin: 0 auto; background: #fff;
  padding: 36px 32px; border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  white-space: pre-wrap; word-wrap: break-word;
  font-size: .95rem; line-height: 1.75; color: #334155;
}

/* ===== FOOTER ===== */
footer {
  background: #0f172a; color: #94a3b8; text-align: center;
  padding: 32px 20px; font-size: .9rem;
}
footer a { color: #38bdf8; }
footer .footer-links { margin-bottom: 10px; }
footer .footer-links a { margin: 0 12px; }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.85);
  z-index: 9999; justify-content: center; align-items: center; padding: 20px;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 10px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .section-title { font-size: 1.4rem; }
  .app-hero { flex-direction: column-reverse; text-align: center; }
  .app-hero .text h1 { font-size: 1.6rem; }
  .terms-content { padding: 22px 18px; font-size: .9rem; }
  header .container { justify-content: center; text-align: center; }
  nav { width: 100%; text-align: center; margin-top: 8px; }
  nav a { margin: 0 10px; }
}
@media (max-width: 480px) {
  .hero { padding: 50px 16px 40px; }
  .hero h1 { font-size: 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .screenshot-gallery { grid-template-columns: 1fr; }
  .app-hero .logo-box img { width: 120px; height: 120px; }
}
