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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  background: #fff;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
header {
  background: #1a1a2e;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
}

header nav a {
  color: #ccc;
  text-decoration: none;
  margin-left: 24px;
  font-size: 0.95rem;
  transition: color 0.2s;
}

header nav a:hover { color: #fff; }

/* HERO */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 70px 0 60px;
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: #b0bec5;
  max-width: 600px;
  margin: 0 auto 36px;
}

/* SEARCH BOX */
.search-box {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 480px;
  margin: 0 auto 20px;
}

.search-box input {
  flex: 1;
  padding: 14px 20px;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px 0 0 8px;
  outline: none;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 600;
}

.search-box button {
  padding: 14px 28px;
  background: #e94560;
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.search-box button:hover { background: #c73652; }

.search-result {
  min-height: 36px;
  font-size: 1.05rem;
  margin-top: 10px;
}

.search-result .valid { color: #4caf50; font-weight: 600; }
.search-result .valid a { color: #81d4fa; }
.search-result .invalid { color: #ef5350; font-weight: 600; }
.search-result .checking { color: #b0bec5; }

/* SECTIONS */
section {
  padding: 60px 0;
}

section:nth-child(even) {
  background: #f8f9fa;
}

section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a2e;
}

section > .container > p {
  color: #555;
  margin-bottom: 32px;
  font-size: 1rem;
}

/* ALPHABET GRID */
.alphabet-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.alphabet-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #1a1a2e;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.alphabet-grid a:hover {
  background: #e94560;
  transform: translateY(-2px);
}

/* FEATURE GRID */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.feature {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.feature p { color: #555; font-size: 0.95rem; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

.faq-item p { color: #555; font-size: 0.95rem; }

/* WORD LIST PAGE */
.word-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.word-grid a {
  display: block;
  padding: 10px 8px;
  background: #f0f4f8;
  border: 1px solid #dde;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1a1a2e;
  text-decoration: none;
  letter-spacing: 1px;
  transition: background 0.15s;
}

.word-grid a:hover {
  background: #e94560;
  color: #fff;
  border-color: #e94560;
}

/* WORD DETAIL PAGE */
.word-hero {
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  color: #fff;
  padding: 50px 0 40px;
  text-align: center;
}

.word-hero .big-word {
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 12px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.word-hero .valid-badge {
  display: inline-block;
  background: #4caf50;
  color: #fff;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 24px;
}

.breadcrumb a { color: #0f3460; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* FOOTER */
footer {
  background: #1a1a2e;
  color: #999;
  padding: 32px 0;
  text-align: center;
  font-size: 0.9rem;
}

footer nav {
  margin-top: 12px;
}

footer nav a {
  color: #bbb;
  text-decoration: none;
  margin: 0 12px;
  font-size: 0.85rem;
}

footer nav a:hover { color: #fff; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.7rem; }
  .search-box { flex-direction: column; }
  .search-box input { border-radius: 8px; margin-bottom: 8px; }
  .search-box button { border-radius: 8px; }
  .alphabet-grid a { width: 44px; height: 44px; font-size: 1rem; }
  header .container { flex-direction: column; gap: 10px; }
}