/*
Theme Name: Pixel2InchWP
Theme URI: https://pixeltoinch.com/
Author: PixelToInch
Author URI: https://pixeltoinch.com/
Description: WordPress theme for PixelToInch.com — a platform of free online tools for designers, developers, and print professionals. Features Light, Dark, and Cyberpunk modes.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
License URI: https://pixeltoinch.com/
Text Domain: pixel2inchwp
Tags: dark-mode, custom-colors, responsive-layout, accessibility-ready
*/

/* ============================================================
   DESIGN TOKENS / CSS VARIABLES
   ============================================================ */

/* --- DARK THEME (default) --- */
.theme-dark, html.theme-dark {
  --bg:           #0d0f14;
  --bg-alt:       #111318;
  --bg-card:      #16181f;
  --border:       rgba(255,255,255,0.07);
  --border-strong:rgba(255,255,255,0.14);
  --text:         #e8eaf0;
  --text-muted:   #8b90a0;
  --text-light:   #5a5f72;
  --accent:       #6c7fff;
  --accent-soft:  rgba(108,127,255,0.12);
  --accent-hover: #8093ff;
  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.55);
  --radius:       12px;
  --font-head:    'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'Share Tech Mono', monospace;
  --nav-blur:     blur(12px);
  --transition:   0.2s ease;
  color-scheme:   dark;
}

/* --- LIGHT THEME --- */
.theme-light, html.theme-light {
  --bg:           #f5f4f0;
  --bg-alt:       #edecea;
  --bg-card:      #ffffff;
  --border:       rgba(0,0,0,0.09);
  --border-strong:rgba(0,0,0,0.18);
  --text:         #1a1c24;
  --text-muted:   #5a5e70;
  --text-light:   #9098b0;
  --accent:       #4a5cf0;
  --accent-soft:  rgba(74,92,240,0.1);
  --accent-hover: #3a4de0;
  --shadow:       0 2px 16px rgba(0,0,0,0.09);
  --shadow-hover: 0 6px 28px rgba(0,0,0,0.15);
  --radius:       12px;
  --font-head:    'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'Share Tech Mono', monospace;
  --nav-blur:     blur(12px);
  --transition:   0.2s ease;
  color-scheme:   light;
}

/* --- CYBERPUNK THEME --- */
.theme-cyberpunk, html.theme-cyberpunk {
  --bg:            #05070d;
  --bg-alt:        #080a12;
  --bg-card:       #0b0e18;
  --border:        rgba(0,255,204,0.1);
  --border-strong: rgba(0,255,204,0.22);
  --text:          #d0ffe8;
  --text-muted:    #5a8070;
  --text-light:    #2d4035;
  --accent:        #00ffcc;
  --accent-soft:   rgba(0,255,204,0.08);
  --accent-hover:  #00e6b5;
  --neon-green:    #00ffcc;
  --neon-pink:     #ff00aa;
  --neon-blue:     #0080ff;
  --shadow:        0 4px 24px rgba(0,0,0,0.7);
  --shadow-hover:  0 0 40px rgba(0,255,204,0.15), 0 8px 32px rgba(0,0,0,0.8);
  --radius:        4px;
  --font-head:     'Share Tech Mono', monospace;
  --font-body:     'DM Sans', sans-serif;
  --font-mono:     'Share Tech Mono', monospace;
  --nav-blur:      blur(8px);
  --transition:    0.15s ease;
  color-scheme:    dark;
}

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   CYBERPUNK BACKGROUND EFFECTS
   ============================================================ */

.cyber-bg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.theme-cyberpunk .cyber-bg { display: block; }

.cyber-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,204,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,204,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridScroll 20s linear infinite;
}
@keyframes gridScroll {
  0%   { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

.cyber-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 4px
  );
  animation: scanlineFlicker 0.1s steps(1) infinite;
}
@keyframes scanlineFlicker {
  0%  { opacity: 0.6; }
  50% { opacity: 0.8; }
}

.cyber-glow-1 {
  position: absolute;
  top: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,255,204,0.08) 0%, transparent 70%);
  animation: glowMove1 8s ease-in-out infinite alternate;
}
.cyber-glow-2 {
  position: absolute;
  bottom: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,0,170,0.06) 0%, transparent 70%);
  animation: glowMove2 10s ease-in-out infinite alternate;
}
@keyframes glowMove1 { 0% { transform: translate(0,0); } 100% { transform: translate(100px,80px); } }
@keyframes glowMove2 { 0% { transform: translate(0,0); } 100% { transform: translate(-80px,-60px); } }

