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

html {
  background: #000;
  color: #fff;
  font-family: "Inter", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Nav */
.nav {
  padding: 18px 24px;
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
  border-bottom: 1px solid #111;
}

.back-link {
  color: #777;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.back-link:hover { color: #fff; }

/* Hero */
main {
  flex: 1;
  padding-bottom: 60px;
}

.app-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 36px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.hero-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  margin-bottom: 20px;
}

.hero-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-desc {
  color: #777;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  font-family: "Inter", sans-serif;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.store-btn:hover {
  border-color: #555;
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.07);
  transform: scale(1.02);
}

.apple-logo {
  fill: #fff;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.store-btn-sub {
  font-size: 0.62rem;
  color: #888;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.store-btn-main {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.website-link {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: #777;
  text-decoration: none;
  transition: color 0.2s;
}

.website-link:hover { color: #fff; }

/* Meta chips */
.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.chip {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
}

.chip-platform {
  background: #1a1a1a;
  color: #aaa;
  border: 1px solid #2a2a2a;
}

.chip-lang {
  background: transparent;
  color: #666;
  border: 1px solid #2a2a2a;
}

/* Screenshots */
.screenshots-section {
  max-width: 940px;
  margin: 8px auto 0;
  padding: 0 24px;
}

.platform-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.tab {
  background: #1a1a1a;
  border: none;
  color: #777;
  padding: 6px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
}

.tab.active {
  background: #fff;
  color: #000;
}

.screenshots-wrap { display: none; }
.screenshots-wrap.active { display: block; }

.screenshots-scroll {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 14px;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}

.screenshots-scroll::-webkit-scrollbar { height: 4px; }
.screenshots-scroll::-webkit-scrollbar-track { background: transparent; }
.screenshots-scroll::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

.screenshots-scroll img {
  scroll-snap-align: start;
  max-height: 400px;
  width: auto;
  border-radius: 10px;
  flex-shrink: 0;
}

/* Footer */
.bottom-icons {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 24px 0 28px;
  border-top: 1px solid #111;
}

.bottom-icon {
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}

.bottom-icon:hover { color: #fff; }

/* Responsive */
@media (max-width: 600px) {
  .hero-name { font-size: 1.6rem; }
  .screenshots-scroll img { max-height: 300px; }
}
