/* Ghost Autocomplete - Clean, professional design */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* Header */

.header {
  text-align: center;
  margin-bottom: 60px;
}

.header h1 {
  margin: 0 0 16px;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0;
  font-size: 1.125rem;
  color: #666;
  line-height: 1.7;
}

/* Intro section */

.intro {
  margin-bottom: 48px;
}

.intro h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
}

.intro p {
  margin: 0 0 16px;
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
}

.intro p:last-child {
  margin-bottom: 0;
}

.intro strong {
  color: #1a1a1a;
  font-weight: 600;
}

/* Editor wrapper */

.editor-wrapper {
  margin: 48px 0;
}

.editor-container {
  position: relative;
  max-width: 100%;
  min-height: 200px;
  font-family: "JetBrains Mono", "Cascadia Code", "Fira Code", "Source Code Pro",
    "Consolas", "Monaco", "Courier New", monospace;
  line-height: 1.6;
  font-size: 15px;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.editor-container:focus-within {
  border-color: #4a90e2;
  box-shadow: 0 2px 12px rgba(74, 144, 226, 0.15);
}

.overlay {
  position: absolute;
  inset: 0;
  padding: 20px;
  border-radius: 6px;
  background: #ffffff;
  color: transparent;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow: auto;
}

.editor {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 280px;
  min-height: 200px;
  border: none;
  border-radius: 6px;
  padding: 20px;
  font: inherit;
  line-height: inherit;
  resize: vertical;
  background: transparent;
  color: #1a1a1a;
  caret-color: #4a90e2;
  outline: none;
}

.editor::placeholder {
  color: #999;
}

.overlay .ghost {
  color: #999;
  opacity: 0.6;
}

/* How it works section */

.how-it-works {
  margin: 48px 0;
}

.how-it-works h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
}

.how-it-works p {
  margin: 0 0 16px;
  font-size: 1rem;
  color: #444;
  line-height: 1.8;
}

.how-it-works ul {
  margin: 16px 0;
  padding-left: 24px;
  color: #444;
  line-height: 1.8;
}

.how-it-works li {
  margin-bottom: 8px;
}

.how-it-works strong {
  color: #1a1a1a;
  font-weight: 600;
}

/* Examples section */

.examples {
  margin: 48px 0;
}

.examples h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
}

.examples > p {
  margin: 0 0 20px;
  font-size: 1rem;
  color: #444;
  font-style: italic;
}

.sentence-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "JetBrains Mono", "Cascadia Code", "Fira Code", "Source Code Pro",
    "Consolas", "Monaco", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  background: #ffffff;
  border-radius: 6px;
  padding: 20px;
  border: 1px solid #e0e0e0;
}

.sentence-list li {
  margin-bottom: 8px;
  padding: 10px 14px;
  background: #fafafa;
  border-left: 2px solid #d0d0d0;
  border-radius: 4px;
  color: #555;
  transition: background-color 0.15s ease;
}

.sentence-list li:hover {
  background: #f5f5f5;
}

.sentence-list li:last-child {
  margin-bottom: 0;
}

/* Benefits section */

.benefits {
  margin: 48px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.benefit-column h3 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
}

.benefit-column ul {
  margin: 0;
  padding-left: 24px;
  color: #444;
  line-height: 1.8;
}

.benefit-column li {
  margin-bottom: 12px;
}

/* Footer */

.footer {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.footer p {
  margin: 0 0 12px;
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
}

.footer p:last-child {
  margin-bottom: 0;
}

.config-note {
  font-size: 0.9rem;
  color: #999;
}

.config-note code {
  background: #f1f3f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #4a90e2;
  font-family: "JetBrains Mono", "Cascadia Code", "Fira Code", "Source Code Pro",
    "Consolas", "Monaco", "Courier New", monospace;
}

/* Keyboard key styling */

kbd {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #d0d0d0;
  background: #f5f5f5;
  font-size: 0.85em;
  font-family: "JetBrains Mono", "Cascadia Code", "Fira Code", "Source Code Pro",
    "Consolas", "Monaco", "Courier New", monospace;
  font-weight: 500;
  color: #333;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  margin: 0 2px;
  min-width: 24px;
  text-align: center;
  line-height: 1.4;
}

/* Scrollbar styling */

.overlay::-webkit-scrollbar,
.editor::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.overlay::-webkit-scrollbar-track,
.editor::-webkit-scrollbar-track {
  background: #f8f9fa;
}

.overlay::-webkit-scrollbar-thumb,
.editor::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 5px;
}

.overlay::-webkit-scrollbar-thumb:hover,
.editor::-webkit-scrollbar-thumb:hover {
  background: #b0b0b0;
}

/* Responsive design */

@media (max-width: 768px) {
  .container {
    padding: 40px 20px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .benefits {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .editor {
    font-size: 14px;
    padding: 16px;
    height: 240px;
  }

  .overlay {
    padding: 16px;
  }

  .sentence-list {
    padding: 16px;
  }
}