/* ============================================================
   AD SLOTS
   ============================================================ */

.ad-slot {
  background: var(--bg-alt);
  border: 1px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 60px;
}
.ad-label {
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.ad-top {
  width: 100%;
  min-height: 70px;
  padding: 0.5rem;
  border-top: none;
  border-left: none;
  border-right: none;
}
.ad-inline {
  margin: 2rem auto;
  max-width: 728px;
  min-height: 90px;
  border-radius: var(--radius);
}
.ad-side {
  width: 100%;
  min-height: 250px;
  border-radius: var(--radius);
}
.ad-sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  min-height: 70px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  padding: 0.5rem 1rem;
}
.ad-close {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
}
.ad-close:hover { background: var(--border); }

body { padding-bottom: 80px; }

/* ============================================================
   SITE HEADER / NAVIGATION
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(var(--bg), 0.92);
  backdrop-filter: var(--nav-blur);
  -webkit-backdrop-filter: var(--nav-blur);
  border-bottom: 1px solid var(--border);
}

.theme-dark  .site-header { background: rgba(13,15,20,0.92); }
.theme-light .site-header { background: rgba(245,244,240,0.92); }
.theme-cyberpunk .site-header {
  background: rgba(5,7,13,0.95);
  border-bottom-color: rgba(0,255,204,0.15);
}

.navbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 1.25rem;
  max-width: 1140px;
  margin: 0 auto;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--accent); }
.brand-icon {
  font-size: 1.4rem;
  color: var(--accent);
  display: inline-block;
}
.theme-cyberpunk .brand { color: var(--neon-green); }
.theme-cyberpunk .brand-icon { color: var(--neon-pink); text-shadow: 0 0 10px var(--neon-pink); }

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--accent-soft);
}
.theme-cyberpunk .nav-link { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.05em; }
.theme-cyberpunk .nav-link:hover, .theme-cyberpunk .nav-link.active {
  color: var(--neon-green);
  background: rgba(0,255,204,0.08);
}

.nav-game { color: var(--accent); font-weight: 700; }
.theme-cyberpunk .nav-game { color: var(--neon-pink); text-shadow: 0 0 8px var(--neon-pink); }

/* Tools Dropdown */
.nav-item-dropdown { position: relative; }
.tools-caret {
  font-size: 0.6rem;
  margin-left: 0.2rem;
  display: inline-block;
  transition: transform 0.2s;
}
.nav-item-dropdown.open .tools-caret { transform: rotate(180deg); }

.tools-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 100;
  padding: 0.4rem;
  animation: dropdownFade 0.15s ease;
}
@keyframes dropdownFade { from { opacity:0; transform: translateX(-50%) translateY(-8px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
.nav-item-dropdown.open .tools-dropdown { display: block; }
.theme-cyberpunk .tools-dropdown { border-color: rgba(0,255,204,0.2); box-shadow: 0 0 30px rgba(0,255,204,0.08); }

.tools-dropdown-link {
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.tools-dropdown-link:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.theme-cyberpunk .tools-dropdown-link:hover { color: var(--neon-green); background: rgba(0,255,204,0.08); }

/* Theme Switcher */
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.2rem 0.35rem;
  flex-shrink: 0;
}
.theme-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
  background: transparent;
  border: none;
}
.theme-btn:hover { background: var(--border); transform: scale(1.1); }
.theme-btn.active { background: var(--accent-soft); }
.theme-cyberpunk .theme-btn.active { background: rgba(0,255,204,0.15); }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background var(--transition);
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle:hover { background: var(--border); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   RESPONSIVE NAV
   ============================================================ */

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    align-items: stretch;
    box-shadow: var(--shadow);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 0.75rem 1rem; border-radius: 8px; }
  .tools-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border: 1px solid var(--border);
    margin: 0.25rem 0 0.5rem 1rem;
    animation: none;
  }
  .navbar { position: relative; }
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */

/* Tool page hero */
.hero {
  padding: 4rem 0 3rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-content { flex: 1; max-width: 600px; }
.hero-visual { flex: 0 0 300px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.28rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.theme-cyberpunk .hero-eyebrow {
  color: var(--neon-pink);
  background: rgba(255,0,170,0.1);
  border-radius: 2px;
  text-shadow: 0 0 8px var(--neon-pink);
}

h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.theme-cyberpunk h1 {
  color: var(--neon-green);
  text-shadow: 0 0 20px rgba(0,255,204,0.4);
  letter-spacing: 0.04em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.65;
}

/* Hero Card (tool page visual) */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.theme-cyberpunk .hero-card {
  border-color: rgba(0,255,204,0.2);
  box-shadow: 0 0 30px rgba(0,255,204,0.1);
}
.hero-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  gap: 0.5rem;
}
.hero-card-row:last-of-type { border-bottom: none; }
.hc-label {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-muted);
}
.hc-arrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}
.theme-cyberpunk .hc-arrow { color: var(--neon-pink); text-shadow: 0 0 6px var(--neon-pink); }
.hc-val {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text);
  font-weight: 700;
}
.theme-cyberpunk .hc-val { color: var(--neon-green); }
.hc-dpi {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-light);
  text-align: right;
}

