/* ── GeoJSON Validator — CSS ── */
:root {
  --bg: #0f0f14;
  --bg-card: #1e1e28;
  --bg-surface: #18181f;
  --primary: #3b82f6;
  --secondary: #2563eb;
  --accent: #60a5fa;
  --green: #22c55e;
  --red: #ef4444;
  --orange: #f97316;
  --yellow: #eab308;
  --purple: #a78bfa;
  --text: #e8e8f0;
  --text-muted: #9999b8;
  --text-faint: #555570;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .14);
  --radius: 14px;
  --radius-sm: 8px;
  --font: 'Inter', system-ui, sans-serif;
  --font-mono: 'Fira Code', 'Cascadia Code', monospace;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased
}

a {
  color: var(--primary);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

code {
  font-family: var(--font-mono);
  font-size: .85em;
  background: rgba(59, 130, 246, .1);
  color: #93c5fd;
  padding: 2px 6px;
  border-radius: 4px
}

.site-header {
  background: rgba(15, 15, 20, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none
}

.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0
}

.logo-text {
  font-size: .97rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em
}

.main-nav {
  display: flex;
  gap: 6px
}

.nav-link {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s, background .15s
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(255, 255, 255, .06)
}

.main-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 28px 24px 80px
}

@media(max-width:640px) {
  .main-wrap {
    padding: 18px 14px 60px
  }
}

.tool-hero {
  text-align: center;
  padding: 24px 0 20px
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  background: rgba(34, 197, 94, .1);
  color: var(--green);
  border-radius: 20px;
  font-size: .73rem;
  font-weight: 600;
  margin-bottom: 12px
}

.tool-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 8px
}

.gradient-title {
  background: linear-gradient(135deg, #22c55e, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.tool-subtitle {
  font-size: .97rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto
}

.ad-slot {
  background: rgba(255, 255, 255, .02);
  border: 1px dashed rgba(255, 255, 255, .07);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  font-size: .75rem;
  color: var(--text-faint);
  text-align: center;
  padding: 12px;
  margin-bottom: 20px
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px
}

.card-header {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .02);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.card-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.card-icon svg {
  width: 13px;
  height: 13px
}

.card-icon.green {
  background: rgba(34, 197, 94, .12)
}

.card-icon.green svg {
  color: var(--green)
}

.card-icon.blue {
  background: rgba(59, 130, 246, .12)
}

.card-icon.blue svg {
  color: var(--primary)
}

.card-title {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-faint)
}

.card-body {
  padding: 18px
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  border: none;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap
}

.btn-primary:hover {
  background: var(--secondary)
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color .15s, color .15s;
  white-space: nowrap
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--text)
}

.btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, .15);
  color: var(--green);
  font-weight: 700;
  font-size: .88rem;
  border: 1px solid rgba(34, 197, 94, .3);
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap
}

.btn-green:hover {
  background: rgba(34, 197, 94, .25)
}

/* Editor */
.editor-wrap {
  position: relative
}

.in-editor {
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.6;
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: #e2e8f0;
  width: 100%;
  min-height: 240px;
  resize: vertical;
  outline: none;
  transition: border-color .15s
}

.in-editor:focus {
  border-color: var(--primary)
}

.in-editor.valid {
  border-color: rgba(34, 197, 94, .4)
}

.in-editor.invalid {
  border-color: rgba(239, 68, 68, .4)
}

.in-editor::placeholder {
  color: var(--text-faint)
}

.char-count {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: .68rem;
  color: var(--text-faint);
  pointer-events: none
}

/* Drop zone */
.drop-hint {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  text-align: center;
  font-size: .78rem;
  color: var(--text-faint);
  margin-top: 8px;
  transition: border-color .2s, background .2s
}

.drop-hint.dragover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, .04);
  color: var(--text-muted)
}

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: .78rem;
  font-weight: 700
}

.status-badge.valid {
  background: rgba(34, 197, 94, .12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, .25)
}

.status-badge.invalid {
  background: rgba(239, 68, 68, .12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, .25)
}

