:root {
  --green-900: #123524;
  --green-700: #216241;
  --green-500: #39a36a;
  --gold: #f4b942;
  --cream: #f8f4e9;
  --white: #ffffff;
  --ink: #1f2933;
  --muted: #5f6c7b;
  --shadow: 0 24px 60px rgba(18, 53, 36, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f7fbf3 0%, var(--cream) 45%, #ffffff 100%);
}

.hero {
  min-height: 78vh;
  padding: 24px clamp(18px, 4vw, 64px) 64px;
  background:
    radial-gradient(circle at top right, rgba(244, 185, 66, 0.28), transparent 34%),
    linear-gradient(135deg, var(--green-900), #1f6f4a);
  color: var(--white);
}

.nav, .hero-grid, .studio, .about, footer {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 48px;
}

.brand, .nav-link, .button { color: inherit; text-decoration: none; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255,255,255,0.14);
}

.nav-link { font-weight: 700; opacity: 0.92; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { margin-top: 0; line-height: 1.08; }

h1 { max-width: 780px; font-size: clamp(2.4rem, 6vw, 5rem); margin-bottom: 20px; }

.hero-text { max-width: 680px; font-size: clamp(1rem, 2vw, 1.22rem); color: rgba(255,255,255,0.86); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover, .copy-button:hover { transform: translateY(-2px); }

.primary { background: var(--gold); color: #2c2100; box-shadow: 0 14px 28px rgba(244, 185, 66, 0.24); }
.secondary { background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.3); }

.hero-card, .app-shell, .feature-grid article {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
}

.hero-card li { margin-bottom: 12px; }

.studio, .about { padding: 72px clamp(18px, 4vw, 24px); }
.section-heading { max-width: 760px; margin-bottom: 28px; }
.section-heading .eyebrow, .about .eyebrow, .output-header .eyebrow { color: var(--green-700); }
.section-heading h2, .about h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-heading p, .about p, .helper-text { color: var(--muted); }

.app-shell {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 0;
  overflow: hidden;
  background: var(--white);
}

.generator-form {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 28px;
  background: #f1f8ef;
}

label { font-weight: 800; color: var(--green-900); }
input, select {
  width: 100%;
  border: 1px solid #cfdecf;
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: var(--white);
}

input:focus, select:focus { outline: 3px solid rgba(57, 163, 106, 0.24); border-color: var(--green-500); }
.generate { width: 100%; margin-top: 8px; }
.helper-text { font-size: 0.9rem; line-height: 1.5; }

.output-panel { padding: 28px; min-height: 520px; }
.output-header { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 22px; }
.copy-button {
  border: 1px solid #cbd8cf;
  background: #ffffff;
  color: var(--green-700);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}
.resource-output { line-height: 1.65; }
.resource-output h3 { color: var(--green-700); margin-top: 24px; }
.resource-output ul, .resource-output ol { padding-left: 22px; }
.resource-output .meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.resource-output .pill { background: #edf7ed; color: var(--green-700); border-radius: 999px; padding: 7px 12px; font-weight: 800; font-size: 0.86rem; }
.empty-state { color: var(--muted); padding: 48px 0; text-align: center; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; box-shadow: none; }
.feature-grid article { padding: 24px; background: var(--white); }
footer { padding: 30px 18px 48px; color: var(--muted); text-align: center; }

@media (max-width: 820px) {
  .hero-grid, .app-shell, .feature-grid { grid-template-columns: 1fr; }
  .nav { align-items: flex-start; flex-direction: column; }
  .output-header { flex-direction: column; }
}