/* CTA Button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.85rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.01em;
}
.cta-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108,127,255,0.35);
  color: #fff;
}
.theme-cyberpunk .cta-btn {
  background: var(--neon-green);
  color: #000;
  border-radius: 2px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.theme-cyberpunk .cta-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 25px rgba(0,255,204,0.5);
  color: #000;
}

/* Page Hero (simple pages) */
.page-hero {
  padding: 3rem 0 2.5rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p { color: var(--text-muted); font-size: 1rem; }

/* ============================================================
   TOOL SECTION
   ============================================================ */

.tool-section {
  padding: 3.5rem 0;
  position: relative;
  z-index: 1;
}

.tool-container {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  gap: 2rem;
  align-items: start;
}

.ad-sidebar { position: sticky; top: 90px; }
.ad-sidebar-right { position: sticky; top: 90px; }

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.theme-cyberpunk .tool-card {
  border-color: rgba(0,255,204,0.15);
  box-shadow: 0 0 30px rgba(0,255,204,0.06);
}

.tool-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.theme-cyberpunk .tool-title { color: var(--neon-green); text-shadow: 0 0 10px rgba(0,255,204,0.3); }

/* Tabs */
.tool-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-alt);
  border-radius: calc(var(--radius) - 2px);
  padding: 0.3rem;
  margin-bottom: 1.5rem;
}
.tab-btn {
  flex: 1;
  padding: 0.6rem 0.85rem;
  border-radius: calc(var(--radius) - 4px);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
  text-align: center;
  font-family: inherit;
}
.tab-btn.active {
  background: var(--bg-card);
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.theme-cyberpunk .tab-btn { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.05em; }
.theme-cyberpunk .tab-btn.active { color: var(--neon-green); border: 1px solid rgba(0,255,204,0.2); }

/* DPI Row */
.dpi-row {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.custom-dpi-row { margin-top: 0.5rem; }

/* Field */
.field-group { margin-bottom: 1.25rem; }
.field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
}
.theme-cyberpunk .field-label { font-family: var(--font-mono); color: var(--neon-green); letter-spacing: 0.12em; }

/* Input Fields */
.input-field {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) - 4px);
  color: var(--text);
  padding: 0.7rem 1rem;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input-field::placeholder { color: var(--text-light); }
.theme-cyberpunk .input-field {
  background: var(--bg-alt);
  border-color: rgba(0,255,204,0.2);
  font-family: var(--font-mono);
  color: var(--neon-green);
}
.theme-cyberpunk .input-field:focus {
  border-color: var(--neon-green);
  box-shadow: 0 0 0 3px rgba(0,255,204,0.1);
}

select.input-field { cursor: pointer; }

/* Result Box */
.result-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-height: 70px;
  align-items: center;
  transition: border-color var(--transition), background var(--transition);
}
.result-label {
  font-size: 0.78rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  width: 100%;
}
.result-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-light);
  transition: color var(--transition);
  line-height: 1;
}
.result-value.has-value {
  color: var(--accent);
}
.theme-cyberpunk .result-value.has-value { color: var(--neon-green); text-shadow: 0 0 10px rgba(0,255,204,0.4); }
.result-unit {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Action Buttons */
.tool-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.action-btn {
  padding: 0.65rem 1.25rem;
  border-radius: calc(var(--radius) - 4px);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
  font-family: inherit;
}
.action-btn.primary {
  background: var(--accent);
  color: #fff;
}
.action-btn.primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(108,127,255,0.3);
}
.action-btn.secondary {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border);
}
.action-btn.secondary:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
}
.action-btn.ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}
.action-btn.ghost:hover { background: var(--border); color: var(--text); }
.action-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.action-btn.full-width { width: 100%; display: block; text-align: center; }

