/* ========================================= */
/* Reset & Defaults                          */
/* ========================================= */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: #aaa;
   transition: color 0.2s ease;
}
a:hover {
  color: #fff;
}

/* ========================================= */
/* Navbar (Consistent Across Pages)          */
/* ========================================= */
.navbar {
  position: sticky;
  top: 0;
  background: #111;
  padding: 16px 32px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #222;
}
.navbar nav a {
  margin: 0 20px;
  font-weight: 500;
  font-size: 0.95rem;
  color: #aaa;
}
.navbar nav a:hover {
    color: #fff;
}

/* ========================================= */
/* Index Page Specific Content Area          */
/* ========================================= */
.index-content {
    padding: 4em 2em 2em 2em; /* Keep top/side padding, bottom padding adjusted */
    /* Use Flexbox to center the .intro-block */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically (optional, needs height) */
    min-height: 30vh; /* Give some height for vertical centering */
    background-color: #000;
    /* border: 1px dashed lime; */ /* DEBUG BORDER */
}

/* Wrapper for intro content */
.intro-block {
    text-align: center; /* Center text within this block */
    max-width: 650px; /* Limit width */
    width: 100%; /* Take available width */
    /* border: 1px dashed red; */ /* DEBUG BORDER */
}


/* Style for the H1 inside intro block */
.intro-block h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #fff;
    margin-top: 0;
    margin-bottom: 0.3em;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -1px;
    /* border: 1px dashed cyan; */ /* DEBUG BORDER */
}

/* Style for the paragraph below H1 */
.page-subheading {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    color: #d0d0d0;
    margin-top: 0;
    margin-bottom: 1.8em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    /* border: 1px dashed yellow; */ /* DEBUG BORDER */
}

.cta-wrapper {
  margin-top: 20px;
  /* border: 1px dashed magenta; */ /* DEBUG BORDER */
}

/* Index Page CTA Button */
.cta.index-cta {
  display: inline-block;
  background-color: #000000;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 8px;
  padding: 10px 25px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  box-shadow: none;
  cursor: pointer;
}

.cta.index-cta:hover {
  background-color: #1a1a1a;
  border-color: #cccccc;
  color: #ffffff;
  transform: translateY(-2px);
  text-decoration: none;
}


/* ========================================= */
/* Features Section (Refined to match image) */
/* ========================================= */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 4em 2em 4em 2em; /* Added consistent vertical padding */
  background: #000;
  gap: 3em;
  max-width: 1100px;
  margin: 0 auto; /* Center the section block */
  margin-top: 4em; /* <<< EXPLICIT GAP ADDED HERE */
}
.feature {
  flex: 1 1 280px;
  max-width: 300px;
  text-align: center;
  background-color: transparent;
  padding: 0 1em;
  border: none;
  border-radius: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.feature:hover {
    transform: translateY(0);
    box-shadow: none;
}
.feature.show {
  opacity: 1;
  transform: translateY(0);
}
.feature img {
  max-width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  margin-bottom: 1.5em;
  display: inline-block;
  border-radius: 8px;
}
.feature h2 {
  margin-top: 0;
  margin-bottom: 0.6em;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
}
.feature p {
  color: #aaa;
  font-size: 0.9rem;
   line-height: 1.5;
   max-width: 250px;
   margin-left: auto;
   margin-right: auto;
}
/* Animation Delays */
.feature:nth-child(1) { transition-delay: 0.1s; }
.feature:nth-child(2) { transition-delay: 0.2s; }
.feature:nth-child(3) { transition-delay: 0.3s; }

/* ========================================= */
/* Content Pages (Terms, Privacy, Contact)   */
/* Styles REQUIRED for other views           */
/* ========================================= */
.hero.terms-page {
  display: block; position: static; min-height: auto;
  background-image: none; background-color: #0a0a0a;
  max-width: 800px; margin: 3em auto; padding: 2em 3em;
  border: 1px solid #222; border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5); text-align: left;
}
.terms-page h1 {
  font-size: 2.4em; font-weight: 600; text-align: left;
  margin-bottom: 0.2em; color: #fff;
}
.last-updated {
  text-align: left; color: #888; font-size: 0.9em;
  margin-bottom: 2.5em; margin-top: 0;
}
.terms-content h2 {
  font-size: 1.6em; font-weight: 600; margin-top: 2.5em; margin-bottom: 1em;
  padding-bottom: 0.4em; border-bottom: 1px solid #444; color: #eee; text-align: left;
}
.terms-content h3 {
  font-size: 1.2em; font-weight: 600; margin-top: 1.8em; margin-bottom: 0.8em;
  color: #ddd; text-align: left;
}
.terms-content p, .terms-content li {
  font-size: 0.95rem; margin-bottom: 1.2em; color: #ccc; text-align: left;
}
.terms-content ul, .terms-content ol {
  margin-left: 0; padding-left: 1.8em; margin-bottom: 1.2em; text-align: left;
}
.terms-content li { margin-bottom: 0.6em; }
.terms-content a { color: #aaccff; text-decoration: none; }
.terms-content a:hover { color: #fff; text-decoration: underline; }
/* TOC */
.toc {
  margin-top: 2.5em; margin-bottom: 3.5em; padding: 1.5em 2em;
  background-color: #1a1a1a; border: 1px solid #333; border-radius: 5px; text-align: left;
}
.toc h2 { border-bottom: none; margin-top: 0; margin-bottom: 1em; text-align: left; font-size: 1.3em; }
.toc ul { list-style: none; padding: 0; margin: 0; text-align: left; }
.toc li { margin-bottom: 0.6em; font-size: 0.95em; }
.toc a { color: #aaccff; text-decoration: none; }
.toc a:hover, .toc a:focus { color: #fff; text-decoration: underline; }
/* Placeholders */
.placeholder-text {
  font-style: italic; color: #ffcc00; background-color: rgba(255, 204, 0, 0.1);
  padding: 0.2em 0.4em; border-radius: 3px; display: inline;
}
/* Privacy */
.summary-points ul { list-style-type: disc; padding-left: 2em; }
.summary-points li { margin-bottom: 0.8em; }
/* Contact */
.contact-info p { margin-bottom: 0.5em; }


/* ========================================= */
/* Footer (Consistent Across Pages)          */
/* ========================================= */
footer {
  background: #111;
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  color: #888;
  border-top: 1px solid #2c2c2e;
  margin-top: 3em;
}

/* ========================================= */
/* Responsive adjustments                    */
/* ========================================= */
@media (max-width: 768px) {
  .index-content h1 { font-size: 2.0rem; } /* Adjust H1 size further */
  .page-subheading { font-size: 1.0rem; }
  .features { flex-direction: column; align-items: center; padding: 2em 1em 3em 1em; gap: 2.5em; margin-top: 2em;}
  .feature { min-width: 80%; max-width: 350px; flex-basis: auto; }
  .hero.terms-page { padding: 1.5em; margin: 2em auto; }
  .terms-page h1 { font-size: 2em; }
  .terms-content h2 { font-size: 1.4em; }
  .navbar { padding: 12px 16px; }
  .navbar nav a { margin: 0 10px; }
}
