:root {
  color-scheme: only light;
  --bg: #f4fdf7;
  --bg-secondary: #e8f7ef;
  --surface: #ffffff;
  --primary: #16a34a;
  --primary-dark: #15803d;
  --secondary: #86efac;
  --accent: #34d399;
  --accent-dark: #059669;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border: rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 25px 60px rgba(16, 185, 129, 0.22);
  --shadow-md: 0 18px 40px rgba(16, 185, 129, 0.16);
  --shadow-soft: 0 12px 26px rgba(15, 23, 42, 0.12);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 18px;
  font-family: "Nunito", "Baloo 2", "Noto Sans SC", "PingFang SC", sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 16px 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 40%, #f0fdfa 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto;
  height: 380px;
  background: none;
  opacity: 0;
  pointer-events: none;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 2;
  margin-bottom: 8px;
}

.logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  border: none;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--primary);
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.cta-link {
  padding: 0.7rem 1.6rem;
  background: var(--secondary);
  color: var(--text-main);
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.22);
  transition: transform 0.2s ease;
}

.cta-link:hover {
  transform: translateY(-2px);
}

.hero-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 28px;
  padding-top: 28px;
  z-index: 2;
}

.hero-generator {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.generator-intro h1 {
  margin: 4px 0 8px;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.15;
}

.generator-intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 520px;
}

.bubble-tag {
  width: fit-content;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.22);
  border: 1.5px dashed rgba(5, 150, 105, 0.6);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-dark);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0;
  line-height: 1.15;
}

.hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 60px rgba(80, 48, 190, 0.35);
}

.btn.secondary {
  background: linear-gradient(140deg, #bbf7d0 0%, #86efac 100%);
  color: var(--text-main);
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.28);
}

.btn.secondary:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  background: #ffffff;
  color: var(--primary);
  border: 2px solid rgba(22, 163, 74, 0.15);
  box-shadow: var(--shadow-soft);
}

.btn.ghost:hover {
  transform: translateY(-2px);
}

.btn.tiny {
  padding: 8px 16px;
  font-size: 0.9rem;
  background: rgba(22, 163, 74, 0.1);
  color: var(--primary);
  border: 1px solid rgba(22, 163, 74, 0.28);
  border-radius: 16px;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none !important;
  box-shadow: none !important;
}

.hero-stats {
  display: grid;
  gap: 16px;
}

.hero-stats dt {
  font-weight: 800;
  font-size: 1.1rem;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 140px;
  background: url("data:image/svg+xml,%3Csvg width='1440' height='320' viewBox='0 0 1440 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ecfdf5' fill-opacity='1' d='M0,224L60,208C120,192,240,160,360,138.7C480,117,600,107,720,101.3C840,96,960,96,1080,117.3C1200,139,1320,181,1380,202.7L1440,224L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
}

.section {
  padding: clamp(56px, 9vw, 96px) clamp(20px, 8vw, 96px);
}

.section-header {
  max-width: 660px;
  margin-bottom: 32px;
}

.about {
  background: #ffffff;
}

.about-content {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.generator-section {
  background: var(--bg-secondary);
  position: relative;
}

.generator-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.generator {
  position: relative;
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  align-items: start;
  z-index: 1;
}

.generator-form,
.generator-output {
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-md);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(22, 163, 74, 0.12);
  min-height: auto;
}

.generator-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.generator-form input,
.generator-form textarea,
.signup-form input,
.signup-form select {
  width: 100%;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  background: #f0fdf4;
  color: var(--text-main);
  font-size: 0.9rem;
  box-shadow: inset 0 0 0 1.5px rgba(22, 163, 74, 0.14);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.generator-form textarea {
  resize: vertical;
  min-height: 60px;
}

.generator-form input:focus,
.generator-form textarea:focus,
.signup-form input:focus,
.signup-form select:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(22, 163, 74, 0.45);
  transform: translateY(-1px);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.generator-output {
  position: relative;
  overflow: hidden;
}

.output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.output-header h3 {
  margin: 0;
  font-size: 1rem;
}

.prompt-result {
  margin: 0;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: #ecfdf5;
  min-height: 420px;
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-main);
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.18);
  width: 100%;
  border: 2px solid rgba(22, 163, 74, 0.28);
  font-family: inherit;
  resize: vertical;
  transition: box-shadow 0.2s ease;
}

