/* Words of Eras — Landing styles
   Theme: Mechanical time travel, Renaissance inspired
   Isolated from project; English default; other languages in /lang/
*/

:root {
  --color-primary: #F5B841;
  --color-primary-dim: rgba(245, 184, 65, 0.15);
  --color-secondary: #0B1F3A;
  --color-bg: #060d18;
  --color-bg-card: rgba(11, 31, 58, 0.6);
  --color-text: #e8e8e8;
  --color-text-muted: #9ca3af;
  --color-border: rgba(245, 184, 65, 0.2);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --container-max: 640px;
  --container-wide: 880px;
  --header-h: 56px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Subtle radial gradient / cosmic background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(11, 31, 58, 0.8), transparent),
              radial-gradient(ellipse 60% 40% at 80% 100%, rgba(245, 184, 65, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

/* Layout */
.site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--color-border);
  background: rgba(6, 13, 24, 0.9);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

.site-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav-links a:hover {
  color: var(--color-primary);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  padding: 8px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px;
    gap: 8px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
  }
}

/* Main */
main {
  flex: 1;
  padding: 2rem 0 3rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 2.5rem 0 3rem;
}

.hero-logo {
  width: 112px;
  height: 112px;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.hero p {
  color: var(--color-text-muted);
  max-width: 400px;
  margin: 0 auto 1.5rem;
  font-size: 0.95rem;
}

/* Store buttons */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.store-btn {
  display: inline-block;
  padding: 0;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.store-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* Same height for both badges, width scales to keep aspect ratio (no deformation) */
.store-btn img {
  display: block;
  height: 50px;
  width: auto;
  object-fit: contain;
  object-position: center;
}

@media (max-width: 380px) {
  .store-btn img {
    height: 43px;
  }
}

/* Hero: no background, no border on the group */
.hero .store-buttons {
  padding: 0;
}

/* Sections */
.section {
  padding: 2rem 0;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  margin: 0 0 1.5rem;
}

/* How it works — 3 steps */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 360px;
  margin: 0 auto;
}

@media (min-width: 520px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
  }
}

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

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary-dim);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--color-text);
}

.step-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Features list */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 400px;
  margin: 0 auto;
}

.features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.features li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.container--wide {
  max-width: var(--container-wide);
}

.section-lead {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  line-height: 1.6;
}

.section-lead strong {
  color: var(--color-text);
  font-weight: 600;
}

.section-lead--muted {
  font-size: 0.875rem;
  opacity: 0.95;
}

/* Educational journey — era cards */
.section--eras {
  border-top: 1px solid var(--color-border);
  background: rgba(11, 31, 58, 0.25);
}

.era-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.75rem 0 1.5rem;
}

@media (min-width: 600px) {
  .era-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.era-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  border-left-width: 4px;
}

.era-card--past {
  border-left-color: #c9a227;
}

.era-card--present {
  border-left-color: #5b9bd5;
}

.era-card--future {
  border-left-color: #9b7ed9;
}

.era-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0.35rem 0 0.5rem;
}

.era-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.55;
}

.era-card p strong {
  color: #c4cdd9;
  font-weight: 600;
}

.era-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-primary-dim);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.edu-disclaimer {
  margin-top: 1.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(245, 184, 65, 0.35);
  background: rgba(245, 184, 65, 0.08);
}

.edu-disclaimer p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.55;
}

.edu-disclaimer strong {
  color: var(--color-text);
}

/* Footer */
.site-footer {
  padding: 2rem 20px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  background: rgba(6, 13, 24, 0.8);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.site-footer .store-buttons {
  margin-top: 1rem;
}

.copyright {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

/* Inner pages (Support, Privacy, Terms) */
.page-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 1.5rem;
}

.content-block {
  margin-bottom: 2rem;
}

.content-block h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}

.content-block p,
.content-block ul {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
}

.content-block ul {
  padding-left: 1.25rem;
}

.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-list li {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.faq-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-list strong {
  color: var(--color-text);
  font-size: 0.9rem;
}

.faq-list p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
}

.contact-email {
  color: var(--color-primary);
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

/* Legal pages */
.legal-content h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 1.5rem 0 0.5rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  margin: 0 0 0.75rem;
}

/* Language switcher (for future use) */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.lang-switcher a {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-decoration: none;
}

.lang-switcher a:hover,
.lang-switcher a[aria-current="true"] {
  color: var(--color-primary);
}