.theme-cyberpunk .action-btn.primary {
  background: var(--neon-green);
  color: #000;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.theme-cyberpunk .action-btn.primary:hover {
  box-shadow: 0 0 20px rgba(0,255,204,0.4);
}
.theme-cyberpunk .action-btn.secondary { color: var(--neon-green); border-color: rgba(0,255,204,0.2); }

.tool-note {
  font-size: 0.82rem;
  color: var(--text-light);
  font-style: italic;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ============================================================
   CONTENT SECTIONS (SEO / ARTICLE CONTENT)
   ============================================================ */

.content-section {
  padding: 3.5rem 0 4rem;
  position: relative;
  z-index: 1;
}

.content-container { max-width: 900px; }
.content-container.narrow { max-width: 740px; }

.content-block {
  margin-bottom: 2.5rem;
}
.content-block:last-child { margin-bottom: 0; }

.content-block h2 {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.theme-cyberpunk .content-block h2 { color: var(--neon-green); }

.content-block h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.25rem 0 0.6rem;
}
.theme-cyberpunk .content-block h3 { color: var(--neon-green); opacity: 0.85; }

.content-block p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.97rem;
  line-height: 1.75;
}
.content-block p:last-child { margin-bottom: 0; }
.content-block p a { color: var(--accent); }
.content-block p a:hover { text-decoration: underline; }