.prompt-result:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.25), inset 0 0 0 2px rgba(22, 163, 74, 0.35);
}

.prompt-result.loading {
  opacity: 0.75;
  font-style: italic;
}

.prompt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.prompt-tags span {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.2);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.75rem;
}

.hint {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.progress-container {
  margin-bottom: 16px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(22, 163, 74, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 999px;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.4);
}

.progress-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
}

.features {
  background: #ffffff;
}

.feature-grid {
  display: grid;
  margin-top: 40px;
  gap: clamp(20px, 3vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
  position: relative;
  padding: clamp(22px, 4vw, 32px);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(52, 211, 153, 0.18), rgba(255, 255, 255, 0.92));
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(52, 211, 153, 0.22);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-card:nth-child(2n) {
  background: linear-gradient(160deg, rgba(22, 163, 74, 0.18), rgba(255, 255, 255, 0.92));
  border-color: rgba(22, 163, 74, 0.18);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(31, 17, 71, 0.12);
}

.card-icon.sparkle {
  background: linear-gradient(160deg, #ffe38b, #ff9bd3);
}

.card-icon.stack {
  background: linear-gradient(160deg, #d5d1ff, #a18cff);
}

.card-icon.team {
  background: linear-gradient(160deg, #ffcabb, #ff7a59);
}

.card-icon.shield {
  background: linear-gradient(160deg, #ccf0ff, #64b5ff);
}

.workflow {
  background: var(--bg);
}

.workflow-list {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.workflow-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 26px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(99, 72, 255, 0.1);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(22, 163, 74, 0.16), rgba(52, 211, 153, 0.28));
  font-weight: 800;
}

.stories {
  background: var(--bg-secondary);
  position: relative;
}

.stories::after {
  content: "";
  position: absolute;
  inset: 0;
  background: none;
  pointer-events: none;
}

.stories-hero-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
}

.stories-header {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.story-cards {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(20px, 3vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 40px;
}

.story-card {
  padding: clamp(22px, 4vw, 32px);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(255, 196, 71, 0.22);
  min-height: 220px;
}

.story-card:nth-child(2) {
  border-color: rgba(99, 72, 255, 0.18);
}

.story-card h3 {
  margin: 0 0 12px;
}

.story-card p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.story-author {
  font-weight: 700;
  color: var(--primary);
}

.cta {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.85), rgba(134, 239, 172, 0.9));
  color: var(--text-main);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: clamp(24px, 4vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.cta-content h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.cta-content p {
  margin: 0;
  font-size: 1.05rem;
}

.signup-form {
  display: grid;
  gap: 18px;
  background: rgba(255, 255, 255, 0.82);
  padding: clamp(22px, 4vw, 32px);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 40px rgba(31, 17, 71, 0.15);
}

.signup-form label {
  font-weight: 700;
  color: var(--text-main);
}

.signup-form button {
  margin-top: 8px;
}

.disclaimer {
  font-size: 0.85rem;
  color: rgba(31, 17, 71, 0.7);
}

.footer {
  padding: clamp(48px, 8vw, 72px) clamp(20px, 8vw, 96px) clamp(28px, 6vw, 48px);
  background: #064e3b;
  color: rgba(255, 255, 255, 0.86);
  display: grid;
  gap: 32px;
}

.footer-brand p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.footer-links h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.footer-links a {
  display: inline-block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-extra {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
}

.social {
  display: flex;
  gap: 14px;
}

.bubble-trail {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 196, 71, 0.2) 0%, transparent 60%) 0 0 / 20% 20% repeat;
  opacity: 0;
  transition: opacity 0.4s ease;
  mix-blend-mode: screen;
}

.bubble-trail.active {
  animation: bubble 1.2s ease forwards;
}

@keyframes bubble {
  0% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    right: 20px;
    flex-direction: column;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    border: 1.5px solid rgba(99, 72, 255, 0.12);
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .cta-link {
    display: none;
  }

  .generator {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  }
}

@media (max-width: 720px) {
  .hero-body {
    padding-top: 36px;
  }

  .generator-intro h1 {
    font-size: 2.2rem;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .cta {
    grid-template-columns: 1fr;
  }
}

/* Minimal theme overrides: simplify layout and visuals */
.hero-wave,
.bubble-trail,
#features,
#workflow,
#stories {
  display: none !important;
}

.nav-links,
.cta-link {
  display: none !important;
}

.hero-body {
  gap: 28px;
  padding-top: 28px;
}

.generator {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 16px !important;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .generator { grid-template-columns: 1fr 1fr; }
}

/* Make panels fill columns fully */
.generator-form,
.generator-output {
  width: 100% !important;
}

.generator-form,
.generator-output {
  box-shadow: none !important;
  border: 1px solid rgba(22, 163, 74, 0.16) !important;
  padding: 16px !important;
}

.btn {
  box-shadow: none !important;
}

.feature-grid,
.workflow-list,
.story-cards,
.footer-links,
.hero-stats {
  display: none !important;
}

.footer {
  background: #ffffff !important;
  color: #0f172a !important;
  border-top: 1px solid rgba(15,23,42,0.08);
}

.footer-brand p {
  color: #475569 !important;
}

.section {
  padding: 40px 20px !important;
}

.generator-intro p {
  color: #475569 !important;
}

.prompt-tags { display: none !important; }

/* Typography simplification: reduce size variants */
h1, h2, h3 {
  font-size: 1.25rem !important;
  line-height: 1.35 !important;
}

.generator-intro h1 {
  font-size: 1.35rem !important;
}

.output-header h3 {
  font-size: 1rem !important;
}

label, .hint, .progress-text, .btn {
  font-size: 0.95rem !important;
}

/* Keep intro hidden but show concise labels */
.generator-intro { display: none !important; }
.generator-form label {
  color: var(--text-muted) !important;
  font-weight: 700 !important;
  display: grid !important;
  gap: 6px !important;
  margin-bottom: 8px !important;
}
.generator-form label input,
.generator-form label textarea {
  color: var(--text-main);
}

/* Compact controls */
.form-actions { margin-top: 8px !important; gap: 10px !important; }
.btn { padding: 8px 14px !important; border-radius: 10px !important; }

/* Keep headers minimal in output */
.output-header h3 { font-weight: 700; }

/* Final unification: single font size across all common elements */
body, h1, h2, h3, p, label, small,
.btn, .output-header h3, .hint, .progress-text,
.nav .logo, .nav-links a {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

/* Larger font for input/output areas */
input, textarea, select, .prompt-result {
  font-size: 16px !important;
  line-height: 1.6 !important;
}

/* Site footer styling */
.site-footer {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-top: 1px solid rgba(22, 163, 74, 0.12);
  padding: 48px 20px 32px;
  margin-top: 40px;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-content h2 {
  font-size: 2rem !important;
  color: var(--primary);
  margin-bottom: 32px;
  text-align: center;
  font-weight: 700;
}

.faq-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.faq-item {
  background: white;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(22, 163, 74, 0.12);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.faq-item h3 {
  font-size: 1.3rem !important;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 700;
}

.faq-item p {
  font-size: 15px !important;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.faq-item ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.faq-item li {
  padding: 8px 0 8px 20px;
  font-size: 15px !important;
  color: var(--text-muted);
  line-height: 1.6;
  position: relative;
}

.faq-item li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .comparison {
    grid-template-columns: 1fr 2fr;
  }
}

.comparison-col {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.comparison-col h4 {
  font-size: 1.1rem !important;
  margin-bottom: 8px;
  color: var(--text-main);
}

.example-text {
  font-size: 14px !important;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}

.footer-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(22, 163, 74, 0.08);
}

.footer-note a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-note a:hover {
  text-decoration: underline;
}

/* Ensure textarea matches input typography and spacing */
.generator-form input,
.generator-form textarea {
  font-family: inherit !important;
  font-weight: 400 !important;
  padding: 10px 14px !important;
}

/* Consistent placeholder appearance */
input::placeholder,
textarea::placeholder {
  color: #94a3b8 !important; /* slate-400 */
  opacity: 1 !important;
}

