/* style.css */
:root {
  --green: #1F8F2E;
  --green-dark: #166922;
  --bg: #0f0f0f;
  --bg-card: #1a1a1a;
  --bg-tinted: #0a1a0a;
  --bg-card-hover: #1a2a1a;
  --text: #f2f2f2;
  --text-muted: #888;
  --border: #2c2c2c;
  --radius: 18px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, 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 ---- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.site-header .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.site-header .logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.logo-fallback {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

/* ---- HERO ---- */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  background: linear-gradient(180deg, var(--bg-tinted) 0%, var(--bg) 100%);
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero h1 span { color: var(--green); }

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.store-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-store:hover {
  border-color: var(--green);
  background: var(--bg-card-hover);
  text-decoration: none;
}

.btn-store svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ---- ABOUT ---- */
.about {
  max-width: 680px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
  text-align: center;
}

.about h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ---- FEATURES ---- */
.features {
  background: var(--bg-card);
  padding: 4.5rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.features h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.2s;
}

.feature-card:hover { border-color: var(--green); }

.feature-icon {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  color: var(--green);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---- SCREENSHOTS ---- */
.screenshots {
  padding: 4.5rem 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.screenshots h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.screens-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-start;
}

.screen-frame {
  width: 220px;
  border-radius: 28px;
  overflow: hidden;
  border: 6px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  background: var(--bg-card);
  flex-shrink: 0;
}

.screen-frame img {
  width: 100%;
  display: block;
  min-height: 440px;
  object-fit: cover;
  background: linear-gradient(160deg, var(--bg-card-hover), #0a120a);
}

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

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

/* ---- LEGAL PAGES ---- */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.legal-date {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
  display: block;
}

.legal-page h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.legal-page h2:first-of-type { border-top: none; }

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

.legal-page ul {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal-page li {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.3rem;
}

.legal-page strong { color: var(--text); }

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .site-header { padding: 0.875rem 1rem; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .about { padding: 3rem 1rem; }
  .features { padding: 3rem 1rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshots { padding: 3rem 1rem; }
  .screens-row { gap: 0.875rem; }
  .screen-frame { width: 155px; border-width: 4px; border-radius: 22px; }
  .screen-frame img { min-height: 310px; }
  .legal-page { padding: 2rem 1rem 4rem; }
}
