:root {
  --navy: #2d3147;
  --green: #7ef07a;
  --navy-light: #3a3f5c;
  --text: #e8eaf0;
  --text-muted: #9da3bb;
  --bg: #1e2133;
  --card-bg: #252840;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
header {
  background: var(--navy);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--green);
}

header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

header .logo img {
  height: 48px;
  width: auto;
}

header nav {
  display: flex;
  gap: 1.5rem;
}

header nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

header nav a:hover {
  color: var(--green);
  text-decoration: none;
}

/* Footer */
footer {
  background: var(--navy);
  border-top: 1px solid var(--navy-light);
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--text-muted);
  margin: 0 0.75rem;
}

footer a:hover {
  color: var(--green);
}

/* Main content */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Home hero */
.home-hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.home-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.home-hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 520px;
  margin: 0 auto;
}

/* App grid */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.app-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--navy-light);
  transition: border-color 0.2s, transform 0.2s;
}

.app-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  text-decoration: none;
}

.app-card img {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.app-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.app-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.coming-soon-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.6rem;
  background: var(--navy-light);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 20px;
  border: 1px solid var(--green);
}

/* App page */
.app-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.app-header img.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  flex-shrink: 0;
}

.app-header-text h1 {
  font-size: 2rem;
  font-weight: 800;
}

.app-header-text .subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-top: 0.25rem;
}

.app-store-badge {
  display: inline-block;
  margin-top: 1rem;
}

.app-store-badge img {
  height: 44px;
}

.promo-text {
  background: var(--card-bg);
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.description {
  color: var(--text);
  white-space: pre-line;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* Screenshots */
.screenshots {
  margin-top: 2rem;
}

.screenshots h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

.screenshot-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.screenshot-row img {
  height: 400px;
  width: auto;
  border-radius: 12px;
  border: 1px solid var(--navy-light);
  flex-shrink: 0;
}

/* Page content (privacy, support) */
.page-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.page-content .updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.page-content h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
  color: var(--green);
}

.page-content p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.75;
}

.page-content a {
  color: var(--green);
}

/* Support app list */
.support-apps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.support-app-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card-bg);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--navy-light);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s;
}

.support-app-link:hover {
  border-color: var(--green);
  text-decoration: none;
}

.support-app-link img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .app-header {
    flex-direction: column;
    text-align: center;
  }

  main {
    padding: 2rem 1rem;
  }

  .home-hero h1 {
    font-size: 1.75rem;
  }
}
