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

:root {
  --pink: #FFB6C1;
  --yellow: #FFE66D;
  --blue: #87CEEB;
  --green: #98FB98;
  --orange: #FFD4A3;
  --purple: #D8B4FE;
  --dark: #2D2D2D;
  --white: #FFF;
}

body {
  font-family: Nunito, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3 { font-family: 'Baloo 2', cursive; }

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

footer a {
  color: var(--dark);
  font-weight: 700;
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  background: linear-gradient(135deg, var(--yellow) 0%, var(--pink) 50%, var(--blue) 100%);
  border-bottom: 6px solid var(--dark);
}

.hero-logo {
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark);
}

.hero .tagline {
  font-size: 1.25rem;
  font-weight: 600;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-btn {
  display: inline-block;
  background: var(--dark);
  color: var(--white);
  font-family: 'Baloo 2', cursive;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  border: 4px solid var(--dark);
  transition: background 0.2s, color 0.2s;
}

.cta-btn:hover {
  background: var(--white);
  color: var(--dark);
}

.hero-note {
  font-size: 0.9rem;
  margin-top: 1rem;
  color: var(--dark);
  opacity: 0.8;
}

.hero-note a {
  color: var(--dark);
  font-weight: 700;
}

/* Features */
.features {
  padding: 3rem 0;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

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

.feature-card {
  background: var(--white);
  border: 4px solid var(--dark);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
}

.feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: #555;
}

.feature-card:nth-child(1) { background: var(--yellow); }
.feature-card:nth-child(2) { background: var(--green); }
.feature-card:nth-child(3) { background: var(--blue); }
.feature-card:nth-child(4) { background: var(--pink); }

/* Example */
.example {
  padding: 3rem 0;
  text-align: center;
}

.example h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.example-prompt {
  background: var(--orange);
  border: 4px solid var(--dark);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-style: italic;
  font-weight: 600;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

.example-prompt::before {
  content: '\201C';
  font-size: 1.5rem;
}

.example-prompt::after {
  content: '\201D';
  font-size: 1.5rem;
}

.example-image {
  max-width: 100%;
  height: auto;
  border: 6px solid var(--dark);
  border-radius: 1rem;
}

/* Tutorial */
.tutorial {
  padding: 3rem 0;
}

.tutorial h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.step {
  background: var(--white);
  border: 4px solid var(--dark);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
}

.step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--dark);
  color: var(--white);
  font-family: 'Baloo 2', cursive;
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.step p {
  font-size: 0.9rem;
  color: #555;
}

.step:nth-child(1) { background: var(--purple); }
.step:nth-child(2) { background: var(--yellow); }
.step:nth-child(3) { background: var(--green); }

.tutorial .cta-wrapper {
  text-align: center;
}

/* FAQ */
.faq {
  padding: 3rem 0;
}

.faq h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.faq-item {
  background: var(--white);
  border: 4px solid var(--dark);
  border-radius: 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-item summary {
  font-family: 'Baloo 2', cursive;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1rem 1.5rem;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::before {
  content: '+';
  display: inline-block;
  width: 1.5rem;
  font-weight: 800;
  color: var(--dark);
}

.faq-item[open] summary::before {
  content: '\2212';
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
}

.faq-item a {
  color: var(--dark);
  font-weight: 700;
}

.faq-item:nth-child(2) { background: var(--yellow); }
.faq-item:nth-child(3) { background: var(--green); }
.faq-item:nth-child(4) { background: var(--blue); }
.faq-item:nth-child(5) { background: var(--pink); }
.faq-item:nth-child(6) { background: var(--purple); }

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 4px solid var(--dark);
  font-size: 0.85rem;
  color: #777;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 50%);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--white);
  border: 4px solid var(--dark);
  border-radius: 1rem;
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
  font-weight: 700;
  line-height: 1;
}

.modal h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.modal h3 {
  font-size: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.modal p {
  font-size: 0.85rem;
  color: #555;
}

.modal a {
  color: var(--dark);
  font-weight: 700;
}

/* Responsive */
@media (width <= 600px) {
  .hero h1 { font-size: 2rem; }
  .hero .tagline { font-size: 1.05rem; }
  .features h2, .example h2, .tutorial h2, .faq h2 { font-size: 1.5rem; }
}
