/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0f0f13;
  color: #e8e8f0;
  line-height: 1.7;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ===== CONTAINER ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,15,19,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139,92,246,0.15);
  padding: 16px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.5px; cursor: pointer; }
.logo-icon { color: #a78bfa; font-size: 1.4rem; }
.logo-text { color: #f0f0ff; }
.logo-accent { color: #a78bfa; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: #a0a0b8; transition: color 0.2s; }
.nav-links a:hover { color: #a78bfa; }
.nav-toggle { display: none; background: none; border: none; color: #a78bfa; font-size: 1.5rem; cursor: pointer; padding: 4px 8px; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #0f0f13 0%, #1a0a2e 50%, #0f0f13 100%);
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139,92,246,0.18) 0%, transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #e8d5ff 0%, #a78bfa 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}
.hero-sub { font-size: 1.15rem; color: #b0b0cc; max-width: 600px; margin: 0 auto 28px; }
.hero-sub strong { color: #c4b5fd; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.badge {
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.3);
  color: #c4b5fd;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
}
.btn-hero {
  display: inline-block;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 32px rgba(124,58,237,0.35);
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(124,58,237,0.5); }

/* ===== TOOL SECTION ===== */
.tool-section { padding: 60px 0; }
.tool-heading { text-align: center; font-size: 1.8rem; font-weight: 800; color: #e8d5ff; margin-bottom: 28px; }
.tool-card {
  background: #16161e;
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.tool-label { display: block; font-size: 0.9rem; font-weight: 600; color: #a0a0c0; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.tool-input {
  width: 100%;
  background: #0f0f13;
  border: 2px solid rgba(139,92,246,0.25);
  border-radius: 12px;
  color: #f0f0ff;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  padding: 16px 18px;
  resize: vertical;
  transition: border-color 0.2s;
  outline: none;
}
.tool-input:focus { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.tool-input::placeholder { color: #4a4a60; }
.char-count { text-align: right; font-size: 0.78rem; color: #4a4a60; margin-top: 6px; margin-bottom: 16px; }
.tool-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(124,58,237,0.5); }
.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: #a0a0c0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 13px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: #e0e0f0; }
.category-select {
  background: #0f0f13;
  color: #c0c0d8;
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  outline: none;
  margin-left: auto;
}
.category-select:focus { border-color: #7c3aed; }

/* ===== OUTPUT GRID ===== */
.output-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.empty-state { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: #4a4a60; }
.empty-icon { font-size: 3rem; color: rgba(139,92,246,0.3); margin-bottom: 16px; }
.empty-title { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.empty-hint { font-size: 0.85rem; }
.font-result {
  background: #0f0f13;
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.font-result:hover { border-color: rgba(139,92,246,0.4); transform: translateY(-2px); }
.font-result-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #7c3aed; }
.font-result-text { font-size: 1.1rem; color: #f0f0ff; word-break: break-all; line-height: 1.5; min-height: 30px; }
.font-result-actions { display: flex; justify-content: flex-end; }
.btn-copy {
  background: rgba(124,58,237,0.15);
  color: #a78bfa;
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: 'Inter', sans-serif;
}
.btn-copy:hover { background: rgba(124,58,237,0.3); color: #c4b5fd; }
.btn-copy.copied { background: rgba(16,185,129,0.2); color: #6ee7b7; border-color: rgba(16,185,129,0.3); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #1a1a2a;
  color: #6ee7b7;
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 50px;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  z-index: 9999;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ===== CONTENT SECTIONS ===== */
.content-section { padding: 80px 0; }
.alt-bg { background: #12121a; }
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #e8d5ff;
  text-align: center;
  margin-bottom: 16px;
}
.section-intro { text-align: center; color: #8888a8; max-width: 680px; margin: 0 auto 40px; font-size: 1rem; }

/* ===== STEPS GRID ===== */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step-card {
  background: #16161e;
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.step-card:hover { border-color: rgba(139,92,246,0.4); transform: translateY(-3px); }
.step-num {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 900;
  color: #fff;
  margin: 0 auto 18px;
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; color: #e0d0ff; margin-bottom: 10px; }
.step-card p { color: #8888a8; font-size: 0.9rem; }

/* ===== STYLES SHOWCASE ===== */
.styles-showcase { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.showcase-item {
  background: #16161e;
  border: 1px solid rgba(139,92,246,0.12);
  border-radius: 12px;
  padding: 16px 18px;
  transition: border-color 0.2s;
}
.showcase-item:hover { border-color: rgba(139,92,246,0.35); }
.showcase-label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: #7c3aed; margin-bottom: 6px; }
.showcase-preview { font-size: 1.05rem; color: #e8e8f8; word-break: break-all; }

/* ===== USES GRID ===== */
.uses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.use-card {
  background: #16161e;
  border: 1px solid rgba(139,92,246,0.12);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.use-card:hover { border-color: rgba(139,92,246,0.35); transform: translateY(-2px); }
.use-icon { font-size: 2rem; margin-bottom: 12px; }
.use-card h3 { font-size: 1rem; font-weight: 700; color: #e0d0ff; margin-bottom: 8px; }
.use-card p { font-size: 0.85rem; color: #8888a8; }

/* ===== FAQ ===== */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #16161e;
  border: 1px solid rgba(139,92,246,0.15);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(139,92,246,0.35); }
.faq-item[open] { border-color: rgba(139,92,246,0.4); }
.faq-q {
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: #e0d0ff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; font-size: 1.4rem; color: #7c3aed; flex-shrink: 0; transition: transform 0.2s; }
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 24px 20px; color: #8888a8; font-size: 0.9rem; }
.faq-a p { margin-bottom: 8px; }

/* ===== ARTICLE ===== */
.article-container { max-width: 800px; }
.article-body h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #e8d5ff;
  margin: 42px 0 14px;
  padding-top: 8px;
  border-top: 1px solid rgba(139,92,246,0.15);
}
.article-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #c4b5fd;
  margin: 28px 0 10px;
}
.article-body p {
  color: #9090b0;
  font-size: 0.97rem;
  margin-bottom: 16px;
  line-height: 1.8;
}
.article-body strong { color: #c4b5fd; font-weight: 600; }

/* ===== FOOTER ===== */
.site-footer {
  background: #0a0a10;
  border-top: 1px solid rgba(139,92,246,0.12);
  padding: 60px 0 30px;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .logo-text { font-size: 1.1rem; font-weight: 800; }
.footer-desc { color: #6060808; font-size: 0.85rem; color: #606080; margin-top: 12px; max-width: 280px; line-height: 1.6; }
.footer-links h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #7c3aed; margin-bottom: 16px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; color: #606080; transition: color 0.2s; }
.footer-links a:hover { color: #a78bfa; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 0.82rem; color: #505068; }
.footer-note { margin-top: 6px; font-size: 0.78rem; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #0f0f13; border-bottom: 1px solid rgba(139,92,246,0.2); flex-direction: column; padding: 20px 24px; gap: 18px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .site-header { position: relative; }
  .hero { padding: 60px 0 50px; }
  .tool-card { padding: 24px 18px; }
  .tool-controls { flex-direction: column; }
  .category-select { margin-left: 0; width: 100%; }
  .output-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid { grid-template-columns: 1fr; }
  .uses-grid { grid-template-columns: repeat(2, 1fr); }
  .styles-showcase { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .uses-grid { grid-template-columns: 1fr; }
  .styles-showcase { grid-template-columns: 1fr; }
  .badge { font-size: 0.75rem; padding: 5px 11px; }
  .tool-card { padding: 18px 14px; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f0f13; }
::-webkit-scrollbar-thumb { background: #3a2060; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #7c3aed; }

/* ===== FOCUS VISIBLE ===== */
:focus-visible { outline: 2px solid #7c3aed; outline-offset: 3px; }
