* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg-primary: #2a2a2a;
  --bg-secondary: #333333;
  --bg-card: #404040;
  --border-color: #555555;
  --text-primary: #FFFFFF;
  --text-secondary: #e0e0e0;
  --text-muted: #888888;
  --error-color: var(--error-color);
  --success-color: var(--success-color);
  --primary-gradient: linear-gradient(90deg, #667eea, #764ba2);
  --accent-color: #667eea;
  --purple-accent: #764ba2;
  --shadow-small: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
}

body {
  background-color: #2a2a2a;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif, system-ui;
  line-height: 1.6;
  font-weight: 400;
  font-size: 16px;
}

h1, h2, h3, .section-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
}

.hover-effect {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-section {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.main-header {
  padding: 15px 20px;
  border-bottom: 1px solid #555555;
  background-color: var(--bg-secondary);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #667eea;
}

.hero-section {
  text-align: center;
  padding: 60px 15px;
  background: linear-gradient(to bottom, #2a2a2a, #333333);
}

.hero-section h1 {
  font-size: 2.2rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
}

.subtitle {
  font-size: 1.1rem;
  max-width: 90%;
  margin: 0 auto 25px;
  font-weight: 400;
  opacity: 0.95;
  color: var(--text-secondary);
}

.cta-button {
  background: var(--primary-gradient);
  color: var(--text-primary);
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  .hover-effect;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.problem-section {
  text-align: center;
  padding: 50px 15px;
  background-color: var(--bg-secondary);
}

.problem-section h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: var(--text-primary);
}

.pain-points {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 25px;
}

.point {
  background-color: var(--bg-card);
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  .hover-effect;
  min-width: 250px;
  margin: 0 auto;
}

.point:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.solution-section {
  text-align: center;
  padding: 50px 15px;
  background-color: var(--bg-secondary);
}

.solution-section h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.solution-section p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: var(--text-secondary);
}

.example-comparison {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 25px;
}

.prompt-box {
  background-color: var(--bg-card);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  min-height: 80px;
  text-align: left;
  width: 100%;
  max-width: 350px;
  .hover-effect;
  color: var(--text-secondary);
}

.prompt-box:hover {
  box-shadow: var(--shadow-medium);
}

.prompt-box.improved {
  border-color: #764ba2;
}

.arrow {
  font-size: 1.8rem;
  color: #667eea;
}

.testimonials-section {
  padding: 50px 15px;
  text-align: center;
  background-color: var(--bg-secondary);
}

.testimonials-section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.testimonial {
  background-color: var(--bg-card);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  .hover-effect;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ff6b6b;
  font-weight: 600;
}

.how-it-works-section {
  text-align: center;
  padding: 50px 15px;
  background-color: var(--bg-secondary);
}

.how-it-works-section h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: var(--text-primary);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 25px;
}

.step {
  font-size: 1rem;
  font-weight: 500;
  padding: 15px;
  background-color: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  .hover-effect;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
  margin: 0 auto;
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.step span {
  font-size: 1.8rem;
  font-weight: 700;
  color: #667eea;
  margin-right: 10px;
}

.optimize-section {
  padding: 50px 15px;
  text-align: center;
  background-color: var(--bg-secondary);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 25px;
  color: var(--text-primary);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.optimize-form {
  max-width: 100%;
  margin: 0 auto 25px;
}

.form-group {
  text-align: left;
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

#original-prompt-web {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}

#original-prompt-web:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.optimize-button {
  background: var(--primary-gradient);
  color: var(--text-primary);
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  .hover-effect;
  display: block;
  margin: 0 auto;
}

.optimize-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.result-section {
  display: none;
  max-width: 100%;
  margin: 25px auto 0;
  text-align: left;
}

.result-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-primary);
  text-align: center;
}

.result-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#optimized-prompt-web {
  width: 100%;
  padding: 12px;
  border: 1px solid #764ba2;
  border-radius: 8px;
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.3s ease;
}

#optimized-prompt-web:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.copy-button {
  align-self: flex-end;
  background-color: var(--success-color);
  color: var(--text-primary);
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 5px;
}

.copy-button:hover {
  background-color: #45a049;
  transform: translateY(-1px);
}

.pricing-section {
  text-align: center;
  padding: 50px 15px;
  background-color: var(--bg-secondary);
}

.pricing-section h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: var(--text-primary);
}

.pricing-card {
  background-color: var(--bg-card);
  max-width: 350px;
  margin: 25px auto;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  .hover-effect;
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.pricing-card h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #667eea;
}

.price {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 15px 0;
  color: var(--text-primary);
}

.price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-card ul {
  list-style: none;
  margin: 20px 0;
  text-align: left;
}

.pricing-card li {
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--text-secondary);
}

#payment-flow-container {
  text-align: center;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

#user-status {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 400;
}

.g_id_signin {
  background-color: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px !important;
  padding: 10px 20px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  .hover-effect !important;
  cursor: pointer;
}

.g_id_signin:hover {
  background-color: #555555 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

.faq-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 15px;
  background-color: #2a2a2a;
}

.faq-section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.faq-item {
  background-color: var(--bg-secondary);
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  .hover-effect;
}

.faq-item:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-1px);
}

