body {
  font-family: Arial, sans-serif;
  background: #f4f7fb;
  margin: 0;
  padding: 0;
  color: #111;
}

.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a, #1d4ed8, #0f172a);
  color: white;
}

.hero-overlay {
  min-height: 100vh;
  padding: 24px;
  background: rgba(0, 0, 0, 0.25);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.hero-content {
  max-width: 760px;
  margin: 60px auto 40px;
  text-align: center;
}

.hero-content h1 {
  font-size: 52px;
  margin-bottom: 18px;
  line-height: 1.1;
}

.hero-content p {
  font-size: 18px;
  color: #e5e7eb;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 28px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn,
#darkModeToggle,
.button-group button,
#exportButton,
#clearHistoryButton {
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  padding: 12px 16px;
  transition: background-color 0.3s, transform 0.2s;
}

.primary-btn {
  background: #22c55e;
  color: white;
}

.primary-btn:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

.secondary-btn {
  background: white;
  color: #111827;
}

.secondary-btn:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

#darkModeToggle {
  background: #111827;
  color: white;
  width: auto;
}

#darkModeToggle:hover {
  background: #1f2937;
}

.feature-cards {
  max-width: 1100px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 22px;
  border-radius: 16px;
  backdrop-filter: blur(6px);
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.feature-card p {
  margin: 0;
  color: #e5e7eb;
  line-height: 1.5;
}

.checker-section {
  padding: 60px 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.checker-header h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.subtitle {
  color: #555;
  margin-top: 0;
  margin-bottom: 20px;
}

.label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

select,
textarea,
.button-group button {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
}

select {
  padding: 10px;
  font-size: 16px;
  margin-bottom: 14px;
  border: 1px solid #ccc;
}

textarea {
  height: 150px;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  resize: none;
}

.button-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.button-group button {
  background-color: #007bff;
  color: white;
}

.button-group button:hover {
  background-color: #0056b3;
}

#copyButton {
  background-color: #28a745;
}

#copyButton:hover {
  background-color: #1e7e34;
}

#clearButton {
  background-color: #6c757d;
}

#clearButton:hover {
  background-color: #545b62;
}

#sampleButton {
  background-color: #fd7e14;
}

#sampleButton:hover {
  background-color: #d96504;
}

.score-box {
  margin-top: 18px;
  padding: 12px;
  border-radius: 10px;
  background: #eef2f7;
  font-weight: bold;
}

.meter-wrap {
  margin-top: 16px;
}

.meter-label {
  margin-bottom: 8px;
  font-weight: bold;
}

.meter {
  width: 100%;
  height: 16px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.meter-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s;
  background: #22c55e;
}

.result {
  margin-top: 16px;
  padding: 16px;
  border-radius: 10px;
  min-height: 60px;
  transition: background-color 0.3s, color 0.3s;
  font-weight: bold;
}

.investigation-panel {
  margin-top: 28px;
}

.investigation-panel h3 {
  margin-bottom: 14px;
}

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.report-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
}

.report-label {
  display: block;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
  font-weight: bold;
}

.report-card p {
  margin: 0;
  line-height: 1.5;
}

.history-section {
  margin-top: 28px;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.history-section h3 {
  margin: 0;
}

#historyList {
  list-style: none;
  padding: 0;
  margin: 0;
}

#historyList li {
  background: #f1f5f9;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  word-break: break-word;
}

#exportButton {
  background-color: #6f42c1;
  color: white;
  width: auto;
}

#exportButton:hover {
  background-color: #59359c;
}

#clearHistoryButton {
  background-color: #dc3545;
  color: white;
  margin-top: 12px;
  width: 100%;
}

#clearHistoryButton:hover {
  background-color: #b52a37;
}

body.dark-mode {
  background: #121212;
  color: #f5f5f5;
}

body.dark-mode .checker-section {
  background: #121212;
}

body.dark-mode .container {
  background: #1e1e1e;
  box-shadow: none;
}

body.dark-mode .subtitle,
body.dark-mode .report-label {
  color: #d1d5db;
}

body.dark-mode textarea,
body.dark-mode select {
  background: #2a2a2a;
  color: white;
  border: 1px solid #444;
}

body.dark-mode .score-box,
body.dark-mode #historyList li,
body.dark-mode .meter,
body.dark-mode .report-card {
  background: #2a2a2a;
  color: #f5f5f5;
  border-color: #444;
}

@media screen and (max-width: 800px) {
  .feature-cards,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 38px;
  }
}

@media screen and (max-width: 600px) {
  .hero-overlay {
    padding: 16px;
  }

  .navbar {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .logo {
    text-align: center;
  }

  .hero-content {
    margin-top: 30px;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .hero-content p {
    font-size: 15px;
  }

  .container {
    padding: 16px;
  }

  .button-group {
    grid-template-columns: 1fr;
  }

  .history-header {
    flex-direction: column;
    align-items: stretch;
  }

  textarea {
    height: 120px;
    font-size: 14px;
  }

  select,
  .button-group button,
  #exportButton,
  #clearHistoryButton,
  #darkModeToggle,
  .primary-btn,
  .secondary-btn {
    font-size: 14px;
    padding: 10px;
  }
}