:root {
  --primary-color: #007BFF;
  --primary-dark: #0056b3;
  --dark-color: #1a202c;
  --light-gray: #f7fafc;
  --white: #ffffff;
  --text-color: #4a5568;
  --heading-color: #1a202c;
  --border-color: #e2e8f0;
  --muted-text: #555;
  --footer-text: #a0aec0;
  --modal-bg: #2b2b2b;
  --modal-code: #a9b7c6;
  --modal-border: #3c3f41;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--white);
}
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* --- Sections --- */
.section {
  padding: 80px 20px;
}
.section-dark {
  background-color: var(--dark-color);
  color: var(--light-text);
}
.section-gray {
  background-color: var(--light-gray);
}
.section-heading {
  text-align: center;
  margin-bottom: 60px;
}
.section-heading h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 15px;
}
.section-heading.dark h2 {
  color: var(--white);
}
.section-heading p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  color: #555;
}
.section-heading.dark p {
  color: #a0aec0;
}
.section .container img {
  max-width: 100%;
  height: auto;
  margin: 24px;
}

/* --- Hero --- */
.hero-section {
  padding: 60px 20px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}
.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.2;
}
.hero-text .subheadline {
  font-size: 1.2rem;
  margin: 20px 0;
}
.hero-image-wrapper {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
}
.hero-image-wrapper img {
  border-radius: 15px;
  width: 100%;
  display: block;
}

/* --- Build Anything Section --- */
.build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}
.build-card {
  padding: 20px;
}
.build-card .icon {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}
.build-card h3 {
  font-size: 1.5rem;
  color: var(--heading-color);
  margin-bottom: 10px;
}

/* --- Alternating Features --- */
.alt-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.alt-feature-grid img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.alt-feature-text h3 {
  font-size: 1.8rem;
  color: var(--heading-color);
  margin-bottom: 15px;
}

/* --- App Examples --- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.app-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.app-card-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.app-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.app-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #e2e8f0;
  color: var(--muted-text);
}
.app-card-content {
  padding: 25px;
  color: var(--footer-text);
}
.app-card h3 {
  font-size: 1.2rem;
  color: var(--heading-color);
  margin-bottom: 10px;
  border: 1px solid var(--border-color);
}

/* --- Misc --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.flex-block {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  font-size: 1.25rem;
}
.center-text {
  text-align: center;
}
button {
  margin: 20px 0;
  cursor: pointer;
  background-color: var(--primary-color);
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 1.25rem;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--primary-dark);
}
button a,
button a:hover,
button a:visited {
  color: var(--white);
  text-decoration: none;
}

/* *** NEW STYLE FOR BLUE FAQ LINKS *** */
.faq-container .ac-para a {
  border-bottom: 1px solid var(--border-color);
  text-decoration: underline;
}
.cta-section .section-heading p {
  color: var(--footer-text);
}
.custom-footer {
  background-color: var(--dark-color);
  background-color: var(--modal-bg);
  color: var(--modal-code);
  border: 1px solid var(--modal-border);
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.custom-footer p {
  margin: 20px 0 0 0;
  opacity: 0.7;
}

/* --- Modal Styling --- */
.modal-lg {
  max-width: 800px;
}
#codeModalBody pre {
  background-color: #2b2b2b;
  color: #a9b7c6;
  padding: 20px;
  border-radius: 6px;
  max-height: 60vh;
  overflow-y: auto;
  border: 1px solid #3c3f41;
}
#codeModalBody code {
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
}
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}
