﻿/*
Theme Name: JSONFormatter Pro Custom Theme
Theme URI: https://jsonformatterpro.com/
Author: Custom
Author URI: https://jsonformatterpro.com/
Description: A custom WordPress theme based on jsonformatterpro-responsive.html
Version: 1.0
Text Domain: customtheme
*/

:root {
  --bg: #0a0e17;
  --bg2: #111720;
  --bg3: #161d2a;
  --bg4: #1c2535;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #e8edf5;
  --text2: #8b96a8;
  --text3: #5a6478;
  --accent: #3b82f6;
  --accent2: #60a5fa;
  --accent-dim: rgba(59,130,246,0.12);
  --accent-dim2: rgba(59,130,246,0.2);
  --green: #22c55e;
  --green-dim: rgba(34,197,94,0.12);
  --red: #f87171;
  --red-dim: rgba(248,113,113,0.12);
  --amber: #fbbf24;
  --amber-dim: rgba(251,191,36,0.1);
  --purple: #a78bfa;
  --purple-dim: rgba(167,139,250,0.1);
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Syne', sans-serif;
  --body: 'Inter', sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HEADER / NAV
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,14,23,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  width: 100%;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 12px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
}

.logo-icon {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.logo-text span { color: var(--accent2); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links li { position: relative; }

.nav-links > li > a,
.nav-links > li > button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > button:hover,
.nav-links > li > a.active {
  color: var(--text);
  background: var(--bg3);
}

.nav-links > li > a.active { color: var(--accent2); }

.nav-chevron { font-size: 10px; opacity: 0.6; transition: transform 0.2s; }
.nav-links li:hover .nav-chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 200;
}

.nav-links li:hover .nav-dropdown,
.nav-links li:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.12s, background 0.12s;
}

.nav-dropdown a:hover { color: var(--text); background: var(--bg4); }

.nav-dropdown a .nd-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  background: var(--bg4);
}

.nav-dropdown .nd-label { font-weight: 500; color: var(--text); font-size: 12px; }
.nav-dropdown .nd-desc { font-size: 11px; color: var(--text3); }

.nav-actions { 
  display: flex; 
  align-items: center; 
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.btn-ghost {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  background: none;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  font-family: var(--body);
  white-space: nowrap;
}

.btn-ghost:hover { color: var(--text); border-color: var(--border2); background: var(--bg3); }

.btn-primary {
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  font-family: var(--body);
  white-space: nowrap;
}

.btn-primary:hover { background: #2563eb; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text2);
  transition: all 0.3s;
  border-radius: 1px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HERO
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.hero {
  padding: clamp(32px, 8vw, 56px) 16px clamp(20px, 5vw, 32px);
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(300px, 90vw, 600px);
  height: 300px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent2);
  margin-bottom: 16px;
  font-family: var(--body);
}

.hero-eyebrow::before { content: 'â—'; font-size: 7px; color: var(--green); }

.hero h1 {
  font-family: var(--sans);
  font-size: clamp(24px, 6vw, 48px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 14px;
  word-wrap: break-word;
}

.hero h1 em { font-style: normal; color: var(--accent2); }

.hero p {
  font-size: clamp(14px, 4vw, 16px);
  color: var(--text2);
  max-width: 580px;
  margin: 0 auto 20px;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: clamp(11px, 3vw, 13px);
  color: var(--text3);
}

.hero-badges span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-badges .hb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TOOL WRAPPER
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.tool-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px 20px;
  width: 100%;
}

/* Tab bar above tool */
.tool-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow-x: auto;
  scrollbar-width: thin;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
}

.tool-tabs::-webkit-scrollbar { 
  height: 6px;
}

.tool-tabs::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 3px;
}

.ttab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--body);
  color: var(--text3);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.ttab:hover { color: var(--text2); background: var(--bg3); }
.ttab.active { color: var(--text); background: var(--bg3); }
.ttab.active .ttab-icon { color: var(--accent2); }
.ttab-icon { font-size: 14px; opacity: 0.8; }
.tool-tabs .tab-sep { width: 1px; height: 18px; background: var(--border); flex-shrink: 0; margin: 0 2px; }

/* Main tool container */
.tool-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  width: 100%;
}

.tool-pane {
  display: flex;
  flex-direction: column;
  min-height: 480px;
  position: relative;
}

.tool-pane + .tool-pane {
  border-left: 1px solid var(--border);
}

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.pane-title {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--body);
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.pane-actions { 
  display: flex; 
  align-items: center; 
  gap: 4px; 
  flex-wrap: wrap;
  flex-shrink: 0;
}

