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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #f2f0ed;
  color: #2a2a2a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* === Header === */
header {
  text-align: center;
  padding: 3rem 1.5rem 1.5rem;
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.title {
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 400;
  line-height: 1.2;
  margin-top: 0.75rem;
  color: #2a2a2a;
  letter-spacing: 0.02em;
}

.subtitle {
  margin-top: 0.4rem;
  font-size: clamp(0.85rem, 3vw, 1.05rem);
  color: #6b7264;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coming-soon {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.5rem 1.5rem;
  border: 2px solid #5a6e42;
  border-radius: 2rem;
  color: #5a6e42;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* === Tabs === */
.tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 1.5rem auto 0;
  max-width: 400px;
  border-bottom: 2px solid #d8d4cf;
}

.tab {
  background: none;
  border: none;
  color: #999;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
}

.tab:hover {
  color: #555;
}

.tab.active {
  color: #5a6e42;
  border-bottom-color: #5a6e42;
}

/* === Tab Content === */
.tab-content {
  display: none;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  flex: 1;
}

.tab-content.active {
  display: block;
}

/* === Section Headings === */
.features h2,
.coming-soon-section h2,
.screenshots h2,
.privacy h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #2a2a2a;
}

/* === Feature Grid === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: #fff;
  border: 1px solid #e0ddd8;
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: #b0bf9a;
  box-shadow: 0 2px 12px rgba(90, 110, 66, 0.08);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #3d4f2c;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #666;
}

.feature-card.upcoming {
  border-color: #b0bf9a;
  border-style: dashed;
}

/* === Coming Soon Section === */
.coming-soon-section {
  margin-top: 2rem;
}

/* === Screenshots === */
.screenshots {
  margin-bottom: 1rem;
}

.screenshot-gallery {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

.screenshot-gallery img {
  flex: 0 0 auto;
  width: 220px;
  border-radius: 16px;
  border: 1px solid #d8d4cf;
  scroll-snap-align: start;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* === Privacy Policy === */
.privacy h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3d4f2c;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.privacy p {
  font-size: 0.925rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 0.75rem;
}

.privacy-updated {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 1rem;
}

.privacy a {
  color: #5a6e42;
  text-decoration: none;
  transition: color 0.2s;
}

.privacy a:hover {
  color: #3d4f2c;
}

/* === Footer === */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid #d8d4cf;
}

footer .contact a {
  color: #5a6e42;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

footer .contact a:hover {
  color: #3d4f2c;
}

footer .copyright {
  font-size: 0.8rem;
  color: #aaa;
}

/* === Scrollbar (WebKit) === */
.screenshot-gallery::-webkit-scrollbar {
  height: 6px;
}

.screenshot-gallery::-webkit-scrollbar-track {
  background: #e8e5e0;
  border-radius: 3px;
}

.screenshot-gallery::-webkit-scrollbar-thumb {
  background: #5a6e42;
  border-radius: 3px;
}

/* === Responsive === */
@media (max-width: 600px) {
  header {
    padding: 2rem 1rem 1rem;
  }

  .tab-content {
    padding: 1.5rem 1rem;
  }

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

  .screenshot-gallery img {
    width: 180px;
  }

  .privacy p,
  .privacy h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}
