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

:root {
  --bg: #0a0a0a;
  --bg-light: #141414;
  --red: #cc2200;
  --red-bright: #ff3300;
  --text: #d4d4d4;
  --text-dim: #777;
  --font: 'Courier New', Courier, monospace;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  overflow-x: hidden;
}

img.pixelated { image-rendering: pixelated; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-bright);
  box-shadow: 0 0 20px rgba(255, 51, 0, 0.4);
}

a.btn { text-decoration: none; }

.btn-disabled {
  background: #222;
  color: var(--text-dim);
  cursor: default;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -20%;
  background: url('/assets/ZorroRanch-Wireframe.jpg') center/cover no-repeat;
  z-index: 0;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-logo {
  max-width: 500px;
  width: 80%;
  margin-bottom: 20px;
}

.tagline {
  font-size: 1.4rem;
  color: var(--text-dim);
  margin-bottom: 30px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.platforms {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.platform-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 14px;
  border: 1px solid #333;
  transition: all 0.2s;
}

.platform-link:hover {
  color: var(--red-bright);
  border-color: var(--red);
}

/* ---- Narrative ---- */
.narrative {
  padding: 100px 24px;
  display: flex;
  justify-content: center;
}

.narrative-inner {
  max-width: 700px;
  text-align: center;
}

.narrative-inner p {
  font-size: 1.15rem;
  margin-bottom: 28px;
  line-height: 2;
}

.hook-emphasis {
  color: var(--red-bright);
  font-size: 1.3rem;
  font-style: italic;
}

/* ---- Features ---- */
.features {
  padding: 60px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}

.feature-text h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.feature-text p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
}

.feature-image {
  flex: 0 0 280px;
  text-align: center;
}

.feature-image img {
  max-width: 100%;
  max-height: 280px;
}

/* ---- Characters ---- */
.characters {
  padding: 80px 24px;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #fff;
  margin-bottom: 50px;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.character-card {
  background: var(--bg-light);
  border: 1px solid #222;
  padding: 30px 20px;
  transition: border-color 0.2s;
}

.character-card:hover {
  border-color: var(--red);
}

.character-portrait {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 16px;
}

.character-card h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.blessing-name {
  display: inline-block;
  color: var(--red-bright);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.character-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ---- Newsletter ---- */
.newsletter {
  padding: 80px 24px;
  text-align: center;
}

.newsletter-sub {
  color: var(--text-dim);
  margin-bottom: 30px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 1rem;
  background: var(--bg-light);
  border: 1px solid #333;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--red);
}

.newsletter-msg {
  margin-top: 16px;
  font-size: 0.95rem;
}

.newsletter-msg.success { color: #4caf50; }
.newsletter-msg.error { color: var(--red-bright); }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid #1a1a1a;
  padding: 40px 24px;
  text-align: center;
}

.footer-logo {
  width: 140px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.footer-links {
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 12px;
  transition: color 0.2s;
}

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

.copyright {
  font-size: 0.75rem;
  color: #444;
}


/* ---- Page Header (subpages) ---- */
.page-header {
  padding: 24px;
}

.back-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--red-bright);
}

/* ---- Subpage Content ---- */
.page-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 24px 100px;
  text-align: center;
}

.page-title {
  font-size: 2.4rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #fff;
  margin-bottom: 16px;
}

/* ---- Contact ---- */
.contact-block {
  margin-top: 40px;
}

.contact-block p {
  color: var(--text-dim);
  margin-bottom: 20px;
}

.contact-email {
  display: inline-block;
  color: var(--red-bright);
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 1px;
  padding: 12px 24px;
  border: 1px solid #333;
  transition: all 0.2s;
}

.contact-email:hover {
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(255, 51, 0, 0.15);
}

/* ---- Platform Pages ---- */
.platform-subtitle {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.platform-cta {
  text-decoration: none;
}

.platform-details {
  margin-top: 60px;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.platform-highlight {
  padding: 24px;
  border: 1px solid #1a1a1a;
  background: var(--bg-light);
}

.platform-highlight h3 {
  font-size: 1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.platform-highlight p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .platform-details {
    grid-template-columns: 1fr;
  }
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .feature-image { flex: none; }

  .character-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .hero-logo { max-width: 300px; }
  .tagline { font-size: 1rem; }

  /* disable parallax on mobile */
  .hero-bg { position: absolute; inset: 0; }
}