.status-badge.warning {
  background: rgba(234, 179, 8, .1);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, .2)
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0
}

.status-dot.valid {
  background: #4ade80
}

.status-dot.invalid {
  background: #f87171
}

.status-dot.warning {
  background: #fde047
}

/* Stats row */
.stats-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, .01)
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 5px
}

.stat-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary)
}

.stat-label {
  font-size: .72rem;
  color: var(--text-faint)
}

/* Issue list */
.issues-list {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.issue {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  line-height: 1.5
}

.issue.error {
  background: rgba(239, 68, 68, .06);
  border: 1px solid rgba(239, 68, 68, .15)
}

.issue.warning {
  background: rgba(234, 179, 8, .05);
  border: 1px solid rgba(234, 179, 8, .15)
}

.issue.info {
  background: rgba(59, 130, 246, .05);
  border: 1px solid rgba(59, 130, 246, .12)
}

.issue-icon {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: .9rem
}

.issue-body {
  flex: 1
}

.issue-title {
  font-weight: 600;
  color: var(--text)
}

.issue-title.error {
  color: #fca5a5
}

.issue-title.warning {
  color: #fde68a
}

.issue-title.info {
  color: #93c5fd
}

.issue-path {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-faint);
  margin-top: 2px
}

.issue-detail {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 3px
}

/* Summary bar */
.summary-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 18px;
  border-top: 1px solid var(--border)
}

.summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: .74rem;
  font-weight: 700
}

.summary-pill.err {
  background: rgba(239, 68, 68, .1);
  color: #f87171
}

.summary-pill.warn {
  background: rgba(234, 179, 8, .08);
  color: #fde047
}

.summary-pill.info {
  background: rgba(59, 130, 246, .08);
  color: #93c5fd
}

.summary-pill.ok {
  background: rgba(34, 197, 94, .1);
  color: #4ade80
}

/* Page sections */
.page-section {
  padding: 40px 0 0
}

.section-head {
  text-align: center;
  margin-bottom: 28px
}

.section-title {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -.02em
}

.section-desc {
  font-size: .93rem;
  color: var(--text-muted);
  margin-top: 6px
}

.section-divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0 0
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 8px
}

.feature-title {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 4px
}

.feature-desc {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .12);
  color: var(--green);
  font-weight: 800;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.step-title {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 4px
}

.step-desc {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font-size: .9rem;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  gap: 10px
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--text-faint);
  flex-shrink: 0;
  transition: transform .2s
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease
}

.faq-item.open .faq-a {
  max-height: 400px
}

.faq-item.open .faq-icon {
  transform: rotate(45deg)
}

.faq-a p {
  padding: 0 18px 16px;
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.65
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px
}

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  transition: border-color .15s
}

.related-card:hover {
  border-color: var(--primary);
  text-decoration: none
}

.related-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px
}

.related-icon svg {
  width: 17px;
  height: 17px;
  color: #fff
}

.related-name {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text)
}

.related-desc {
  font-size: .77rem;
  color: var(--text-muted);
  line-height: 1.4
}

.related-link {
  font-size: .75rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: auto
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  transition: border-color .15s
}

.blog-card:hover {
  border-color: var(--primary);
  text-decoration: none
}

.blog-tag-sm {
  font-size: .7rem;
  font-weight: 700;
  color: var(--primary)
}

.blog-title-sm {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4
}

.blog-link {
  font-size: .75rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: auto
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px 28px;
  margin-top: 60px
}

.footer-grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px
}

@media(max-width:768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:480px) {
  .footer-grid {
    grid-template-columns: 1fr
  }
}

.footer-brand-text {
  font-size: .82rem;
  color: var(--text-faint);
  margin-top: 8px;
  line-height: 1.5
}

.footer-heading {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-faint);
  margin-bottom: 10px
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px
}

.footer-links a {
  font-size: .83rem;
  color: var(--text-muted)
}

.footer-links a:hover {
  color: var(--text)
}

.footer-bottom {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border)
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #22c55e;
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  z-index: 999;
  white-space: nowrap
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0)
}