.content-list {
  list-style: disc;
  margin: 0.75rem 0 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.content-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.content-list li strong { color: var(--text); }

.steps-list {
  list-style: decimal;
  margin: 0.75rem 0 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.steps-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.steps-list li strong { color: var(--text); }

/* Formula */
.formula-box {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.25rem 1.75rem;
  margin: 1.25rem 0;
  text-align: center;
}
.formula-text {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}
.theme-cyberpunk .formula-text {
  color: var(--neon-green);
  text-shadow: 0 0 10px rgba(0,255,204,0.4);
}

/* Example Grid */
.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.example-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.theme-cyberpunk .example-card { border-color: rgba(0,255,204,0.1); }
.ex-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.ex-calc {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.ex-result {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
}
.theme-cyberpunk .ex-result { color: var(--neon-green); }

/* Use Case Grid */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.usecase-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.theme-cyberpunk .usecase-card { border-color: rgba(255,0,170,0.15); }
.uc-icon { font-size: 1.75rem; margin-bottom: 0.6rem; }
.usecase-card h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.4rem;
}
.theme-cyberpunk .usecase-card h3 { color: var(--neon-pink); }
.usecase-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* FAQ */
.faq-section { padding: 0; border: none; }
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1.25rem; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--accent); }
.theme-cyberpunk .faq-item { border-color: rgba(0,255,204,0.1); }
.theme-cyberpunk .faq-item[open] { border-color: var(--neon-green); }
.faq-q {
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.theme-cyberpunk .faq-q { font-family: var(--font-mono); font-size: 0.88rem; letter-spacing: 0.03em; }
.theme-cyberpunk .faq-q::after { color: var(--neon-green); }
.faq-a {
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-a p { margin: 0; }
.faq-a a { color: var(--accent); }

/* Contact Form */
.contact-form-wrapper { max-width: 600px; }
.form-intro {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.form-field { margin-bottom: 1.25rem; }
.required { color: #e53e3e; margin-left: 0.15rem; }
.field-error {
  display: block;
  font-size: 0.8rem;
  color: #e53e3e;
  margin-top: 0.35rem;
  min-height: 1em;
}
.textarea-field { resize: vertical; min-height: 140px; }

.form-success {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.success-icon { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; color: var(--accent); }
.form-success h3 { font-family: var(--font-head); font-size: 1.3rem; color: var(--text); margin-bottom: 0.5rem; }
.form-success p { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================================
   HOMEPAGE SPECIFIC STYLES
   ============================================================ */

/* Hero: Homepage full-width two-column */
.home-hero {
  padding: 4rem 0 3.5rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.home-hero .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.home-hero-content { flex: 1; max-width: 620px; }
.home-hero-visual { flex: 0 0 340px; }

.home-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.theme-cyberpunk .home-hero h1 {
  color: var(--neon-green);
  text-shadow: 0 0 20px rgba(0,255,204,0.45);
  letter-spacing: 0.04em;
}

/* Stats strip inside hero visual */
.hero-stats-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.theme-cyberpunk .hero-stats-card {
  border-color: rgba(0,255,204,0.25);
  box-shadow: 0 0 30px rgba(0,255,204,0.08);
}
.stat-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.stat-row:last-child { border-bottom: none; }
.stat-icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}
.stat-info strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-head);
  color: var(--accent);
  line-height: 1;
}
.theme-cyberpunk .stat-info strong {
  color: var(--neon-green);
  text-shadow: 0 0 8px var(--neon-green);
}
.stat-info span { font-size: 0.78rem; color: var(--text-muted); }

/* Section label (eyebrow) */
.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.28rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.85rem;
}
.theme-cyberpunk .section-eyebrow {
  color: var(--neon-pink);
  background: rgba(255,0,170,0.1);
  border-radius: 2px;
  text-shadow: 0 0 8px var(--neon-pink);
}

.section-heading {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.theme-cyberpunk .section-heading {
  color: var(--neon-green);
  text-shadow: 0 0 12px rgba(0,255,204,0.3);
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}
.section-header-block {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Featured Tools Grid */
.tools-section { padding: 4rem 0; position: relative; z-index: 1; }
.tools-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.tool-card-home {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
}
.tool-card-home:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}
.theme-cyberpunk .tool-card-home { border-color: rgba(0,255,204,0.15); }
.theme-cyberpunk .tool-card-home:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 30px rgba(0,255,204,0.18);
}
.tool-card-icon-wrap {
  width: 52px;
  height: 52px;
  background: var(--accent-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.theme-cyberpunk .tool-card-icon-wrap {
  background: rgba(0,255,204,0.08);
  border-radius: 4px;
}
.tool-card-body-home h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.theme-cyberpunk .tool-card-body-home h3 { color: var(--neon-green); }
.tool-card-body-home p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}
.tool-card-footer-home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  margin-top: auto;
}
.tool-badge-live {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.theme-cyberpunk .tool-badge-live {
  background: rgba(0,255,204,0.1);
  color: var(--neon-green);
  border-radius: 2px;
}
.tool-badge-soon {
  background: var(--border);
  color: var(--text-muted);
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tool-cta-arrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  transition: gap 0.15s;
}
.tool-card-home:hover .tool-cta-arrow { gap: 0.45rem; }
.theme-cyberpunk .tool-cta-arrow { color: var(--neon-green); }

/* Why Section */
.why-section { padding: 4rem 0; position: relative; z-index: 1; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.why-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.why-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.theme-cyberpunk .why-item { border-color: rgba(255,0,170,0.2); }
.why-item-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.why-item h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.theme-cyberpunk .why-item h3 { color: var(--neon-green); }
.why-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Text alignment for homepage content sections */
.content-section p { text-align: justify; }

/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.footer-brand .brand-icon { color: var(--accent); }
.theme-cyberpunk .footer-brand { color: var(--neon-green); }
.footer-links {
  display: flex;
  gap: 1.25rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tool layout responsive */
@media (max-width: 1100px) {
  .tool-container {
    grid-template-columns: 1fr;
  }
  .ad-sidebar, .ad-sidebar-right { display: none; }
}

/* Hero responsive */
@media (max-width: 900px) {
  .hero .container { flex-direction: column; }
  .hero-visual { width: 100%; max-width: 400px; }
  .hero-content { max-width: 100%; }
  .home-hero .container { flex-direction: column; }
  .home-hero-visual { width: 100%; max-width: 400px; }
  .home-hero-content { max-width: 100%; }
}

@media (max-width: 600px) {
  .hero, .home-hero { padding: 2.5rem 0 2rem; }
  .tools-grid-home { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .example-grid, .usecase-grid { grid-template-columns: 1fr 1fr; }
  .tool-actions { flex-direction: column; }
  .action-btn { width: 100%; text-align: center; }
}

@media (max-width: 400px) {
  .example-grid, .usecase-grid { grid-template-columns: 1fr; }
}
