/* ==========================================================================
   FREE OF ALL TOOLS — Complete Design System & Stylesheet (v3.0 Ultra-Pro)
   Modern, Sleek, 3D Interactive Hero, Accessible, Dark & Light Mode
   ========================================================================== */

:root {
  /* Color Palette - Light Theme */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  --border-subtle: #e2e8f0;
  --border-default: #cbd5e1;
  --border-focus: #2563eb;
  
  --brand-primary: #2563eb;
  --brand-primary-hover: #1d4ed8;
  --brand-primary-light: #eff6ff;
  --brand-accent: #06b6d4;
  --brand-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --brand-gradient-hover: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
  --brand-glow: rgba(37, 99, 235, 0.25);
  
  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #f59e0b;
  --warning-bg: #fffbeb;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  --info: #3b82f6;
  --info-bg: #eff6ff;

  --ad-bg: #f8fafc;
  --ad-border: #cbd5e1;
  --ad-text: #94a3b8;

  /* Typography & Sizing */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 30px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
  --header-height: 72px;
}

[data-theme="dark"] {
  /* Dark Theme */
  --bg-primary: #0a0e17;
  --bg-surface: #111827;
  --bg-surface-elevated: #1a2234;
  --bg-secondary: #161f30;
  --bg-tertiary: #232f48;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;
  
  --border-subtle: #1e293b;
  --border-default: #334155;
  --border-focus: #60a5fa;
  
  --brand-primary: #3b82f6;
  --brand-primary-hover: #60a5fa;
  --brand-primary-light: #172554;
  --brand-accent: #22d3ee;
  --brand-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
  --brand-gradient-hover: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
  --brand-glow: rgba(59, 130, 246, 0.35);
  
  --success: #34d399;
  --success-bg: #064e3b;
  --warning: #fbbf24;
  --warning-bg: #78350f;
  --danger: #f87171;
  --danger-bg: #7f1d1d;
  --info: #60a5fa;
  --info-bg: #1e3a8a;

  --ad-bg: #111827;
  --ad-border: #1e293b;
  --ad-text: #64748b;
  
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.45);
  --shadow-xl: 0 20px 30px -5px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--brand-primary-hover);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  max-width: 960px;
}

.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  height: var(--header-height);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .site-header {
  background-color: rgba(17, 24, 39, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.brand-logo svg {
  width: 30px;
  height: 30px;
  color: var(--brand-primary);
}

.brand-logo span.accent {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  padding: 0.5rem 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-primary);
  background-color: var(--bg-secondary);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 270px;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  z-index: 110;
  max-height: 80vh;
  overflow-y: auto;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: var(--bg-secondary);
  color: var(--brand-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-trigger-btn:hover {
  border-color: var(--brand-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.search-shortcut {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.theme-toggle-btn, .mobile-menu-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover, .mobile-menu-btn:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  transform: scale(1.04);
}

.mobile-menu-btn {
  display: none;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-surface);
  z-index: 99;
  padding: 1.5rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  border-top: 1px solid var(--border-subtle);
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Hero Section with 3D Rotating 360-Degree Cube
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at top, var(--brand-primary-light) 0%, transparent 70%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 1.1rem;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.25rem;
}

.hero-search-box {
  max-width: 580px;
  position: relative;
}

.hero-search-input {
  width: 100%;
  padding: 1.1rem 1.25rem 1.1rem 3.4rem;
  background-color: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  outline: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-search-input:hover {
  border-color: var(--brand-primary);
}

.hero-search-icon {
  position: absolute;
  left: 1.35rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* 3D Rotating Cube Container */
.hero-cube-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  position: relative;
  min-height: 380px;
}

.cube-glow-backdrop {
  position: absolute;
  width: 260px;
  height: 260px;
  background: var(--brand-gradient);
  filter: blur(70px);
  opacity: 0.35;
  border-radius: 50%;
  z-index: 0;
  animation: pulseGlow 4s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% { transform: scale(0.85); opacity: 0.25; }
  100% { transform: scale(1.15); opacity: 0.45; }
}

.cube-3d {
  width: 200px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate3dCube 18s infinite linear;
  z-index: 1;
  cursor: grab;
}

.cube-3d:hover {
  animation-duration: 9s;
}

@keyframes rotate3dCube {
  0% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  50% {
    transform: rotateX(180deg) rotateY(180deg) rotateZ(90deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
  }
}

.cube-face {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid var(--brand-primary);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), inset 0 0 20px rgba(37, 99, 235, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  user-select: none;
}

[data-theme="dark"] .cube-face {
  background: rgba(17, 24, 39, 0.88);
  border-color: var(--brand-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(59, 130, 246, 0.2);
}

.cube-face-icon {
  font-size: 2.75rem;
  margin-bottom: 0.35rem;
}

.cube-face-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.cube-face-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-top: 0.25rem;
}

/* 3D Cube Faces Positions */
.cube-face-front  { transform: rotateY(0deg) translateZ(100px); }
.cube-face-back   { transform: rotateY(180deg) translateZ(100px); }
.cube-face-right  { transform: rotateY(90deg) translateZ(100px); }
.cube-face-left   { transform: rotateY(-90deg) translateZ(100px); }
.cube-face-top    { transform: rotateX(90deg) translateZ(100px); }
.cube-face-bottom { transform: rotateX(-90deg) translateZ(100px); }

.cube-label-tag {
  margin-top: 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  z-index: 1;
}

/* ==========================================================================
   Buttons & UI Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--brand-gradient-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background-color: var(--bg-surface);
  border-color: var(--border-default);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.95rem 1.9rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */
.section {
  padding: 3.75rem 0;
}

.section-alt {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-highlight {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--brand-primary-light) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="dark"] .section-highlight {
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(37, 99, 235, 0.1) 100%);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.35rem;
}

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

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.35rem;
}

/* Tool Card */
.tool-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  position: relative;
  height: 100%;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

.tool-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.tool-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.tool-fav-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  font-size: 1.2rem;
  transition: transform var(--transition-fast);
}

.tool-fav-btn:hover {
  transform: scale(1.2);
}

.tool-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.tool-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.35rem;
  flex: 1;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.9rem;
  margin-top: auto;
}

.tool-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-secondary);
  color: var(--text-muted);
}

