@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&display=swap');

:root {
  --wrap: min(860px, 92%);
  --radius: 18px;
  --pad: clamp(12px, 2vw, 24px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: 'Quicksand', system-ui, -apple-system, sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #f97316, #ec4899, #7c3aed);
  background-size: 400% 400%;
  animation: bg 18s ease infinite;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

@keyframes bg {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: linear-gradient(135deg, rgba(255,255,255,.09), rgba(0,0,0,.22));
  border-bottom: 1px solid rgba(255,255,255,.18);
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}

.navwrap {
  width: var(--wrap);
  margin: 0 auto;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--pad);
}

.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

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

.nav-links a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.15s;
}

.nav-links a:hover {
  background: rgba(255,255,255,.16);
  color: #fff;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 5px;
}

.lang-selector a img {
  width: 22px;
  height: auto;
  border-radius: 3px;
  opacity: 0.6;
  transition: transform 0.18s, opacity 0.18s;
  display: block;
}

.lang-selector a:hover img {
  transform: scale(1.2);
  opacity: 1;
}

/* ── Main layout ── */
.wrap {
  width: var(--wrap);
  margin: 0 auto;
  padding: 26px var(--pad) 44px;
}

/* ── Panels ── */
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(0,0,0,.10));
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  padding: 28px;
}

.mt { margin-top: 22px; }

/* ── Hero panel ── */
.hero {
  text-align: center;
}

.hero .app-icon {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(26px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero .subtitle {
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  color: rgba(255,255,255,.88);
  max-width: 580px;
  margin: 0 auto 22px;
  line-height: 1.65;
}

.appstore-btn {
  display: inline-block;
}

.appstore-btn img {
  height: 48px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.25));
  transition: transform 0.2s;
}

.appstore-btn:hover img {
  transform: scale(1.05);
}

/* ── Content sections ── */
.content-section {
  margin-top: 22px;
}

h2 {
  font-size: clamp(0.98rem, 2vw, 1.15rem);
  font-weight: 700;
  margin-bottom: 10px;
  color: rgba(255,255,255,.96);
  letter-spacing: 0.01em;
}

h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 20px 0 6px;
  color: rgba(255,255,255,.95);
}

h3:first-child { margin-top: 0; }

.panel > p,
.panel .content-section > p {
  line-height: 1.65;
  color: rgba(255,255,255,.9);
  margin-bottom: 10px;
}

.panel > p:last-child { margin-bottom: 0; }

ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

ul li {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 10px 14px;
  line-height: 1.55;
  color: rgba(255,255,255,.9);
}

blockquote {
  margin-top: 22px;
  border-left: 3px solid rgba(255,255,255,.35);
  padding: 12px 18px;
  font-style: italic;
  color: rgba(255,255,255,.85);
  line-height: 1.65;
  font-size: 1.02rem;
  background: rgba(255,255,255,.05);
  border-radius: 0 10px 10px 0;
}

/* ── App cards ── */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.card { text-decoration: none; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(0,0,0,.14)); border: 1px solid rgba(255,255,255,.22); box-shadow: 0 10px 28px rgba(0,0,0,.28); transition: transform .22s ease, box-shadow .22s ease; display: grid; grid-template-rows: 160px auto; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(0,0,0,.34); }
.card img.app { width: 100%; height: 100%; object-fit: contain; padding: 16px; background: rgba(255,255,255,.06); }
.caption { background: rgba(255,255,255,.96); color: #222; text-align: center; padding: 12px 14px; font-size: 1rem; font-weight: 600; }

/* ── Footer ── */
footer {
  padding: 14px var(--pad);
  text-align: center;
  color: rgba(255,255,255,.75);
  border-top: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.14));
  font-size: 0.86rem;
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
}

footer a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
}

footer a:hover { text-decoration: underline; }

.footer-sep {
  margin: 0 7px;
  opacity: 0.35;
}

/* ── Accessibility ── */
@media (prefers-reduced-motion: reduce) {
  body { animation: none !important; }
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .wrap { width: 100%; padding: 14px 12px 30px; }
  .panel { padding: 16px; }
  .navwrap { padding: 8px 12px; gap: 6px; }
  .nav-links a { padding: 5px 8px; font-size: 0.84rem; }
  .lang-selector { gap: 4px; }
  .lang-selector a img { width: 20px; }
  .hero .app-icon { width: 72px; height: 72px; border-radius: 16px; margin-bottom: 12px; }
  .hero .subtitle { font-size: 0.95rem; }
  .appstore-btn img { height: 42px; }
}
