:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --text-color: #333;
  --background-color: #f4f4f4;
}

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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: var(--background-color);
  color: var(--text-color);
}

header {
  background-color: #333;
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.word-counter {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 30px;
  margin-bottom: 60px;
}

.input-area {
  margin-bottom: 20px;
}

.editor-toolbar {
  background-color: #f1f1f1;
  padding: 10px;
  display: flex;
  gap: 10px;
  border-radius: 4px 4px 0 0;
}

.editor-btn {
  background-color: transparent;
  border: none;
  color: #333;
  font-size: 16px;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
}

.editor-btn:hover {
  background-color: #e0e0e0;
}

.editor-btn.active {
  background-color: #d0d0d0;
}

.text-input-wrapper {
  margin-top: 10px;
}

.text-input {
  width: 100%;
  min-height: 300px;
  padding: 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 0 0 4px 4px;
  outline: none;
}

.analysis-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.analysis-item {
  flex: 1;
  min-width: 150px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.features-and-usage, .writing-tips, .word-count-goals, .writing-process, .seo-tips {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  padding: 40px;
}

h2 {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 25px;
}

h2 i {
  margin-right: 10px;
}

h3 {
  font-size: 22px;
  color: #34495e;
  margin-top: 30px;
  margin-bottom: 20px;
}

ul, ol {
  padding-left: 25px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 15px;
}

.cta {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 60px 40px;
  border-radius: 10px;
}

.cta h2 {
  color: white;
}

.cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #27ae60;
  transform: scale(1.05);
}

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 60px;
}

footer a {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 768px) {
  .analysis-wrapper {
    flex-direction: column;
  }
  
  .content-wrapper {
    gap: 40px;
  }
  
  .features-and-usage, .writing-tips, .word-count-goals, .writing-process, .seo-tips {
    padding: 30px;
  }
}