/* Category Card */
.category-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

.category-card-icon {
  font-size: 2.25rem;
  margin-bottom: 0.25rem;
}

.category-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.category-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.category-card-meta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary);
}

/* ==========================================================================
   Ad Placeholders (Clean, Non-Intrusive, AdSense Prepared)
   ========================================================================== */
.ad-slot-wrapper {
  width: 100%;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  clear: both;
}

.ad-placeholder {
  width: 100%;
  max-width: 970px;
  min-height: 90px;
  background-color: var(--ad-bg);
  border: 1px dashed var(--ad-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ad-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem;
  overflow: hidden;
}

.ad-slot-header {
  max-width: 728px;
  min-height: 90px;
}

.ad-slot-in-content {
  max-width: 728px;
  min-height: 110px;
}

.ad-label {
  font-size: 0.65rem;
  color: var(--ad-text);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Tool Dedicated Page UI
   ========================================================================== */
.tool-page-header {
  margin-bottom: 1.75rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--brand-primary);
}

.breadcrumbs .separator {
  color: var(--border-default);
}

.tool-heading {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.tool-intro {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 840px;
  line-height: 1.6;
}

.tool-workspace {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2.5rem;
}

.tool-actions-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

/* ==========================================================================
   SEO Article & Content Section
   ========================================================================== */
.seo-article {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  margin-bottom: 2.5rem;
  line-height: 1.85;
}

.seo-article h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.seo-article h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1.6rem;
  margin-bottom: 0.55rem;
}

.seo-article p {
  color: var(--text-secondary);
  margin-bottom: 1.35rem;
  font-size: 1.02rem;
}

.seo-article ul, .seo-article ol {
  margin-left: 1.6rem;
  margin-bottom: 1.35rem;
  color: var(--text-secondary);
}

.seo-article li {
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-surface);
}

.faq-question {
  width: 100%;
  padding: 1.2rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.faq-question:hover {
  background-color: var(--bg-secondary);
}

.faq-icon {
  transition: transform var(--transition-fast);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--brand-primary);
}

.faq-answer {
  padding: 0 1.35rem 1.35rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  display: none;
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   Search Modal
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 4.5rem 1rem 1rem;
}

.modal-backdrop.open {
  display: flex;
}

.search-modal {
  width: 100%;
  max-width: 680px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  animation: modalFadeIn 0.2s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-modal-header {
  display: flex;
  align-items: center;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.85rem;
}

.search-modal-input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.search-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.35rem;
  padding: 0.25rem;
}

.search-modal-close:hover {
  color: var(--text-primary);
}

.search-results-list {
  padding: 0.65rem;
  overflow-y: auto;
  flex: 1;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: background-color var(--transition-fast);
}

.search-result-item:hover {
  background-color: var(--bg-secondary);
}

.search-result-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.search-result-cat {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-tertiary);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 1rem 0;
  max-width: 340px;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 0.9rem 1.35rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
  animation: toastSlideUp 0.25s ease;
  min-width: 260px;
  max-width: 420px;
}

.toast.toast-success {
  border-color: var(--success);
}
.toast.toast-error {
  border-color: var(--danger);
}

@keyframes toastSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-content {
    text-align: center;
  }
  .hero-subtitle, .hero-search-box {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-desktop, .search-shortcut {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .cube-3d, .cube-face {
    width: 160px;
    height: 160px;
  }
  .cube-face-front  { transform: rotateY(0deg) translateZ(80px); }
  .cube-face-back   { transform: rotateY(180deg) translateZ(80px); }
  .cube-face-right  { transform: rotateY(90deg) translateZ(80px); }
  .cube-face-left   { transform: rotateY(-90deg) translateZ(80px); }
  .cube-face-top    { transform: rotateX(90deg) translateZ(80px); }
  .cube-face-bottom { transform: rotateX(-90deg) translateZ(80px); }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .section {
    padding: 2.75rem 0;
  }
  .seo-article {
    padding: 1.6rem;
  }
  .tool-workspace {
    padding: 1.35rem;
  }
}
