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

:root {
  --green: #1D9E75;
  --green-dark: #0F6E56;
  --green-light: #E1F5EE;
  --bg: #0e0e0e;
  --bg2: #161616;
  --bg3: #1e1e1e;
  --border: rgba(255,255,255,0.08);
  --text: #f0f0f0;
  --muted: #888;
  --font: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* NAV */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(14,14,14,0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}
.logo span { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-btn {
  font-family: var(--font);
  font-size: 13px;
  padding: 7px 16px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.nav-btn:hover { background: var(--green-dark); }

/* HERO */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  font-size: 11px;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--green);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
  color: #fff;
}
.hero-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero-btn {
  font-family: var(--font);
  font-size: 15px;
  padding: 13px 28px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s;
  margin-bottom: 1.5rem;
}
.hero-btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

/* APP SECTION */
.app-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.app-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}
.app-title { font-size: 13px; color: var(--muted); }
.app-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

select {
  font-family: var(--font);
  font-size: 12px;
  padding: 5px 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
}
select:hover { color: var(--text); }

.attach-btn {
  font-size: 12px;
  padding: 5px 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s;
}
.attach-btn:hover { color: var(--text); }
#fileInput { display: none; }

textarea {
  width: 100%;
  min-height: 200px;
  padding: 16px;
  font-family: var(--font);
  font-size: 13px;
  background: var(--bg2);
  border: none;
  outline: none;
  color: var(--text);
  resize: vertical;
  line-height: 1.7;
}
textarea::placeholder { color: #444; }

.output-label {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 16px 6px;
  border-top: 1px solid var(--border);
}

.chips-row {
  display: flex;
  gap: 8px;
  padding: 8px 16px 14px;
  flex-wrap: wrap;
}

.chip {
  font-family: var(--font);
  font-size: 12px;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.chip.active {
  background: rgba(29,158,117,0.15);
  border-color: var(--green);
  color: var(--green);
}
.chip:hover { color: var(--text); }

.gen-btn {
  width: calc(100% - 32px);
  margin: 0 16px 16px;
  padding: 12px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.gen-btn:hover { background: var(--green-dark); }
.gen-btn:disabled { background: var(--bg3); color: var(--muted); cursor: not-allowed; }

/* RESULT */
.result-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.result-tag {
  font-size: 12px;
  padding: 3px 10px;
  background: rgba(29,158,117,0.15);
  border: 1px solid var(--green);
  border-radius: 99px;
  color: var(--green);
}
.copy-btn {
  font-family: var(--font);
  font-size: 12px;
  padding: 5px 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
}
.copy-btn:hover { color: var(--text); }
.result-body {
  padding: 16px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text);
  white-space: pre-wrap;
  max-height: 500px;
  overflow-y: auto;
}
.loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.2s ease-in-out infinite;
}
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse { 0%,80%,100%{opacity:0.2} 40%{opacity:1} }

/* FEATURES */
.features {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
}
.features h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  margin-bottom: 2.5rem;
  text-align: center;
  color: #fff;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}
.feature-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  transition: border-color 0.15s;
}
.feature-card:hover { border-color: rgba(29,158,117,0.4); }
.feature-icon { font-size: 24px; margin-bottom: 10px; }
.feature-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #fff; }
.feature-card p { font-size: 12px; color: var(--muted); line-height: 1.65; }

/* PRICING */
.pricing {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.pricing h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 600; color: #fff; margin-bottom: 8px; }
.pricing-sub { font-size: 13px; color: var(--muted); margin-bottom: 2.5rem; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  text-align: left;
}
.plan-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  position: relative;
}
.plan-card.featured { border-color: var(--green); }
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  padding: 3px 12px;
  background: var(--green);
  color: #fff;
  border-radius: 99px;
  white-space: nowrap;
}
.plan-name { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.plan-price { font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 1.25rem; }
.plan-price span { font-size: 14px; color: var(--muted); font-weight: 400; }
.plan-card ul { list-style: none; margin-bottom: 1.5rem; }
.plan-card li { font-size: 12px; color: var(--muted); padding: 5px 0; border-bottom: 1px solid var(--border); }
.plan-card li:last-child { border: none; }
.plan-btn {
  width: 100%;
  padding: 10px;
  font-family: var(--font);
  font-size: 13px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.plan-btn:hover { color: var(--text); border-color: var(--muted); }
.plan-btn.primary { background: var(--green); color: #fff; border-color: var(--green); }
.plan-btn.primary:hover { background: var(--green-dark); }

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}
.footer .logo { font-size: 16px; margin-bottom: 8px; }
.footer p { font-size: 12px; color: var(--muted); }

/* RESPONSIVE */
@media (max-width: 600px) {
  .navbar { padding: 1rem; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .app-section { padding: 0 1rem 3rem; }
  .features, .pricing { padding: 3rem 1rem; }
  .app-header { flex-direction: column; align-items: flex-start; }
}