.pane-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--body);
  color: var(--text2);
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.pane-btn:hover { color: var(--text); border-color: var(--border2); background: rgba(255,255,255,0.05); }
.pane-btn.primary { color: var(--accent2); border-color: rgba(59,130,246,0.3); background: var(--accent-dim); }
.pane-btn.primary:hover { background: var(--accent-dim2); }
.pane-btn.success { color: var(--green); background: var(--green-dim); border-color: rgba(34,197,94,0.2); }
.pane-btn.danger { color: var(--red); background: var(--red-dim); border-color: rgba(248,113,113,0.2); }

/* Editor area */
.editor-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.json-editor {
  width: 100%;
  height: 100%;
  min-height: 420px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
  tab-size: 2;
  white-space: pre;
  overflow-wrap: normal;
  overflow: auto;
  display: block;
}

.json-editor::placeholder { color: var(--text3); font-family: var(--body); font-style: italic; font-size: 13px; }

/* Highlighted output */
.json-output {
  width: 100%;
  height: 100%;
  min-height: 420px;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  overflow: auto;
  white-space: pre;
  word-break: break-all;
}

.json-output:empty::before {
  content: 'Output will appear hereâ€¦';
  color: var(--text3);
  font-family: var(--body);
  font-style: italic;
  font-size: 13px;
  white-space: normal;
}

