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

:root {
  --bg: #0d0d0d;
  --surface: #1a1a1a;
  --surface2: #242424;
  --gold: #F5C518;
  --gold-hover: #ffd84d;
  --gold-dim: rgba(245, 197, 24, 0.15);
  --text: #f0ede6;
  --text-muted: #a8a49c;
  --border: #2a2a2a;
  --radius: 10px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ============ Layout ============ */

.page-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ============ Header ============ */

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
}

.site-header-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  text-decoration: none;
}

.site-logo:hover { color: var(--gold-hover); text-decoration: none; }

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.site-nav a {
  color: var(--text-muted);
  transition: color 0.15s;
}

.site-nav a:hover { color: var(--text); text-decoration: none; }

/* ============ Hero ============ */

.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}

.hero-sun {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

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

.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 1rem;
}

.hero-mission {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============ App Cards ============ */

.apps-section {
  margin-top: 3rem;
}

.apps-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-weight: 500;
}

.app-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.app-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.app-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.app-card h3 a { color: var(--text); }
.app-card h3 a:hover { color: var(--gold); text-decoration: none; }

.app-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 1rem;
}

.app-card-features {
  list-style: none;
  margin-bottom: 1.25rem;
}

.app-card-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.2rem 0;
}

.app-card-features li::before {
  content: "\2726";
  color: var(--gold);
  margin-right: 0.5rem;
}

.app-card-link {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--gold-dim);
  color: var(--gold);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s;
  align-self: flex-start;
}

.app-card-link:hover {
  background: rgba(245, 197, 24, 0.25);
  text-decoration: none;
}

.app-card-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-card-link-subtle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.app-card-link-subtle:hover {
  color: var(--text);
}

/* ============ App Detail Page ============ */

.app-detail {
  padding-top: 2rem;
}

.app-detail-header {
  margin-bottom: 2rem;
}

.app-detail-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.app-detail-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.app-detail-header .app-tagline {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.app-detail section {
  margin-bottom: 2rem;
}

.app-detail h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--gold);
}

.app-detail ul {
  list-style: none;
  padding: 0;
}

.app-detail ul li {
  padding: 0.3rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.app-detail ul li::before {
  content: "\2726";
  color: var(--gold);
  margin-right: 0.6rem;
}

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

.btn-visit {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: var(--gold);
  color: #0d0d0d;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.15s;
}

.btn-visit:hover {
  background: var(--gold-hover);
  text-decoration: none;
}

/* ============ Legal Pages ============ */

.legal-page {
  padding-top: 1rem;
}

.legal-page h1 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.legal-page h3 {
  font-size: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

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

.legal-page ul {
  color: var(--text-muted);
  margin-left: 1.25rem;
  margin-bottom: 0.75rem;
}

.legal-page ul li {
  margin-bottom: 0.4rem;
}

.legal-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* ============ Footer ============ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.site-footer-links a {
  color: var(--text-muted);
}

.site-footer-links a:hover { color: var(--text); }

/* ============ Responsive ============ */

@media (max-width: 600px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-sun { font-size: 2.5rem; }
  .page-wrap { padding: 1.5rem 1rem 3rem; }
  .app-cards { grid-template-columns: 1fr; }
  .site-nav { gap: 1rem; }
}
