:root {
  --bg: #0a0b0d;
  --surface: #13151a;
  --surface2: #1a1d24;
  --border: #2a2d35;
  --text: #e8eaed;
  --muted: #9aa0a6;
  --accent: #64b4ff;
  --accent-hover: #4a9edd;
  --success: #34d058;
  --warning: #f5c842;
  --error: #f85149;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Navigation */
nav {
  position: sticky;
  top: 0;
  background: rgba(10, 11, 13, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #9d6cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 30px;
}

.hero .breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero .breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.hero .breadcrumb a:hover {
  text-decoration: underline;
}

.tool-count {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid var(--border);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Category Pills */
.cats {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 20px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.cat-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.cat-pill:hover {
  border-color: var(--accent);
  background: var(--surface2);
}

.cat-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Section Title */
.section-title {
  font-size: 32px;
  font-weight: 700;
  margin: 60px 0 24px;
  padding-left: 20px;
  border-left: 4px solid var(--accent);
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* Tool Card */
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
}

.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(100, 180, 255, 0.1);
}

.tool-card-header {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.tag-img { background: rgba(100, 180, 255, 0.15); color: #64b4ff; }
.tag-pdf { background: rgba(255, 107, 53, 0.15); color: #ff9b6b; }
.tag-calc { background: rgba(100, 200, 150, 0.15); color: #64c896; }
.tag-text { background: rgba(150, 120, 255, 0.15); color: #9678ff; }
.tag-util { background: rgba(100, 180, 255, 0.15); color: #64b4ff; }

.tool-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 8px 0;
}

.tool-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.open-btn {
  margin-top: 12px;
  width: 100%;
  padding: 12px;
  background: var(--surface2);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.open-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Tool Body */
.tool-body {
  padding: 24px;
  border-top: 1px solid var(--border);
  background: var(--surface2);
}

.hidden {
  display: none;
}

/* Form Elements */
label.field {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 16px;
  color: var(--text);
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(100, 180, 255, 0.1);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Buttons */
.btn {
  width: 100%;
  padding: 14px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 16px;
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  border-color: var(--accent);
  background: var(--surface2);
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface);
}

.upload-area:hover {
  border-color: var(--accent);
  background: var(--surface2);
}

.upload-area .icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.upload-area p {
  color: var(--text);
  margin-bottom: 4px;
}

.upload-area strong {
  color: var(--muted);
  font-size: 13px;
}

input[type="file"] {
  display: none;
}

/* Result Box */
.result-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.result-box.success {
  border-color: var(--success);
  background: rgba(52, 208, 88, 0.05);
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.result-row:last-child {
  border-bottom: none;
}

.result-label {
  font-size: 14px;
  color: var(--muted);
}

.result-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* Range Slider */
.range-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

input[type="range"] {
  flex: 1;
  height: 6px;
  background: var(--surface2);
  border-radius: 3px;
  outline: none;
}

.range-val {
  min-width: 60px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Canvas */
canvas {
  max-width: 100%;
  height: auto;
}

/* Copy Button */
.copy-btn {
  padding: 6px 12px;
  background: var(--surface2);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* QR Wrapper */
.qr-wrap {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

/* Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  margin-top: 80px;
  text-align: center;
}

footer .logo {
  font-size: 24px;
  display: inline-block;
  margin-bottom: 12px;
}

footer p {
  font-size: 14px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }
  
  .nav-links {
    display: none;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .two-col {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 24px;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
/* ========== Enhanced SEO Content Sections ========== */

.seo-content {
  max-width: 900px;
  margin: 60px auto 0;
  padding: 0 20px;
}

.seo-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 48px 0 20px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}

.seo-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text);
}

.seo-content p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 15px;
}

.seo-content ul,
.seo-content ol {
  color: var(--muted);
  line-height: 1.8;
  padding-left: 24px;
  margin-bottom: 16px;
}

.seo-content li {
  margin-bottom: 8px;
}

.seo-content strong {
  color: var(--text);
}

.seo-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.seo-content a:hover {
  border-bottom-color: var(--accent);
}

/* FAQ Section */
.faq-section {
  margin-top: 60px;
}

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

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 24px;
  color: var(--accent);
  font-weight: 300;
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

/* How-To Section */
.howto-section {
  margin-top: 60px;
}

.howto-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.howto-steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  padding-left: 60px;
  position: relative;
  counter-increment: step-counter;
}

.howto-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 22px;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.howto-steps strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  color: var(--text);
}

.howto-steps p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
  margin: 0;
}

/* Related Tools */
.related-tools {
  margin-top: 60px;
}

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

.related-tool {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.related-tool:hover {
  border-color: var(--accent);
  background: var(--surface2);
}

/* Enhanced Footer */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 20px 30px;
  margin-top: 80px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  text-align: left;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 13px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Article/Static Pages */
.static-page {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.static-page h1 {
  font-size: 40px;
  margin-bottom: 16px;
}

.static-page .lead {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .seo-content h2 {
    font-size: 22px;
  }
  
  .static-page h1 {
    font-size: 28px;
  }
}

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