/* Syntax colors */
.j-key { color: #93c5fd; }
.j-str { color: #86efac; }
.j-num { color: #fca5a5; }
.j-bool { color: #c4b5fd; }
.j-null { color: #94a3b8; }
.j-punct { color: var(--text3); }

/* Tree view */
.tree-root { padding: 14px 16px; font-family: var(--mono); font-size: 13px; line-height: 1.7; overflow: auto; min-height: 420px; }
.tree-node { position: relative; }
.tree-toggle {
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tree-toggle::before {
  content: 'â–¶';
  font-size: 8px;
  color: var(--text3);
  display: inline-block;
  transition: transform 0.15s;
  width: 12px;
}
.tree-toggle.open::before { transform: rotate(90deg); }
.tree-children { padding-left: 18px; border-left: 1px solid var(--border); margin-left: 5px; }
.tree-children.collapsed { display: none; }
.tree-key { color: #93c5fd; }
.tree-colon { color: var(--text3); margin: 0 4px; }
.tree-str { color: #86efac; }
.tree-num { color: #fca5a5; }
.tree-bool { color: #c4b5fd; }
.tree-null { color: #94a3b8; }
.tree-bracket { color: var(--text3); }
.tree-count { font-size: 11px; color: var(--text3); margin-left: 6px; }

/* Status bar */
.pane-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--bg3);
  border-top: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text3);
  flex-shrink: 0;
  flex-wrap: wrap;
  overflow-x: auto;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.status-badge.valid { background: var(--green-dim); color: var(--green); }
.status-badge.invalid { background: var(--red-dim); color: var(--red); }
.status-badge.idle { background: var(--bg4); color: var(--text3); }
.status-sep { color: var(--border2); }

/* Error panel */
.error-panel {
  padding: 10px 14px;
  background: rgba(248,113,113,0.06);
  border-top: 1px solid rgba(248,113,113,0.15);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--red);
  display: none;
  flex-shrink: 0;
  line-height: 1.5;
  overflow-x: auto;
}

.error-panel.show { display: block; }

/* Indentation selector */
.indent-select {
  appearance: none;
  background: var(--bg4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-size: 12px;
  font-family: var(--body);
  padding: 4px 8px;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
}

.indent-select:hover { border-color: var(--border2); }

/* Upload zone overlay */
.drop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(59,130,246,0.08);
  border: 2px dashed var(--accent);
  border-radius: var(--radius-sm);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent2);
  z-index: 10;
  pointer-events: none;
  flex-direction: column;
  gap: 8px;
}

.drop-overlay.active { display: flex; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TRUST BAR
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.trust-bar {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px 32px;
  width: 100%;
}

.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.trust-item {
  padding: 18px 20px;
  background: var(--bg2);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.trust-icon.blue { background: var(--accent-dim); }
.trust-icon.green { background: var(--green-dim); }
.trust-icon.amber { background: var(--amber-dim); }
.trust-icon.purple { background: var(--purple-dim); }
.trust-label { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; margin-bottom: 2px; font-family: var(--body); }
.trust-desc { font-size: 12px; color: var(--text3); line-height: 1.5; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TOOLS GRID
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.tools-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px 56px;
  width: 100%;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 8px;
  font-family: var(--body);
}

.section-title {
  font-family: var(--sans);
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  line-height: 1.2;
}

.section-sub {
  font-size: 14px;
  color: var(--text2);
  max-width: 500px;
  margin-bottom: 28px;
  line-height: 1.7;
}

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

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.tool-card:hover { border-color: var(--border2); background: var(--bg3); transform: translateY(-1px); }
.tool-card:hover::before { opacity: 1; }

.tc-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.tc-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-family: var(--body);
  white-space: nowrap;
}

.badge-hot { background: rgba(248,113,113,0.15); color: var(--red); }
.badge-new { background: var(--green-dim); color: var(--green); }
.badge-popular { background: var(--amber-dim); color: var(--amber); }

.tc-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--body);
  line-height: 1.3;
}

.tc-desc {
  font-size: 12.5px;
  color: var(--text3);
  line-height: 1.55;
  flex: 1;
}

.tc-arrow {
  font-size: 12px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  transition: color 0.15s, gap 0.15s;
}

.tool-card:hover .tc-arrow { color: var(--accent2); gap: 8px; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CONTENT SECTION
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.content-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px 56px;
  width: 100%;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.content-prose h2 {
  font-family: var(--sans);
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.4px;
  margin-bottom: 14px;
  line-height: 1.25;
}

.content-prose h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 8px;
  font-family: var(--body);
}

.content-prose p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 14px;
}

.content-prose ul {
  list-style: none;
  padding: 0;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.content-prose ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text2);
  line-height: 1.6;
}

.content-prose ul li::before {
  content: 'âœ“';
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  margin-top: 2px;
}

.inline-link {
  color: var(--accent2);
  text-decoration: none;
  border-bottom: 1px solid rgba(96,165,250,0.3);
  transition: border-color 0.15s;
}

.inline-link:hover { border-color: var(--accent2); }

/* Use cases grid */
.use-cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.use-case-card {
  padding: 14px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.uc-icon { font-size: 20px; margin-bottom: 8px; }
.uc-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; font-family: var(--body); }
.uc-desc { font-size: 12px; color: var(--text3); line-height: 1.5; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FAQ
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.faq-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px 56px;
  width: 100%;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

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

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--body);
  transition: background 0.15s;
}

.faq-q:hover { background: var(--bg3); }

.faq-chevron { font-size: 11px; color: var(--text3); transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.2s;
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.7;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 16px 14px;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   FOOTER
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 16px 28px;
  background: var(--bg2);
  width: 100%;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 220px repeat(5, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.6;
  margin-top: 10px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text2);
  margin-bottom: 12px;
  font-family: var(--body);
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }

.footer-col ul li a {
  font-size: 13px;
  color: var(--text3);
  text-decoration: none;
  transition: color 0.13s;
  display: inline-block;
}

.footer-col ul li a:hover { color: var(--text2); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text3);
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom-links { 
  display: flex; 
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-links a { 
  color: var(--text3); 
  text-decoration: none;
  white-space: nowrap;
}

.footer-bottom-links a:hover { color: var(--text2); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   RESPONSIVE
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
  .tool-container { grid-template-columns: 1fr; }
  .tool-pane + .tool-pane { border-left: none; border-top: 1px solid var(--border); }
  .content-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-grid { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .tools-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* Medium devices */
@media (max-width: 768px) {
  .site-header { padding: 0 12px; }
  
  .header-inner { height: auto; min-height: 56px; padding: 8px 0; }
  
  .nav-links { 
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg3);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    width: 100%;
  }
  
  .nav-links.active { display: flex; }
  
  .nav-links > li > a,
  .nav-links > li > button {
    padding: 10px 16px;
    width: 100%;
    border-radius: 0;
  }
  
  .menu-toggle { display: flex; }
  
  .hero { padding: clamp(24px, 6vw, 40px) 12px clamp(16px, 4vw, 24px); }
  .hero h1 { font-size: clamp(22px, 5.5vw, 36px); }
  
  .tools-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  
  .tool-section { padding: 0 12px 20px; }
  .trust-bar { padding: 0 12px 32px; }
  .tools-section { padding: 0 12px 48px; }
  .content-section { padding: 0 12px 48px; }
  .faq-section { padding: 0 12px 48px; }
  
  .use-cases { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-bottom-links { gap: 12px; }
  
  .pane-actions { gap: 2px; }
  .pane-btn { padding: 4px 8px; font-size: 11px; }
  
  .faq-grid { grid-template-columns: 1fr; }
  .content-grid { gap: 24px; }
  
  .hero-badges { gap: 8px; }
  
  .section-title { font-size: clamp(20px, 4vw, 28px); }
}

/* Small phones */
@media (max-width: 480px) {
  body { font-size: 14px; }
  
  .site-header { padding: 0 12px; }
  .header-inner { height: auto; min-height: 50px; }
  
  .logo { margin-right: auto; }
  .logo-text { font-size: 14px; }
  .logo-icon { width: 28px; height: 28px; font-size: 12px; }
  
  .nav-actions { gap: 4px; }
  .btn-ghost { padding: 5px 10px; font-size: 12px; }
  
  .hero { padding: 20px 12px 16px; }
  .hero h1 { font-size: clamp(18px, 5vw, 26px); margin-bottom: 10px; }
  .hero p { font-size: clamp(13px, 3.5vw, 14px); margin-bottom: 14px; }
  .hero-badges { font-size: 11px; gap: 6px; }
  
  .tool-tabs { overflow-x: auto; }
  .ttab { padding: 6px 10px; font-size: 12px; }
  
  .tool-pane { min-height: 300px; }
  .json-editor { min-height: 300px; padding: 12px 14px; font-size: 12px; }
  .json-output { min-height: 300px; padding: 12px 14px; font-size: 12px; }
  .tree-root { min-height: 300px; padding: 12px 14px; font-size: 12px; }
  
  .pane-header { padding: 8px 12px; gap: 4px; }
  .pane-title { font-size: 11px; }
  .pane-actions { gap: 2px; }
  .pane-btn { padding: 4px 6px; font-size: 10px; }
  .indent-select { font-size: 11px; padding: 3px 6px; }
  
  .pane-status { padding: 4px 12px; font-size: 10px; gap: 6px; }
  .status-badge { padding: 2px 6px; font-size: 10px; }
  
  .tools-section { padding: 0 12px 40px; }
  .tools-grid { grid-template-columns: 1fr; gap: 10px; }
  .tool-card { padding: 14px; gap: 8px; }
  
  .content-section { padding: 0 12px 40px; }
  .content-prose h2 { font-size: clamp(18px, 4vw, 22px); }
  .content-prose p { font-size: 13px; }
  
  .faq-section { padding: 0 12px 40px; }
  .faq-q { padding: 12px 14px; font-size: 13px; }
  .faq-a { font-size: 12.5px; }
  
  .trust-bar { padding: 0 12px 24px; }
  .trust-item { padding: 12px 14px; gap: 10px; }
  .trust-icon { width: 32px; height: 32px; font-size: 16px; }
  .trust-label { font-size: 12px; }
  .trust-desc { font-size: 11px; }
  
  .site-footer { padding: 30px 12px 20px; }
  .footer-grid { gap: 20px; }
  .footer-col h4 { font-size: 10px; margin-bottom: 8px; }
  .footer-col ul li a { font-size: 12px; }
  .footer-bottom { padding-top: 14px; font-size: 11px; }
  .footer-bottom-links { gap: 8px; }
  
  .section-title { font-size: clamp(18px, 4vw, 24px); }
  .section-sub { font-size: 13px; }
  
  .use-cases { gap: 8px; }
  .use-case-card { padding: 12px 14px; }
  .uc-icon { font-size: 18px; margin-bottom: 6px; }
  .uc-title { font-size: 12px; }
  .uc-desc { font-size: 11px; }
  
  .divider { padding: 0 12px; margin-bottom: 36px; }
  
  code { font-size: 11px; padding: 1px 4px; }
}

/* Extra small phones */
@media (max-width: 360px) {
  .logo-text { display: none; }
  .logo { margin-right: 0; }
  
  .hero h1 { font-size: 18px; }
  .hero p { font-size: 12px; }
  
  .pane-btn { padding: 3px 5px; font-size: 9px; }
  .tools-grid { grid-template-columns: 1fr; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   UTILITY
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.divider {
  max-width: 1440px;
  margin: 0 auto 48px;
  padding: 0 16px;
  width: 100%;
}

.divider hr { border: none; border-top: 1px solid var(--border); }

code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent2);
  overflow-x: auto;
  display: inline-block;
  max-width: 100%;
}

/* Smooth scrolling support */
@supports (scroll-behavior: smooth) {
  html { scroll-behavior: smooth; }
}

/* Print styles */
@media print {
  .site-header, .site-footer { display: none; }
  body { background: white; color: black; }
  a { text-decoration: underline; }
}