summary {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 15px;
  background-color: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  border: none;
  outline: none;
  transition: background-color 0.3s ease;
  position: relative;
}

summary::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #FFFFFF;
  transition: transform 0.3s ease;
}

details[open] summary::before {
  transform: translateY(-50%) rotate(180deg);
}

summary:hover {
  background-color: #555555;
}

details[open] summary {
  background-color: #555555;
}

details p {
  font-family: 'Inter', sans-serif;
  padding: 0 15px 15px;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.7;
  background-color: var(--bg-secondary);
  border-top: 1px solid #555555;
  font-weight: 400;
}

.main-footer {
  text-align: center;
  padding: 15px;
  border-top: 1px solid #555555;
  margin-top: 40px;
  background-color: var(--bg-secondary);
  font-weight: 400;
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .hero-section {
    padding: 100px 20px;
  }

  .hero-section h1 {
    font-size: 3rem;
  }

  .subtitle {
    font-size: 1.2rem;
    max-width: 700px;
  }

  .problem-section,
  .solution-section,
  .testimonials-section,
  .how-it-works-section,
  .optimize-section,
  .pricing-section,
  .faq-section {
    padding: 80px 20px;
  }

  .problem-section h2,
  .solution-section h2,
  .testimonials-section h2,
  .how-it-works-section h2,
  .pricing-section h2,
  .faq-section h2,
  .section-title {
    font-size: 2.5rem;
  }

  .pain-points,
  .steps,
  .example-comparison {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }

  .prompt-box {
    width: 400px;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step {
    min-width: 200px;
    width: auto;
  }

  .optimize-form,
  .result-section {
    max-width: 600px;
  }

  .optimize-button {
    padding: 15px 30px;
    font-size: 1.1rem;
  }

  .pricing-card {
    max-width: 400px;
    padding: 30px;
  }

  .price {
    font-size: 2.5rem;
  }

  summary {
    font-size: 1.1rem;
    padding: 20px;
  }

  details p {
    padding: 0 20px 20px;
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .hero-section h1 {
    font-size: 3.5rem;
  }
}

.feedback-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.feedback-modal[aria-hidden="false"] {
  display: flex;
}

.modal-content {
  background-color: var(--bg-secondary);
  margin: auto;
  padding: 0;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  position: relative;
  border: 1px solid var(--border-color);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 0 20px;
  border-bottom: 1px solid #555555;
  margin-bottom: 20px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-primary);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
}

.close-button {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0 10px;
  border-radius: 50%;
  transition: background-color 0.3s ease, color 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button:hover {
  background-color: #555555;
  color: var(--text-primary);
}

.close-button:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

#feedback-form {
  padding: 0 20px 20px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.field-icon {
  margin-right: 8px;
  font-size: 1.1rem;
}

#feedback-name,
#feedback-email,
#feedback-message {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-small);
}

#feedback-message {
  resize: vertical;
  min-height: 120px;
  padding: 12px;
}

#feedback-name::placeholder,
#feedback-email::placeholder,
#feedback-message::placeholder {
  color: #888888;
}

#feedback-name:focus,
#feedback-email:focus,
#feedback-message:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

small {
  display: block;
  margin-top: 4px;
  color: #888888;
  font-size: 0.85rem;
}

.error-message {
  display: none;
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: 4px;
  background-color: rgba(244, 67, 54, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  border-left: 3px solid #f44336;
}

.error-message[aria-hidden="false"] {
  display: block;
}

.form-group.error #feedback-name,
.form-group.error #feedback-email,
.form-group.error #feedback-message {
  border-color: var(--error-color);
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.3);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

#submit-feedback {
  background: var(--primary-gradient);
  color: var(--text-primary);
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-small);
}

#submit-feedback:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#submit-feedback:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

#feedback-result {
  padding: 20px;
  text-align: center;
  font-weight: 500;
  border-top: 1px solid #555555;
  margin-top: 20px;
}

#feedback-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-gradient);
  color: var(--text-primary);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 999;
}

#feedback-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

@media (max-width: 480px) {
  .modal-content {
    margin: 10px;
    max-height: 95vh;
  }

  .modal-header {
    padding: 15px 15px 0 15px;
  }

  #feedback-form {
    padding: 0 15px 15px;
  }

  .form-actions {
    flex-direction: column;
  }

  #submit-feedback {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .modal-content {
    padding: 0 30px 30px;
    max-width: 600px;
  }

  .modal-header {
    padding: 25px 30px 0 30px;
    margin-bottom: 25px;
  }
}

.chrome-store-link {
  text-align: center;
  margin: 10px 0;
}

.chrome-store-button {
  display: inline-flex;
  align-items: center;
  /*gap: 12px;*/
  background-color: #2a2a2a;
  color: white;
  padding: 2px 4px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.chrome-store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.chrome-store-button img {
  width: 248px;
  height: 75px;
  display: block;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  margin: 0 15px 0 0;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #333;
  text-decoration: underline;
}

.footer-links a:last-child {
  margin-right: 0;
}

.main-footer p a {
  color: #666;
  text-decoration: none;
  margin-left: 15px;
  transition: color 0.3s ease;
}

.main-footer p a:hover {
  color: #333;
  text-decoration: underline;
}