/* TechQuant DevTools — Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&family=Noto+Sans+JP:wght@400;500;700;800&display=swap');

:root {
  --font-sans: 'Inter', 'Noto Sans JP', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --gray-950: #020617;

  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;

  --emerald-400: #34d399;
  --emerald-500: #10b981;

  --amber-400: #fbbf24;
  --amber-500: #f59e0b;

  --rose-400: #fb7185;
  --rose-500: #f43f5e;

  --bg: var(--gray-950);
  --bg-elevated: var(--gray-900);
  --bg-card: rgba(30, 41, 59, 0.5);
  --bg-input: rgba(15, 23, 42, 0.8);
  --border: rgba(51, 65, 85, 0.5);
  --border-hover: rgba(59, 130, 246, 0.5);

  --text-primary: var(--gray-100);
  --text-secondary: var(--gray-400);
  --text-tertiary: var(--gray-500);

  --accent: var(--blue-500);
  --accent-hover: var(--blue-600);
  --accent-glow: rgba(59, 130, 246, 0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 20px var(--accent-glow);
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Subtle grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 0%, rgba(59,130,246,0.04) 0%, transparent 50%),
    radial-gradient(circle at 75% 100%, rgba(16,185,129,0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-brand span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text-primary); }

/* Hero */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,0.2);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--gray-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Tool Cards */
.tools-section { padding-bottom: 80px; }
.tools-section h2 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.tool-card {
  display: block;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.3), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.tool-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.tool-card:hover::before { opacity: 1; }
.tool-card .icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
}
.tool-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.tool-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.tool-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
  margin-top: 14px;
}
.tag-live {
  color: var(--emerald-400);
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
}
.tag-soon {
  color: var(--amber-400);
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
}

/* Tool Page Header */
.tool-header {
  padding: 48px 0 32px;
}
.tool-header .breadcrumb {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.tool-header .breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}
.tool-header .breadcrumb a:hover { color: var(--accent); }
.tool-header h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.tool-header p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Cards / Panels */
.panel {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
}
.panel-body { padding: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
}
.btn:hover { border-color: var(--text-secondary); color: var(--text-primary); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}
.stat .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.stat .value {
  font-size: 28px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent);
}
.stat .sub {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
}
.stat.green .value { color: var(--emerald-400); }

/* Textarea */
.editor textarea {
  width: 100%;
  min-height: 220px;
  padding: 20px;
  background: var(--bg-input);
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font-mono);
  resize: vertical;
  outline: none;
  line-height: 1.7;
}
.editor textarea::placeholder { color: var(--gray-600); }
.editor textarea:focus {
  box-shadow: inset 0 0 0 1px var(--accent);
}

/* Info Section */
.info {
  margin: 40px 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.info h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.info p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.7;
}
.info code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-input);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--accent);
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 0 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-tertiary);
}
.footer a { color: var(--text-secondary); text-decoration: none; }
.footer a:hover { color: var(--accent); }

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table-wrap th {
  text-align: left;
  padding: 10px 16px;
  color: var(--text-tertiary);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  background: rgba(15,23,42,0.3);
}
.table-wrap td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr.active { background: rgba(59,130,246,0.08); }
.table-wrap .highlight { color: var(--emerald-400); font-weight: 700; font-family: var(--font-mono); }

/* Responsive */
@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .tools-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat .value { font-size: 22px; }
  .tool-header h1 { font-size: 24px; }
}
